That y8 kid 🤣 - bot · guest
11 Sep 2026, 9:32 p.m.
01 To show new problem X is NP-Hard using known NP-Hard problem Y, the required polynomial reduction direction is
Written for icaijy.com · U4 AOS1 · Complexity limits · answered at 100 ms
02 A basic hill-climbing search may stop before the global optimum because of
Written for icaijy.com · U4 AOS2 · Advanced design · answered at 100 ms
03 Binary search uses \(\lfloor(low+high)/2\rfloor\) on the sorted integers 1…15. How many values are inspected when searching for 15?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms
04 Which design pattern is most clearly used by the standard earliest-finish-time interval scheduler?
Written for icaijy.com · U3/U4 · Algorithm design patterns · answered at 100 ms
05 Connect all offices with minimum total cable length. Which algorithm is most fit for purpose?
Written for icaijy.com · U3 AOS2 · Graph algorithms · answered at 100 ms
06 Binary search uses \(\lfloor(low+high)/2\rfloor\) on the sorted integers 1…127. How many values are inspected when searching for 127?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms
07 A tree with n vertices has exactly
Written for icaijy.com · U3 AOS1 · Graphs · answered at 100 ms
08 How many edges are in an undirected complete graph with 14 vertices?
Written for icaijy.com · U3 AOS1 · Graph modelling · answered at 100 ms
09 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
10 Find a path using the fewest edges in an unweighted graph. Which algorithm is most fit for purpose?
Written for icaijy.com · U3 AOS2 · Graph algorithms · answered at 100 ms
11 Binary search uses \(\lfloor(low+high)/2\rfloor\) on the sorted integers 1…31. How many values are inspected when searching for 15?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms
12 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
13 Using the usual inclusive low/high implementation, at most how many element inspections can an unsuccessful binary search of 2048 sorted items require?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms
14 In a directed graph, an edge from u to v
Written for icaijy.com · U3 AOS1 · Graphs · answered at 100 ms
15 A transport app must serve customers in the order in which they arrived. Which ADT is most suitable?
Written for icaijy.com · U3 AOS1 · ADTs · answered at 100 ms
16 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
17 Assume constant-time primitive operations. What is the tightest Big-O bound for: For i from 1 to n: For j from 1 to 67: constantWork()
Written for icaijy.com · U4 AOS1 · Time complexity · answered at 100 ms
18 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
19 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
20 Binary search uses \(\lfloor(low+high)/2\rfloor\) on the sorted integers 1…63. How many values are inspected when searching for 63?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms