Mathematics (Jan 2023)

A Trie Based Set Similarity Query Algorithm

  • Lianyin Jia,
  • Junzhuo Tang,
  • Mengjuan Li,
  • Runxin Li,
  • Jiaman Ding,
  • Yinong Chen

DOI
https://doi.org/10.3390/math11010229
Journal volume & issue
Vol. 11, no. 1
p. 229

Abstract

Read online

Set similarity query is a primitive for many applications, such as data integration, data cleaning, and gene sequence alignment. Most of the existing algorithms are inverted index based, they usually filter unqualified sets one by one and do not have sufficient support for duplicated sets, thus leading to low efficiency. To solve this problem, this paper designs T-starTrie, an efficient trie based index for set similarity query, which can naturally group sets with the same prefix into one node, and can filter all sets corresponding to the node at a time, thereby significantly improving the candidates generation efficiency. In this paper, we find that the set similarity query problem can be transformed into matching nodes of the first-layer (FMNodes) detecting problem on T-starTrie. Therefore, an efficient FLMNode detection algorithm is designed. Based on this, an efficient set similarity query algorithm, TT-SSQ, is implemented by developing a variety of filtering techniques. Experimental results show that TT-SSQ can be up to 3.10x faster than existing algorithms.

Keywords