Autor Beitrag
>M@steR<
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 288
Erhaltene Danke: 3



BeitragVerfasst: So 28.09.08 20:10 
Gelöscht


Zuletzt bearbeitet von >M@steR< am Di 17.09.13 02:04, insgesamt 1-mal bearbeitet
Flamefire
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1207
Erhaltene Danke: 31

Win 10
Delphi 2009 Pro, C++ (Visual Studio)
BeitragVerfasst: So 28.09.08 20:15 
moin
nette implemantation der Türme von Hanoi

könnte man n programm schreiben, dass das löst ^^
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8553
Erhaltene Danke: 479

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 28.09.08 20:16 
Türme von Hanoi mit 7 Scheiben per Hand lösen? Na, wenn man sonst nichts zu tun hat... :lol:

_________________
We are, we were and will not be.
>M@steR< Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 288
Erhaltene Danke: 3



BeitragVerfasst: So 28.09.08 20:17 
Gelöscht


Zuletzt bearbeitet von >M@steR< am Di 17.09.13 02:05, insgesamt 1-mal bearbeitet
>M@steR< Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 288
Erhaltene Danke: 3



BeitragVerfasst: So 28.09.08 20:18 
Gelöscht


Zuletzt bearbeitet von >M@steR< am Di 17.09.13 02:05, insgesamt 1-mal bearbeitet
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: So 28.09.08 20:20 
Soweit ich mich erinnere ist das Minimum 2^n - 1 Züge für n Scheiben.
pennyWISE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 49

Win XP
Delphi 2005 PE (getunt), QBasic 4.5
BeitragVerfasst: So 28.09.08 22:05 
heyho!

ich hatte schon mal ne lösung geschrieben:
Einloggen, um Attachments anzusehen!
_________________
„Philosophie ist der Versuch, eine schwarze Katze in einem dunklen Zimmer zu fangen. Theologie ist der Versuch, eine schwarze Katze in einem dunklen Zimmer zu fangen, jedoch eine Katze, die gar nicht im Zimmer ist - und immer zu rufen: Ich hab' sie!“
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: So 28.09.08 22:20 
Türme von Hanoi = Schönste Demonstration der Eleganz der Rekursivität:

Verschiene x Scheiben von A nach B mit Hilfe von C;
1. Verschiebe x-1 Scheiben von A nach C mit Hilfe von B
2. Verschiebe die verbleibende Scheibe von A nach B
3. Verschiebe x-1 Scheiben von C nach B mit Hilfe von A

Im Programmcode sieht die Logik genau so aus.

_________________
Na denn, dann. Bis dann, denn.