CS141-8: Algorithms and Complexity