Putting Things in Groups
Imagine you just dumped a big box of crayons onto the table. Red ones, blue ones, yellow ones — all mixed up! What would you do first? You would probably sort them. You would put all the reds together, all the blues together, and so on. Sorting things into groups is something people do all the time — and it turns out machines can learn to do it too!
What Does It Mean to Sort?
When we sort, we look at things and decide which group they belong to. Maybe you sort your socks by color when you put away laundry. Maybe your teacher sorts homework papers by student name. Maybe a librarian sorts books by subject so you can find them easily. Sorting always follows a rule. The rule tells you: this thing goes here, that thing goes there.
Sorting means looking at something and deciding which group it belongs to. Every sort follows a rule.
Let's try a quick sort together. Imagine you have five fruits on the table: an apple, a banana, a grape, an orange, and a strawberry. You decide your rule is: round or not round. Apple — round. Banana — not round. Grape — round. Orange — round. Strawberry — kind of round, but bumpy. See? You just sorted! Even that last tricky one, you made a decision. Machines have to make decisions like that too.
Match each thing to the group it belongs in.
Terms
Definitions
Drag terms onto their definitions, or click a term then click a definition to match.
People sort things for many reasons. We sort laundry so clean clothes do not mix with dirty ones. We sort recycling so glass and paper go to the right bins. We sort books so we can find the story we want. Every time you sort, you are making a little decision about every single item. That is a lot of thinking! Machines can help with that kind of thinking when there are thousands or millions of things to sort.
Name three things in your room right now. How could you sort them? By color? By size? By what they are used for? There is almost always more than one way to sort the same things.
What does it mean to sort things into groups?
Which rule could you use to sort a pile of shoes?
The Great Sock Sort
- Gather 6 to 10 small objects from around your home — socks, toy blocks, crayons, or anything you like.
- Decide on one sorting rule before you touch any objects. For example: big or small.
- Sort every object into two groups using your rule.
- Count how many are in each group.
- Now pick a NEW rule and sort all the same objects again.
- Did any objects end up in a different group? Talk about why.