Brute force algorithms are often the simplest solutions to a given problem, though they may not be the most efficient. Good examples can be found in the string matching and sorting problems.

Reading

Supplemental

Levitin

  • Levitin 3.0-3.2
    • Brute force; SelectionSort and BubbleSort; Brute force string matching