Maze with Randomized Prim's algorithm

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

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

  • @realcoolguy123
    @realcoolguy123 18 дней назад

    Thanks for making this video. The step-by-step visual for each iteration is extremely useful, and the explanations are very helpful. Thanks again!

  • @peteryu3560
    @peteryu3560 Год назад +2

    The most helpful resource I would ever find on the internet! Thanks.

    • @peteryu3560
      @peteryu3560 Год назад +1

      wait but how do you calculate step 5.2? Set the cell in between to Passage

    • @tanvir-lab
      @tanvir-lab Год назад

      @@peteryu3560, I have the same question. What I'm trying to do is look for cells that are at a distance of 2 in the passage state. If there are multiple cells, choose one randomly and mark the cells in between as passage. Please let me know if you have tried any other approach.

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

      Nah, don't even try this approach. Prim algo runs on a completely different framework compared to A*star, breadth first search, depth first search, etc.. I wouldn't waste my time with this guy's tutorial. Unless you love prim so much that you just can't live without it. @@tanvir-lab

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

      ​@@tanvir-labauthor make a maze with distance between cells that's equal 1 cell. We can find middle-cell using such method:
      We have: (x1, y1), (х3, у3)
      We can calculate middle coordinate(x2,y2):
      abs(x1+x3)/2, abs(y1+y3)/2 if each coordinate will be an unpaired number or paried number(coordinate can't be equal for example 4.5)

  • @gdriveharshal8308
    @gdriveharshal8308 Год назад +1

    Thanks

  • @ВадимБузанаков-к4с
    @ВадимБузанаков-к4с 9 месяцев назад

    А можно код?