Algorithms

Spring 2015
course
navigation

assignments

  due Tue Jan 27

getting started

  due Tue Feb 3

analysis and "big-O" notation

  due Tue Feb 10

linked lists and C

  due Tue Feb 17

recursion

  due Tue Feb 24

searching

  due Tue Mar 3

sorting

  due Tue Mar 10

trees and heaps

  due Fri Mar 13

midterm sorting project

  due Tue Apr 7

graph basics

and a cyclic graph
Pick any node, call it X. From X, do a depth-first search, and from that find the maximum depth and a vertex furtherst down, call it A. Now starting at A, do another depth first search, and find the deepest node from A, call it B. Return the diameter (we hope) as the depth from A to B.
Consider running this on a tree (an acyclic undirected connected graph) and a cyclic graph, like the two illustrated above. Does the algorithm work in either of these cases? Explain why you think so. What is it's O() behavior? Extra credit: prove your claim in both cases.
  due Tue Apr 14

graph algorithms 1

  due Tue Apr 21

graph algorithms 2

  due Tue Apr 28

compression 1

  due Tue May 5

compression 2

  due Fri May 8

final project

 

term grade

http://cs.marlboro.edu/ courses/ spring2015/algorithms/ special/assignments
last modified Wednesday April 5 2017 1:33 pm EDT