BFS DirectedGraph

Поділитися
Вставка
  • Опубліковано 31 гру 2024

КОМЕНТАРІ •

  • @itsmeakash_
    @itsmeakash_ 2 роки тому +11

    This guy is so calm and teaches well. But WTF does he have only 500 subs. He deserves so much more dude

  • @mariamkakhadze1812
    @mariamkakhadze1812 11 місяців тому +3

    such good explanation doing this a day before my exam and I am sure it will get me a high score

  • @magebomba318
    @magebomba318 4 роки тому +3

    Thanks for taking the time to upload. This helped me.

  • @rajkumararora7366
    @rajkumararora7366 2 роки тому +1

    Very well explained. Liked it the way content is presented. Thank you for sharing!

  • @avenger1898
    @avenger1898 3 місяці тому

    Thank you sir , Helps a lot ....

  • @giwrgoscy294
    @giwrgoscy294 Рік тому +2

    Thanks mom

  • @Softech_Gyan212
    @Softech_Gyan212 4 роки тому

    Good job sir.

  • @mohandas3212
    @mohandas3212 3 роки тому

    For the same graph if b->a is there instead of a->b ... N if I start from a... I'll not visit any graph nodes except for a... Could you please explain this?

    • @TuringMachines
      @TuringMachines  3 роки тому +2

      Your doubt is genuine. For the sake of simplicity one has to call BFS function on each node and there are to be separate data structure to avoid duplicate.
      www.geeksforgeeks.org/breadth-first-search-or-bfs-for-a-graph/
      See above for more details.
      I should make another video part b ) to include that case but your observation is right

  • @zxynb
    @zxynb 3 дні тому

    ABDCEF IS ALSO A RIGHT ANSWER TO THIS PROBLEM ,RIGHT?

  • @zunaedaman6421
    @zunaedaman6421 Рік тому

    it was helpful. thanks

  • @joysharma_07
    @joysharma_07 8 місяців тому +1

    was this directed or non directed graph?

  • @harshgupta9761
    @harshgupta9761 3 роки тому

    If we chose first vertex f then how we can traverse now

  • @arabrobottech-1243
    @arabrobottech-1243 4 роки тому +2

    DFS 1= a,b,c,d,e,f
    DFS2 = a.b,d,e,f,c
    are theses rights answer? please help me i understand we can try in aplanatic order or depth and can generate multi answer ?? thank you

    • @gamingnation6756
      @gamingnation6756 3 роки тому

      Yess the Answers are not unique as. Multiple directed vertices can be pushed in queues in bfs and stacks in dfs in any order

    • @soumikmitra5993
      @soumikmitra5993 Рік тому

      A,b,d,c,e ,f

  • @pierreracine128
    @pierreracine128 5 місяців тому

    ty

  • @ermhs95
    @ermhs95 Рік тому +6

    His accent is good. Most of Indians speak english like Indian

  • @NikhilSingh-mp3uc
    @NikhilSingh-mp3uc 10 місяців тому

    tell the answer of the question you asked in min.

  • @alanjoseph1101
    @alanjoseph1101 2 роки тому

    Tks pp🙌