---
title: 'k-Visits: Recurrence Across Multiple Domains'
url: https://www.emergentmind.com/topics/k-visits
type: topic
---

# k-Visits: Recurrence Across Multiple Domains

Searching arXiv for the cited k-Visits-related papers to ground the article in current records.
In recent arXiv literature, the expression **k-Visits** appears in several technically distinct senses. In urban mobility, it denotes either the $k$ most-frequently visited destinations retained from an origin–destination matrix or the **K-Visitation** framework that compares habitual destination choice with proximity-based amenity cover. In stochastic-process theory, it denotes the event that a state or site is visited exactly $k$ times. In combinatorial optimization, it appears as the **Many Visits TSP** or **k-Visits TSP**, where each city must be visited a prescribed number of times. In scheduling, it names a finite version of Pinwheel Scheduling in which each task appears exactly $k$ times. This suggests that the shared core of the term is not a single unified formalism but a recurring concern with recurrence, truncation, or exact repetition under an integer visitation parameter [2509.00919] [2005.02329] [2507.11681].

## 1. Principal meanings and formal objects

The main research usages can be organized by the mathematical object to which the visitation count is attached.

| Domain | Core object | Representative formulation |
|---|---|---|
| Urban mobility | Minimal place cover or top-$k$ destinations | $K_{\text{freq}}$, $K_{\text{dist}}$, $A^{(k)}$ |
| Stochastic processes | Exact visit-count law | $\mathbb{P}(N_1=k\mid N)$, $P_N(X,K\mid Z)$ |
| Combinatorial optimization | Tour with prescribed multiplicities | visit function $k(v)$ or $\mathrm{dem}(v)$ |
| Scheduling | Finite schedule with repeated tasks | each task appears exactly $k$ times |
| Data structures | Thresholded aggregate visit counting | $(k,r)$-CLAV |

Two broad families recur. One family studies **exact-count phenomena**: the number of times a Markov state, lattice site, city, or task is visited must equal a specified integer. The other studies **top-$k$ or thresholded visitation structure**: a mobility backbone is extracted by keeping the $k$ most-visited destinations, or a query asks whether aggregated visitation time exceeds a threshold.

The term is therefore domain-dependent. In the mobility papers, $k$ indexes a retained destination set or a minimal cover size; in the TSP and scheduling papers, it is a hard cardinality requirement on repeated appearance; in the probability papers, it is the random variable being counted; and in the data-structural paper, it is a threshold on aggregate time rather than a frequency count.

## 2. K-Visitation in proximity-centred urban mobility

The K-Visitation framework was introduced for a behaviourally grounded assessment of proximity-centred planning and the 15-Minute City ideal [2509.00919]. Let $P$ be the set of all distinct places, represented as H3 level-10 cells visited by a user excluding the home cell; let $C$ be the set of required amenity categories; let $\mathrm{Cat}(p)$ be the subset of $C$ provided by place $p$; let $f(p)$ be empirical visitation frequency; and let $d(p)$ be distance from home. Two orderings are defined: $P_{\text{freq}}$, sorted in descending order of $f(p)$, and $P_{\text{dist}}$, sorted in ascending order of $d(p)$. The framework then applies a greedy covering algorithm:
$$
K_{\text{freq}}=\min\left\{k \mid \bigcup_{i=1}^k \mathrm{Cat}(p_{(i)}) \supseteq C,\; p_{(i)}\in P_{\text{freq}}\right\},
$$
$$
K_{\text{dist}}=\min\left\{k \mid \bigcup_{i=1}^k \mathrm{Cat}(p_{(i)}) \supseteq C,\; p_{(i)}\in P_{\text{dist}}\right\}.
$$
In words, $K_{\text{freq}}$ is the smallest number of most-frequently-visited places needed to cover every amenity category, whereas $K_{\text{dist}}$ is the smallest number of nearest places needed to cover every category.

