An Efficient Algorithm to Count the Relations in a Range of Binary Relations Represented by a k2-Tree

Candia M.M.; Retamal G.G.; Torres-Avilés, R.

Keywords: Algorithm; compact data structures; counting query

Abstract

Two sets A and B , whose elements fulfill a total order on operator ≤ , can have a binary relation R A × B represented by the k2-tree compact data structure, which greatly improves storage space. Currently, Count query is managed by either using Range query or to modify the structure to have aggregate information, implying additional time or space in order to perform the query. This article presents Compact Count, which exploits the k2-tree properties to reduce the paths to be scanned to count the numbers in a range r , thus ensuring an expected runtime of O(krkn) and storage of O(kr) with the k2-tree parameters n and k. Our algorithm was compared through a series of experiments that consider both synthetic data with different distributions and real data, with a solution based on the Range algorithm. Experimental results show that Compact Count is 250 to 1,000 times faster than Range on synthetic and real data, respectively, with a small additional storage cost, as expected by the theoretical analysis.

Más información

Título según WOS: An Efficient Algorithm to Count the Relations in a Range of Binary Relations Represented by a k(2)-Tree
Título según SCOPUS: An Efficient Algorithm to Count the Relations in a Range of Binary Relations Represented by a k2-Tree
Título de la Revista: IEEE Access
Volumen: 9
Editorial: Institute of Electrical and Electronics Engineers Inc.
Fecha de publicación: 2021
Página final: 20818
Idioma: English
DOI:

10.1109/ACCESS.2021.3050081

Notas: ISI, SCOPUS