UCLA CS180 Algorithms and Complexity Part-5