CPS616 Practice problem presented in the book, The Design and Analysis of Algorithms 3rd Edition by Anany Levitin. AddisonWesley 2012 ISBN-13: 978-0-13-231-681-1