Applications of BFS and DFS

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

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

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

    Thank you very much for these applications. It helped me solve many questions .

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

    Brilliant Stuff! Thanks a lot for sharing.

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

    Very Informative. Thanks

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

    is minimum no.of edges to be removed to make a graph acyclic is no.of back edges??

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

    @14:00 he says a cross edge cant go from lower vertex to higher vertex but in the diagram he has drawn the edge from 4 to 8 . Can any one explain how ?

    • @abhishekpundir575
      @abhishekpundir575 6 лет назад +6

      I think what he means is that cross edge can't go from a lower to higher vertex based upon their starting and finishing time , like we can't have cross edge from vertex 2 to 4 because if we would have such an edge then we would discover 4 using 2 rather than going back to 1 and then going to 4.

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

      by higher vertex he means ancestor and by lower vertex he means descendant, 8 is not ancestor of 4 ....

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

      Think of a cross edge as an edge connecting siblings in the tree

    • @ritwik121
      @ritwik121 3 года назад +3

      ruclips.net/video/RDA1nGsEVLY/видео.html -> here is the updated video by the same professor.... he explained ur confussion clearly in the updated video. He was basically saying - A edge from node 'u' to node 'v' can be marked as a cross edge if both the vertices dont share a ancestor descendant relationship and also node 'v' 's starting time should be more than node 'u' 's finishing time.

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

      He says higher number, not vertex. By number, he means DFS number.
      Since DFS number are chronological, thus if Y has higher DFS number than X, Y was encountered later than X.
      Thus, only a cross edge Y->X can exist. If an edge X->Y exists, Y will be explored while exploring X, and thus would become a child.