Input - Edges.
Data Struct. - You decide !
Output - Transitive Closure in adjacency matrix.
order - O(n^2) .

(Transitive closure => If 2 points i and j are connected (though not
directly) in the graph, then they are directly connected in the
closure.)

Any nice solution? (I solved using basic DP , but i think there must
exist a better solution)

--

You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.


Reply via email to