vault backup: 2025-03-16 18:59:42
This commit is contained in:
@@ -1,27 +1,23 @@
|
||||
## Advantages
|
||||
|
||||
- This has the advantage of making certain actions easier to perform but at the cost of increased maintenance of the code overall.
|
||||
|
||||
- Allows traversal of nodes in both direction which is not possible in singly linked list.
|
||||
|
||||
- Can allocate or de-allocate memory easily when required during its execution.
|
||||
|
||||
- It is one of most efficient data structure to implement when traversing in both direction is required.
|
||||
## Disadvantages
|
||||
|
||||
## Disadvantages
|
||||
|
||||
- Using extra memory when compared to array and singly linked list.
|
||||
|
||||
- Slow in search as its elements are stored randomly in memory, hence elements are accessed sequentially (no direct access is allowed).
|
||||
|
||||
## ADT Liner list could be implemented by two ways:
|
||||
## ADT Liner List Could Be Implemented by Two Ways:
|
||||
|
||||
- Array
|
||||
- Used when you search is the highest priority
|
||||
|
||||
- Linked list
|
||||
- Singly linked list
|
||||
- Used when you addition/deletion is the highest priority
|
||||
|
||||
|
||||
- Doubly linked list
|
||||
- Used when you addition/deletion is the highest priority
|
||||
- Navigate next and pervious
|
||||
- Navigate next and previous
|
||||
|
Reference in New Issue
Block a user