The brute force is not a specific algorithm but a common concept. The basic idea is straightforward: when there is no faster way to solve the problem, we will incrementally try all the possible solutions.
Some algorithms in the previous sections can be considered as brute force methods as well, for example, bfs, dfs, and backtracking.
Or in general, if there is no clue to solve a problem, maybe we should start with the brute force way first: to solve the problem first, and then try to optimize it.
Comments
Post a Comment