
Data Structures | Level 2 | Lab 5
1 | P a g e
Linked List (Part I)
1- What is the Liked List?
A linked list is a data structure that can store an indefinite amount of items. These items are
connected using pointers in a sequential manner.
Every element contains some data and a link to the next element.
The elements of a linked list are called the nodes. A node has two fields i.e. data and next.
The data field contains the data being stored in that specific node.
The next field contains the address of the next node.
2- Applications of linked list in computer science:
1. Implementation of stacks and queues.
2. Implementation of graphs: Adjacency list representation of graphs is most popular
which uses linked list to store adjacent vertices is.
3. Dynamic memory allocation: We use linked list of free blocks.
4. Performing arithmetic operations on long integers.
5. Manipulation of polynomials by storing constants in the node of linked list.
3- Applications of linked list in real world:
1. Image viewer – Previous and next images are linked, hence can be accessed by next
and previous button.
2. Previous and next page in web browser – We can access previous and next url
searched in web browser by pressing back and next button since, they are linked as
linked list.
3. Music Player – Songs in music player are linked to previous and next song. you can play
songs either from starting or ending of the list.