Sometimes a slight change in the problem can significantly modify form of its solution. For instance, determine simple algorithm for solving following problem and categorize it using big-theta notation:
Divide a group of people into two disjoint subgroups (of arbitrary size) such that difference in total ages of members of two subgroups is as large as possible.
Now change problem so that desired difference is as small as possible and categorize your approach to problem.