A problem has optimal substructure when an optimal solution of an instance is made of optimal solutions of smaller instances, its subproblems. It has overlapping subproblems when a recursive solution meets the same subproblems many times. Dynamic programming solves such a problem by computing the answer of each subproblem once, from the answers of smaller ones, and storing it.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表
什么是 Dynamic programming, optimal substructure, overlapping subproblems?
又称: optimal substructure · overlapping subproblems · dynamic programming