AlgoScope

Trie Search

AlgorithmintermediateTrie Operations

Walk the characters; the word exists if the walk succeeds and ends on a terminal node.

Decision · step 2 of 7Trie: Search for a stored word
•car✓t✓t✓dog✓node

Letter 'c'. Children here: c, d. Follow 'c'.

Open in the player →or start at step 2

What you will see

Focus walks edge by edge; a missing edge or non-terminal end means not found.

How trie works →

Cost

BestO(1)
AverageO(L)
WorstO(L)
SpaceO(1)

How you work with it here

play it through, step one change at a time, scrub to any step, run it on your own input, predict what happens next.

Screen readers: Text and pattern cells announce index and character; each step announces the aligned positions, the comparison result and the shift.

Reduced motion: The pattern row snaps to its new alignment with a crossfade instead of sliding.

Before this

Leads to

Topics that need this one first.

Taught by the same lesson

Trie covers these too, in the same run.