Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
graph_theory [2019/01/01 21:55] paul [Graph Terminology] |
graph_theory [2020/08/23 17:12] (current) |
||
---|---|---|---|
Line 42: | Line 42: | ||
Def. Minimum value of $k$ for which such a coloring exists is the chromatic value. $χ(G)$ | Def. Minimum value of $k$ for which such a coloring exists is the chromatic value. $χ(G)$ | ||
+ | |||
+ | Basic graph coloring algorithm for $G=(V,E)$ | ||
+ | |||
+ | - Order the nodes $V_1, V_2 .. V_n$ | ||
+ | - Order the colors $C_1, C_2 .. C_k$ | ||
+ | - For $i = 1,2 ... n$ assign lowest legal color for $V1$ | ||
+ | |||
+ | ===== Topological Sorting ===== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | ==== Kahn's Algorithm for Topological Sorting ==== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Everyime we visit a vertex, we decrement the number of depencies it has. | ||
+ | |||
+ | This is a good explanation of the Alien Dictionary problem: [[https:// | ||
+ |