18.04.2013 Views

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Combinatorial Search and Heuristic Methods<br />

Next: Backtracking Up: Techniques Previous: Implementation Challenges<br />

Combinatorial Search and Heuristic<br />

Methods<br />

We have seen how clever algorithms can reduce the complexity of sorting from to , which is good.<br />

However, the algorithmic stakes can be even higher for combinatorially explosive problems, whose time<br />

grows exponentially in the size of the problem. Looking back at Figure will make clear the<br />

limitations of exponential-time algorithms on even modest-sized problems.<br />

By using exhaustive search techniques, we can solve small problems to optimality, although the time<br />

complexity may be enormous. For certain applications, it may well pay to spend extra time to be certain<br />

of the optimal solution. A good example occurs in testing a circuit or a program on all possible inputs.<br />

You can prove the correctness of the device by trying all possible inputs and verifying that they give the<br />

correct answer. Proving such correctness is a property to be proud of. However, claiming that it works<br />

correctly on all the inputs you tried is worth much, much less.<br />

In this section, we present backtracking as a technique for listing all configurations representing possible<br />

solutions for a combinatorial algorithm problem. We then discuss techniques for pruning search that<br />

significantly improve efficiency by eliminating irrelevant configurations from consideration. We<br />

illustrate the power of clever pruning techniques to speed up real search applications. For problems that<br />

are too large to contemplate using brute-force combinatorial search, we introduce heuristic methods such<br />

as simulated annealing. Such heuristic methods are an important weapon in the practical algorist's<br />

arsenal.<br />

<strong>The</strong> take-home lessons from this chapter are:<br />

● Combinatorial search, augmented with tree pruning techniques, can be used to find the optimal<br />

solution of small optimization problems. How small depends upon the specific problem, but the<br />

size limit is likely to be somewhere between items.<br />

● Clever pruning techniques can speed up combinatorial search to an amazing extent. Proper<br />

pruning will have a greater impact on search time than any other factor.<br />

● Simulated annealing is a simple but effective technique to efficiently obtain good but not optimal<br />

solutions to combinatorial search problems.<br />

file:///E|/BOOK/BOOK2/NODE83.HTM (1 of 2) [19/1/2003 1:27:45]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!