<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "What is Brute-force search?",
"text": "Brute-force search is also known as exhaustive search or generate and test. It is a general problem-solving technique and algorithmic paradigm that involves generating a list of all the possible candidates for a solution and then testing the validity of every single candidate. Brute-force search is the most common search algorithm because it does not need any domain knowledge."
}
},{
"@type": "Question",
"name": "What are brute-force algorithms?",
"text": "Brute-force algorithms rely purely on sheer computing power to find solutions for problems. They try every single solution that could possibly solve the problem instead of employing advanced techniques to get the job done in a more efficient manner."
}
},{
"@type": "Question",
"name": "What are the advantages of the brute-force algorithm?",
"text": "1. If all the possible solutions are listed down, then you can be guaranteed that the brute-force approach will find the correct solution.
2. It is applicable to problems that exist in a very wide range of domains.
3. It is useful for solving small and simple problems.
4. It is very simple, does not require any domain knowledge, and can be used as a comparison benchmark."
}
}]
}
</script>

# Brute-force search

## What is Brute-force search?

Brute-force search is also known as exhaustive search or generate and test. It is a general problem-solving technique and algorithmic paradigm that involves generating a list of all the possible candidates for a solution and then testing the validity of every single candidate. Brute-force search is the most common search algorithm because it does not need any domain knowledge.

Essentially, in brute-force search, you have to iterate through all the candidates, checking whether they satisfy the problem’s statement. You check each candidate till you find the right one. So, if the candidate that satisfies the problem statement is at the end of the collection, you’ll have to check all the candidates in the collection. It’s even possible that the candidate may not exist in the collection, in which case you’d still end up checking every single candidate in the collection, but to no avail.

If the solution exists in the collection, you will be able to find it with brute-force search, however, the costs involved in this technique are proportional to the number of candidate solutions.

In the real world, for a lot of problems, the number of candidates is far too high (Combinatorial explosion). Because of this phenomenon, the brute-force method is applied when problem-specific heuristics can be applied to reduce the number of candidate solutions available to a size that is manageable.

## What are brute-force algorithms?

Brute-force algorithms rely purely on sheer computing power to find solutions for problems. They try every single solution that could possibly solve the problem instead of employing advanced techniques to get the job done in a more efficient manner.

## What are the advantages of the brute-force algorithm?

The advantages of the brute-force algorithms are:

• If all the possible solutions are listed down, then you can be guaranteed that the brute-force approach will find the correct solution.
• It is applicable to problems that exist in a very wide range of domains.
• It is useful for solving small and simple problems.
• It is very simple, does not require any domain knowledge, and can be used as a comparison benchmark.

## What are the disadvantages of the brute-force algorithm?

Here are the disadvantages of brute-force algorithms:

• The brute-force method is very inefficient.
• Finding the right solution by this method consumes a lot of time.
• Instead of using a good algorithm design, these algorithms just rely on compromising the power of the computer.

Engati powers 45,000+ chatbot & live chat solutions in 50+ languages across the world.

We aim to empower you to create the best customer experiences you could imagine.

So, are you ready to create unbelievably smooth experiences?

# Brute-force search

October 14, 2020

Key takeawaysCollaboration platforms are essential to the new way of workingEmployees prefer engati over emailEmployees play a growing part in software purchasing decisionsThe future of work is collaborativeMethodology

## What is Brute-force search?

Brute-force search is also known as exhaustive search or generate and test. It is a general problem-solving technique and algorithmic paradigm that involves generating a list of all the possible candidates for a solution and then testing the validity of every single candidate. Brute-force search is the most common search algorithm because it does not need any domain knowledge.

Essentially, in brute-force search, you have to iterate through all the candidates, checking whether they satisfy the problem’s statement. You check each candidate till you find the right one. So, if the candidate that satisfies the problem statement is at the end of the collection, you’ll have to check all the candidates in the collection. It’s even possible that the candidate may not exist in the collection, in which case you’d still end up checking every single candidate in the collection, but to no avail.

If the solution exists in the collection, you will be able to find it with brute-force search, however, the costs involved in this technique are proportional to the number of candidate solutions.

In the real world, for a lot of problems, the number of candidates is far too high (Combinatorial explosion). Because of this phenomenon, the brute-force method is applied when problem-specific heuristics can be applied to reduce the number of candidate solutions available to a size that is manageable.

## What are brute-force algorithms?

Brute-force algorithms rely purely on sheer computing power to find solutions for problems. They try every single solution that could possibly solve the problem instead of employing advanced techniques to get the job done in a more efficient manner.

## What are the advantages of the brute-force algorithm?

The advantages of the brute-force algorithms are:

• If all the possible solutions are listed down, then you can be guaranteed that the brute-force approach will find the correct solution.
• It is applicable to problems that exist in a very wide range of domains.
• It is useful for solving small and simple problems.
• It is very simple, does not require any domain knowledge, and can be used as a comparison benchmark.

## What are the disadvantages of the brute-force algorithm?

Here are the disadvantages of brute-force algorithms:

• The brute-force method is very inefficient.
• Finding the right solution by this method consumes a lot of time.
• Instead of using a good algorithm design, these algorithms just rely on compromising the power of the computer.