Constrain-Based Association QueryConstrain-Based Association Query
Database: (1) Database: (1) trans (TID, Itemset ),trans (TID, Itemset ), (2)(2) itemInfo (Item, Type, Price)itemInfo (Item, Type, Price)
A constrained asso. query (CAQ) is in the form of {(A constrained asso. query (CAQ) is in the form of {(SS11, S, S22 ))|C |C
},},
where C is a set of constraints on Swhere C is a set of constraints on S11, S, S22 including frequency including frequency
constraintconstraint
A classification of (single-variable) constraints:A classification of (single-variable) constraints:
Class constraint: S Class constraint: S ÌÌ A. A. e.g. S e.g. S ÌÌ ItemItem
Domain constraint:Domain constraint:
SSqq v, v, qq ÎÎ { { ==, , ¹¹, , <<, , ££, , >>, , ³³ } }. e.g. S.Price < 100. e.g. S.Price < 100
vvqq S, S, qq is is ÎÎ or or ÏÏ. e.g. snacks . e.g. snacks ÏÏ S.TypeS.Type
VVqq S, S, or or SSqq V, V, qq ÎÎ { { ÍÍ, , ÌÌ, , ËË, , ==, , ¹¹ } }
e.g. e.g. {{snacks, sodassnacks, sodas } } ÍÍ S.Type S.Type
Aggregation constraint: Aggregation constraint: agg(S) agg(S) qq v, v, where where agg agg is in {is in {min, min,
max, sum, count, avgmax, sum, count, avg}, and }, and qq ÎÎ { { ==, , ¹¹, , <<, , ££, , >>, , ³³ }. }.
e.g. count(Se.g. count(S11.Type) .Type) == 1 , avg(S 1 , avg(S22.Price) .Price) << 100 100
Lecture-32 - Constraint-based association miningLecture-32 - Constraint-based association mining