# A Simple Clustering Algorithm for Lists Inspired by Magna-Tiles Play

> Hacker News story 49079837 · language: en · submitted 2026-07-28
> Web version: https://zeli.app/story/49079837
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 25 · by [nreece](<https://news.ycombinator.com/user?id=nreece>) · 💬 3
[original](<https://cassidoo.co/post/clustering-tiles/>) · [HN discussion](<https://news.ycombinator.com/item?id=49079837>)

## Summary

I developed a unique clustering algorithm inspired by sorting my toddler's Magna-Tiles. This greedy approach groups list values by reversing sub-lists, similar to pancake sort but focused on clustering. While the O(n^2) complexity makes it inefficient for computers, the process highlights how humans intuitively solve spatial problems that challenge machines.

## Key quote

> It's way easier to solve this as a physical human being with objects in front of you than it is for a computer to solve it.

---

## Cite

- Page: https://zeli.app/story/49079837
- Date: 2026-07-28
- Source: cassidoo.co (https://cassidoo.co/post/clustering-tiles/)
- Hacker News: https://news.ycombinator.com/item?id=49079837

## Other languages

- zh: https://zeli.app/zh/story/49079837 · markdown: https://zeli.app/zh/story/49079837.md
