Computer Science Student Over-Engineers Supermarket Floor Sweeping with Simulated Annealing Algorithm
By
thunderbong
Toasted golden, schmeared with insight. Top of the rack.
Summary
A Computer Science student working a minimum wage job sweeping floors at Albert Heijn supermarket couldn't resist optimizing the task. Instead of simply sweeping, they turned the floor plan into a grid graph, built a visual editor, and wrote a C++ path optimizer using simulated annealing. The article explores how this over-engineering approach went spectacularly wrong and led to the realization that algorithms optimizing for the wrong things can make everyone miserable. It's a personal reflection on the pitfalls of applying technical solutions to simple problems and the disconnect between academic optimization and practical reality.
Key quotes
· 4 pulledI'm a Computer Science student, with a problem: I can't stop trying to optimize things that (probably) don't need optimizing.
I turned the supermarket floor plan into a grid graph, built a visual editor and wrote a C++ path optimizer using simulated annealing.
But before we dive into how this went spectacularly wrong, and how this made me realize how this makes everyone miserable...
An experiment involving sweeping floors, simulated annealing, and why algorithms that optimize for the wrong thing ruin your life.
You might also wanna read
A Formal Proof That Jira Is Turing-Complete via Minsky Machine Implementation
This article provides a formal proof that Jira (Atlassian's project-tracking tool) is Turing-complete by demonstrating how to build a Minsky
A Formal Proof That Jira Is Turing-Complete via Minsky Machine Implementation
This article provides a formal proof that Jira (Atlassian's project-tracking tool) is Turing-complete by demonstrating how to build a Minsky

The perils of buying shoes online: a personal tale of blisters, wrong sizes, and stubbornness
The author recounts his repeated failures with buying footwear online, despite a self-imposed rule to never do so. He describes painful blis

My Unexpected Life as a Neighborhood Cat Sitter and Tutor
A personal narrative about the author's life-changing experience of becoming an impromptu cat sitter and tutor for three neighborhood cats—C
How Shamir's Secret Sharing Algorithm Enables Threshold Cryptography
This article explains Adi Shamir's Secret Sharing algorithm, a cryptographic method published in 1979 that splits a secret into multiple pie
Building a distraction-free writerdeck from an old laptop
The author describes converting an old laptop into a dedicated "writerdeck" — a distraction-free writing device running console-only Debian
veronicaexplains.net·8d ago