COMPSCI220 Algorithms and Data Structures
COMPSCI220 Overview
- School of Computer Science, University of Auckland
- Semester Two, 2026
- Stage 2 undergraduate course
- 15 points
- Compulsory for Computer Science majors according to the current public course page.
- Practical work contributes 15%, two tests contribute 35% in total, and the final examination contributes 50%.
COMPSCI 220 Algorithms and Data Structures develops asymptotic analysis, sorting, recurrences, trees, heaps, hashing and graph algorithms. It is taught within School of Computer Science, University of Auckland. It is Stage 2 undergraduate course. It carries 15 points.
- Three pass checks A student must pass practical work, pass the tests-and-exam theory component and pass overall; strength in one side cannot erase failure in another.
- 15/35/50 architecture Practical work is 15%, the two tests total 35%, and the comprehensive final examination is 50%.
- Scale is the question An algorithm can be correct on a small input yet unusable at scale; state the operation count and the input variable behind every growth claim.
- Relaxation is conditional A shortest-path update is valid only when the candidate route is cheaper and the algorithm's edge-weight assumptions are satisfied.
How COMPSCI220 is assessed
| Component | Weight | Format |
|---|---|---|
| Practical Component · hurdle | 15% | Mathematics prerequisite quiz, written and programming assignments, and tutorial presentations; this component must be passed |
| Tests | 35% | Two midterm tests contributing 17.5% each to the theory component |
| Final Examination | 50% | Comprehensive theory assessment covering the full course |
Practical work contributes 15%, two tests contribute 35% and the final exam contributes 50%. Students must pass the practical component, the theory component formed by tests and exam, and the course overall.
What COMPSCI220 covers
Build the course in three arcs: Asymptotic Analysis and Correctness establishes the frame, Hashing and Collision Control deepens it, and Weighted Graphs, Shortest Paths and Spanning Trees tests the complete method.
Asymptotic Analysis and Correctness
asymptotic analysis · Big-O bound · loop invariant · prove a simple loop result and derive an asymptotic bound from its operation count02Sorting Algorithms and Recurrences
comparison sort · recurrence · stability · trace a divide-and-conquer sort and solve or justify its recurrence at the required scale03Heaps and Search Trees
heap · binary search tree · tree height · execute insertion or removal and explain how structural height controls running time04Hashing and Collision Control
hash function · load factor · collision resolution · trace insertions through collisions and relate load factor to expected access cost05Graph Traversal and Components
graph representation · breadth-first search · connected component · trace a traversal, record its discovery structure and identify reachable components06Weighted Graphs, Shortest Paths and Spanning Trees
edge relaxation · shortest path · minimum spanning tree · execute relaxation and distinguish a shortest-path tree from a minimum spanning treeIt is positioned as Compulsory for Computer Science majors according to the current public course page.
The course combines implementation with hand execution and proof-oriented efficiency analysis; passing requires practical and theory performance separately as well as an overall pass.
Assessment in COMPSCI220 is distributed as follows: Practical work contributes 15%, two tests contribute 35% in total, and the final examination contributes 50%.
The captured detailed breakdown assigns 1% to a mathematics prerequisite quiz, 5% to written assignments, 5% to programming assignments and 4% to tutorial presentations.
The operational assessment conditions matter here. Tests and the final examination form the theory component.
Attendance on campus is required for tests and the examination, but Semester Two sitting details must be checked in the live course site and official timetable.
What makes COMPSCI220 demanding is concrete: The central challenge is to move between code, an operation trace and an asymptotic argument: a correct output on one input is not enough without a reason the algorithm remains correct and scales as claimed.
Students must pass the practical component, pass the theory component made from tests and examination, and achieve an overall pass.
For enrolment planning, COMPSCI 120 and COMPSCI 130 are prerequisites; COMPSCI 717 and SOFTENG 284 are restrictions in the landed course syllabus.
Build the course in three arcs: Asymptotic Analysis and Correctness establishes the frame, Hashing and Collision Control deepens it, and Weighted Graphs, Shortest Paths and Spanning Trees tests the complete method.
Trace a shortest-path relaxation step
- 1Compute the candidate distance through u as 7 plus 3, giving 10.
- 1Compare the candidate 10 with the current value 12.
- 1Update d(v) to 10 and set u as the predecessor because the candidate is smaller.
- 1State that a non-improving candidate leaves both records unchanged and that algorithm assumptions on edge weights still matter.
Key terms
- Asymptotic analysis
- The study of how an algorithm's time or space requirement grows with input size while ignoring fixed implementation constants.
- Shortest path
- A path between vertices with minimum total edge weight among the paths allowed by the graph and algorithm assumptions.
- Recurrence
- An equation defining a problem's cost or value in terms of smaller instances together with one or more base cases.
- Heap
- A complete-tree data structure whose parent-child ordering supports efficient access to and removal of an extreme-priority element.
- Binary search tree
- A binary tree maintaining an ordering relation between each node and the keys stored in its left and right subtrees.
- Hash table
- A mapping structure that uses a hash function and collision strategy to place and retrieve keys in an indexed table.
- Graph traversal
- A systematic process such as breadth-first or depth-first search for visiting vertices and edges while recording discovery structure.
COMPSCI220 FAQ
What prerequisites or restrictions apply to COMPSCI220?
COMPSCI 120 and COMPSCI 130 are prerequisites; COMPSCI 717 and SOFTENG 284 are restrictions in the landed course syllabus.
Does COMPSCI220 have a hurdle or component-level pass rule?
Students must pass the practical component, pass the theory component made from tests and examination, and achieve an overall pass.
Where do students usually lose marks in COMPSCI220?
The central challenge is to move between code, an operation trace and an asymptotic argument: a correct output on one input is not enough without a reason the algorithm remains correct and scales as claimed.
How is COMPSCI220 assessed?
Practical work contributes 15%, two tests contribute 35% in total, and the final examination contributes 50%. The captured detailed breakdown assigns 1% to a mathematics prerequisite quiz, 5% to written assignments, 5% to programming assignments and 4% to tutorial presentations.
What is the COMPSCI220 exam or final-task format?
Tests and the final examination form the theory component. Attendance on campus is required for tests and the examination, but Semester Two sitting details must be checked in the live course site and official timetable.
Which offering does this COMPSCI220 guide cover?
It is aligned to Semester Two, 2026; confirm your enrolled class and timetable in the current institutional system.
Is this COMPSCI220 resource an official university guide?
No. It is an independent COMPSCI220 study resource; current institutional instructions remain authoritative for assessment operation.
How to study for the exam
Retrieve the course map, practise the recurring method—state the input representation and correctness condition, trace the algorithm on a boundary case, derive its time or space growth from counted operations and test whether the data-structure or graph assumptions support the conclusion—on changed scenarios, and verify every operational assessment detail in the live institutional system.
Your AI Computer Science tutor for COMPSCI220
Stuck on a hard COMPSCI220 question? Sia is AskSia’s AI Computer Science tutor — ask any COMPSCI220 Algorithms and Data Structures question and get a clear, step-by-step explanation grounded in how the course is actually taught and assessed. Read this whole study guide free, then take your hardest questions to Sia.