PrevNext
Very Frequent
 0/16

Basic Complete Search

Author: Darren Yao

An easy example: iterating through all pairs.

Resources
IUSACOmodule is based off this

In many problems (especially in Bronze) it suffices to check all possible cases in the solution space, whether it be all elements, all pairs of elements, or all subsets, or all permutations. Unsurprisingly, this is called complete search (or brute force), because it completely searches the entire solution space.

Focus Problem – read through this problem before continuing!

Solution

Problems

StatusSourceProblem NameDifficultyTagsSolutionURL
BronzeEasy
Show Tags

Complete Search

BronzeEasy
Show Tags

Complete Search

BronzeEasy
Show Tags

Complete Search

BronzeNormal
Show Tags

Complete Search

BronzeNormal
Show Tags

Complete Search

External Sol
BronzeNormal
Show Tags

Complete Search

BronzeNormal
Show Tags

Complete Search

BronzeNormal
Show Tags

Complete Search

BronzeHard
Show Tags

Complete Search

External Sol
SilverHard
Show Tags

Complete Search

External Sol
BronzeHard
Show Tags

Complete Search

BronzeVery Hard
Show Tags

Complete Search

BronzeVery Hard
Show Tags

Complete Search

External Sol
BronzeVery Hard
Show Tags

Complete Search

External Sol
SilverVery Hard
Show Tags

Complete Search

Module Progress:

Join the USACO Forum!

Stuck on a problem, or don't understand a module? Join the USACO Forum and get help from other competitive programmers!

PrevNext