N-queens problem (Backtracking) - Inside code

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

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

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

    So suprised to see that you have only 20k subscribers.The content is too good.

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

      Thank you so much 😀

  • @AliHemati-t5e
    @AliHemati-t5e 2 หลายเดือนก่อน

    The best explanation I've ever seen. Thank you very much❤

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

    you can speed the process up with symmetry. rotating the board doesnt change if the solution is valid. therefore when youre done checking a square youre also done checking 4 other squares. eg: you start on h8, when the recursion falls back you have also checked for a8, a1, h1. there are no other symmetries because you are litterally filtering them out in the first place, so only speed up by 4. but its really easy to implement.

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

      correct if im wrong, in rec() during each recursion the nb_solution becomes zero and it mess up the solution

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

    This is amazing. Specially the visual presentation and how you explained in details.

  • @pai.sudhindra
    @pai.sudhindra 2 ปีที่แล้ว +3

    💯 🔥 So greatly done in explaining and animation. Thanks 🙌

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

    Couldn't have come at a better time. Follow you on Udemy but didn't find this problem there
    Many thanks for posting it !

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

    your videos deserve more views

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

    Brilliant explanation = thank you so much🥰

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

    In the case 1 the complexity should be nPr not nCr as we need to arrange n queens on n^2 space

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

      But the order of queens doesn't matter

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

    Alrite, it is time now for me to play again , the smart one. I was imagining some study in the recent past of my unemploied nobody here but I dont know if it really works nor how well, if it does doing anything more like it. Inspired by the Jacobi technique to solve aproximatively for linear eqs systems we might try iteratve , high precisons yet polynomial order complexty, to compute , in the end of the algo running, the whole amount of the number of solutions for some 20 per 20 board for the N-queens problem. But , as a knowing rule on these computers, nothing gets too easy. :-) And the most important, congratulations for Your work here!

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

    What tools are used to create animations and simulations?
    This is great. Keep going! 💖💖❤❤

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

      Animations with PowerPoint and for the last animation (process when n=5) I made it with Python by generating an image for each state of the board during the process then sticking them to make a video

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

      @@insidecode There is a lot of work. Awesome.

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

    Great programming channel... maybe speed it up 1.25 x and add background music and then you are there

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

    great animation . Thank you

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

      You're welcome!

  • @LucaS-ri3zq
    @LucaS-ri3zq 2 ปีที่แล้ว

    bro thank you for this amazing video

  • @ReneeBryant-o1e
    @ReneeBryant-o1e 4 หลายเดือนก่อน

    Garcia Anthony Thompson Elizabeth Brown Steven