The algorithmic pipeline begins from mobile-phone pings clustered into stay locations with the InfoStop algorithm using dwell time $5\,\mathrm{min}$–$24\,\mathrm{h}$ and radius $50\,\mathrm{m}$. Stays are aggregated to H3 level-10 hexagons of approximately $75\,\mathrm{m}$. Home and work cells are inferred by time-of-day and time-of-week rules and removed from the candidate set $P$. Each visited cell is annotated with amenity categories within a $400\,\mathrm{m}$ buffer using a standardized POI taxonomy of ten daily categories. The greedy covering procedure is then run twice, including and excluding work, to isolate the structuring role of employment. The framework assumes that all amenity categories are equally essential, and it exploits the submodularity of set cover so that greedy selection provides a logarithmic approximation to the optimum.

Its central theoretical distinction is between **behaviour** and **potential**. $K_{\text{freq}}$ captures realised habitual behaviour, whereas $K_{\text{dist}}$ captures idealized local potential under proximity alone. The framework also defines an alignment coefficient $q_k$ as the Jaccard similarity between the two place-sets,
$$
q_k=\frac{|K_{\text{freq}}\cap K_{\text{dist}}|}{|K_{\text{freq}}\cup K_{\text{dist}}|},
$$
with $q_k\approx 1$ indicating strong concordance and $q_k\approx 0$ indicating that habitual travel systematically escapes the local area. A null model $K_{\text{null}}$ randomizes the greedy order under a global distance-frequency decay $\beta$ in order to test whether observed ordering exceeds what distance decay alone would predict.

Applied to $18$ months of anonymised mobility data from Finland, the framework reports systematic misalignment between proximity and behaviour. Median $q_k$ across Finland is approximately $0.65$–$0.7$, well above a distance-decay null of about $0.6$, indicating genuine local anchoring. At the same time, central districts such as Helsinki CBD record lower $q_k$ than suburbs: residents “over-shoot” despite abundant nearby amenities, whereas peripheral areas show higher $q_k$, likely out of necessity rather than choice. Under a 15-minute public-transport benchmark, approximately $60\%$ of Helsinki residents could in principle reach all $K_{\text{dist}}$ places within 15 minutes, but only about $45\%$ actually reach their $K_{\text{freq}}$ places within 15 minutes. An XGBoost classifier with ROC-AUC $=0.94$ identifies travel time as the strongest predictor of frequent non-proximate visits, followed by POI diversity and experienced segregation at the destination; younger and higher-income home areas also contribute.

Amenity effects are heterogeneous. Everyday essentials such as Groceries, Transport, Services, and Education dominate the $K_{\text{dist}}$ set and exhibit minimal distance overshoot in $K_{\text{freq}}$. Specialized or discretionary categories such as Culture, Retail Specialties, and Civic/Religious are over-represented in $K_{\text{freq}}$ and have large distance differentials relative to the nearest option. The social consequences of localism are likewise spatially contingent: the elasticity of experienced income segregation $\epsilon_s=\Delta S_k/\Delta q_k$ is negative in the historic city centre and positive in affluent suburbs and deprived peripheries. The paper’s planning conclusion is correspondingly narrow and conditional: proximity is necessary but not sufficient, and implementation should be behaviourally informed and place-sensitive.

## 3. k-most-frequent destination networks and percolation structure

A second urban-mobility meaning of k-visits is the retention of the $k$ most-frequent destinations from each origin in an origin–destination matrix [2406.15185]. Let $W\in\mathbb{R}^{n\times n}$ be the monthly aggregated flow matrix, with $W_{ij}$ equal to the total number of visits from area $i$ to area $j$. For each origin $i$, destinations are sorted in descending order of $W_{ij}$, and the k most-visited destinations are $\{j_{i,1},\dots,j_{i,k}\}$. This defines an unweighted adjacency matrix
$$
A_{ij}^{(k)}=
\begin{cases}
1,& j\in\{j_{i,1},\dots,j_{i,k}\},\\
0,& \text{otherwise},
\end{cases}
$$
or equivalently $A_{ij}^{(k)}=\mathbf{1}(W_{ij}\ge W_{i,(k)})$. A weighted version $W_{ij}^{(k)}=W_{ij}A_{ij}^{(k)}$ retains only the top-$k$ links per origin. For percolation analysis the graph is symmetrized by $B_{ij}^{(k)}=\max\{A_{ij}^{(k)},A_{ji}^{(k)}\}$, producing an undirected network $G(k)$.

