RC RANDOM CHAOS

A Scrollbar for All 43 Quintillion Rubik's Cube States

· via Hacker News

Original source

Show HN: Scroll through all 43252003274489856000 Rubik's Cube states

Hacker News →

A Show HN project puts every legal Rubik’s Cube configuration behind a single scrollbar. The figure in the title, 43,252,003,274,489,856,000, is not marketing hyperbole but the exact number of states reachable on a standard 3x3 cube — roughly 43 quintillion distinct arrangements of the 54 stickers that can be produced by legal turns.

The interesting part is what the scroll interface implies about the implementation. Nothing on that scale can be precomputed or stored; a page that lets you jump to an arbitrary position in the sequence has to generate each cube on demand, mapping a scroll offset to a specific configuration through combinatorial ranking rather than a lookup table. In effect the scrollbar becomes an index into a space that is far too large to enumerate, with each state materialized only when you land on it.

As a demo it is less a tool than a way to make an abstract number tangible. The count of cube permutations is a standard result in group theory, but scrolling past state after state — knowing you could scroll for the age of the universe and never reach the end — communicates the sheer size in a way the digits alone do not.

Read the full article

Continue reading at Hacker News →

This is an AI-generated summary. Read the original for the full story.