Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
graph_theory [2019/01/01 21:59]
paul [Graph Terminology]
graph_theory [2020/08/23 17:12] (current)
Line 45: Line 45:
 Basic graph coloring algorithm for $G=(V,E)$ Basic graph coloring algorithm for $G=(V,E)$
  
-    - Order the nodes $V_1, V_2 .. V_n$ +    - Order the nodes $V_1, V_2 .. V_n$ 
-    - Order the colors $C_1, C_2 .. C_k$ +    - Order the colors $C_1, C_2 .. C_k$ 
-    - For $i = 1,2 ... n$ assign lowest legal color for $V1$+    - For $i = 1,2 ... n$ assign lowest legal color for $V1$ 
 + 
 +===== Topological Sorting ===== 
 + 
 +[[https://www.youtube.com/watch?v=jonc-AGbPQo|Intro video on topoligical sorting.]] 
 + 
 +==== Kahn's Algorithm for Topological Sorting ==== 
 + 
 +[[https://www.youtube.com/watch?v=tFpvX8T0-Pw|Video on Kahn's algorithm of topological sorting.]] 
 + 
 +Everyime we visit a vertex, we decrement the number of depencies it has. 
 + 
 +This is a good explanation of the Alien Dictionary problem: [[https://leetcode.com/problems/alien-dictionary/discuss/157298/C%2B%2B-BFS-and-Topoligical-Sort-with-explanation|link]]. 
  • graph_theory.1546379958.txt.gz
  • Last modified: 2019/01/01 21:59
  • by paul