Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: tower hanoi problem (Roelof Wobben)
2. Re: tower hanoi problem (Mike Meyer)
3. Re: tower hanoi problem (Roelof Wobben)
4. Re: tower hanoi problem (Mike Meyer)
----------------------------------------------------------------------
Message: 1
Date: Tue, 17 Feb 2015 17:18:35 +0100
From: Roelof Wobben <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] tower hanoi problem
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150217/4a491481/attachment-0001.html>
------------------------------
Message: 2
Date: Tue, 17 Feb 2015 10:47:55 -0600
From: Mike Meyer <[email protected]>
To: beginners <[email protected]>
Subject: Re: [Haskell-beginners] tower hanoi problem
Message-ID:
<CAD=7U2A2YFYUdiAwxU4=hebsoxnnpbcoqqowskuanqt_elr...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Feb 17, 2015 10:18 AM, "Roelof Wobben" <[email protected]> wrote:
>
> This part I understand well.
>
> So you could do something like this:
>
> hanoi n 1 2 3
> | n = 0 -> moves the last disk to the goal peg
> | n != 0 -> moves all the other disk to the spare peg or to the moves
n -1 to the goal peg
What does n represent here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150217/b4d916a4/attachment-0001.html>
------------------------------
Message: 3
Date: Tue, 17 Feb 2015 17:50:32 +0100
From: Roelof Wobben <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] tower hanoi problem
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150217/1558cb93/attachment-0001.html>
------------------------------
Message: 4
Date: Tue, 17 Feb 2015 10:57:14 -0600
From: Mike Meyer <[email protected]>
To: beginners <[email protected]>
Subject: Re: [Haskell-beginners] tower hanoi problem
Message-ID:
<CAD=7u2crcpxtd_h_0kh1lf8b+os1pxgj3e-s6kz0rlxafb5...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Feb 17, 2015 10:50 AM, "Roelof Wobben" <[email protected]> wrote:
>
> N reprent the number of disk
So how does moving 0 disks happen? That is what your first case deals with.
> Roelof
>
>
> Mike Meyer schreef op 17-2-2015 om 17:47:
>>
>>
>> On Feb 17, 2015 10:18 AM, "Roelof Wobben" <[email protected]> wrote:
>> >
>> > This part I understand well.
>> >
>> > So you could do something like this:
>> >
>> > hanoi n 1 2 3
>> > | n = 0 -> moves the last disk to the goal peg
>> > | n != 0 -> moves all the other disk to the spare peg or to the
moves n -1 to the goal peg
>>
>> What does n represent here?
>>
>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150217/4d054beb/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 80, Issue 37
*****************************************