Algorithms

Spring 2011
course
navigation

Feb 24

Next Tues: town meeting day, no class.
Discuss chapters 3 and 4 in Dasgupta: searching graphs, how long, depth-first vs breadth-first, and O(n) operations for various graph properties.
pg 101 :
" three rather different-sounding properties - acyclicity, linearizability, and the absence of back edges during a depth-first search - are in fact one and the same thing. "
Explain what he's talking about, using the described algorithms.
I have a partially completed implementation of the chap 3 algorithms, including a graph-generator, in python; see graphs.py, attached.
In class:
Do a few problems from the end of the chapter: 3.1, 3.24.
If time allows, discuss chapter 4 topics :
One python implementation consistent with chap4 : http://pypi.python.org/pypi/HeapDict
Homework for chap 3, 4 to be due next Thu - no class Tues.
http://cs.marlboro.edu/ courses/ spring2011/algorithms/ notes/ Feb_24
last modified Thursday February 24 2011 2:00 am EST

attachments [paper clip]

     name last modified size
   graphs.py Feb 24 2011 1:29 am 3.93kB