answersLogoWhite

0

The main advantage of a doubly-linked list is that you can traverse and search the list both forwards and backwards. Although you can also add to the beginning and end of the list, and retrieve the same, in constant time O(1), this is also possible with a slightly modified singly-linked list simply by maintaining a pointer to the last node as well as the first.

Thus the only real difference is whether you need to traverse bi-directionally or not. If not, a modified singly-linked list would be more efficient. And if you only require fast access to the first node, a standard singly-linked list would be slightly more efficient.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Explain any two advantages using Single linked list over Doubly linked list and vice-versa?

Advantages of single linked list: # Decrease in storage space per linked list node # Simpler implementation Advantages of double linked list # Decrease in work when accessing a random node # Decrease in work when inserting or deleting a node


Which is the easy insertion operator single linked-list or double-linked list?

It is easier to insert into a singly linked list.


List of advantages and dis advantages of luggage security system in train?

list of advantages and disadvantages of luggage security system


Convert single linked list to double linked list?

You copy a singly linked list into a doubly linked list by iterating over the singly linked list and, for each element, calling the doubly linked list insert function.


What are the disadvantages and advantages of PKU in newborn babies?

list 3 advantages n disadvantages on pku testing on newborns


What advantages of a sorted list over a linked list?

All lists are linked lists; there is no such thing as a separate "sorted list". There are algorithms that can sort a list, of course, but they all work on linked lists.


Which operation is perform more efficiently by doubly linked list than by single linked list?

zsd


List advantages and disadvantages for data structure diagrams?

uqwyhvxuyhasbxiuqa


Which of the following data structures can be randomly accessed giving loc A. linked list implemented using array B. singly linked list C. double linked list D. both single and double linked list?

Which of the following data structures can be randomly accessed giving loc?A. linked list implemented using arrayB. singly linked listC. double linked listD. both single and double linked listThe answer is A.


What are the advantages and disadvantages of division of labor among cells?

list of advantages and disadvanteges of division of labour


Why double linked list better than single link list?

In_which_way_Doubly_linked_list_better_than_singly_linked_list


List the advantages and disadvantages of insider and outsider pressure groups?

the key of awesome