算法2:连接优化 |
输入:一组在σ中且将要被连接优化的tgds 输出:连接优化后的规则集Σ' 1: Σ'←∅ 2: for all σ∈Σ do 3: let 4: Σt←{σ} 5: for all do 6: if variable x occurs more than once in φ then 7: Cexplored ←Σt 8: Σt←∅ 9: Σt←Σt∪VarJoinsRefinement(Cexplored, x) 10: end if 11: end for 12: Σ'←Σ'∪Σt 13:Σt←∅ 14: end for 15: return Σ' |