Exercises: Algorithm Design
Apr 302018Before attempting these exercises, you should read the posts on algorithm strategies and choosing data types.
Before attempting these exercises, you should read the posts on algorithm strategies and choosing data types.
Perhaps the most difficult part of our process for writing algorithms is splitting a problem into subproblems. This is more an art than a science — there’s no systematic way to identify subproblems, and each problem might be split into subproblems in many different ways.(1)