UCLA CS180 Algorithms and Complexity Part-6