aimnova.
DashboardMy LearningPaper MasteryStudy Plan

Aimnova site navigation

Stay in the loop

Get the latest study resources and updates

New features, study tips and exam insights — straight to your inbox.

IB Diploma

  • IB Past Papers
  • IB Study Notes
  • IB Question Bank
  • IB Mock Exams
  • IB Revision

IB Subjects

  • IB Math AA
  • IB Math AI
  • IB Economics
  • IB Business Management
  • IB Physics
  • IB Biology
  • View all IB subjects→

IB Past Papers

  • IB Math AA HL Past Papers
  • IB Math AA SL Past Papers
  • IB Math AI HL Past Papers
  • IB Math AI SL Past Papers
  • IB Economics HL Past Papers
  • IB Economics SL Past Papers
  • IB ESS Past Papers
  • View all past papers→

Study Resources

  • Study Notes
  • Question Bank
  • Mock Exams
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aimnova.

AI-powered study platform for smarter revision, past-paper analysis and examiner-style feedback.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.8afc4e3

Aimnova is not affiliated with or endorsed by the International Baccalaureate Organization (IB).

NotesComputer Science HLTopic 8.1Core principles of ADTs
Back to Computer Science HL Topics
8.1.64 min read

Core principles of ADTs (Computer Science HL)

IB Computer Science • Unit 8

AI-powered feedback

Stop guessing — know where you lost marks

Get instant, examiner-style feedback on every answer. See exactly how to improve and what the markscheme expects.

Try It Free

Contents

  • The key calculates its own address
  • What makes a hash function good
  • Resolving collisions
  • Exam-style question
The big idea: A hash table does not search. It runs the key through a hash function to get a number, takes that number modulo the table size, and goes straight to that bucket.

One calculation instead of a search — which is why lookup is O(1) on average.

Step through: hashing a key to a bucket, a second key landing elsewhere, a collision, and how chaining resolves it.

Interactive diagram

Explore the labelled diagram, charts and maps for this topic in full study mode.

Claim your free topic

Free preview

This is the free notes preview

You're reading the free notes. Aimnova Pro unlocks the full study experience — and you can try it with your first topic free to keep:

  • FlashcardsLock in vocabulary and key terms with spaced repetition.
  • Practice questionsAnswer exam-style questions and get instant AI marking.
  • Mock exams & past-paper vaultSit full mocks and see exactly how examiners award marks.
  • Personalised study planA daily plan built around your exam date and weak areas.
Start Studying Free Full access to Aimnova Pro · cancel anytime

Three requirements

  • Deterministic — the same key must always give the same bucket, or nothing could ever be found again
  • Fast — it runs on every single operation, so a slow hash destroys the whole point
  • Uniform — keys should spread evenly across buckets, because clustering is what turns O(1) into O(n)
Collisions are certain, not a bug: There are more possible keys than buckets, so two keys must eventually map to the same one. That is arithmetic, not a flaw in the function.

A hash table is judged on how well it handles collisions, not on whether it avoids them.

Practice with real exam questions

Answer exam-style questions and get AI feedback that shows you exactly what examiners want to see in a full-marks response.

Try Practice FreeYour first topic is free to keep • No credit card required
ChainingOpen addressing
Colliding keys goIn a list inside the bucketInto the next free bucket
Table can holdMore items than bucketsAt most one per bucket
LookupFind bucket, search the short chainProbe onwards until found or empty
Degrades whenOne chain grows longThe table fills up — clusters form
DeletingStraightforwardNeeds a marker, or later probes stop early
Average O(1), worst case O(n): With keys spread evenly, a lookup touches one bucket and a very short chain — O(1).

With a poor hash function that sends every key to the same bucket, the chain is the table and lookup becomes a linear search — O(n). Same structure, same code, completely different performance.
Never write O(1) alone: Write O(1) on average, O(n) in the worst case. The qualification is frequently the mark, because it shows you know the performance depends on the hash function rather than on the structure.

How this is tested — you must explain how an address is computed rather than searched, and why collisions are inevitable. It comes up two ways:

Paper 2 — working with code

  • Explain hashing and collision resolution, 4-6 marks
  • Compute which bucket a key lands in
  • State why a hash function must be deterministic

Paper 2 — the algorithmic-thinking question

  • Compare a hash table with a BST for a scenario
  • Explain when O(1) stops being true
The classic trap: Saying a hash table is "always O(1)". It is O(1) on average. Everything depends on the hash function spreading keys evenly — and an answer that never mentions the worst case has missed what is being examined.
IB-style questionExplain[6 marks]

A dictionary app stores 50,000 words and must look up a definition instantly. Explain how a hash table achieves this, why collisions occur, and when the approach would fail.

Model answer plan

See the mark-by-mark plan — for / against / judgement, with marking guidance — in study mode.

Claim your free topic

IB Exam Questions on Core principles of ADTs

Practice with IB-style questions filtered to Topic 8.1.6. Get instant AI feedback on every answer.

Practice Topic 8.1.6 QuestionsBrowse All Computer Science HL Topics

How Core principles of ADTs Appears in IB Exams

Examiners use specific command terms when asking about this topic. Here's what to expect:

Define

Give the precise meaning of key terms related to Core principles of ADTs.

AO1
Describe

Give a detailed account of processes or features in Core principles of ADTs.

AO2
Explain

Give reasons WHY — cause and effect within Core principles of ADTs.

AO3
Evaluate

Weigh strengths AND limitations of approaches in Core principles of ADTs.

AO3
Discuss

Present arguments FOR and AGAINST with a balanced conclusion.

AO3

See the full IB Command Terms guide →

Related Computer Science HL Topics

Continue learning with these related topics from the same unit:

8.1.1What ADTs are for
8.1.2Evaluating linked lists
8.1.3Building linked lists
8.1.4Binary search trees
View all Computer Science HL topics

Improve your exam technique

Command terms, paper structure, and mark-scheme tips for Computer Science HL

Previous
8.1.5Sets

2 exam-style questions ready for you

Students who practice on Aimnova improve their scores by 15% on average. Get instant feedback that shows exactly how to improve your answers.

Practice Now — FreeView All Computer Science HL Topics