🧠 Jin Hyun Park

Jin Hyun Park / Qual Exam Prep / Algorithms

Algorithms and data structures

The largest part of the exam. Most questions ask for a running time, a property, or which algorithm applies.

Hash tables

Time complexity tables for open addressing and chaining: O(1) best and average, O(n) worst
Source: OpenGenus

BFS and DFS

Topological sort

Shortest paths

Bellman–Ford

Dijkstra

Floyd–Warshall

Johnson's algorithm

Minimum spanning tree (MST)

Tree traversals

Dynamic programming

Optimal substructure

Recursion

2-SAT vs. 3-SAT

P, NP, NP-hard, NP-complete

Euler diagram of P, NP, NP-complete, and NP-hard under the assumptions P ≠ NP and P = NP
How the classes relate if P ≠ NP (left) and if P = NP (right). Source: Wikipedia

Depth and height of a tree node

A tree with each node labeled by its depth and height
Source: Stack Overflow

Maximum flow

AVL tree

Red–black tree

B-tree

Simple graph

Loop invariant

Singly vs. doubly linked lists

Common data structures and their time complexities

Table of average and worst-case access, search, insertion, and deletion complexities for common data structures
Source: Big-O Cheat Sheet

Clique

Two example graphs with cliques of size 2, 3, and 4 highlighted
Source: GeeksforGeeks

Eulerian vs. Hamiltonian

Circuit vs. path

Boolean logic

Overview · Useful materials · Sample questions · Architecture · OS · Networking · Databases · Automata · AI / ML · Things to remember