All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Subproblem, dynamic programming?

Also known as: subproblem · dynamic programming

Definition 28.1 High School Computer Science · Chapter 28 — Dynamic Programming

A subproblem of a problem is the same problem on a smaller input, whose solution helps build the solution of the whole. Dynamic programming solves a problem whose subproblems overlap by solving each subproblem once, recording its solution, and building larger solutions from the recorded ones.

Read in context →