Algorithms

Spring 2011
course
navigation

Feb 21

Discuss homework : questions / comments.
Example of binary tree in C (with graphviz output!) :
And an example of plotting with gnuplot (scriptable!) :

graphs

Start talking about material in chapter 3 of the text : graphs.
Is my binary tree in C one of these? Which?
"explore" algorithm; pg 95 Dasgupta. Define "tree edges" and "back edges". Define "forest".
Connectivity: how can we determine if a graph is connected?
Talk about "depth first search", and recursion: a natural fit for graphs.
DAG : directed acyclic graph
So: read chapter 3; expect an assignment from it - and maybe some from chap 4 (shortest paths) as well - for next week.
In the meantime: think about how would you implement a breadth-first search.

tools

http://cs.marlboro.edu/ courses/ spring2011/algorithms/ notes/ Feb_21
last modified Monday February 21 2011 10:57 pm EST