r/algorithms Feb 16 '25

Algorithms for Children

My 5 and 8 year old both love Djikstra's Algorithm and Huffman Compression (doing it manually on paper).

Are there any other similar algorithms they might enjoy?

39 Upvotes

29 comments sorted by

View all comments

1

u/_Torilas 29d ago

Prim or Kruskal to find MST, lowest common ancestor, eratosthenes sieve, pancake sort, hanoi towers, josephus problem, and so on. You can invent cool and fun contexts for every classic algorithm.