Minimum effort to detect a solved Rubik's CubeWhy is a single-corner twist not a valid position on a Rubik's cube?What is the superflip on the 4x4x4 Rubik's cube?3x3x3 Rubik's Cube Illegal StateHow many cubes can we fit in?Where is my girlfriend?Magnetic Rubik's cubeRubik's Chess PuzzleCan a single side of a Rubik's Cube legally contain all possible combinations of colors?Unsolvable enigmatic 3x3x3 Rubik's cube?Can this Rubik's cube be solved?

How easy is it to get a gun illegally in the United States?

Find only those folders that contain a File with the same name as the Folder

Is charge point-like or a smear?

Where to pee in London?

Is "safes" an acceptable alternative to "makes safe"

In MTG, was there ever a five-color deck that worked well?

Why do dragons like shiny stuff?

Purchased new computer from DELL with pre-installed Ubuntu. Won't boot. Should assume its an error from DELL?

Changing Row Keys into Normal Rows

Does the length of a password for Wi-Fi affect speed?

Is a switch from R to Python worth it?

Best way to explain to my boss that I cannot attend a team summit because it is on Rosh Hashana or any other Jewish Holiday

Does a 4 bladed prop have almost twice the thrust of a 2 bladed prop?

What is an air conditioner compressor hard start kit and how does it work?

Getting an entry level IT position later in life

What's going on with an item that starts with an hbox?

What is the probability of a biased coin coming up heads given that a liar is claiming that the coin came up heads?

Can I enter a rental property without giving notice if I'm afraid a tenant may be hurt?

How to approach protecting my code as a research assistant? Should I be worried in the first place?

Why is the Vasa Museum in Stockholm so Popular?

Why am I not getting stuck in the loop

Can you take actions after being healed at 0hp?

Only charge capacitor when button pushed then turn on LED momentarily with capacitor when button released

What was the role of Commodore-West Germany?



Minimum effort to detect a solved Rubik's Cube


Why is a single-corner twist not a valid position on a Rubik's cube?What is the superflip on the 4x4x4 Rubik's cube?3x3x3 Rubik's Cube Illegal StateHow many cubes can we fit in?Where is my girlfriend?Magnetic Rubik's cubeRubik's Chess PuzzleCan a single side of a Rubik's Cube legally contain all possible combinations of colors?Unsolvable enigmatic 3x3x3 Rubik's cube?Can this Rubik's cube be solved?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








8












$begingroup$


When writing a program to permute a Rubik's Cube and then subsequently detect whether it is solved or not, what is the absolute minimum amount of programmatic effort required to determine if the cube is solved?



One can obviously check all six sides to determine if the cube is solved, and return early if anything appears out of order. One can also reduce that effort, by always ignoring one side, since five solved sides implies that the sixth side is solved.



Are there any other optimizations one can introduce?



Note: My attempts at googling this answer ended up with a lot of cube solving materials, and some code that actually detects solved cubes, but nothing in the way of optimal solutions to programmatically detecting a solved cube.










share|improve this question







New contributor



