COMP1850 Lecture 9.2: Linked-List Based Data Structures

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

Vocabulary flashcards for linked list variations.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

19 Terms

1
New cards

Circular Linked List

A linked list where the Tail points back to the Head, creating a continuous traversal.

2
New cards

Applications of Circular Linked Lists

Used for round robin scheduling, turn-based games, and circular/ring buffers in real-time systems.

3
New cards

Doubly Linked List (DLL)

A linked list where each node has two pointers: one to the next node and one to the previous node.

4
New cards

Applications of Doubly Linked Lists

Situations requiring backward traversal, frequent addition/deletion, playlists, prioritized queues, and undo/redo functions.

5
New cards

Stacks and Queues

Specializations of linked lists using a restricted set of operations.

6
New cards

Stack (LIFO)

Last-In-First-Out structure where the last item added is the first item removed.

7
New cards

push()

add a new item at the Top

8
New cards

pop()

remove the Top item from the stack

9
New cards

peek()

view the Top item from the stack

10
New cards

isEmpty()

check whether the stack is empty or not

11
New cards

Queue (FIFO)

First-In-First-Out structure where the first item added is the first item removed.

12
New cards

Uses of Queues

scheduling tasks, buffering data, traversing other data structures

13
New cards

enqueue()

add item to the Back

14
New cards

dequeue()

remove item from the Front

15
New cards

peek()

view the item at the Front

16
New cards

isEmpty()

check if the queue is currently empty

17
New cards

size()

check how many items are in the queue

18
New cards

Stack (Memory)

Memory allocated statically at compile time, managed as a stack.

19
New cards

Heap (Memory)

Memory allocated dynamically at run-time, managed as a linked-list of available chunks.