A brute force algorithm is a rather straightforward approach to solving a problem. It is based on trial and error where the programmer tries to merely utilize the computer’s fast processing power to solve a problem, rather than applying some advanced algorithms and techniques developed with human intelligence. It is a naive approach adopted by most beginner programmers in the initial stages of solving a problem, however it might not be the most optimal approach, as it might increase both space and time complexity.