Albert 2 · guest
10 Sep 2026, 9:08 p.m.
01 Why can testing many inputs usually not prove that an algorithm is correct for every valid input?
Written for icaijy.com · U3 AOS2 · Correctness · answered at 5179 ms
02 Which design pattern or algorithm orders frontier states using cost-so-far plus an estimated remaining cost?
Written for icaijy.com · U3/U4 · Algorithm design patterns · answered at 10318 ms
03 A max-priority queue removes the numerically highest priority first. Which job is removed?
Written for icaijy.com · U3 AOS1 · Priority queues · answered at 14160 ms
04 Using the usual inclusive low/high implementation, at most how many element inspections can an unsuccessful binary search of 1024 sorted items require?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 20421 ms
05 A* uses f(n) = g(n) + h(n). Which frontier node should it expand next?
Written for icaijy.com · U4 AOS2 · A* search · answered at 24474 ms
06 Find shortest distances between every pair of vertices. Which algorithm is most fit for purpose?
Written for icaijy.com · U3 AOS2 · Graph algorithms · answered at 30695 ms
07 A school system must test quickly whether a username has already been used. Which ADT is most suitable?
Written for icaijy.com · U3 AOS1 · ADTs · answered at 34963 ms
08 Assume constant-time primitive operations. What is the tightest Big-O bound for: For i from 1 to n: constantWork()
Written for icaijy.com · U4 AOS1 · Time complexity · answered at 40059 ms
09 How many edges are in an undirected complete graph with 5 vertices?
Written for icaijy.com · U3 AOS1 · Graph modelling · answered at 45479 ms
10 Binary search uses \(\lfloor(low+high)/2\rfloor\) on the sorted integers 1…255. How many values are inspected when searching for 63?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 52306 ms
11 How many edges are in an undirected complete graph with 6 vertices?
Written for icaijy.com · U3 AOS1 · Graph modelling · answered at 57638 ms
12 A max-priority queue removes the numerically highest priority first. Which job is removed?
Written for icaijy.com · U3 AOS1 · Priority queues · not answered before time expired