Start here · Essential guide
Brute Force Algorithm Examples
Brute force algorithm examples: linear search, trial division, password guessing and the traveling salesman problem, and when brute force still makes sense.
Algorithms
Brute force examples, how it differs from greedy methods and the main types of algorithms.
Start here · Essential guide
Brute force algorithm examples: linear search, trial division, password guessing and the traveling salesman problem, and when brute force still makes sense.
Brute force is not a greedy algorithm: it checks every candidate, while a greedy method commits to the best-looking choice at each step and never reconsiders.
Seven common algorithm types, from brute force and greedy to dynamic programming and randomized methods, with examples of how each one works.
Five everyday algorithms include map route planning, search ranking, sorting, encryption and processor scheduling, and how each one works in practice.
Real-life brute force attacks include guessing weak passwords and PIN codes, cracking stolen password hashes, and trying every key, plus how defenses slow them.
Related topics