Transitive closure of a Graph (Reachability Matrix)

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ส.ค. 2018
  • Find transitive closure of the given graph. It is the Reachability matrix.

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

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

    I'm a French student the day before my exam, and thank you very much for this video ;)

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

      Pareil c est fou, ya peu de contenu en français sur ça

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

      Oh I failed it btw, but still ^^

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

      @@AnnoyedUnicorn ohhh you still came back after a year .....😅

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

    My text book mentions transitive closure but did not give an example. Thanks so much for the clear example. Question: Closure is when we perform said operations on ALL vertices without adding any new elements to our set. Yes? Also, the edges don’t alow paths in both directions. So this makes it non-commutative. If they were bi-directional, it would be commutative - yes?

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

    Big help again, thank you!

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

    sir can you please explain how A will reach to A again in the adjacent matrix...i feel their is a flaw in solution

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

    Great sir...you have clear my doubt
    Please make video on DFS algorithm

  • @subhranil_mukherjee
    @subhranil_mukherjee 6 ปีที่แล้ว +32

    sir i don't think in a directed graph each vertex is obviously reachable to itself. i think what it means is "starting from a vertex v, can we get back to v following any path in the graph?". Let me know your thoughts.

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

      I think you are correct.

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

      With the methode I learned with my math professor, we addition to the identity Matrix, so obviously, he is right ;)

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

      of course not, but that's not what the graph is saying. think, if we knew that [2,1] is a path, then of course [2,1] -> [1,1] is also a valid way to reach node 1. if the matrix is not made this way the algorithm will fail

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

      Yes u are correct i guess

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

      You're right. Otherwise, the diagonal from left-to-right would always be filled with 1's in the transitive closure and that would not convey much useful information. Also, in the video, you cannot reach A starting from A (there exists no path, at 1:10) but he marked it as 1 in the transitive closure, which means he actually meant that "it is obvious every vertex can reach itself".

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

    sir your videos on graph theory is good and no doubt everybody can easily understand. sir i am requesting you please make videos on graph coloring ,vertex coloring,np completeness and linear programming in graph theory. I am eagerly waiting for response. Thanking you sir

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

    sir can u upload more questions on dynamic programming for interview purpose
    and sir upload daily one algorithm please sir i request you you should daily upload one algorithm please sir

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

    we can also use bfs right..?

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

    thanks for the video! quick Question: is diagonal always 1? meaning any vertex can reach itself? it doesn't need a self-circle edge? i thought without self-circle edge self reach=0.

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

      I learned it this way as well...

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

      @@vibranteye4369 what you mean? can you make it clear please? So it should 0 or 1, and the meaning of each? Thanks a lot!

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

      Noo here if we start from say a.. we will get back to a ; So here we'll take diagonal as 1.. i.e. if we do have a closed path for any vertex we can take its diagonal one as 1 or else 0 ..

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

      @@manognadevineni8901 so you saying regardless we have self-circle edge, we always set diagonal to 1, like convention ?

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

      @@Tyokok if a node has a self circle then its quite good it will be having 1 in its diagonal...but here look into the question if we start from 1 we will get back to 1.. that means a path exsits .. so we will take it as 1 .

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

    thank you. very useful

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

    In a digraph D, prove that a vertex y is reachable from a vertex x if and only if D
    contains an (x, y)− path.
    2. Show that a digraph D is strong if every vertex of V (D) is reachable from every vertex
    other vertex of V (D).
    3. Show that a digraph D is strong if and only if it has a closed Hamilton walk.
    4. Develop a strong digraph D = (V, A) and extract possible separator from D.

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

    please teach particle swarm algorithm

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

    Sir, please explain TSP!

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

    please provide the code for this Qs.

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

    There is no path from A to A
    So how did you write the path from A to A?

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

    Today my xm this is video is very helpful ❤️

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

    thanks alot sir!!

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

    this is wrong. First, this isn't how the algorithm to obtain the transitive matrix is preformed. Second, a path from A to A signifies a looped edge. Thus, all values on the main diagonal [top left corner to bottom right corner] should all be zero because this graph has no looping edges.

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

      You are talking about Adjacent matrix 😅

    • @jethanpaul818
      @jethanpaul818 5 หลายเดือนก่อน +1

      you're confusing between adjacent matrix representation of a graph and transitive closure , get a book cormen to be specific and see the algorithm on transitive closure maybe you can understand that he is correct.

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

    Thank You.

  • @Shree_krishna77
    @Shree_krishna77 หลายเดือนก่อน +1

    Thank you sir ❤❤❤❤

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

    Thank you, sir; it was great.
    Please send me some material about(Transit function and betweenness) if you have any!

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

    Tqu so much sir

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

    i think the diagonals should be 0 as there is no selfloop

  • @tayebdz8581
    @tayebdz8581 3 หลายเดือนก่อน

    thank you

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

    Ossm sir I'm easily understand to see ur videos 🥰TQ u so much sir

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

    Ty

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

    Is the transitive closure of this graph is correct??

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

    How can reach form a to a 🤔

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

    7 minutes for only describing a matrix!!! I thought you are also describing the Floyd-Warshall algorithm.

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

    Wrong teaching. There is no path for node a.
    Please check it Again.

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

    check this out.. shortest code ever

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

    A to C there is no path ..

    • @deepakshidahiya540
      @deepakshidahiya540 23 วันที่ผ่านมา

      Direct path from a to c is not there. But indirectly we can approach c from a by d in middle.

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

    galat padha rh ho

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

    Jake khud padh le pahele

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

    Abey chutiye.... Loop kahan dikhaaya gaya hai Harr vertex Pai

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

    Teach properly