Brute Force
noun
say it: “BROOT FORS” /brut fɔrs/
The plain, try-everything way to solve a problem, which works but is often slow on big inputs.
What is a brute-force solution?
A brute-force solution tries every possibility, such as comparing every song with every other song to find two that fit. It's usually the easiest correct answer, and a good first plan to say out loud, but it's often O(n²) or worse, so the next step is a faster way.
In a sentence
- “My first plan was brute force, checking every pair of songs, before I switched to a dictionary.”
Level: Apprentice · More Software Development terms at this level
Updated