Exhaustive search