Top 10 graph problems?

Top 10 graph problems?



1. Breadth First Search (BFS)
2. Depth First Search (DFS)
3. Shortest Path from source to all vertices *Dijkstra*
4. Shortest Path from every vertex to every other vertex *Floyd Warshall*
5. To detect cycle in a Graph *Union Find*
6. Minimum Spanning tree *Prim*
7. Minimum Spanning tree *Kruskal*
8. Topological Sort
9. Boggle (Find all possible words in a board of characters)
10. Bridges in a Graph

Popular posts from this blog

After analyzing the model, your manager has informed that your regression model is suffering from multicollinearity. How would you check if he's true? Without losing any information, can you still build a better model?

Is rotation necessary in PCA? If yes, Why? What will happen if you don't rotate the components?

Given that merge sort splits the array into 2, performs a recursive call on each of the 2 arrays, and repeats until the base case of 1 or less items in an array is reached, how many levels of recursion are there and why?