Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.math > #501628

Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI !

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups sci.math
Subject Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI !
Date 2020-10-12 23:08 +0100
Organization A noiseless patient Spider
Message-ID <87imbf6qs2.fsf@bsb.me.uk> (permalink)
References <23bc51fb-1894-4652-81e2-73039eb2ca1an@googlegroups.com> <87zh4r6wod.fsf@bsb.me.uk> <f2b5a296-0e2a-40e5-a96d-e6dd820c47ben@googlegroups.com> <87tuuz6sk5.fsf@bsb.me.uk> <rm2ik4$o92$1@dont-email.me>

Show all headers | View raw


Basil Jet <basil@spamspamspam.com> writes:

> On 12/10/2020 22:30, Ben Bacarisse wrote:
>> Graham Cooper <grahamcooper7@gmail.com> writes:
>>
>>> On Tuesday, October 13, 2020 at 6:01:34 AM UTC+10, Ben Bacarisse wrote:
>>>> Graham Cooper <graham...@gmail.com> writes:
>>>>
>>>>> The TOWERS OF HANOI algorithm starts from a FULL STACK and 2 empty stacks.
>>>>>
>>>>> Can you solve a game that someone has already started?
>>>>>
>>>>> STACK1 20 18 15 12 11 9 5 4 2
>>>>> STACK2 17 14 13 10 3
>>>>> STACK3 19 16 8 7 6 1
>>>> Since I've told you I have an algorithm for this (and it's not a hard
>>>> one to come up with) you are presumably just blowing hot air.
>>>
>>>
>>> you cant win $500 for saying "I CAN DO IT"
>>>
>>>
>>> Lets see your solution!
>>
>> http://bsb.me.uk/tmp/toh.txt
>>
>> It's only just over 2 million moves, and you can check them by computer
>> of course.  (To keep the size down, each move is just two letters -- the
>> source and destination pin using A, B and C for the pins.)
>>
>
> Your first two moves are CA AC. Clearly that has no effect.

That does not stop it being a solution though!  The code generates
redundant moves because I was going for the simplest code.

I look forward to seeing your solution.  I'll be upset if it is as
simple as mine since, it clearly generates shorter solutions.

> My solution is 871709 moves long.

Mine ends up with all the rings on pin 1, so I added all the moves to
move the rings to pin 2.  That doubles the solution size.  (I first saw
the puzzle in sci.logic where GC only wanted to get clear pins.
However, I didn't want him quibbling about that for this the sci.math
version, hence the huge number of extra moves.)

> I believe it's optimal. How do I get my money?

Mine is not (though I think it could be made so).  However, the money
was only for a solution, so we are both owed, no?

-- 
Ben.

Back to sci.math | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

$500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Graham Cooper <grahamcooper7@gmail.com> - 2020-10-12 05:26 -0700
  Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Basil Jet <basil@spamspamspam.com> - 2020-10-12 14:50 +0100
    Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Graham Cooper <grahamcooper7@gmail.com> - 2020-10-12 12:07 -0700
      Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 15:30 -0700
        Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 15:31 -0700
          Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Graham Cooper <grahamcooper7@gmail.com> - 2020-10-12 15:41 -0700
            Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 16:22 -0700
              Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Graham Cooper <grahamcooper7@gmail.com> - 2020-10-12 16:27 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 16:36 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 16:37 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Graham Cooper <grahamcooper7@gmail.com> - 2020-10-12 16:46 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 17:49 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 17:50 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 17:52 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 17:53 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 18:02 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 18:05 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Sergio <invalid@invalid.com> - 2020-10-12 20:05 -0500
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 18:20 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Graham Cooper <grahamcooper7@gmail.com> - 2020-10-12 18:22 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 18:24 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 18:29 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 18:49 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Sergio <invalid@invalid.com> - 2020-10-12 22:50 -0500
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 21:25 -0700
            Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 16:26 -0700
              Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Graham Cooper <grahamcooper7@gmail.com> - 2020-10-12 16:38 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Peter <peterxpercival@hotmail.com> - 2020-10-13 01:47 +0100
  Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-10-12 21:01 +0100
    Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Graham Cooper <grahamcooper7@gmail.com> - 2020-10-12 13:12 -0700
      Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Basil Jet <basil@spamspamspam.com> - 2020-10-12 21:24 +0100
        Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Peter <peterxpercival@hotmail.com> - 2020-10-12 21:48 +0100
          Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Graham Cooper <grahamcooper7@gmail.com> - 2020-10-12 13:57 -0700
          Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-10-12 22:49 +0100
      Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Sergio <invalid@invalid.com> - 2020-10-12 15:25 -0500
      Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-10-12 22:30 +0100
        Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Basil Jet <basil@spamspamspam.com> - 2020-10-12 22:42 +0100
          Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-10-12 23:08 +0100
            Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Dario Alpern <darioalpern@gmail.com> - 2020-10-12 15:23 -0700
              Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-10-13 00:06 +0100
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Graham Cooper <grahamcooper7@gmail.com> - 2020-10-12 16:25 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-10-13 01:24 +0100
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-10-12 17:54 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Dario Alpern <darioalpern@gmail.com> - 2020-10-12 17:29 -0700
            Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Basil Jet <basil@spamspamspam.com> - 2020-10-12 23:42 +0100
              Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-10-13 00:04 +0100
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Basil Jet <basil@spamspamspam.com> - 2020-10-13 00:33 +0100
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Graham Cooper <grahamcooper7@gmail.com> - 2020-10-12 16:40 -0700
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-10-13 01:06 +0100
                Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-10-13 01:26 +0100
  Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Archimedes Plutonium <plutonium.archimedes@gmail.com> - 2020-10-12 13:58 -0700
  Re: $500 MATHS CHALLENGE ..... just solve this TOWERS OF HANOI ! Dario Alpern <darioalpern@gmail.com> - 2020-10-12 14:33 -0700

csiph-web