How many users have been here for a long time? Efficient solutions for counting long aggregated visits

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Afshani, Peyman, Chowdhury, Rezaul, Gørtz, Inge Li, Goswami, Mayank, Silvestri, Francesco, Tognon, Mariafiore
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912824043765760
author Afshani, Peyman
Chowdhury, Rezaul
Gørtz, Inge Li
Goswami, Mayank
Silvestri, Francesco
Tognon, Mariafiore
author_facet Afshani, Peyman
Chowdhury, Rezaul
Gørtz, Inge Li
Goswami, Mayank
Silvestri, Francesco
Tognon, Mariafiore
contents This paper addresses the Counting Long Aggregated Visits problem, which is defined as follows. We are given $n$ users and $m$ regions, where each user spends some time visiting some regions. For a parameter $k$ and a query consisting of a subset of $r$ regions, the task is to count the number of distinct users whose aggregate time spent visiting the query regions is at least $k$. This problem is motivated by queries arising in the analysis of large-scale mobility datasets. We present several exact and approximate data structures for supporting counting long aggregated visits, as well as conditional and unconditional lower bounds. First, we describe an exact data structure that exhibits a space-time tradeoff, as well as efficient approximate solutions based on sampling and sketching techniques. We then study the problem in geometric settings where regions are points in $\mathbb{R}^d$ and queries are hyperrectangles, and derive exact data structures that achieve improved performance in these structured spaces.
format Preprint
id arxiv_https___arxiv_org_abs_2601_09489
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle How many users have been here for a long time? Efficient solutions for counting long aggregated visits
Afshani, Peyman
Chowdhury, Rezaul
Gørtz, Inge Li
Goswami, Mayank
Silvestri, Francesco
Tognon, Mariafiore
Data Structures and Algorithms
This paper addresses the Counting Long Aggregated Visits problem, which is defined as follows. We are given $n$ users and $m$ regions, where each user spends some time visiting some regions. For a parameter $k$ and a query consisting of a subset of $r$ regions, the task is to count the number of distinct users whose aggregate time spent visiting the query regions is at least $k$. This problem is motivated by queries arising in the analysis of large-scale mobility datasets. We present several exact and approximate data structures for supporting counting long aggregated visits, as well as conditional and unconditional lower bounds. First, we describe an exact data structure that exhibits a space-time tradeoff, as well as efficient approximate solutions based on sampling and sketching techniques. We then study the problem in geometric settings where regions are points in $\mathbb{R}^d$ and queries are hyperrectangles, and derive exact data structures that achieve improved performance in these structured spaces.
title How many users have been here for a long time? Efficient solutions for counting long aggregated visits
topic Data Structures and Algorithms
url https://arxiv.org/abs/2601.09489