The principal observable is the relative size
$$
S(k)=\frac{|C_{\max}(G(k))|}{N}
$$
of the largest connected component. The percolation threshold is
$$
k^*=\min\{k:S(k)=1\},
$$
with $S(k)\ge 0.99$ used as an empirical tolerance if needed. Across eight major U.S. cities and a 48-month study period, the reported threshold is $k^*\simeq 130$, with remarkably little variance across cities, geographies, and time. The interpretation offered is that approximately $130$ principal destinations per origin suffice to tie the entire city into one connected component; smaller $k$ leaves at least one Census Block Group isolated, whereas larger $k$ adds redundant links.

Two additional network diagnostics characterize the transition. The average clustering coefficient $C(k)$ first decreases as $k$ grows to approximately $100$, showing that new nodes join through single-link attachments, and then rises sharply beyond approximately $130$ as triangle-forming motifs become prevalent. A hubness index $H_{\mathrm{top}(k)}$, defined as the mean Kleinberg-HITS hub score of the ten most hub-like nodes, remains roughly flat for $k<130$ but spikes at $k=130$, indicating the emergence of a small set of highly connected hubs. Degree distributions at $k=k^*$, $k=k^*/2$, and $k=2k^*$ follow a power law over several decades, though at $k\to 2k^*$ a heavier tail of low-degree nodes appears, consistent with the inclusion of more random exploratory links.

The same paper links the percolation backbone to urban inequality through the **Proportion of Principal Destinations** metric,
$$
\mathrm{PPD}_i(k)=\frac{\sum_{j\in\{j_{i,1},\dots,j_{i,k}\}}W_{ij}}{\sum_j W_{ij}}.
$$
At $k=130$, population-weighted correlations are reported as $+0.25$ with median household income, $-0.16$ with percentage population without health insurance, $-0.13$ with percentage high-school graduates, $-0.13$ with percentage college enrollment, $+0.20$ with percentage Master’s degree holders, and $-0.06$ with percentage residential land use. The authors interpret this as showing that wealthier and more highly educated neighbourhoods tend to have higher PPD, whereas disadvantaged areas exhibit lower PPD.

## 4. Exact visit-count laws in Markov chains, random walks, and mixing dynamics

In probability theory, k-visits refers to the exact or asymptotic law of how many times a process visits a specified state or set. For a two-state Markov chain with states $S_0$ and $S_1$, transition probabilities $p_{00},p_{01},p_{10},p_{11}$, and initial distribution $(p_0,p_1)$, the problem studied in [2502.03073] is to compute
$$
\mathbb{P}(N_1=k\mid N),
$$
where $N_1$ is the number of visits to $S_1$ in $N$ successive transitions, counting the initial state if it is $S_1$. The derivation conditions on the initial state and uses weak-composition counting of blocks separated by down-crossings $S_1\to S_0$ and up-crossings $S_0\to S_1$. The result is a closed-form piece-wise formula involving two summation terms for each initial state and index limits $c_1=\min(k,N-k)$, $c_2=\min(k-1,N-k)$, and $c_3=\min(k,N-k-1)$. The note’s stated contribution is to restore a missing summation term and correct earlier incomplete results; Monte Carlo simulation over $10^6$ trials shows full agreement to machine precision.

