Tower of Hanoi: Five Rings Solution 5.

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2025

ความคิดเห็น • 97

  • @himanshuatri9117
    @himanshuatri9117 9 หลายเดือนก่อน +9

    After playing this game again and again and watching the solution i found out the pattern:
    (Always remember you will be moving the first disk (smallest disk) on every second move. This means every odd number of move will be made by the smallest disk(for eg: 1st move, 3rd move, 5th move))
    So this trick is different for odd number of disk and even number of disk
    First check if the number of disk is even or odd:
    For odd number of disk (for eg 3 disk, 5 disk, 7 disk etc):
    • 1: move the smallest disk (which will be on the top) to the last pole. Move the other ring to the remaining empty pole.
    • 2: then again move the smallest disk to middle pole.
    • 3: make a move with any other disk .
    (Always remember once you move the smallest disk you will only have one legal move with any other disk since you can't place the bigger disk on smaller disk and you can't move the smallest disk on this turn. This rule/logic applies to every turn after moving the smallest disk.)
    • 4: now move the smallest disk to first pole.
    • 5: make a move with any other disk to any pole.
    • 6: repeat from • 1 to • 5 untill you are done.
    This will solve the problem in the minimum move possible and the number of minimum move for any number of disk is going to be (2^n) - 1. For eg: minimum number of move for 5 disk is going to be 2⁵ - 1 = 31
    For even number of disk (for eg: 4 disk, 6 disk, 8 disk etc )
    All the steps are going to be the same as above with just a simple change.
    In above sequence we were moving the smallest disk
    From first pole to last pole
    Then from last pole to middle pole
    Then from middle pole to first pole.
    We were doing this on every second move.
    For even number of Disk the sequence for moving the smallest disk on every second turn will be:
    From first pole to middle pole
    From middle pole to last pole
    From last pole to first pole
    All this might seem difficult and confusing but with practice you will be able to do it. If at any point you got stuck or took more than minimum number of moves then it means you made a mistake while moving the smallest disk (so restart)
    never quit before reaching the minimum number of moves
    Additional information:
    If you use the even number of disk trick in odd number of disk you will end up filling the middle pole instead of last pole. Do it if that's your goal. Same for odd number of disk. If you use the even number of disk trick here you will end up filling the middle pole in minimum number of moves.

    • @rizzwan-42069
      @rizzwan-42069 5 หลายเดือนก่อน

      the way i do it is like this. i find where the last piece needs to end therefore the second last piece needs to be in the other place and keep alternating till you arrive at first piece. rinse and repeat and that's it.

  • @scareflare7553
    @scareflare7553 ปีที่แล้ว +4

    Came here after the Pagoda Stack puzzle in Genshin Lmao, didn't expect such thing in-game, though it sometimes happens that they show us some irl things in-game, this was unexpected.

  • @masonjones3427
    @masonjones3427 4 ปีที่แล้ว +18

    First time I tried it I got it in 37 moves. Just did it again and got 34 moves!

    • @Koolpro47
      @Koolpro47 8 หลายเดือนก่อน

      perfect is 30

    • @youtubeaccount1718
      @youtubeaccount1718 5 หลายเดือนก่อน

      @@Koolpro47 perfect is 31

  • @onyx_vii7808
    @onyx_vii7808 4 ปีที่แล้ว +13

    🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
    An easier method I found out for myself is to use the left right method. If all my rings are in column A, then column B would be left, and Column C would be Right. If I want all my rings to go to the 'right' column but dont know which column to start in, I name each ring top to bottom using Right left. Start at right, then next ring will be left, then next ring will be right, etc. The last ring you stop on will start your first move at the right or left Column.
    5 rings
    Right
    Left
    Right
    Left
    Right

  • @alexfenner7711
    @alexfenner7711 6 ปีที่แล้ว +78

    Why not move the whole tower lol

  • @arcane_6479
    @arcane_6479 5 ปีที่แล้ว +9

    Just here for our math project

  • @shuubhuu
    @shuubhuu 5 ปีที่แล้ว +20

    Hey it's my homework to given my teacher 😎😎

    • @hamidhasanakib8727
      @hamidhasanakib8727 4 ปีที่แล้ว

      It's my today's homework

    • @krishnabhavsar2786
      @krishnabhavsar2786 3 ปีที่แล้ว

      Today mine h.w

    • @aryangaur228
      @aryangaur228 3 ปีที่แล้ว +1

      And today mine 😂

    • @ikigai3007
      @ikigai3007 9 หลายเดือนก่อน

      @@aryangaur228 And today mine assignment i have to program it in c++ 😂

  • @hypnogri5457
    @hypnogri5457 4 ปีที่แล้ว +15

    Solution in text:
    A -> C
    A -> B
    C -> B
    A -> C
    B -> A
    B -> C
    A -> C
    A -> B
    C -> B
    C -> A
    B -> A
    C -> B
    A -> C
    A -> B
    C -> B
    A -> C
    B -> A
    B -> C
    A -> C
    B -> A
    C -> B
    C -> A
    B -> A
    B -> C
    A -> C
    A -> B
    C -> B
    A -> C
    B -> A
    B -> C
    A -> C

    • @JayannSanchez
      @JayannSanchez ปีที่แล้ว

      Can you proceed the solution til 8 desk?😊 plsss badly need

  • @raheemahhafsahm.pangarunga8518
    @raheemahhafsahm.pangarunga8518 3 ปีที่แล้ว +7

    Hello sir, is there a mathematical explanation for the moves?
    thank you

    • @aryanshirazi5972
      @aryanshirazi5972 3 ปีที่แล้ว +6

      you can express the number of moves required as a function of the number of disks. the recurrence relation solving this function is going to give 2^n -1 moves for n disks. in this case with 5 disks, n=5. so we have 2^5 -1 = 32-1 which gives 31 moves

    • @Riotuh
      @Riotuh 3 ปีที่แล้ว

      it's just x2 + 1 each sequence

    • @ga7667
      @ga7667 2 ปีที่แล้ว +1

      @@aryanshirazi5972 what does ^. means?

    • @aryanshirazi5972
      @aryanshirazi5972 2 ปีที่แล้ว +1

      @@ga7667 (to the power of)

  • @mr.d.o.g4961
    @mr.d.o.g4961 5 หลายเดือนก่อน

    შენ გენაცვალე ყვერებში შენ გამო ბანაკში მოვიგეთ ❤❤

  • @Eduardo_Espinoza
    @Eduardo_Espinoza 2 ปีที่แล้ว +1

    Damn i miss that old school prompt. :)

  • @PreciousDumandan
    @PreciousDumandan 9 หลายเดือนก่อน

    What is the name of the game

  • @milindchaturvedi729
    @milindchaturvedi729 8 หลายเดือนก่อน

    Cool!

  • @jay-fh6wp
    @jay-fh6wp 2 ปีที่แล้ว +1

    Ty

  • @badenurkaraca8775
    @badenurkaraca8775 4 ปีที่แล้ว

    Hello,Can I us this video for lesson?Pleas

  • @NabeenKandel
    @NabeenKandel 3 ปีที่แล้ว +1

    how many steps with 14 disks?

    • @trixythe9814
      @trixythe9814 3 ปีที่แล้ว

      Should be around 16000 moves

    • @aryanshirazi5972
      @aryanshirazi5972 3 ปีที่แล้ว

      you will need at least 2^14 -1 = 16383 moves

    • @nguyentiensu3825
      @nguyentiensu3825 ปีที่แล้ว

      @@aryanshirazi5972 why 2^14-1?

  • @LitoMike
    @LitoMike 3 ปีที่แล้ว +9

    well i completed 5 rings in 134 moves :/

    • @tarunbharti2239
      @tarunbharti2239 3 ปีที่แล้ว +2

      less the moves, better your thinking

  • @isaacdavidson7985
    @isaacdavidson7985 ปีที่แล้ว

    Whats you understand the principle behind this you can solve any amount

  • @austinkoontz2845
    @austinkoontz2845 5 หลายเดือนก่อน

    Cool.

  • @emmendez28
    @emmendez28 2 ปีที่แล้ว

    Who’s here after Chaz’s live 😂✋🏽

  • @sajidmanzoor1184
    @sajidmanzoor1184 4 ปีที่แล้ว +2

    Solve the following puzzle for Tower of Hanoi
    · If puzzle can be accomplished in 3 moves with two discs. Use this to work out how many moves would be needed with three discs?
    · If puzzle can be completed in 15 moves with four discs. Use this to work out how many moves would be needed with five discs?
    · In general, describe a way of working out how many moves are needed when one extra disc is added?
    ye kese hoga

    • @juanignaciolopeztellechea9401
      @juanignaciolopeztellechea9401 ปีที่แล้ว

      hanoi(n)=2×hanoi(n-1)+1, where the function hanoi is how many steps it takes to solvo a puzzle with n rings.
      DEMONSTRATION:
      You can move n-1 rings to the middle stick, move the last ring to the last stick, then move n-1 rings to the last stick, on top of the last ring.

    • @takodachich.515
      @takodachich.515 11 หลายเดือนก่อน

      given n disc, we can find it with 2^n - 1

  • @vetriselvan9521
    @vetriselvan9521 2 ปีที่แล้ว

    2^n-1👍. Two power n subtraction one

  • @charles9322
    @charles9322 3 ปีที่แล้ว +2

    I did it in 31 moves without watching this video

    • @steveman1982
      @steveman1982 3 ปีที่แล้ว

      poundSignMeToo. Although I didn't have actual disks in front of me. But glad to read it can be done in 31, so I probably didn't make a mistake :)

    • @charles9322
      @charles9322 3 ปีที่แล้ว

      @@steveman1982 nice

  • @jerickbalansag1691
    @jerickbalansag1691 3 ปีที่แล้ว +2

    I got 31 moves in 15 Seconds

  • @darkknight8107
    @darkknight8107 2 ปีที่แล้ว

    I solved it in thirty moves

  • @Deepakkumar-li9ob
    @Deepakkumar-li9ob 5 ปีที่แล้ว

    How to play this

    • @UrGuru
      @UrGuru  5 ปีที่แล้ว

      There's an app on playstore

  • @urbanprojectz
    @urbanprojectz ปีที่แล้ว

    Is it.

  • @marjorieMejia-xz8po
    @marjorieMejia-xz8po ปีที่แล้ว

    Ya me to 😂😂😂😂😂😂😂

  • @hodaifamohammad3002
    @hodaifamohammad3002 5 ปีที่แล้ว +17

    Why not rotate the Board Lol.

    • @chonkydog6262
      @chonkydog6262 4 ปีที่แล้ว +1

      The towers are labelled, #1, #2, and #3.

    • @dafniejames1155
      @dafniejames1155 หลายเดือนก่อน

      a person who thinks all the time

  • @iamefghwr4522
    @iamefghwr4522 10 หลายเดือนก่อน

    This music is nostalgic

  • @koushiksaha8198
    @koushiksaha8198 4 ปีที่แล้ว

    31 step 😁

  • @epoyelipe
    @epoyelipe ปีที่แล้ว

    Why person make this so fast 😢

  • @bassmaalasheg9216
    @bassmaalasheg9216 2 ปีที่แล้ว

    اريد حلا بلغة java or c

  • @dinaejarmon5893
    @dinaejarmon5893 3 ปีที่แล้ว

    ok

  • @parvejahmad3817
    @parvejahmad3817 5 ปีที่แล้ว

    Bhot hard

  • @dinaejarmon5893
    @dinaejarmon5893 3 ปีที่แล้ว

    like

  • @Lexiphy
    @Lexiphy 4 ปีที่แล้ว

    5 is easy try 9

    • @aryanshirazi5972
      @aryanshirazi5972 3 ปีที่แล้ว

      you will need at least 2^9 -1 = 511 moves

  • @dinaejarmon5893
    @dinaejarmon5893 3 ปีที่แล้ว

  • @Tralien
    @Tralien ปีที่แล้ว

    u

  • @JesusChrist-yh4pi
    @JesusChrist-yh4pi 2 ปีที่แล้ว

    Well I can’t remember this. There goes my party trick besides water to wine

  • @djdrift7146
    @djdrift7146 5 ปีที่แล้ว +1

    Aim bot I called it😂

    • @chonkydog6262
      @chonkydog6262 4 ปีที่แล้ว +1

      shut up fortnite idiot

  • @elephantproductions7810
    @elephantproductions7810 3 ปีที่แล้ว

    ....

  • @alexfenner7711
    @alexfenner7711 6 ปีที่แล้ว +1

    i can do it in 4 steps

    • @UrGuru
      @UrGuru  6 ปีที่แล้ว +5

      You are the next Einstein then

    • @abdelghanimahammedi6149
      @abdelghanimahammedi6149 6 ปีที่แล้ว +2

      hhhhhhhhhhhhhh
      @@UrGuru

    • @bhartikanojia5229
      @bhartikanojia5229 5 ปีที่แล้ว +2

      This is a rule based game ...u can't simply move the whole tower in once...try it with rules ...

  • @angeliazirbser5035
    @angeliazirbser5035 6 หลายเดือนก่อน

    dude stop....

  • @_____OBEYMARKVEFIGEN
    @_____OBEYMARKVEFIGEN 7 หลายเดือนก่อน

    Yes , but too many moves. Put the second one from the bottom on the middle post, and accomplish it in 16 moves, let's see if you have that intelligence

  • @elephantproductions7810
    @elephantproductions7810 3 ปีที่แล้ว

    like

  • @elephantproductions7810
    @elephantproductions7810 3 ปีที่แล้ว

    ....

  • @elephantproductions7810
    @elephantproductions7810 3 ปีที่แล้ว

    like

  • @elephantproductions7810
    @elephantproductions7810 3 ปีที่แล้ว

    ....