Study

Graph Cost

Flashcards
1 / 0
graph weighted graph graph metric cost function edge weight path cost scalar numeric
πŸ’¬ Click on the content to Ask AI
Explore More
πŸ”₯ minimum spanning tree β†’ MST is defined by minimizing the total edge weights; its greedy algorithms (Kruskal, Prim) and correctness proofs rely on cost orderings and cut/cycle comparisons derived from the graph's weight model.
πŸ”₯ shortest path β†’ Shortest path algorithms minimize cumulative edge weights; the cost model defines path weight and dictates algorithm choice (e.g., non-negative costs -> Dijkstra, negative edges -> Bellman-Ford).
πŸ”₯ maximum spanning tree β†’ A maximum spanning tree is defined by maximizing the sum of edge costs; it requires a well-defined edge-weight (cost) function and comparisons over those costs. Algorithm choices (e.g., Kruskal/Prim variants) operate by ordering edges by cost and rely on properties of the cost model (ties, negative weights, density).
🌟 greedy algorithm β†’
🌟 single-pair shortest path β†’
🌟 all-pairs shortest path β†’
🌟 single-source shortest path β†’
⭐️ prim algorithm β†’
⭐️ kruskal algorithm β†’
⭐️ dijkstra algorithm β†’
⚑️ network flow β†’
⚑️ max flow β†’
⚑️ min cut β†’