6.12 Bridges(Cut Edge) in a Graph | Find All Bridges in a Graph | Graph Theory

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.ย. 2024
  • In this video I have explained how to find all Bridges in a Graph using DFS Traversal. Bridge is also known as Cut Edge.
    DSA Full Course: https: • Data Structures and Al...
    ******************************************
    See Complete Playlists:
    C Programming Course: • Programming in C
    C++ Programming: • C++ Complete Course
    Python Full Course: • Python - Basic to Advance
    Printing Pattern in C: • Printing Pattern Progr...
    DAA Course: • Design and Analysis of...
    Placement Series: • Placements Series
    Dynamic Programming: • Dynamic Programming
    Operating Systems: // • Operating Systems
    DBMS: • DBMS (Database Managem...
    ********************************************
    Connect & Contact Me:
    Facebook: / jennys-lectures-csit-n...
    Quora: www.quora.com/...
    Instagram: / jayantikhatrilamba
    #graphtheory #bridgeinGraph #datastructures #jennyslectures

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

  • @ravisingh-el8np
    @ravisingh-el8np ปีที่แล้ว +16

    can't be better explained watched take u forward video techdose video and love babbar video no video comes close to this . This video even beingg so old explains the concept clearly. Really old is gold. Keep up the good work mam.

  • @shayideepsangam2832
    @shayideepsangam2832 4 ปีที่แล้ว +52

    Best Explanation till now on TH-cam for Finding Bridges in Graph!! Thanks a lot, Ma'am.

  • @luco-games
    @luco-games 4 ปีที่แล้ว +60

    I watched 10 different videos and understood only yours! Thank you SOOO MUCH!!! Greetings from Sydney :)

  • @sanjayulsha
    @sanjayulsha 4 ปีที่แล้ว +16

    Very well explained with thought process & intuition, struggled with other videos on youtube.

  • @adipratapsinghaps
    @adipratapsinghaps 4 ปีที่แล้ว +11

    Great explaination. I have seen so many videos. Yours was the simplest and the clearest. Can you also write the code?

  • @mahtoji8935
    @mahtoji8935 9 หลายเดือนก่อน +2

    I don't think that the explanation for this concept can be better than this .. If you watch any of the others youtube channel no one has explained this concept in such a beautiful wayy..... Salute to your Knowledge mam

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

    this is by far the best explanation of this topic i have found online

  • @inspired_enough_to_grow_up
    @inspired_enough_to_grow_up 4 ปีที่แล้ว +108

    I approach a girl,
    she : 6:46

    • @170_adityaanmol8
      @170_adityaanmol8 4 ปีที่แล้ว +1

      haha

    • @bitbyte8177
      @bitbyte8177 4 ปีที่แล้ว +1

      Happens with me every-time when I approach any girl x(

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

      I was stressing out for the exam. Thanks for your comment haha

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

      i don't think i will ever forget this algorithm - thanks to this :)

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

      🤣😆

  • @asfahanahmad7959
    @asfahanahmad7959 4 ปีที่แล้ว +6

    your way of teaching is good thank for this vedio

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

    thank you so much, most detailed explanation on this topic all over youtube is here

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

    Apologies, I never refer your videos to study. But from this video, I became your fan.
    Such a tough concept is explained beautifully.
    Here is Java code, did what Jenny said.
    ```
    class Solution {
    private int currTime;
    Solution(){
    this.currTime = 0;
    }
    public List criticalConnections(int n, List connections) {
    List[] graph = new ArrayList[n];
    // Construction of graph
    for(int i = 0; i < n; i++){
    graph[i] = new ArrayList();
    }
    for(List connection : connections){
    int first = connection.get(0);
    int second = connection.get(1);
    graph[first].add(second);
    graph[second].add(first);
    }
    int[] tIn = new int[n];
    Arrays.fill(tIn, -1);
    List result = new ArrayList();
    findBridges(graph, 0, -1, tIn, result);
    return result;
    }
    private int findBridges(List[] graph, int node, int parent, int[] tIn, List result){
    tIn[node] = ++currTime;
    List nbrs = graph[node];
    int min = tIn[node];
    for(int nbr : nbrs){
    int val = tIn[nbr];
    if(val == -1){
    val = findBridges(graph, nbr, node, tIn, result);
    if(parent != nbr)
    min = Math.min(val, min);
    if(val > tIn[node]){
    result.add(Arrays.asList(node, nbr));
    }
    }
    if(nbr != parent){
    min = Math.min(min, tIn[nbr]);
    }
    }
    return min;
    }
    }
    ```

  • @hope-jh7bv
    @hope-jh7bv 3 ปีที่แล้ว +4

    Thank you so much ma'am. You taught this complex topic so easily.

  • @Page_Turners_Hub
    @Page_Turners_Hub 4 ปีที่แล้ว +8

    she teaches so amazingly , wondering why she has so less subs ? She deserves way more

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

    imo, This is one of the most Well Explained YT Video of all time.
    Hats off to you Maam ❤❤

  • @UjjwalSingh-e6j
    @UjjwalSingh-e6j 2 หลายเดือนก่อน

    okk let's be true, i am completing my DSA from love babbar playlist, although i've watched several of your videos earlier but it was mainly for my college subjects. And by god, this algo is so freaking hard, couldn't understand it by love babbar or any other video on youtube, but the way you presented it, it's just phenomenal. Hats off to you, you're the best. RESPECT++.

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

    This is such a great video and hats of to your explanation. Please keep up the good work and I must tell you that you are doing a great job :)

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

    What a Fantastic Explanation!!! Thanks Jenny, you're an Angel.

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

    After seeing many videos for this problem...Only yours gave answer to my desperation .. thank you so much Jenny..

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

    Excellent work Jenny !!!!!

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

    A little correction. At 4:00, you said B can go to A only. But it can go to E too.

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

    a comprehensive video that contains all the details, ++rep

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

    ma'am you're fabulous. I watched so amny videos of tarjan's algo as well but couldn't understand. The way you explained. Hats off. You're the best

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

    I don't know how can i thank you mam . know one in yt explain this concept perfect just like you

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

    Understood it in one go...Amazing🔥🔥

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

    this is fabulous, most precise n clear explanation for Tarjan's algorithm

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

    Mam, nobody explained the way you explained this bridges concept clearly. I was soo confused but you explained soo well. Thankyou soo much mam

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

    Ahh....Finally I understood the concept with your video. Thanks!!

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

    8:56 is the min discovery time 2 from edge F. You said its 1 from edge E but discovery time of edge E is 7. Kindly explain what did i miss here?

  • @2020naruto
    @2020naruto 2 ปีที่แล้ว

    best explanation till now on youtube for finding bridges in graph....Thanks a lot ma'am....ma'am please also do with the code as if possible so that we don't need to find of its code . if we get confused some how ..?

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

    After trying to understand it so many times I came to youuu , explanation is best!!

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

      And we meet again!! 😂

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

    Thank you for this lecture.... well explained

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

    Jenny! mai to tharro fan ban gaya!!! Thank you!

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

    hello mam ye starting time or ending time lena jaruri hai kya simple visited array bna kr nhi kr skte kya?

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

    Best explanation till now on TH-cam

  • @003abhinashkumarjha8
    @003abhinashkumarjha8 2 ปีที่แล้ว

    no doubt this is the best explanation of finding bridge on youtube

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

    5:19 "What is the FANDA" XD
    Well Explained!!!

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

      You may call it "concept behind it"

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

    Very good explanation. Understood very well, and am able to write program all by myself. Thanks Mam.

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

    Wonderful explanation!

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

    Well explained ! It would be nice to have the entire video in English! This can attract lot of international candidates.

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

    I came here after more than 1 yr , you again rock ma'am 🤟 ..

  • @hariohmprasath
    @hariohmprasath 4 ปีที่แล้ว +1

    Thanks a lot for all your wonderful lectures

  • @PankajYadav-oj9jz
    @PankajYadav-oj9jz 4 ปีที่แล้ว +4

    It was an amazing explanation mam. Love u😊

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

      Thanks Pankaj.... Thank you for the support. It’s great to be part of your success.

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

      @@JennyslecturesCSIT Can I have the code?

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

    Your Explanation is awesome

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

    Very nice mam Now I able to understand intitution and logic of this algorithm

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

    Very nice explanation ma'am. I don't understood about this find all bridges algo on other yt channels.

  • @krishnachaitanya2520
    @krishnachaitanya2520 4 ปีที่แล้ว +1

    Great explanation! Thank you.

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

    TIP: Reason why we need to check of the current min time is greater than the next vertex :- If a vertex is having a child such that the earliest discovered vertex that can be reached from the vertices in the subtree rooted at has a discovery time greater than or equal to , then does not have a back edge, and thus will be an articulation point. where back edge is an edge which can connect to the parent of parent.

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

    Now I got the real intuition behind , why are we keep tracking of lowest visited time of adjacent vertices .Thanks for explanation.

  • @maneeshkumarpatel9874
    @maneeshkumarpatel9874 4 ปีที่แล้ว +1

    But ma'am i don't know anyone who is better than you... love your lectures

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

    Thanks a lot, i have spent more time on that but now i got it.

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

    Best and clearest explanation!

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

    What an awesome explanation!

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

    great explanation

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

    Brilliant Explanation

  • @Shadow-lx9rh
    @Shadow-lx9rh 2 ปีที่แล้ว

    Thank you understood the concept very well. 🙏

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

    Underrated!

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

    Thank you for the detailed explaination

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

    Thanks for such a brilliant explanation!

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

    Your video is awesome. Thanks for helping us out.

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

    wow vey well explained

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

    is this video a bit erroneous ? At 18:25 , starting time of node c is told to be 1 not 4 .

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

    Can you please extend this video to explain articulation nodes and how to eliminate articulation from the graph -> can we add any edge from the articulation point.

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

    coming here after watching striver/take u forward's video

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

    nice explanation!!

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

    Thanks for this amazing explanation...

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

    very well done , explain was simple and lucid

  • @interesting.finds.1857
    @interesting.finds.1857 2 ปีที่แล้ว

    Nice explanation mam

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

    Thank You Ma'am

  • @RahulKumar-tg5zb
    @RahulKumar-tg5zb 4 ปีที่แล้ว +3

    Plz mam explain it's algo with code🙏🙏

  • @DrakeHDxgaming
    @DrakeHDxgaming 6 หลายเดือนก่อน

    wow this took a while to abosrb. Its a mental gymnastic in my head at start

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

    Best Explanation 👍

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

    Thank you! Very good explanation!!!

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

    Amazing explanation!!

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

    Great Explanation!

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

    Jenny: "I know someone who is better than you because he came before you"
    Me: *crying in the corner*

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

    Good explanation. Very Useful. Thanks a lot. :)

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

    Very good explanation.

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

    Great explanation.

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

    It was Very helpful 😍

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

    well explained

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

    I don't know someone whose explanation on this topic is better than you.

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

    Thank you !

  • @PriyankaSingh-pn8xv
    @PriyankaSingh-pn8xv 3 ปีที่แล้ว

    Amazing explanation

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

    Very well explained :D Thanks!

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

    which book is best for graph algorithm , please tell me

  • @rakeshkumarbiswal9489
    @rakeshkumarbiswal9489 4 ปีที่แล้ว +1

    best explanation

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

    Amazing Mam

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

    superb explanation !!!

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

    Good explanation. Thanks

  • @zohaib._.rehman03
    @zohaib._.rehman03 5 หลายเดือนก่อน

    Thanks alot mam❤❤

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

    really very nice explaination

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

    Thank you so much!! Your videos have helped me alot :-). You are beauty with brains :--)

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

    excellent explanation 💯

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

    A lot of thanks, I was struggling to understand it.

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

    Thanks 🙏🏽👍

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

    awesome explanation maam

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

    Thanks

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

    wew the best explanation.

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

    Tq so muchh mam 💖

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

    Thank you :)