Assignment 2 due by the end of class Wednesday January 24 2001.
  1. for the following graph
    1:  5 6 12
    2:  4 8 9 11
    3:  9 11
    4:  2 8
    5:  1 6
    6:  1 5 12
    7:  12 13 
    8:  2 4
    9:  2 3 12
    10: 12
    11: 2 3
    12: 1 6 7 9 10
    13: 7
    
  2. by modifying breadth first search, design an algorithm which takes a connected graph as input, and returns either a 2-colouring of the vertices, or an odd cycle [hint: 2-colour until you finish or get stuck], and
  3. repeat the previous question by modifying a recursive version of depth first search