finding a needle in a hay stack.
Algorithm A: go straw by straw and test if it's a needle
Algorithm B: this time you have a metal detector. you grab a bunch of straws and test if there are any needles there. if there aren't - discard it and grab the next bunch. if there are, start looking for the needle in the bunch using algorithm A