COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Singly
|
|
doubly
|
|
circular
|
|
None
|
Detailed explanation-1: -A circular doubly linked list is one which has both the successor pointer and predecessor pointer in circular manner. The main advantage of using a circular doubly linked list is that it makes search operation twice as efficient.
Detailed explanation-2: -The advantages of linked lists include: Overflow can never occur unless the memory is actually full. Insertions and deletions are easier than for contiguous (array) lists. With large records, moving pointers is easier and faster than moving the items themselves.
Detailed explanation-3: -It can allocate or reallocate memory easily during its execution. As with a singly linked list, it is the easiest data structure to implement. The traversal of this doubly linked list is bidirectional which is not possible in a singly linked list. Deletion of nodes is easy as compared to a Singly Linked List.
Detailed explanation-4: -Accessing elements in a Doubly Linked List is more efficient when compared to a Singly Linked List as both forward and backward traversal is possible. The time complexity of inserting or deleting a node at a given position (if the pointer to that position is given) in a singly linked list is O(n).
Detailed explanation-5: -It seems that insertion and deletion are more efficient in doubly linked list than singly linked list.