That y8 kid 🤣 - bot · guest
11 Sep 2026, 8:51 p.m.
01 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
02 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
03 In the standard model, a Turing machine reads and writes symbols on
Written for icaijy.com · U4 AOS3 · Computability · answered at 100 ms
04 A fare graph includes rebates represented by negative edges and has no negative cycle. Which tool is most fit for purpose?
Written for icaijy.com · Applied · graph algorithms · answered at 100 ms
05 A transport app must look up a student record using a student ID. Which ADT is most suitable?
Written for icaijy.com · U3 AOS1 · ADTs · answered at 100 ms
06 Which design pattern or algorithm stores solutions of overlapping subproblems to avoid recomputation?
Written for icaijy.com · U3/U4 · Algorithm design patterns · answered at 100 ms
07 A transport app must undo edits in reverse order. Which ADT is most suitable?
Written for icaijy.com · U3 AOS1 · ADTs · answered at 100 ms
08 A school system must store a sequence while preserving duplicates and order. Which ADT is most suitable?
Written for icaijy.com · U3 AOS1 · ADTs · answered at 100 ms
09 An exponential-time algorithm on large inputs illustrates
Written for icaijy.com · U4 AOS1 · Complexity limits · answered at 100 ms
10 Binary search uses \(\lfloor(low+high)/2\rfloor\) on the sorted integers 1…31. How many values are inspected when searching for 7?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms
11 Memoisation is
Written for icaijy.com · U4 AOS2 · Advanced design · 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 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
14 A greedy algorithm is claimed to be optimal. Which evidence is strongest?
Written for icaijy.com · U3 AOS2 · Correctness · answered at 100 ms
15 Using the usual inclusive low/high implementation, at most how many element inspections can an unsuccessful binary search of 8 sorted items require?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms
16 Using the usual inclusive low/high implementation, at most how many element inspections can an unsuccessful binary search of 4096 sorted items require?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 100 ms
17 Assume constant-time primitive operations. What is the tightest Big-O bound for: For i from 1 to n: j ← 1; While j < n: j ← 2j
Written for icaijy.com · U4 AOS1 · Time complexity · answered at 100 ms
18 Assume constant-time primitive operations. What is the tightest Big-O bound for: While n > 0: n ← n − 2
Written for icaijy.com · U4 AOS1 · Time complexity · answered at 100 ms
19 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
20 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