Sorting like a computer scientist!
When you have a lot of clothes, finding things can be hard — and computers have the same problem with lots of data! Let's learn how computers sort things, using your closet!
This is like Bubble Sort - you compare things next to each other!
1. Find two shirts next to each other
2. Which one should come first? (Red before Orange before Yellow)
3. Swap if they're in the wrong order!
4. Repeat until done!
Think about clothes you wear most often!
The idea: Put the clothes you wear most often in front!
This is like a Queue - like people in a line!
First person in line gets served first!
It's also like a Cache in a computer - the stuff you use most goes in "quick access"!
This is like Hash Tables - organizing by categories!
All shirts in one pile, pants in another, socks in another!
When you need pants, you go straight to the pants pile!
This is super fast - just like a dictionary!
Imagine your clothes are sorted by color in a line!
Instead of checking every single one, you check the middle!
Is the one you're looking for redder or bluer than the middle?
Then you only look at half! Then half of that!
Boom! You find it super fast!
Finished one adventure? Here are three more to try.
Quad Trees: Imagine you have a HUGE pizza and you need to find where the pepperoni pieces are! Instead of…
Ages 11–12 · Grades 6–7Cell Towers: Imagine a city divided into small hexagons (like a honeycomb). Each hexagon has a tower in the…
Ages 8–10 · Grades 3–5Nepal has unique architecture that you won't find anywhere else in the world!
Ages 5–7 · Grades K–2