icaijy
10 Sep 2026, 8:28 p.m.
01 Use the supplied Master Theorem. What is T(n) if \(T(n)=3T(n/3)+O(n^1)\)?
Written for icaijy.com · U4 AOS1 · Recurrence relations · answered at 913 ms
02 Which signature best specifies the push operation?
Written for icaijy.com · U3 AOS1 · ADT signatures · answered at 1271 ms
03 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 4440 ms
04 One lookup in an unsorted list of five items. Which approach is most suitable?
Written for icaijy.com · U4 AOS2 · Selecting algorithms · answered at 5024 ms
05 Binary search uses \(\lfloor(low+high)/2\rfloor\) on the sorted integers 1…15. How many values are inspected when searching for 7?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 9001 ms
06 An organisation names who is responsible for harms caused by its model. What is the most relevant issue?
Written for icaijy.com · U4 AOS3 · AI ethics · answered at 9401 ms
07 A tree with n vertices has exactly
Written for icaijy.com · U3 AOS1 · Graphs · answered at 12579 ms
08 A system groups articles without any supplied category labels. Which tool is most fit for purpose?
Written for icaijy.com · Applied · data-driven algorithms · answered at 13003 ms
09 A face-recognition model works poorly for a group scarcely represented in its training set. What is the most relevant issue?
Written for icaijy.com · U4 AOS3 · AI ethics · answered at 16413 ms
10 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 19615 ms
11 A form must reject an ID if it is already present. Which tool is most fit for purpose?
Written for icaijy.com · Applied · ADTs · answered at 20239 ms
12 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 23524 ms
13 A max-priority queue removes the numerically highest priority first. Which job is removed?
Written for icaijy.com · U3 AOS1 · Priority queues · answered at 27018 ms
14 A postcode indirectly encodes socioeconomic or ethnic background. What is the most relevant issue?
Written for icaijy.com · U4 AOS3 · AI ethics · answered at 27438 ms
15 Binary search uses \(\lfloor(low+high)/2\rfloor\) on the sorted integers 1…63. How many values are inspected when searching for 1?
Written for icaijy.com · U4 AOS2 · Binary search · answered at 30561 ms
16 Assume constant-time primitive operations. What is the tightest Big-O bound for: Three nested loops each run from 1 to n.
Written for icaijy.com · U4 AOS1 · Time complexity · answered at 31023 ms
17 A browser must return through previously visited pages in reverse order. Which tool is most fit for purpose?
Written for icaijy.com · Applied · ADTs · answered at 31488 ms
18 A max-priority queue removes the numerically highest priority first. Which job is removed?
Written for icaijy.com · U3 AOS1 · Priority queues · answered at 35395 ms
19 A campus planner needs shortest walking distances between every pair of buildings. Which concept best matches this situation?
Written for icaijy.com · Applied · graph algorithms · answered at 36010 ms
20 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 39191 ms
21 A max-priority queue removes the numerically highest priority first. Which job is removed?
Written for icaijy.com · U3 AOS1 · Priority queues · answered at 42495 ms
22 In a weighted graph, a weight is usually attached to
Written for icaijy.com · U3 AOS1 · Graphs · answered at 45853 ms
23 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 49302 ms
24 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 49853 ms
25 A research program must look up a student record using a student ID. Which ADT is most suitable?
Written for icaijy.com · U3 AOS1 · ADTs · answered at 53022 ms
26 A school system must always process the waiting job with the highest urgency. Which ADT is most suitable?
Written for icaijy.com · U3 AOS1 · ADTs · answered at 56123 ms
27 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 56509 ms
28 Which signature best specifies the insert operation?
Written for icaijy.com · U3 AOS1 · ADT signatures · answered at 59739 ms