Complete search
Complete search
Introduction
Complete search (brute force) means enumerating all candidates from a finite search space and choosing those that satisfy a condition / optimize a value.
Visit all subsets
Given items (), a subset can be represented by a bitmask where bit indicates whether item is chosen. Number of subsets: .