open atlas
↑ Back to track
Algorithms from zero ALG · 12 · 08

Toolbox: free-recall review

Free-recall prompts on technique selection across the algorithms track — reconstruct the decision tree from constraints and problem shape to the right tool.

ALG Middle ◷ 14 min
Level
FoundationsJuniorMiddleSenior

Pattern recognition sticks only when you can produce the decision tree from memory under pressure. For each prompt, say or write the full reasoning — from the clue in the problem to the technique and its cost — before you reveal the model answer.

Goal

Reconstruct the track’s selection logic without looking back: how to read constraints into a complexity budget, which problem verbs map to which technique family, and why the tempting alternative is the trap.

Recall before you leave
  1. 01
    How do you turn the input-size constraint into a complexity budget before choosing a technique?
  2. 02
    Map each problem verb to its technique family: 'does X exist / count distinct', 'k-th smallest / next by priority', 'count ways or optimise over overlapping subproblems', 'best local pick you can justify'.
  3. 03
    When sorted input appears, which two techniques does it unlock, and how do you pick between them?
  4. 04
    Distinguish when a graph problem needs BFS, Dijkstra, topological sort, or Union-Find.
  5. 05
    Why is recognising overlapping subproblems the pivotal moment in problem solving, and what are your three responses to it?
  6. 06
    Give the full top-of-tree decision flow you run on a brand-new problem.
Recap

If you could reconstruct each answer cold, you hold the track’s spine: constraints become a complexity budget, the problem’s verb names the technique family, sorted input unlocks binary search or two pointers, the graph variant picks BFS / Dijkstra / toposort / Union-Find, and spotting overlapping subproblems is the pivot from exponential to polynomial. The toolbox is one decision flow run fast — budget, verb, structure, subproblem check, data structure, sanity check — not a pile of memorised algorithms.

Something unclear?

Ask a question about this lesson. Questions are anonymous and go straight to the author to make the lesson better.

shortcuts expand
search
K
prev piece
k
next piece
j
cycle tier
t
this menu
?
sources3
expand
  1. 01
  2. 02
  3. 03

Trademarks belong to their respective owners. Editorial reference only.