.
The linked list technics to store data in computer memory in non contiguous
memory location . every node of data have specific address for every node so
on node are connected each other .
linked list have three type based on use are in real life .
1. Singly linked list
2. Doubly linked list.
3 Circular linked list .
let's understand uses in real life all the type of linked list :
1. Singly linked list :
Singly linked list is like train .every compartment are connected to each other .
you can think compartment is memory address where data are stored or linked
with . every compartment have next connection compartment . here connection is the address of the next compartment. so it can say compartment have address next item.
in programming language linked list use to implement Stacks, Queue. it also uses Graphs
(Adjacency list representation of Graph).
2. What is doubly linked list uses in real life ?
Double linked list has two connecting pointer to the address connect
the data . navigation system that require both front and back navigation
another various application use it implement undo and redo functionality .
.It can also be used in games to represent a deck of cards.
.It is also used to represent different games states forward and reversing .
3.what is Circular linked used in real life?
Circular linked lists are a type of data structure in computer science that consist of a chain of nodes, where the last node points back to the first node, creating a circular loop. Here are some real-life applications of circular linked lists:Computer Operating Systems: Circular linked lists are used in operating systems to manage scheduling processes. The operating system can use a circular linked list to keep track of the order in which processes are executed.
Music and Video Players: Music and video players use circular linked lists to play media files in a specific order. The linked list ensures that when the last file is played, the next file played will be the first one in the list.
Game Development: Circular linked lists are used in game development for implementing gameplay mechanics such as enemy spawning, resource management, and level design.
Simulation Models: Circular linked lists are used in simulation models to represent complex systems, such as transportation networks or supply chains.
Graphical User Interfaces: Circular linked lists can be used in graphical user interfaces to implement circular navigation between elements, such as in image or video galleries.
Embedded Systems: Circular linked lists are commonly used in embedded systems to implement real-time data structures, such as circular buffers for communication between components.
These are just a few examples of the many real-life applications of circular linked lists. The versatility of this data structure makes it a useful tool for solving a wide range of computational problems.