Open In App

Applications, Advantages and Disadvantages of Doubly Linked List

Doubly linked list is a type of linked list in which nodes contains information and two pointers i.e. left pointer and right pointer. The left pointer in the doubly linked list points to the previous node and the right pointer points to the next node in the linked list. The first node of the doubly linked list has NULL in its left pointer and the last node of the doubly linked list has NULL in its right pointer. It is also known as a two-way linked list as there are two pointers. The benefit of this doubly linked list is that now we can navigate in both directions.  Also, we can delete a node without containing the previous node’s address as every node has a left pointer that points to its previous node.

DOUBLY LINKED LIST

Working of a Doubly Linked List:



A Doubly linked list node contains three fields: 

The left pointer points to the node which is before the current node and the right pointer points to the node after the current node. A Doubly linked list allows backward traversing if required. All other functions are similar to linked list.



It is different from the normal linked list by allowing the bidirectional traversal which in turn reduces the time complexity of any operation. 

characteristics of a doubly linked list:

Insertion:
Insertion into a doubly-linked list has three cases that are as follows:

Deletion:
Deletion into a doubly-linked list has three cases that are as follows:

Applications of Doubly Linked List:

Real-Time Applications of Doubly Linked List:

Advantages of Doubly Linked List:

Disadvantages of Doubly Linked List:

Article Tags :