Iterative Deepening

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

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

  • @jivey5123
    @jivey5123 3 года назад +164

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

  • @bamboom9184
    @bamboom9184 3 года назад +6

    Probably the best cs teacher i have seen deserves a subscribe

  • @patrickmayer9218
    @patrickmayer9218 9 месяцев назад

    *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!

  • @antonsavenkov5379
    @antonsavenkov5379 5 лет назад +3

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

  • @yutakoike7519
    @yutakoike7519 9 месяцев назад

    Thanks for helping again!!!

  • @abhirustagi6969
    @abhirustagi6969 6 лет назад +4

    ThankYou Sir. Easy to understand explanation.

  • @arthborg
    @arthborg 6 лет назад +4

    Very good explanation, thank you.

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

    we love you

  • @maryrooster8737
    @maryrooster8737 6 лет назад +5

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

  • @ericklarac
    @ericklarac 6 лет назад +4

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

  • @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 года назад +1

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

  • @que_93
    @que_93 6 лет назад +11

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

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

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

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

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

    Thank you very nice video.

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

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

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

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

  • @阿尤什
    @阿尤什 5 месяцев назад

    I am Arab and I take him in high school

  • @dhruvaharit6385
    @dhruvaharit6385 9 месяцев назад

    my goat

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

    thank you sir

  • @Oldschool747
    @Oldschool747 6 лет назад

    Thanks, good explanation

  • @ze4116
    @ze4116 6 лет назад

    When will more videos be uploaded, please thanks.

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

    focus messed up

  • @motorheadbanger90
    @motorheadbanger90 6 лет назад +5

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

    • @hisetip
      @hisetip 6 лет назад +11

      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

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

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

  • @R4G3QU1TT
    @R4G3QU1TT 5 лет назад +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 4 года назад +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 Год назад

      @@zucchinirosti Thank you for the explanation!

  • @enjalparajuli8832
    @enjalparajuli8832 6 лет назад +1

    What are the explored states? It is SA?

  • @caseyswebwaves3870
    @caseyswebwaves3870 6 лет назад

    Can you post a video on IDA* please?

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

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

  • @justicez6255
    @justicez6255 6 лет назад +1

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

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

    • @Randome0205
      @Randome0205 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 4 года назад +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.