6. Graph Algorithms I
Learning Objectives
By the end of this chapter, you will be able to:
- Describe the utility of graphs for solving various real-world problems
- Choose and implement the right traversal method to find an element in a graph
- Solve the minimum spanning tree (MST) problem using Prim's algorithm
- Identify when to use the Prim's and Kruskal's algorithms to solve the MST problem
- Find the shortest path between two vertices/nodes in a graph using Dijkstra's algorithm
In this chapter, we will study the basic and most commonly used algorithms for solving problems that can be represented in the form of graphs, which shall then be discussed further in the next chapter.