Back to Topic 8.1 — Fundamentals of ADTs
8.1.2Computer Science HL5 flashcards

Evaluating linked lists

Practice Flashcards

Flip to reveal answers
Card 1 of 58.1.2
8.1.2
Question

What does each node in a singly linked list hold?

Click to reveal answer

Track your progress — Sign up free to save your progress and get smart review reminders based on spaced repetition.

All 5 Flashcards — Evaluating linked lists

Sign up free to track progress and get spaced-repetition review schedules.

Card 1definition

Question

What does each node in a singly linked list hold?

Answer

A **value** and a **reference to the next node**. Nothing else, and no node needs to sit beside another in memory.

Card 2concept

Question

Why is reaching the nth element of a linked list O(n)?

Answer

There is no calculation that locates a node — you must start at the head and **follow every reference** in turn.

Card 3comparison

Question

Singly, doubly, circular — what is the difference?

Answer

**Singly** points forwards only. **Doubly** points both ways, at the cost of a second reference per node. **Circular** links the last node back to the first, so there is no null end.

Card 4concept

Question

What is the linked-list trade-off?

Answer

It gives up **direct access** (O(n) to reach position n) and gains **cheap insertion and deletion** (O(1) once in position), plus a size that grows and shrinks.

Card 5example

Question

Why can an array beat a linked list even when complexity says otherwise?

Answer

Array elements are **contiguous**, so reading one pulls its neighbours into cache. Linked-list nodes are scattered, so each hop risks a cache miss.

Track your progress with spaced repetition

Sign up free — Aimnova tells you exactly which cards to review and when, so you remember everything before your IB exam.

Start Free
IB Computer Science Evaluating linked lists Flashcards | 8.1.2 | Aimnova