FortyFiveOpen the app

FortyFive › Revision notes › IB Computer Science › IB Computer Science: B4 · Abstract data types (HL)

IB Computer Science: B4 · Abstract data types (HL)

Stacks, queues, linked lists, trees. 1 subtopics, 5 key terms.

Learn this topic properly. Interactive diagrams, worked examples, check questions and exam-style practice with mark schemes. Open “B4 · Abstract data types (HL)” in FortyFive →

In this topic: B4.1

B4.1Abstract data types HL

Key terms

Abstract data type (ADT)
A data type defined by its behaviour (operations), not its implementation.
Stack
LIFO: push adds to the top, pop removes from the top.
Queue
FIFO: enqueue adds to the rear, dequeue removes from the front.
Linked list
Nodes containing data and a pointer to the next node.
Binary search tree (BST)
Each node's left subtree has smaller values and right subtree larger values.

Stack uses: undo, call stack, backtracking, evaluating expressions. Queue uses: print queues, task scheduling, breadth-first search.

The full notes, worked example, interactive diagram and check questions for this subtopic are in the app.

Exam tip: Draw the structure step by step: questions often ask for the state after a sequence of operations.

Practise B4 · Abstract data types (HL) with exam-style questions →

← B3 · Object-oriented programming

← All IB Computer Science topics