[Algorithm Design and Analysis] Chapter 2 Enumeration Algorithm

Chapter 2 Enumeration Algorithm

Basic idea

Enumerate all the situations involved in the problem, and check one by one which are the solutions to the problem and which should be excluded according to the conditions put forward by the problem.

effect

1. In theory, it can solve various problems in the computing field.
2. The scale of the problem is not large, the calculation speed is acceptable, and it is not worthwhile to design more efficient algorithms.
3. As the bottom line
4. The basis for other algorithms

Case

Number of daffodils

3 digits, the sum of the power of 3 of each digit is equal to itself

Guess you like

Origin blog.csdn.net/qq_44714521/article/details/107078330