Algorithm Design and Analysis Task