For the one-dimensional symmetric nearest-neighbour walk on $\mathbb{Z}$, the object is the joint law
$$
P_N(X,K\mid Z)=P\{S_N=X,\;V_Z(N)=K\},
$$
where $V_Z(N)$ counts visits to a specified site $Z$ by time $N$ [1605.00001]. The paper derives a bivariate generating function and an exact “one-step-reduced” formula expressing $P_N(X,K\mid Z)$ in terms of the simple walk distribution $p_{N-K}(\cdot)$. It also provides the marginal law $P_N(K\mid Z)$, a diffusion-scaling limit with $x=X/\sqrt{N}$, $k=K/\sqrt{N}$, and $z=Z/\sqrt{N}$, and explicit expressions for the mean, variance, and higher moments of $V_Z(N)$. In the special case $Z=0$, the formulas simplify to differences of shifted binomial terms.

For $\phi$-mixing dynamical systems, the same theme appears in a rare-event limit regime [2107.13453]. If $U$ is a measurable target set of small measure and $N=\lfloor t/\mu(U)\rfloor$, then the rare-event count is
$$
W=\sum_{i=0}^{N-1}\mathbf{1}_U\circ T^i.
$$
Under right $\phi$-mixing with $\sum_{k\ge1}\phi(k)<\infty$, the law of $W$ is approximated in total variation by a compound-Poisson law constructed from local cluster sizes $Z_i=\sum_{j=i-K}^{i+K}\mathbf{1}_U\circ T^j$ via the Stein–Chen method. For shrinking nested cylinders $U_n$, the asymptotic limit is compound-Poisson with intensity $\theta=t\alpha_1$ and cluster-size mass function $p_\ell=(\alpha_\ell-\alpha_{\ell+1})/\alpha_1$. Periodic targets yield the Pólya–Aeppli law, while aperiodic points yield the Poisson law. The paper also gives examples for House-of-Cards chains, cylinder neighbourhoods in $\phi$-mixing shifts, and temporal synchronisation in $g$-measures.

These probabilistic usages differ sharply from the urban-mobility ones. Here, $k$ is a random event count in a stochastic law, not a truncation level or a minimal amenity-cover size.

## 5. Many-Visits TSP and connected-flow formulations

In combinatorial optimization, **Many Visits TSP** asks for an optimal tour that visits each city exactly a prescribed number of times [2005.02329]. Formally, given a set $V$ of $n$ cities, a visit-requirement function $k:V\to\mathbb{N}$, and an integer distance matrix $d:V\times V\to\mathbb{Z}\cup\{\infty\}$, a tour is a cyclic sequence of length $\ell=\sum_{v\in V}k(v)$ that visits each $v$ exactly $k(v)$ times. Equivalently, one may use a multiplicity function $m:V\times V\to\mathbb{N}$ satisfying
$$
\sum_u m(u,v)=k(v),\qquad \sum_u m(v,u)=k(v),
$$
with weakly connected support, and cost
$$
d(m)=\sum_{u,v} d(u,v)\,m(u,v).
$$

Algorithmically, the paper proves three principal results: a randomized polynomial-space exact algorithm with running time $\mathcal{O}^*(2^nD)$, where $D$ is the maximum finite distance; a Monte Carlo $(1+\epsilon)$-approximation in time $\mathcal{O}^*(2^n\epsilon^{-1})$ by scaling and rounding; a deterministic exponential-space dynamic program with running time and space $\mathcal{O}^*(4^n)$; and a deterministic polynomial-space exact algorithm with running time $\mathcal{O}(7.88^n)$. The exact $\mathcal{O}^*(2^nD)$ algorithm reduces the problem to a fixed-degree connected subgraph decision problem, then to connected perfect matching in a bipartite clone graph, and finally uses an algebraic Cut-and-Count style detection with determinants of Tutte-type matrices. The paper also states a barrier result: any improvement of the base $2$ in the $\mathcal{O}^*(2^nD)$ algorithm would yield an improved algorithm for Directed Hamiltonian Cycle, described there as a fifty-year-old open problem.

