TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Solving the Rubik's Cube Optimally Is NP-Complete

72 pointsby seycombialmost 8 years ago

5 comments

pgealmost 8 years ago
When my daughter got into rubik's cube with her friends, I thought it would be fun to use it as a sample to teach her about applying a simple breadth-first solver to find the shortest path to a solution. Embarrasingly, I neglected to do the math on how many possible states there were before we started. We coded up the solver in just a few minutes, but quickly discovered that a typical solution would take longer than either of our lifetimes...Oops. She learned some coding that day - not the lesson I intended, but probably a more important one!
评论 #14681992 未加载
williamsteinalmost 8 years ago
One of the coauthors of the paper is also a serious web developer: <a href="https:&#x2F;&#x2F;github.com&#x2F;edemaine&#x2F;coauthor" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;edemaine&#x2F;coauthor</a>
js8almost 8 years ago
Interesting. I wonder, if you can solve 5x5x5 cube, then you can solve them all. How good an approximation is using the optimal methods for solving 5x5x5 to solve the NxNxN case?
评论 #14682042 未加载
评论 #14681698 未加载
评论 #14681602 未加载
crb002almost 8 years ago
It&#x27;s constant time unless you grow the cube.
ameliusalmost 8 years ago
How hard would it be on a quantum computer?
评论 #14683596 未加载
评论 #14682254 未加载