frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

The Rubik's Cube Perfect Scramble

https://www.solutionslookingforproblems.com/post/the-rubik-s-cube-perfect-scramble
37•notagoodidea•2h ago

Comments

Retr0id•2h ago
> There are 43,252,003,274,489,856,000 ways to arrange a Rubik’s cube. If I could evaluate a million arrangements per second, it would take over 1.3 million years to evaluate all arrangements. So, inspecting every individual arrangement is out.

For people who like powers of 2, that's "only" 2^65.2

That's within the realm of computability in practical timespans, if you can make the code fast and have $$$$$ to spend on compute. (modern CPU cores can do billions of operations per second, and that's not even considering GPUs)

The approach presented in the article is obviously far more efficient, but I wonder if anyone's done a "full search" of all possible cube positions before. I don't think there's any reason to do that, but that hasn't stopped people before (see: pi calculation records).

HappyPanacea•1h ago
IIRC they way they proved you can always solve a cube in 20 moves was essentially a bruteforce (after eliminating symmetries) so this the closest someone have done to full search.
CJefferson•1h ago
The search was a little easier than that, as we knew how to solve every state in 20 moves, so the problem was proving some move that could be solved in 20 moves couldn't be done quicker in some unusual way. While that still took a while, the fact you knew the start and end limits how many moves you have to search.
ramses0•1h ago
Seeing the "bits" that way makes me think there's a way to encode an ssh key into a rubix cube (a-la the "spy shuffle" decks).

Reminds me a bit of the "randomart" seeing the positions and colors of the cube splayed out like that.