A closely related earlier approach gives a deterministic $2^{O(n)}$-time, polynomial-space algorithm [1804.06361]. Its structural idea is to decompose an optimal tour into a directed spanning tree plus a cheapest transportation completion satisfying residual degree demands. The recursion is built on a centroid-based separator lemma for directed spanning trees, yielding a recurrence
$$
T(n)\le 2^n\cdot n^{O(\log n)}\cdot 2\,T\!\left(\frac n2+O(\log n)\right)+\mathrm{poly}(n),
$$
and a solution $T(n)=4^{n+o(n)}n^{O(\log^2 n)}$ for the tree subproblem. After enumerating feasible degree profiles, the total time becomes $16^{n+o(n)}n^{O(\log^2 n)}+O(n^3\log K)$.

The same optimization family admits a connected-flow generalization and parameterized analysis [2106.11689]. In that setting, the input is a directed graph $G$, a demand function $\mathrm{dem}:V\to\mathbb{N}$, and a cost function on edges. A feasible solution is an integer flow $s:E\to\mathbb{N}$ satisfying Euler-balance, demand satisfaction, and connectivity of the support. The paper proves $\mathsf{NP}$-completeness already for $|D|=2$ with unit demands and capacities and no edge costs, fixed-parameter tractability without capacities, an $\mathcal{O}^*(k^{O(k)})$-time algorithm for the general case when parameterized by vertex-cover size $k$, and a polynomial kernel of size $O(k^5)$ for Many Visits TSP.

Within this literature, “k-visits” is a degree or demand prescription on an Eulerian connected multigraph, not a stochastic visit count or a mobility backbone.

## 6. Finite Pinwheel Scheduling: the k-Visits problem

A different and more literal usage appears in finite scheduling [2507.11681]. Given $n$ tasks with integer deadlines $d_i>0$, the **k-Visits problem** asks whether there exists a schedule
$$
S=(p_1,p_2,\dots,p_{nk}),\qquad p_t\in[n],
$$
such that each task $i$ appears exactly $k$ times and, if its positions are $1\le t_{i,1}<\cdots<t_{i,k}\le nk$, then
$$
t_{i,1}\le d_i,\qquad t_{i,2}-t_{i,1}\le d_i,\quad \dots,\quad t_{i,k}-t_{i,k-1}\le d_i.
$$
The paper presents this as a finite version of Pinwheel Scheduling, where each task in the infinite problem must appear at least once in every $d_i$ time slots.

Its main complexity result is that **2-Visits is strongly NP-complete**. The hardness proof starts from Restricted Numerical 3-Dimensional Matching, reduces to an inequality version called INTDM, then to a sum-matching problem SM with constraints $a\le d$ and $d+a\ge t$, and finally to 2-Visits. An important intermediate construct is the **discretized sequence**
$$
a_n=d_n,\qquad a_i=\min\{d_i,\;a_{i+1}-1\}\quad (i=n-1,\dots,1),
$$
which supports a normalization theorem: if a 2-Visits instance is feasible, then it admits a schedule in which each primary visit of task $i$ occurs at position $a_i$, while secondary visits occupy the gap positions in order of non-decreasing induced deadline $d_i+a_i$.

The same paper identifies unusually sharp tractable cases. It observes that the 1-Visit problem is trivial, and it proves that 2-Visits can be solved in linear time if all deadlines are distinct. In that case $A=D$, the sum-matching instance collapses to a unique matching, and feasibility reduces to checking $d_i+a_i\ge t_i$ for each $i$. The paper also gives an FPT algorithm for 2-Visits parameterized by the maximum cluster size
$$
c_{\max}=\max\{|C|: C\in\mathcal{C}\},
$$
where $\mathcal{C}$ is the collection of clusters of the discretized sequence, with running time $O(n\,(c_{\max})!)$.

