Basic Complete Search
Author: Darren Yao
An easy example: iterating through all pairs.
Resources | |||
---|---|---|---|
IUSACO | module 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
Status | Source | Problem Name | Difficulty | Tags | Solution | URL |
---|---|---|---|---|---|---|
Bronze | Easy | Show TagsComplete Search | ||||
Bronze | Easy | Show TagsComplete Search | ||||
Bronze | Easy | Show TagsComplete Search | ||||
Bronze | Normal | Show TagsComplete Search | ||||
Bronze | Normal | Show TagsComplete Search | External Sol | |||
Bronze | Normal | Show TagsComplete Search | ||||
Bronze | Normal | Show TagsComplete Search | ||||
Bronze | Normal | Show TagsComplete Search | ||||
Bronze | Hard | Show TagsComplete Search | External Sol | |||
Silver | Hard | Show TagsComplete Search | External Sol | |||
Bronze | Hard | Show TagsComplete Search | ||||
Bronze | Very Hard | Show TagsComplete Search | ||||
Bronze | Very Hard | Show TagsComplete Search | External Sol | |||
Bronze | Very Hard | Show TagsComplete Search | External Sol | |||
Silver | Very Hard | Show TagsComplete 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!