University of Auckland · S2 2026 · FACULTY OF COMPUTER SCIENCE

COMPSCI220 Algorithms and Data Structures

- one subject, every graph, every model, every mark
6 Chapters18-page Bible
Our own words - no uploaded lecturer files
Built to mirror S2 2026 · updated this semester
The Complete Exam Bible · S2 2026

COMPSCI220 Overview

Algorithms and Data Structures
— A source-grounded COMPSCI220 guide to asymptotic analysis, Big-O bound, loop invariant and the complete published assessment structure.
  • 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.
COMPSCI220 · University of Auckland
An independent, AskSia-authored study guide. AskSia is not affiliated with, endorsed by, or sponsored by University of Auckland; the course code and name are used for identification only.
Assessment

How COMPSCI220 is assessed

ComponentWeightFormat
Practical Component · hurdle15%Mathematics prerequisite quiz, written and programming assignments, and tutorial presentations; this component must be passed
Tests35%Two midterm tests contributing 17.5% each to the theory component
Final Examination50%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.

Contents · every chapter, one map

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.

It 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.

Worked example · free

Trace a shortest-path relaxation step

Q [4 marks]. In an AskSia-authored weighted graph, d(u)=7, d(v)=12 and edge (u,v) has weight 3. Apply one relaxation and explain the condition.
  • 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.
Relaxation changes d(v) from 12 to 10 and records u as its predecessor. The assignment is conditional on 7+3 being smaller than 12; the step alone does not prove that 10 is globally final unless the surrounding shortest-path algorithm permits that conclusion.
Sia tip — Separate a tentative improvement from proof that a distance is final.
Glossary

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.
FAQ

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.

Study strategy

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.

Study COMPSCI220 with AI

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.

A+Everything unlocked
Unlocks this Bible + all 15 of your University of Auckland subjects - and 1,000+ Bibles across every Australian university.
Sia - your COMPSCI220 tutor, unlimited, worked the way the exam marks it
The full 18-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works
Unlock the full COMPSCI220 Bible + 15 University of Auckland subjects
$0.99 Trial