The hardness extends beyond the basic model. For every fixed $k\ge 2$, Variable $k$-Visits remains strongly NP-complete even when the first two deadlines coincide for every task and all later deadlines are $3n$. A related Threshold Pinwheel Scheduling generalization is likewise strongly NP-hard for explicit input. This section of the literature is notable for a dichotomy explicitly emphasized in the paper: the problem is in P if the deadlines are a set, but NP-complete if the deadlines are a multiset.

## 7. Thresholded aggregated visitation and related query models

A neighboring but distinct research direction studies efficient counting of long aggregated visits in large mobility datasets [2601.09489]. In the **Counting Long Aggregated Visits** problem, one is given users $U$, regions $R$, triplets $(i,j,\tau_{i,j})$ recording how long user $u_i$ spent in region $r_j$, a threshold $k>0$, and a query subset $Q\subseteq R$ of size $r$. The required answer is
$$
n_{Q,k}=\left|\left\{u_i\in U:\sum_{r_j\in Q}\tau_{i,j}\ge k\right\}\right|.
$$
This is denoted $(k,r)$-CLAV. The geometric variant places $R$ in $\mathbb{R}^d$ and takes $Q$ to be an axis-aligned hyperrectangle.

For exact queries, the paper gives a space–time trade-off using a large/small decomposition of regions by a parameter $\lambda$. Regions with support larger than $\lambda$ are “large”; the rest are “small”. The resulting data structure uses
$$
S=O\!\left((\min\{m,N/\lambda\})^r\,n+N\right)
$$
words, can be built in $O((\min\{m,N/\lambda\})^r\,r\,n)$ time, and answers queries in
$$
T=O(\min\{r\lambda,N\})
$$
time. Under the Strong $r$-SetDisjointness conjecture, any exact $(k,r)$-CLAV structure with space $S$ and query time $T$ must satisfy
$$
S\,T^r=\widetilde{\Omega}(N^r).
$$

Approximate schemes are also developed. A sampling estimator based on
$$
n_{Q,k}=\sum_{(i,j,\tau_{i,j})\in T_Q}\frac{\phi_i}{c_i}
$$
is unbiased and, with $s=\frac{r^2}{2\varepsilon^2}\ln(2/\delta)$ samples, achieves additive error at most $\varepsilon n_Q$ with probability at least $1-\delta$, using $O(N)$ space and query time $O\!\left(\frac{r^3}{\varepsilon^2}\log(1/\delta)\log n\right)$. A sketch-based scheme built from an FM $\times$ Count-Min sketch yields, with high probability,
$$
\frac{n_{Q,k}}{3}\le \hat n_Q \le 3\,n_{Q,k}^-+O(\varepsilon n_Q),
$$
using $O(m\,\varepsilon^{-1}\log n\log r)$ words and $O(r\,\varepsilon^{-1}\log n)$ query time.

The geometric setting exhibits both exact upper bounds and lower bounds. Any Geometric-CLAV structure, regardless of query time, requires at least
$$
\min\left\{n,\left(\frac{m}{2d}\right)^{2d}\right\}
$$
bits of space. In one dimension, minimal intervals can be reduced to 2D colored dominance counting, giving space $O(\min\{N,m^2\})$ and query time $O(\log_w n_{Q,k})$. In $\mathbb{R}^d$, tabulation across boundary choices yields
$$
O\!\bigl(\min\{N\,m^{2d-2},\,m^{2d}\}\bigr)
$$
space with the same $O(\log_w n_{Q,k})$ query time.

These models are adjacent to, but not identical with, the other k-Visits literatures. They do not ask for exact frequency $k$, nor for top-$k$ destinations, nor for a schedule or tour with exactly $k$ repetitions. Instead they threshold aggregated time spent over a query region family. The coexistence of these meanings is a useful caution: in current research, “k-Visits” is a shared lexical label for several formally different notions of repeated visitation.

Source: https://www.emergentmind.com/topics/k-visits