Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Dynamic programming, optimal substructure, overlapping subproblems » ?

Aussi appelé : optimal substructure · overlapping subproblems · dynamic programming

Definition 23.1 University Computer Science — Year 1 · Chapitre 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.

Lire dans le chapitre →