Iterative Deepening

แชร์
ฝัง

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

  • @jivey5123
    @jivey5123 3 ปีที่แล้ว +134

    It's a rare gem to hear CS lectures in a understandable accent.

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

    Probably the best cs teacher i have seen deserves a subscribe

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

    It would be very good, if the videos were numbered. Especially if on video is referred to in another.
    Thank you for excellent material.

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

    ThankYou Sir. Easy to understand explanation.

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

    Nice video, you can also explain CSP (Constraint Satisfaction Problems)

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

    Very good explanation, thank you.

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

    Thanks, good explanation

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

    Thanks for helping again!!!

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

    Thank you sir (I wanted to mention that you are very similar to the actor in lost called Benjamin) Love you sir

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

    Please sir put videos on bidirectional searches. Also point out the real world scenarios where each type of search is suitable.

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

    Thank you very nice video.

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

    Great explanation, but the camera's auto-focus seems to be on and the image keeps zooming in and out.

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

    *Modified DFS with a bound. You only continue going down the tree to nodes that take d or less steps to get to.
    Thanks for the video!

  • @SentryProductions1
    @SentryProductions1 6 ปีที่แล้ว +9

    Good videos, these have assisted me with understanding these algorithms. However, an example of Iterative Deepening with DFS with depth bound of k + 3 would have been good to see. Although Iterative Deepening is quick with DFS I think it repeats its work. For example, it repeats work of k when traversing to k+1 and it repeats work of k and k+1 when traversing to k+2 etc etc...

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

      but it has already explored nodes so whether it repeats it doesnt take more time or space

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

    we love you

  • @ze4116
    @ze4116 6 ปีที่แล้ว

    When will more videos be uploaded, please thanks.

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

    thank you sir

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

    my goat

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

    Hi, is this the same as iterative deepening A* search?

  • @que_93
    @que_93 5 ปีที่แล้ว +10

    A depth limit of value 3 or 4 would have been more insightful. And you forgot to mention on how the nodes are generated repeatedly. Like for depth limit 2, the root will be generated 3 times, and nodes at level 1 will be generated two times and likewise​.

    • @johnlevine2909
      @johnlevine2909  5 ปีที่แล้ว +8

      Thanks for the feedback! I'm going to redo this one with your suggestions :-)

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

    Sorry but at 03:03 are you saying that we can't search B because our depth limit is a maximum of 2 but if it was a maximum of 3 - you would then search B. However you have already placed a dead end on it even before you find the goal state. This bit is slightly confusing but nice clear explanation

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

      Since this is a variation of DFS, we see we cannot go beyond our depth limit so B's neighbors cannot be expanded yet.

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

    When you increase the depth limit, do you start from the start state again and do all those expansions again?

    • @hisetip
      @hisetip 5 ปีที่แล้ว +10

      Yes. Every Iteration you start from the start.
      Now you may think: "oh but then thats way too costy than just doing deep first". But it's not. Because every time n increments, the number of nodes (generally in normal graphs) exponentially increments too. What I'm saying is: in most graphs, level n has more nodes than levels (n-1)+(n-2)+...+1

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

    What are the explored states? It is SA?

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

    3:20 you found the goal, but now the way you check all nodes seems the same like BFS for me. If you wouldve applied BFS you wouldve found the same solution, and did not even check all things twice or three times. My question is, how is this different from BFS and how can this be better than BFS

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

      @@H0llowed8D Yes that is for the last iteration, but before that iteration those nodes were checked right? Or am I missing something? At 2:00 he checks all the nodes at Level 1 as well, so the B and D at level 1 are checked. For me this still looks like BFS since you only make it 1 deeper per iteration

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

      The main difference lies in the memory space being used to store the frontier.
      BFS stores all the nodes at the depth that the algorithm is currently in, so if a level has 99 nodes, at some point BFS would need that memory space to store all of them.
      On the other hand DFS only stores the frontier nodes that are on it's current path, therefore at the same depth, DFS would use strictly less memory space than BFS during the search.
      (therefore if you have infinite memory space, then yes BFS is faster than iterative deepening search)
      The problem with DFS is that it is possible for the algorithm to go down a wrong path that is extremely long, therefore wasting even more time than using iterative deepening search.

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

      @@zucchinirosti Thank you for the explanation!

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

    Can you post a video on IDA* please?

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

    focus messed up

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

    Poor explanation, forgot to mention on how the nodes are generated repeatedly.

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

    The explanation is wrong! His algorithm is no difference with breadth first search!!!

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

      I should have rubbed out the tree after d = 1, but this is not breadth first search. It is depth-limited depth first search, starting with a depth limit of 0, and increasing this depth limit incrementally until a solution is found.

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

      @@johnlevine2909 Btw, in IDS, if we are solving a sliding puzzle using tree search, do we take into account of redundant/loop path?

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

      This is totally different from BFS. You can see at level 2, the BFS could have expanded other two nodes also. But here with ID, it does just expanded the left most node and done with it at level 2.