main page — COMP 526 Efficient Algorithms
Unit 2: Fundamental Data Structures
This is an archived version of this module from Spring 2021.
Click here for the current iteration.
This unit covers fundamental data structures:
- stacks, queues, and resizable arrays
- priority queues and binary heaps
- binary search trees
Learning outcomes
- Understand and demonstrate the difference between abstract data type (ADT) and its implementation
- Be able to define the ADTs stack, queue, priority queue and dictionary/symbol table
- Understand array-based implementations of stack and queue
- Understand linked lists and the corresponding implementations of stack and queue
- Know binary heaps and their performance characteristics
- Understand binary search trees and their performance characteristics
About this unit
This unit covers some prerequisites for the remainder of the module. To accommodate the varying levels of prior exposure with this material, I will briefly recap the topics to bring all of you to a minimal level before moving on.
If you previously had an algorithms and data structures module in a computer science undergraduate program, this unit will mostly be repetition for you. But if you have never seen the material before, the brief summary I give in the context of this module will not suffice to replace such a module. While not strictly necessary to succeed in COMP526, you are highly encouraged to learn more in depth about these gems of computer science. For that I have collected some external high-quality material:
Material
- slides
- lecture notes
- Video 2-1 (2021-02-17):
§2.1 Stacks and Queues
- Video 2-2 (2021-02-17):
§2.2 Resizable arrays
- Video 2-3 (2021-02-17):
§2.3 Binary heaps (part 1)
- Video 2-4 (2021-02-23):
§2.3 Binary heaps (part 2)
- Video 2-5 (2021-02-23):
§2.4 Binary seach
- Video 2-6 (2021-02-23):
§2.4 Binary search trees
- Video 2-7 (2021-02-23):
§2.5 Ordered symbol tables
- Video 2-8 (2021-02-23):
§2.6 Balanced binary search trees