Matching Algorithm
To match two ads A and B
- Set up enironment such that in A
- self evaluates to A
- other evaluates to B
- other attributes are searched for first in A and then in B
- and vice versa (with A and B interchanged)
- Check if A.Constraint and B.Constraint both evaluate to true
- A.Rank and B.Rank for preferences