Transitive closure of a Graph (Reachability Matrix)

  Рет қаралды 140,070

Vivekanand Khyade - Algorithm Every Day

Vivekanand Khyade - Algorithm Every Day

5 жыл бұрын

Find transitive closure of the given graph. It is the Reachability matrix.

Пікірлер: 60
@AnnoyedUnicorn
@AnnoyedUnicorn 5 жыл бұрын
I'm a French student the day before my exam, and thank you very much for this video ;)
@coconut1010
@coconut1010 3 жыл бұрын
Pareil c est fou, ya peu de contenu en français sur ça
@AnnoyedUnicorn
@AnnoyedUnicorn 3 жыл бұрын
Oh I failed it btw, but still ^^
@aniketbhoite7168
@aniketbhoite7168 3 жыл бұрын
@@AnnoyedUnicorn ohhh you still came back after a year .....😅
@subhranil_mukherjee
@subhranil_mukherjee 5 жыл бұрын
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 жыл бұрын
I think you are correct.
@AnnoyedUnicorn
@AnnoyedUnicorn 5 жыл бұрын
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".
@craigruchman7007
@craigruchman7007 3 жыл бұрын
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?
@Tyokok
@Tyokok 5 жыл бұрын
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 жыл бұрын
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 жыл бұрын
@@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 .
@jongmagee
@jongmagee 4 жыл бұрын
Big help again, thank you!
@dulamshiva5340
@dulamshiva5340 3 жыл бұрын
sir can you please explain how A will reach to A again in the adjacent matrix...i feel their is a flaw in solution
@revanth6476
@revanth6476 3 жыл бұрын
we can also use bfs right..?
@pg9227
@pg9227 5 жыл бұрын
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
@mayurwarpe2763
@mayurwarpe2763 5 жыл бұрын
Great sir...you have clear my doubt Please make video on DFS algorithm
@joepaul9475
@joepaul9475 5 жыл бұрын
thank you. very useful
@tomsonthomas7658
@tomsonthomas7658 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.
@abdultamim1428
@abdultamim1428 Жыл бұрын
Thank you, sir; it was great. Please send me some material about(Transit function and betweenness) if you have any!
@SOURABHGOLCHHABCE
@SOURABHGOLCHHABCE 5 жыл бұрын
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
@madanagopal5585
@madanagopal5585 3 жыл бұрын
Today my xm this is video is very helpful ❤️
@balasrinivas7517
@balasrinivas7517 5 жыл бұрын
please teach particle swarm algorithm
@tekbssync5727
@tekbssync5727 3 жыл бұрын
please provide the code for this Qs.
@Shree_krishna77
@Shree_krishna77 20 күн бұрын
Thank you sir ❤❤❤❤
@hashcodez757
@hashcodez757 Жыл бұрын
thanks alot sir!!
@arifulislamhabib2937
@arifulislamhabib2937 2 жыл бұрын
Thank You.
@JananiAnbarasan
@JananiAnbarasan 5 жыл бұрын
Sir, please explain TSP!
@rohansodhi4713
@rohansodhi4713 20 күн бұрын
There is no path from A to A So how did you write the path from A to A?
@gangireddyakula6395
@gangireddyakula6395 4 жыл бұрын
Ossm sir I'm easily understand to see ur videos 🥰TQ u so much sir
@tayebdz8581
@tayebdz8581 2 ай бұрын
thank you
@ManiTeluguGamer23
@ManiTeluguGamer23 2 жыл бұрын
Tqu so much sir
@mt03adventures
@mt03adventures 5 жыл бұрын
Ty
@Rexxxxaaa12
@Rexxxxaaa12 2 жыл бұрын
i think the diagonals should be 0 as there is no selfloop
@masakkali9996
@masakkali9996 4 жыл бұрын
Is the transitive closure of this graph is correct??
@pavlos.konstantinidis
@pavlos.konstantinidis Жыл бұрын
nope
@tazelhossan2838
@tazelhossan2838 4 жыл бұрын
Wrong teaching. There is no path for node a. Please check it Again.
@bwbs7410
@bwbs7410 Жыл бұрын
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 5 ай бұрын
You are talking about Adjacent matrix 😅
@jethanpaul818
@jethanpaul818 4 ай бұрын
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.
@samudralashanmukrao2185
@samudralashanmukrao2185 4 жыл бұрын
How can reach form a to a 🤔
@shubhamshejaval8526
@shubhamshejaval8526 3 жыл бұрын
Same doubt bro
@Anime_Animation_Illustration
@Anime_Animation_Illustration 5 ай бұрын
Because it is same node re
@tauchainagoras6044
@tauchainagoras6044 2 жыл бұрын
check this out.. shortest code ever
@setYourHandleHttp404
@setYourHandleHttp404 4 жыл бұрын
7 minutes for only describing a matrix!!! I thought you are also describing the Floyd-Warshall algorithm.
@venkyg6745
@venkyg6745 Жыл бұрын
A to C there is no path ..
@52_sopansharma52
@52_sopansharma52 5 жыл бұрын
galat padha rh ho
@nitinsingh9604
@nitinsingh9604 5 жыл бұрын
Jake khud padh le pahele
@gokuljs837
@gokuljs837 5 жыл бұрын
Teach properly
@ossamabinhassanietstudent3418
@ossamabinhassanietstudent3418 4 жыл бұрын
Abey chutiye.... Loop kahan dikhaaya gaya hai Harr vertex Pai
BFS and DFS algorithm for GRAPHS in Data Structures
30:23
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 61 М.
Pray For Palestine 😢🇵🇸|
00:23
Ak Ultra
Рет қаралды 34 МЛН
Super sport🤯
00:15
Lexa_Merin
Рет қаралды 20 МЛН
Sprinting with More and More Money
00:29
MrBeast
Рет қаралды 118 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100m
00:29
Celine Dept
Рет қаралды 76 МЛН
Warshall's Algorithm (Finding the Transitive Closure)
9:46
Neso Academy
Рет қаралды 237 М.
Closure and composition: Transitive closure
10:16
Douglas Weathers
Рет қаралды 14 М.
Transitive Closure of Relation | Discrete Mathematics in Hindi
6:50
Sandeep Kumar Gour
Рет қаралды 94 М.
Graph Data Structure 4. Dijkstra’s Shortest Path Algorithm
10:52
Computer Science
Рет қаралды 1,4 МЛН
Introduction to Graph in Data Structures : Graph Theory #1
5:15
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 94 М.
Pray For Palestine 😢🇵🇸|
00:23
Ak Ultra
Рет қаралды 34 МЛН