Is it a word, or only a start
transcript
Car is stored. Is c a stored? The letters are in the trie. But is it a word? Two questions look alike here.
Walk c, then a. Every edge exists. Now look at the last node. But no end mark sits here. Search says no.
Ask a different question. Does any word start with c a? The walk works, so yes. Both car and cat sit below this node. The end mark does not matter here. So starts with c a says yes.
Search needs the walk and an end mark. Starts with needs only the walk. It is the same walk, with one extra check. Mixing them up is a common bug. Test with a short word and a longer one.
The end mark tells a word from a start. Forget it, and every start looks like a word. Test both questions on a short word. Build it yourself in the lab. Full breakdown in the lecture.