CS 535 Design and Analysis of Algorithms