This paper revisits set containment join(SCJ)problem,which uses the subset relationship(i.e.,⊆)as condition to join set-valued attributes of two relations and has many fundamental applications in commercial and scient...This paper revisits set containment join(SCJ)problem,which uses the subset relationship(i.e.,⊆)as condition to join set-valued attributes of two relations and has many fundamental applications in commercial and scientific fields.Existing in-memory algorithms for SCJ are either signature-based or prefix-tree-based.The former incurs high CPU cost because of the enumeration of signatures,while the latter incurs high space cost because of the storage of prefix trees.This paper proposes a new adaptive parameter-free in-memory algorithm,named as frequency-hash join or FreshJoin in short,to evaluate SCJ efficiently.FreshJoin builds a flat index on-the-fly to record three kinds of signatures(i.e.,two least frequent elements and a hash signature whose length is determined adaptively by the frequencies of elements in the universe set).The index consists of two sparse inverted indices and two arrays which record hash signatures of all sets in each relation.The index is well organized such that FreshJoin can avoid enumerating hash signatures.The rationality of this design is explained.And,the time and space cost of the proposed algorithm,which provide a rule to choose FreshJoin from existing algorithms,are analyzed.Experiments on 16 real-life datasets show that FreshJoin usually reduces more than 50%of space cost while remains as competitive as the state-of-the-art algorithms in running time.展开更多
Time intervals are often associated with tuples to represent their valid time in temporal relations, where overlap join is crucial for various kinds of queries. Many existing overlap join algorithms use indices based ...Time intervals are often associated with tuples to represent their valid time in temporal relations, where overlap join is crucial for various kinds of queries. Many existing overlap join algorithms use indices based on tree structures such as quad-tree, B+-tree and interval tree. These algorithms usually have high CPU cost since deep path traversals are unavoidable, which makes them not so competitive as data-partition or plane-sweep based algorithms. This paper proposes an efficient overlap join algorithm based on a new two-layer flat index named as Overlap Interval Inverted Index (i.e., O2i Index). It uses an array to record the end points of intervals and approximates the nesting structures of intervals via two functions in the first layer, and the second layer uses inverted lists to trace all intervals satisfying the approximated nesting structures. With the help of the new index, the join algorithm only visits the must-be-scanned lists and skips all others. Analyses and experiments on both real and synthetic datasets show that the proposed algorithm is as competitive as the state-of-the-art algorithms.展开更多
文摘This paper revisits set containment join(SCJ)problem,which uses the subset relationship(i.e.,⊆)as condition to join set-valued attributes of two relations and has many fundamental applications in commercial and scientific fields.Existing in-memory algorithms for SCJ are either signature-based or prefix-tree-based.The former incurs high CPU cost because of the enumeration of signatures,while the latter incurs high space cost because of the storage of prefix trees.This paper proposes a new adaptive parameter-free in-memory algorithm,named as frequency-hash join or FreshJoin in short,to evaluate SCJ efficiently.FreshJoin builds a flat index on-the-fly to record three kinds of signatures(i.e.,two least frequent elements and a hash signature whose length is determined adaptively by the frequencies of elements in the universe set).The index consists of two sparse inverted indices and two arrays which record hash signatures of all sets in each relation.The index is well organized such that FreshJoin can avoid enumerating hash signatures.The rationality of this design is explained.And,the time and space cost of the proposed algorithm,which provide a rule to choose FreshJoin from existing algorithms,are analyzed.Experiments on 16 real-life datasets show that FreshJoin usually reduces more than 50%of space cost while remains as competitive as the state-of-the-art algorithms in running time.
文摘Time intervals are often associated with tuples to represent their valid time in temporal relations, where overlap join is crucial for various kinds of queries. Many existing overlap join algorithms use indices based on tree structures such as quad-tree, B+-tree and interval tree. These algorithms usually have high CPU cost since deep path traversals are unavoidable, which makes them not so competitive as data-partition or plane-sweep based algorithms. This paper proposes an efficient overlap join algorithm based on a new two-layer flat index named as Overlap Interval Inverted Index (i.e., O2i Index). It uses an array to record the end points of intervals and approximates the nesting structures of intervals via two functions in the first layer, and the second layer uses inverted lists to trace all intervals satisfying the approximated nesting structures. With the help of the new index, the join algorithm only visits the must-be-scanned lists and skips all others. Analyses and experiments on both real and synthetic datasets show that the proposed algorithm is as competitive as the state-of-the-art algorithms.