B4.1 Fundamentals of ADTsB4.1.6
Core principles of ADTs — hash tables
Explain the core principles of ADTs
AHL≈ 60 minCommand term: ExplainPremium
In this lesson
- Giving a high-level description of an ADT, its operations and its purpose
- Explaining how a hash table works: hash functions, collisions and their resolution, load factor
- Explaining how sets and maps (dictionaries) store and find data using hash tables
- Using HashMap and HashSet in Java, and dict and set in Python
This lesson is part of Premium
Every topic has one free lesson. Premium unlocks every interactive lesson, the exam-style questions at the end of each one, and the rest of Praxis IB.
What's inside
- LearnFrom key to slot
- LabA hash table at work
- PracticeLinear probing by hand
- CodeHashMap and HashSet, dict and set
- LearnMap operations in Java and Python
- CheckChaining or open addressing?
- CheckQuick check
- ExamWorked exam answer
- ReviewMistakes examiners see
- Exam practiceExam-style questions
Ends with 3 exam-style questions worth 8 marks, with a self-marking markscheme.