Doubly Linked List Flashcards

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/18

flashcard set

Earn XP

Description and Tags

Flashcards for reviewing Doubly Linked List concepts

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

19 Terms

1
New cards

Advantages of a Doubly Linked List

  • Can be traversed in both directions.
  • Deletion is more efficient if the node to be deleted is known.
  • Can implement various data structures like stacks, queues, and hash tables.
2
New cards

Disadvantages of a Doubly Linked List

  • Requires more space due to the storage of two pointers (previous and next).
  • Insertion and deletion operations are more complex and time-consuming.
3
New cards

When to Use a Doubly Linked List

  • When backward traversal is required.
  • When frequent insertions and deletions are needed in the middle of the list.
  • When memory usage is not a primary concern.
4
New cards

Doubly Linked List

A variation of a linked list where navigation is possible in both forward and backward directions.

5
New cards

Link

Each link of a linked list can store a data.

6
New cards

Next

Each link of a linked list contains a link to the next link.

7
New cards

Prev

Each link of a linked list contains a link to the previous link

8
New cards

Linked List

A linked list containing the connection link to the first link and the last link.

9
New cards

Insertion

Adds an element at the beginning of the list.

10
New cards

Insert Last

Adds an element at the end of the list.

11
New cards

Insert After

Adds an element after an item of the list.

12
New cards

Deletion

Deletes an element at the beginning of the list.

13
New cards

Delete Last

Deletes an element from the end of the list.

14
New cards

Delete

Deletes an element from the list using the key.

15
New cards

Display forward

Displays the complete list in a forward manner.

16
New cards

Display backward

Displays the complete list in a backward manner.

17
New cards

Insertion at the Beginning

A node with three compartments: previous, data, and next, inserted at the beginning of the list.

18
New cards

Insertion at the End

Adding a new node at the end of the doubly linked list.

19
New cards

Deletion at the Beginning

Deleting the existing first node in the doubly linked list and shifting the head to the next node.