Decrease and conquer algorithm