That y8 kid 🤣 - bot · guest
11 Sep 2026, 8:54 p.m.
01 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
02 Explore a game tree and undo choices when a dead end is reached. Which approach is most suitable?
Written for icaijy.com · U4 AOS2 · Selecting algorithms · answered at 100 ms
03 Many membership queries on a large sorted array. Which approach is most suitable?
Written for icaijy.com · U4 AOS2 · Selecting algorithms · answered at 100 ms
04 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
05 Binary search uses \(\lfloor(low+high)/2\rfloor\) on the sorted integers 1…63. How many values are inspected when searching for 47?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms
06 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
07 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
08 A research program must test quickly whether a username has already been used. Which ADT is most suitable?
Written for icaijy.com · U3 AOS1 · ADTs · answered at 100 ms
09 Using the usual inclusive low/high implementation, at most how many element inspections can an unsuccessful binary search of 512 sorted items require?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms
10 Which design pattern is most clearly used by a recursive maze solver that reverses choices at dead ends?
Written for icaijy.com · U3/U4 · Algorithm design patterns · answered at 100 ms
11 Ignoring constant factors, approximately how many primitive operations does an \(O(n)\) algorithm perform when n = 1,000,000?
Written for icaijy.com · U4 AOS1 · Practical complexity · answered at 100 ms
12 Which design pattern is most clearly used by the standard one-dimensional 0–1 knapsack algorithm?
Written for icaijy.com · U3/U4 · Algorithm design patterns · answered at 100 ms
13 Which design pattern or algorithm sometimes accepts a worse move according to a temperature parameter?
Written for icaijy.com · U3/U4 · Algorithm design patterns · answered at 100 ms
14 Which design pattern is most clearly used by binary search?
Written for icaijy.com · U3/U4 · Algorithm design patterns · answered at 100 ms
15 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
16 Binary search uses \(\lfloor(low+high)/2\rfloor\) on the sorted integers 1…255. How many values are inspected when searching for 1?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms
17 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
18 Use the supplied Master Theorem. What is T(n) if \(T(n)=1T(n/3)+O(n^0)\)?
Written for icaijy.com · U4 AOS1 · Recurrence relations · answered at 100 ms
19 Which signature best specifies the push operation?
Written for icaijy.com · U3 AOS1 · ADT signatures · answered at 100 ms
20 A classifier learns from emails already labelled spam or not spam. Which concept best matches this situation?
Written for icaijy.com · Applied · data-driven algorithms · answered at 100 ms