Programs for 104L, David Kempe, USC. Coded in C/C++.