Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Branch and bound, bounding function, continuous relaxation?

Também chamado de: branch and bound · bounding function · continuous relaxation

Definition 20.4 University Computer Science — Year 1 · Capítulo 20 — Exhaustive Search and Backtracking

Branch and bound explores the tree of partial solutions of an optimisation problem, keeps the best complete solution found so far, and prunes a node when a bounding function shows that no completion of it can beat that solution. A continuous relaxation of a problem allows fractions where the problem requires whole choices; its optimum is at least the problem’s, and gives a bound.

Branch and bound on four items A, B, C, D of weights 4, 7, 5, 3 and values 40, 42, 25, 12 (decreasing value per unit of weight), capacity 10 (figures/bb_tree.py). The first leaf reached, A and C, is the optimum; its value 65 then prunes both remaining branches. Counted as best counts them (a pruned node is visited, an item that does not fit is not tried), plain backtracking visits 20 nodes here and branch and bound 7.
Branch and bound on four items A, B, C, D of weights 4, 7, 5, 3 and values 40, 42, 25, 12 (decreasing value per unit of weight), capacity 10 (figures/bb_tree.py). The first leaf reached, A and C, is the optimum; its value 65 then prunes both remaining branches. Counted as best counts them (a pruned node is visited, an item that does not fit is not tried), plain backtracking visits 20 nodes here and branch and bound 7.
Ler no capítulo →