全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Dynamic programming, optimal substructure, overlapping subproblems?

又称: optimal substructure · overlapping subproblems · dynamic programming

Definition 23.1 University Computer Science — Year 1 · 第 23 章 — Dynamic Programming

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.

在原文中阅读 →