Tower of Hanoi: Five Rings Solution 5.

Поделиться
HTML-код
  • Опубликовано: 25 янв 2025

Комментарии • 98

  • @himanshuatri9117
    @himanshuatri9117 9 месяцев назад +10

    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 6 месяцев назад

      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.

  • @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

  • @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

  • @masonjones3427
    @masonjones3427 4 года назад +18

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

  • @alexfenner7711
    @alexfenner7711 6 лет назад +78

    Why not move the whole tower lol

  • @arcane_6479
    @arcane_6479 5 лет назад +9

    Just here for our math project

  • @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)

  • @PreciousDumandan
    @PreciousDumandan 10 месяцев назад

    What is the name of the game

  • @shuubhuu
    @shuubhuu 5 лет назад +20

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

  • @NabeenKandel
    @NabeenKandel 3 года назад +1

    how many steps with 14 disks?

  • @badenurkaraca8775
    @badenurkaraca8775 4 года назад

    Hello,Can I us this video for lesson?Pleas

  • @mr.d.o.g4961
    @mr.d.o.g4961 6 месяцев назад

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

  • @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 Год назад

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

  • @isaacdavidson7985
    @isaacdavidson7985 Год назад

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

  • @Eduardo_Espinoza
    @Eduardo_Espinoza 2 года назад +1

    Damn i miss that old school prompt. :)

  • @LitoMike
    @LitoMike 3 года назад +9

    well i completed 5 rings in 134 moves :/

  • @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

  • @emmendez28
    @emmendez28 2 года назад

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

  • @jay-fh6wp
    @jay-fh6wp 2 года назад +1

    Ty

  • @hodaifamohammad3002
    @hodaifamohammad3002 5 лет назад +17

    Why not rotate the Board Lol.

    • @chonkydog6262
      @chonkydog6262 4 года назад +1

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

    • @dafniejames1155
      @dafniejames1155 2 месяца назад

      a person who thinks all the time

  • @austinkoontz2845
    @austinkoontz2845 6 месяцев назад

    Cool.

  • @vetriselvan9521
    @vetriselvan9521 2 года назад

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

  • @jerickbalansag1691
    @jerickbalansag1691 3 года назад +2

    I got 31 moves in 15 Seconds

  • @Deepakkumar-li9ob
    @Deepakkumar-li9ob 5 лет назад

    How to play this

    • @UrGuru
      @UrGuru  5 лет назад

      There's an app on playstore

  • @milindchaturvedi729
    @milindchaturvedi729 8 месяцев назад

    Cool!

  • @urbanprojectz
    @urbanprojectz Год назад

    Is it.

  • @darkknight8107
    @darkknight8107 2 года назад

    I solved it in thirty moves

  • @epoyelipe
    @epoyelipe Год назад

    Why person make this so fast 😢

  • @marjorieMejia-xz8po
    @marjorieMejia-xz8po Год назад

    Ya me to 😂😂😂😂😂😂😂

  • @JesusChrist-yh4pi
    @JesusChrist-yh4pi 2 года назад

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

  • @bassmaalasheg9216
    @bassmaalasheg9216 2 года назад

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

  • @iamefghwr4522
    @iamefghwr4522 11 месяцев назад

    This music is nostalgic

  • @parvejahmad3817
    @parvejahmad3817 5 лет назад

    Bhot hard

  • @dinaejarmon5893
    @dinaejarmon5893 3 года назад

    like

  • @koushiksaha8198
    @koushiksaha8198 4 года назад

    31 step 😁

  • @dinaejarmon5893
    @dinaejarmon5893 3 года назад

    ok

  • @Lexiphy
    @Lexiphy 4 года назад

    5 is easy try 9

  • @Tralien
    @Tralien Год назад

    u

  • @elephantproductions7810
    @elephantproductions7810 3 года назад

    ....

  • @dinaejarmon5893
    @dinaejarmon5893 3 года назад

  • @_____OBEYMARKVEFIGEN
    @_____OBEYMARKVEFIGEN 8 месяцев назад

    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

  • @angeliazirbser5035
    @angeliazirbser5035 7 месяцев назад

    dude stop....

  • @djdrift7146
    @djdrift7146 5 лет назад +1

    Aim bot I called it😂

  • @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 6 лет назад +2

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

  • @elephantproductions7810
    @elephantproductions7810 3 года назад

    like

  • @elephantproductions7810
    @elephantproductions7810 3 года назад

    ....

  • @elephantproductions7810
    @elephantproductions7810 3 года назад

    like

  • @elephantproductions7810
    @elephantproductions7810 3 года назад

    ....