Skip to content
/ Glossary

Brute-Force Search

Systematically enumerating all possible solutions to find one that satisfies a problem's criteria.
Definition

Brute-force search, also known as exhaustive search or generate and test, is a straightforward, general-purpose problem-solving technique used in computing and algorithm design. This method involves enumerating all possible candidates for a solution and checking each one to see if it satisfies the problem's conditions.

While brute-force search is guaranteed to find a solution if it exists, it is often computationally expensive and inefficient, especially for problems with a large solution space. The time complexity of a brute-force algorithm typically grows exponentially with the size of the input, making it impractical for complex problems.

However, brute-force search can be useful for smaller problem instances, for problems with limited solution spaces, or as a benchmark to evaluate the efficiency of more sophisticated algorithms.

Examples/Use Cases:

In the context of cryptography, brute-force search can be used in attempts to crack encryption keys by systematically trying every possible key until the correct one is found. For simple encryption methods or short key lengths, a brute-force approach might be feasible. However, with modern encryption standards that use long keys, the number of possible keys is so large that brute-force search becomes computationally infeasible within a reasonable time frame.

Another example is the classic problem of solving a Sudoku puzzle. A brute-force algorithm for Sudoku would generate all possible configurations of numbers in the grid and then check each configuration to see if it meets the rules of Sudoku (each row, column, and subgrid contains all the digits from 1 to 9 exactly once). For small puzzles or partially completed puzzles with many constraints already in place, brute-force search might quickly find a solution. However, as the size of the puzzle increases or the number of pre-filled cells decreases, the efficiency of the brute-force approach drops dramatically, making it less practical than more strategic solving methods.

/ GET STARTED

Join the #1 Platform for AI Training Talent

Where top AI builders and expert AI Trainers connect to build the future of AI.
Self-Service
Post a Job
Post your project and get a shortlist of qualified AI Trainers and Data Labelers. Hire and manage your team in the tools you already use.
Managed Service
For Large Projects
Done-for-You
We recruit, onboard, and manage a dedicated team inside your tools. End-to-end operations for large or complex projects.
For Freelancers
Join as an AI Trainer
Find AI training and data labeling projects across platforms, all in one place. One profile, one application process, more opportunities.