Shortest Path Problem
Given two vertices, find the shortest route between them.
Common algorithm:
Dijkstra's Algorithm
Steps:
1. Start at the source vertex.
2. Assign distance 0 to the source and infinity to all others.
3. Visit the nearest unvisited vertex.
4. Update neighboring distances.
5. Repeat until all vertices are visited.
Applications:
● GPS navigation
● Internet routing
● Logistics planning
Graph Coloring
Graph coloring assigns colors to vertices so that adjacent vertices have different
colors.
Goal:
Use the fewest colors possible.
Applications:
● Scheduling problems
● Register allocation in computers
● Map coloring
Interesting Fact:
Any flat map can be colored using at most four colors. This is known as the Four
Color Theorem.
●