B4.1 Fundamentals of abstract data types (HL) - IB Diploma Class 12 Computer Science Notes, Diagrams and Solved Questions

Higher level abstract data types built in Python and Java: singly, doubly and circular linked lists, binary search trees with their traversals, sets and hash tables with chaining, linear probing and load factor.

In this chapter

  • What an abstract data type is, and how it differs from a data structure
  • Singly linked lists: insert, delete, traverse and search
  • Doubly and circular linked lists, and linked lists compared with arrays
  • Binary search trees: insert, search, balanced vs unbalanced, O(log n) vs O(n)
  • In-order, pre-order and post-order traversals
  • Sets: union, intersection, difference and membership
  • Hash tables: hash functions, collisions, chaining, linear probing and load factor
  • Iteration 3: reversing lists, how insertion order sets a tree's height, hashing traces