Greedy and Non-Greedy Matching - SmartUp