Chuck Wolber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$




















    8












    $begingroup$


    When writing a program to permute a Rubik's Cube and then subsequently detect whether it is solved or not, what is the absolute minimum amount of programmatic effort required to determine if the cube is solved?



    One can obviously check all six sides to determine if the cube is solved, and return early if anything appears out of order. One can also reduce that effort, by always ignoring one side, since five solved sides implies that the sixth side is solved.



    Are there any other optimizations one can introduce?



    Note: My attempts at googling this answer ended up with a lot of cube solving materials, and some code that actually detects solved cubes, but nothing in the way of optimal solutions to programmatically detecting a solved cube.










    share|improve this question







    New contributor



    Chuck Wolber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






    $endgroup$
















      8












      8








      8


      1



      $begingroup$


      When writing a program to permute a Rubik's Cube and then subsequently detect whether it is solved or not, what is the absolute minimum amount of programmatic effort required to determine if the cube is solved?



      One can obviously check all six sides to determine if the cube is solved, and return early if anything appears out of order. One can also reduce that effort, by always ignoring one side, since five solved sides implies that the sixth side is solved.



      Are there any other optimizations one can introduce?



      Note: My attempts at googling this answer ended up with a lot of cube solving materials, and some code that actually detects solved cubes, but nothing in the way of optimal solutions to programmatically detecting a solved cube.










      share|improve this question







      New contributor



      Chuck Wolber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      $endgroup$




      When writing a program to permute a Rubik's Cube and then subsequently detect whether it is solved or not, what is the absolute minimum amount of programmatic effort required to determine if the cube is solved?



      One can obviously check all six sides to determine if the cube is solved, and return early if anything appears out of order. One can also reduce that effort, by always ignoring one side, since five solved sides implies that the sixth side is solved.



      Are there any other optimizations one can introduce?



      Note: My attempts at googling this answer ended up with a lot of cube solving materials, and some code that actually detects solved cubes, but nothing in the way of optimal solutions to programmatically detecting a solved cube.







      rubiks-cube






      share|improve this question







      New contributor



      Chuck Wolber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      Chuck Wolber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question






      New contributor



      Chuck Wolber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 8 hours ago









      Chuck WolberChuck Wolber

      1434 bronze badges




      1434 bronze badges




      New contributor



      Chuck Wolber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Chuck Wolber is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          1 Answer
          1






          active

          oldest

          votes


















          4












          $begingroup$

          I think:




          2 solved opposite layers and 3 of the remaining edges (from 4) is optimal




          Also




          3 faces in a horseshoe and a missing edge (from 2)




          This leaves:




          3 orthogonal faces and 2 of the missing edges (from 3)




          Beyond this:




          Any combination of 4 faces involves one of the above cases.







          share|improve this answer











          $endgroup$










          • 2




            $begingroup$
            Maybe I'm misunderstanding something, but about the first one, don't you mean layers (so the complete 2/3 -sided cubies) instead of faces (a side of 3x3 stickers)? If not, how would you differentiate from a solved cube and let's say this cube? The white/yellow faces are solved, as well as the four edges in the middle layer.
            $endgroup$
            – Kevin Cruijssen
            7 hours ago






          • 1




            $begingroup$
            @KevinCruijssen; good point, I've fixed it.
            $endgroup$
            – JonMark Perry
            7 hours ago













          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "559"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Chuck Wolber is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f86916%2fminimum-effort-to-detect-a-solved-rubiks-cube%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4












          $begingroup$

          I think:




          2 solved opposite layers and 3 of the remaining edges (from 4) is optimal




          Also




          3 faces in a horseshoe and a missing edge (from 2)




          This leaves:




          3 orthogonal faces and 2 of the missing edges (from 3)




          Beyond this:




          Any combination of 4 faces involves one of the above cases.







          share|improve this answer











          $endgroup$










          • 2




            $begingroup$
            Maybe I'm misunderstanding something, but about the first one, don't you mean layers (so the complete 2/3 -sided cubies) instead of faces (a side of 3x3 stickers)? If not, how would you differentiate from a solved cube and let's say this cube? The white/yellow faces are solved, as well as the four edges in the middle layer.
            $endgroup$
            – Kevin Cruijssen
            7 hours ago






          • 1




            $begingroup$
            @KevinCruijssen; good point, I've fixed it.
            $endgroup$
            – JonMark Perry
            7 hours ago















          4












          $begingroup$

          I think:




          2 solved opposite layers and 3 of the remaining edges (from 4) is optimal




          Also




          3 faces in a horseshoe and a missing edge (from 2)




          This leaves:




          3 orthogonal faces and 2 of the missing edges (from 3)




          Beyond this:




          Any combination of 4 faces involves one of the above cases.







          share|improve this answer











          $endgroup$










          • 2




            $begingroup$
            Maybe I'm misunderstanding something, but about the first one, don't you mean layers (so the complete 2/3 -sided cubies) instead of faces (a side of 3x3 stickers)? If not, how would you differentiate from a solved cube and let's say this cube? The white/yellow faces are solved, as well as the four edges in the middle layer.
            $endgroup$
            – Kevin Cruijssen
            7 hours ago






          • 1




            $begingroup$
            @KevinCruijssen; good point, I've fixed it.
            $endgroup$
            – JonMark Perry
            7 hours ago













          4












          4








          4





          $begingroup$

          I think:




          2 solved opposite layers and 3 of the remaining edges (from 4) is optimal




          Also




          3 faces in a horseshoe and a missing edge (from 2)




          This leaves:




          3 orthogonal faces and 2 of the missing edges (from 3)




          Beyond this:




          Any combination of 4 faces involves one of the above cases.







          share|improve this answer











          $endgroup$



          I think:




          2 solved opposite layers and 3 of the remaining edges (from 4) is optimal




          Also




          3 faces in a horseshoe and a missing edge (from 2)




          This leaves:




          3 orthogonal faces and 2 of the missing edges (from 3)




          Beyond this:




          Any combination of 4 faces involves one of the above cases.








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 7 hours ago

























          answered 8 hours ago









          JonMark PerryJonMark Perry

          24.7k6 gold badges46 silver badges107 bronze badges




          24.7k6 gold badges46 silver badges107 bronze badges










          • 2




            $begingroup$
            Maybe I'm misunderstanding something, but about the first one, don't you mean layers (so the complete 2/3 -sided cubies) instead of faces (a side of 3x3 stickers)? If not, how would you differentiate from a solved cube and let's say this cube? The white/yellow faces are solved, as well as the four edges in the middle layer.
            $endgroup$
            – Kevin Cruijssen
            7 hours ago






          • 1




            $begingroup$
            @KevinCruijssen; good point, I've fixed it.
            $endgroup$
            – JonMark Perry
            7 hours ago












          • 2




            $begingroup$
            Maybe I'm misunderstanding something, but about the first one, don't you mean layers (so the complete 2/3 -sided cubies) instead of faces (a side of 3x3 stickers)? If not, how would you differentiate from a solved cube and let's say this cube? The white/yellow faces are solved, as well as the four edges in the middle layer.
            $endgroup$
            – Kevin Cruijssen
            7 hours ago






          • 1




            $begingroup$
            @KevinCruijssen; good point, I've fixed it.
            $endgroup$
            – JonMark Perry
            7 hours ago







          2




          2




          $begingroup$
          Maybe I'm misunderstanding something, but about the first one, don't you mean layers (so the complete 2/3 -sided cubies) instead of faces (a side of 3x3 stickers)? If not, how would you differentiate from a solved cube and let's say this cube? The white/yellow faces are solved, as well as the four edges in the middle layer.
          $endgroup$
          – Kevin Cruijssen
          7 hours ago




          $begingroup$
          Maybe I'm misunderstanding something, but about the first one, don't you mean layers (so the complete 2/3 -sided cubies) instead of faces (a side of 3x3 stickers)? If not, how would you differentiate from a solved cube and let's say this cube? The white/yellow faces are solved, as well as the four edges in the middle layer.
          $endgroup$
          – Kevin Cruijssen
          7 hours ago




          1




          1




          $begingroup$
          @KevinCruijssen; good point, I've fixed it.
          $endgroup$
          – JonMark Perry
          7 hours ago




          $begingroup$
          @KevinCruijssen; good point, I've fixed it.
          $endgroup$
          – JonMark Perry
          7 hours ago










          Chuck Wolber is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          Chuck Wolber is a new contributor. Be nice, and check out our Code of Conduct.












          Chuck Wolber is a new contributor. Be nice, and check out our Code of Conduct.











          Chuck Wolber is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Puzzling Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fpuzzling.stackexchange.com%2fquestions%2f86916%2fminimum-effort-to-detect-a-solved-rubiks-cube%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

          Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

          199年 目錄 大件事 到箇年出世嗰人 到箇年死嗰人 節慶、風俗習慣 導覽選單