kevindamm•47m ago
Except that the transform is relatively easy to reverse (compared to prime factorization) because of the properties of edge and corner pieces and limitations on piece movement that make a kind of spectral analysis possible. Things get a little better if you increase the size of the cube. Things get interesting if you allow un-solvable states (there's a 2:1 ratio of positions that are not naturally reachable) if you include in the protocol something like "always encode any corner rotations first" but it still wouldn't really be strong enough for modern compute.

If you mean to use it exclusively as a real-world key transmission like with Cryptonomicon's Solitaire decks, the problem becomes finding the shortest path or whatever the protocol determines is the normalized form.

Not to rain on your parade, it's a fun approach to think about, like maybe if the properties of a specific face determine which rotations to perform next, and which face to look at next, in addition to being the nonce for decoding the next letter. But even something like that would be too complicated to expect a person to remember all of while not being complicated enough to fluster a computational approach. The nice thing about Solitaire is that it's reasonable to perform the algorithm in your head.

kevindamm•58m ago
This was done in 2010 thanks to the analysis of the symmetries inherent in the underlying group theory, and about 35 CPU-years:

https://www.cube20.org/

stoneman24•10m ago
For me, any position which requires the full maximum 20 moves to solve would qualify as the perfect shuffle.

I wonder how many positions qualify (perhaps only 1 discounting symmetry as there is 1 fully solved cube, again discounting symmetry). But that’s a rabbit hole that I am not going down.

But I can appreciate the choice made in the article.

Aardwolf•1h ago
It actually looks somewhat regular instead of random in the end. Perhaps having only rule 6 and 3, no others, is interesting. Or 6, 3 and 1. Or only rule 3 and take solution with highest entropy
superjan•1h ago
I want to flip coins so randomly that I never see the same face twice in a row.
lutzh•57m ago
For all the Rubik's Cube enthusiasts here: here's a two-dimensional one in JavaScript - https://www.huehnken.de/games/circles/

Also a solution looking for a problem, maybe.

lupire•32m ago
Par of why this is a strange goal is that two adjacent squares can be the same color, but not be in the correct relative position for an unscrambled cube. Rubik's cube is puzzle of cubelets, not squares

Show HN: Wordle-style game for Fermi questions

https://www.fermiquestions.org/
1•danielfetz•1m ago•0 comments

'AI' just means LLMs now

https://blog.jxmo.io/p/ai-just-means-llms-now-superintelligence
1•jxmorris12•1m ago•1 comments

Ask HN: Does "vide coding" for Hardware exists?

1•byebyetech•3m ago•0 comments

Ex-CIA Whistleblower: "The NSA Audited the 2024 Election, Kamala Harris Won"

https://thiswillhold.substack.com/p/ex-cia-whistleblower-the-nsa-audited
2•akudha•3m ago•0 comments

Show HN: Conway's Game of Life in JavaScript with efficient implementation

https://github.com/gkoos/conway
1•gkoos•4m ago•0 comments

The Poe API(OpenAI compatible)

https://creator.poe.com/docs/external-applications/openai-compatible-api
1•ifree•6m ago•0 comments

Hamas hostage Evyatar David forced to dig what he fears will be his own grave

https://www.timesofisrael.com/a-living-skeleton-buried-alive-hostage-evyatar-davids-family-publishes-clip-of-hamas-video/
1•mhb•6m ago•0 comments

A Day at Two San Francisco Malls, One That Died and One That Thrived

https://www.nytimes.com/2025/08/02/us/san-francisco-malls-downtown.html
1•mitchbob•7m ago•1 comments

Xkcd: Unsatisfied

https://xkcd.com/584/
3•tarpit_idea•7m ago•0 comments

Physicists should revel in the diversity of ways to understand quantum mechanics

https://www.nature.com/articles/d41586-025-02346-8
1•sampo•8m ago•0 comments

Show HN: Cortex – OS-wide AI with instant context input

https://cortexdesktop.com/
2•andrewfhou•10m ago•1 comments

VibeCamp – Don't learn to code. Learn to create with AI

https://www.vibecamp.ai/
1•kelseyfrog•14m ago•1 comments

The unreasonable likelihood of being: origin of life, terraforming, and AI

https://arxiv.org/abs/2507.18545
2•bookofjoe•17m ago•0 comments

Show HN: Accelerate AI agent development by grounding AI assistant in local docs

https://github.com/botingw/langgraph-dev-navigator
1•botingw_job•18m ago•1 comments

Linear Types for Programmers

https://twey.io/for-programmers/linear-types/
2•marvinborner•19m ago•0 comments

Invisible Symbols

https://symbol.so/invisible-characters
1•liquid99•27m ago•0 comments

US Army tests robot coyotes to prevent catastrophic bird strikes

https://cyberguy.com/robot-tech/army-tests-robot-coyotes-prevent-catastrophic-bird-strikes/
1•speckx•29m ago•1 comments

Telo MT1

https://www.telotrucks.com/
8•turtleyacht•31m ago•0 comments

The Creative Tension Between Developer and Language

https://krishna.github.io/posts/creative-tension-between-developer-and-language/
1•kenshi•35m ago•1 comments

Show HN: I've had success in SaaS and now I'm building tools for indie hackers

https://reallysimplesupport.com
1•gigamick•36m ago•0 comments

German police expands use of Palantir surveillance software

https://www.dw.com/en/german-police-expands-use-of-palantir-surveillance-software/a-73497117
6•LeftHandPath•36m ago•1 comments

California affordable housing programs on the chopping block after SCOTUS rules

https://calmatters.org/housing/2025/08/affordable-housing-developer-fees/
1•kqr2•37m ago•0 comments

Show HN: F1 COSMOS – Live timing and data dashboard for F1 fans

https://f1cosmos.com/
2•conradmk•44m ago•0 comments

Peter Thiel and the Antichrist

https://www.nytimes.com/2025/06/26/opinion/peter-thiel-antichrist-ross-douthat.html
3•dotcoma•45m ago•1 comments

Partisan hostility, not just policy, drives U.S. protests

https://phys.org/news/2025-08-partisan-hostility-policy-protests.html
2•bikenaga•45m ago•2 comments

Might Tariffs Get "Overturned"?

https://ritholtz.com/2025/07/tariffs-overturned/
1•throwaway81523•46m ago•0 comments

Getting Real with AI

https://doc.searls.com/2025/08/02/getting-real-with-ai/
1•speckx•47m ago•0 comments

Winners and Losers of the Bivalve Evolution

https://www.mdpi.com/1424-2818/17/7/500
1•PaulHoule•50m ago•0 comments

Architecture decision record (ADR) examples for software planning, IT leadership

https://github.com/joelparkerhenderson/architecture-decision-record
1•thunderbong•52m ago•0 comments

AI party game born from a drunk night with friends

https://taptrap.app
1•eliezerpujols•52m ago•1 comments