Complexity: many distinct ways to impliment an IR operationGoal: minimize the total cost (tree matching w/ dyn. prog.)