FreshJoin: An Efficient and Adaptive Algorithm for Set Containment Join
Open Access
- 9 November 2019
- journal article
- research article
- Published by Springer Nature in Data Science and Engineering
- Vol. 4 (4) , 293-308
Abstract
This paper revisits set containment join (SCJ) problem, which uses the subset relationship (i.e., $$\subseteq$$ ) 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-hashjoin or $${\mathsf {FreshJoin}}$$ in short, to evaluate SCJ efficiently. $${\mathsf {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 $${\mathsf {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 $${\mathsf {FreshJoin}}$$ from existing algorithms, are analyzed. Experiments on 16 real-life datasets show that $${\mathsf {FreshJoin}}$$ usually reduces more than 50% of space cost while remains as competitive as the state-of-the-art algorithms in running time.
Keywords
This publication has 24 references indexed in Scilit:
- LCJoin: Set Containment Join via List Crosscutting2019
- TT-Join: Efficient Set Containment Join2017
- LSH ensembleProceedings of the VLDB Endowment, 2016
- PIEJoin2016
- Efficient and scalable trie-based algorithms for computing set containment relations2015
- Dealing with change in process choreographies: Design and implementation of propagation algorithmsInformation Systems, 2015
- Using Prefix-Trees for Efficiently Computing Set JoinsLecture Notes in Computer Science, 2005
- Efficient processing of joins on set-valued attributes2003
- Adaptive algorithms for set containment joinsACM Transactions on Database Systems, 2003
- Divide-and-Conquer Algorithm for Computing Set Containment Joins2002