Symbol encoding · Variable-length codes
Morse Code
Tap out letters in dots and dashes. The original digital protocol.
Morse is binary in disguise: every letter is a sequence of two symbols (dot, dash) plus timed gaps. The frequent letters get the shortest codes — E is a single dot — a principle also used by variable-length compression codes. Unlike Huffman codes, Morse letters need timing gaps to separate them.
Explore the activity to earn its passport stamp. Stamps record exploration, not mastery.
What’s happening under the hood
- ›Morse uses variable-length dot/dash sequences plus timing gaps. It is not prefix-free: E (dot) is a prefix of A (dot-dash), so the letter gap is essential.
- ›Letter frequency drove the length assignments. Samuel Morse counted type cases in a printer to find common English letters.
- ›Huffman coding assigns shorter prefix-free codes to more frequent symbols. Some compression formats use it; modern compression also uses other coding methods.
Dig deeper
Phase 0 · How Computers ThinkThe concept you just explored is taught with full depth in the formal DURA curriculum.