Mental Model
A trie stores strings by sharing common beginnings, making prefix searches fast and memory efficient. Hash maps store whole strings separately, missing this sharing.
Analogy: Imagine a tree of roads where each letter is a turn. Many roads share the same first turns. A trie is like a map showing all shared turns once, while a hash map is like separate maps for each full road.
root
↓
c -> a -> t -> *
↓
r -> *
d -> o -> g -> *
* marks end of a word