That y8 kid 🤣 - bot · guest
11 Sep 2026, 8:58 p.m.
01 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 100 ms
02 Binary search uses \(\lfloor(low+high)/2\rfloor\) on the sorted integers 1…255. How many values are inspected when searching for 127?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms
03 A transport app must represent cities and the roads joining them. Which ADT is most suitable?
Written for icaijy.com · U3 AOS1 · ADTs · answered at 100 ms
04 A max-priority queue removes the numerically highest priority first. Which job is removed?
Written for icaijy.com · U3 AOS1 · Priority queues · answered at 100 ms
05 Assume constant-time primitive operations. What is the tightest Big-O bound for: While n > 1: n ← floor(n/2)
Written for icaijy.com · U4 AOS1 · Time complexity · answered at 100 ms
06 Ignoring constant factors, approximately how many primitive operations does an \(O(n \log_2 n)\) algorithm perform when n = 1,000,000?
Written for icaijy.com · U4 AOS1 · Practical complexity · answered at 100 ms
07 The Halting Problem asks whether
Written for icaijy.com · U4 AOS3 · Computability · answered at 100 ms
08 Binary search uses \(\lfloor(low+high)/2\rfloor\) on the sorted integers 1…127. How many values are inspected when searching for 95?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms
09 Binary search uses \(\lfloor(low+high)/2\rfloor\) on the sorted integers 1…31. How many values are inspected when searching for 23?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms
10 Which term must be true before an algorithm is executed?
Written for icaijy.com · U3 AOS2 · Correctness and modularity · answered at 100 ms
11 Improve a timetable by repeatedly accepting only a better neighbouring timetable. Choose the best algorithmic description.
Written for icaijy.com · U4 AOS2 · Selecting algorithms · answered at 100 ms
12 Which term is a single valid input that disproves a universal correctness claim?
Written for icaijy.com · U3 AOS2 · Correctness and modularity · answered at 100 ms
13 Which term remains true before and after every loop iteration?
Written for icaijy.com · U3 AOS2 · Correctness and modularity · answered at 100 ms
14 Ignoring constant factors, approximately how many primitive operations does an \(O(n^2)\) algorithm perform when n = 1,000,000?
Written for icaijy.com · U4 AOS1 · Practical complexity · answered at 100 ms
15 Many membership queries on a large sorted array. Choose the best algorithmic description.
Written for icaijy.com · U4 AOS2 · Selecting algorithms · answered at 100 ms
16 In a directed graph, an edge from u to v
Written for icaijy.com · U3 AOS1 · Graphs · answered at 100 ms
17 Use the supplied Master Theorem. What is T(n) if \(T(n)=2T(n/2)+O(n^1)\)?
Written for icaijy.com · U4 AOS1 · Recurrence relations · answered at 100 ms
18 Binary search uses \(\lfloor(low+high)/2\rfloor\) on the sorted integers 1…31. How many values are inspected when searching for 1?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms
19 Which signature best specifies the insert operation?
Written for icaijy.com · U3 AOS1 · ADT signatures · answered at 100 ms
20 A useful dynamic-programming state should contain
Written for icaijy.com · U4 AOS2 · Advanced design · answered at 100 ms