How fast does a random walk cover a torus?
Peter Grassberger

TL;DR
This study uses high-statistics simulations to analyze the cover time of a 2D torus by a random walk, confirming the scaling law but revealing deviations in the prefactor from theoretical predictions, and exploring convergence behaviors.
Contribution
The paper provides detailed simulation data on cover times, highlighting potential discrepancies with existing theoretical prefactors and examining convergence properties of the scaling law.
Findings
Confirmed the $(L \\ln L)^2$ scaling law for cover times.
Observed deviations in the prefactor from the theoretical value $4/\\pi$.
Identified slow, non-monotonic convergence in the scaled cover time.
Abstract
We present high statistics simulation data for the average time that a random walk needs to cover completely a 2-dimensional torus of size . They confirm the mathematical prediction that for large , but the prefactor {\it seems} to deviate significantly from the supposedly exact result derived by A. Dembo {\it et al.}, Ann. Math. {\bf 160}, 433 (2004), if the most straightforward extrapolation is used. On the other hand, we find that this scaling does hold for the time at which the average number of yet unvisited sites is 1, as also predicted previously. This might suggest (wrongly) that and scale differently, although the distribution of rescaled cover times becomes sharp in the limit . But our…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
How fast does a random walk cover a torus?
Peter Grassberger
JSC, FZ Jülich, D-52425 Jülich, Germany
Abstract
We present high statistics simulation data for the average time that a random walk needs to cover completely a 2-dimensional torus of size . They confirm the mathematical prediction that for large , but the prefactor seems to deviate significantly from the supposedly exact result derived by A. Dembo et al., Ann. Math. 160, 433 (2004), if the most straightforward extrapolation is used. On the other hand, we find that this scaling does hold for the time at which the average number of yet unvisited sites is 1, as also predicted previously. This might suggest (wrongly) that and scale differently, although the distribution of rescaled cover times becomes sharp in the limit . But our results can be reconciled with those of Dembo et al. by a very slow and non-monotonic convergence of , as had been indeed proven by Belius et al. [Prob. Theory & Related Fields 167, 1 (2014)] for Brownian walks, and was conjectured by them to hold also for lattice walks.
The problem of how fast a random walk covers a 2-dimensional torus was introduced in the mathematical literature by Wilf Wilf , who called it the “white screen problem”. But it is also of considerable interest for other sciences, as it relates e.g. to how fast a grazing animal can collect as much food as possible Viswanathan ; Santos ; Benichou , or how fast information can be spread on or collected from a network (such as a mobile ad hoc network) whose topology is not known Mian ; Li ; Avin . For that reason, it has also been discussed extensively in the statistical physics literature Nemiro ; Brummelhuis-a ; Brummelhuis-b ; Coutinho ; Mendonca ; Chupeau .
Let us denote by the average time needed to cover a torus of sites completely, and by the time at which the average number of yet uncovered sites is 1. Naively one would expect that both diverge in the same way with , at least if the distribution of cover times is not too broad.
Aldous Aldous-a ; Aldous-b proved that
[TABLE]
and proved that the re-scaled time, , is indeed -distributed in the limit . He furthermore conjectured that Eq.(1) becomes sharp in this limit.
This conjecture was supported by heuristic arguments in Brummelhuis-a ; Brummelhuis-b , where the main quantity of interest was not but . These authors argued convincingly that
[TABLE]
and then conjectured that the same is true also for the cover times, because mean cover times and times at which the average number of uncovered sites is 1 should scale in the same way.
The story was seemingly closed when Dembo et al. Dembo proved rigorously that
[TABLE]
i.e. Aldous’ inequality Eq.(1) is saturated and the limit distribution is indeed sharp.
When I re-considered this problem, I was primarily interested in the way how “true self avoiding” walks (or “self-repelling walks”) Amit cover the torus or any other finite lattice Freund ; Avin , and wanted just to document the dramatic difference between self-repelling and ordinary random walks. However, soon after I started to simulate ordinary random walks on the 2-torus, it became clear that the data agreed with Eqs.(1) and (2), but not easily with Eq.(3).
The results presented in the following come from simulations that altogether took about 1 year of CPU time on modern workstations. Lattice sizes ranged from to in steps of powers of 2. The number of walks simulated varied between for and for . For easier coding and faster codes, boundary conditions (b.c.) were not strictly periodic but helical New-Bark . For large the difference is negligible. In particular, also for helical b.c. the lattice is a torus, and the difference with periodic b.c. is just that one of the coordinate axes is slightly tilted. We verified that the results obtained with periodic b.c. were identical within statistical errors for . We also tested two different random number generators (Ziff’s four-tap generator Ziff and the UNIX generator rand48), again with no significant differences.
Results for against are shown in Fig. 1. Whenever error bars are not visible on the data points, they are smaller than the line thickness. Also shown is the prediction of Dembo et al. Dembo (horizontal line) and a fit for large . This fit is a least square fit (with all three constants fitted) to all data with , but the quoted error in the first term is much bigger that the purely statistical error, in order to include plausible further correction terms – where we assume that “plausible” correction terms do not ruin the monotonicity. Our first conclusion is thus that
[TABLE]
The right hand side disagrees with the supposedly exact value by about 22 standard deviations (similar results have been obtained in Mendonca , albeit with less statistics). This discrepancy can hardly be blamed on statistical fluctuations (the likelihood being about ). It cannot be blamed on the used random number generators, both of which have been proven to be reliable even in problems involving much higher statistics. In view of the extreme simplicity of the code (about one page), also a programming error is very unlikely.
A next problem that could cause a wrong asymptotic estimate could be a very skewed and broad distribution of cover times. But the distribution of normalized cover times is expected Belius-a to be a (randomly shifted) Gumbel distribution in the limit . This gives a roughly exponential tail, which could not significantly bias any estimates of average cover times.
In any case, in Figs. 2 and 3 we show such distributions. They seem to be indeed exponentially cut off at large times, and definitely do not suggest that estimates of the averages could be influenced significantly by large tails.
To add to the last point, we show in Fig. 4 our estimates of the relative fluctuations of , defined as . We see that they decrease with as predicted by Aldous, although our data are not precise enough to distinguish between a power-law decay with a very small exponent () and a logarithmic behavior.
To shed more light on this problem, we considered next the average number of uncovered sites at time . For , the number of covered sites is independent of , and given asymptotically by Dvoretsky
[TABLE]
The finiteness of the lattice becomes relevant for , and for the decay of is a pure exponential Brummelhuis-a . The cross-over between these two regimes is shown in Fig. 5. There we show on the y-axis not itself, but we multiplied it with , where the characteristic time (the inverse decay rate) was estimated from fits in the regime . The quality of the exponential decay in this regime is illustrated in Fig. 6 for (but similarly nice exponentials were also found for all other lattice sizes). In Fig. 6 we plotted itself, and we verified that the exponential decay continued also for , although statistical errors increase rapidly for large .
This purely exponential decay can be used to determine either by a fit in the regime or by just finding the value of where . In the second method we of course have to take into account that the exponential decay holds only for , but this correction becomes negligible for , i.e.
[TABLE]
Direct numerical estimates of are shown in Fig. 7. We see a much slower (probably logarithmic) convergence than for average cover times, but the data are completely compatible with Eq.(2).
A last reason for a wrong asymptotic estimate would be a very slow (and non-monotonic!) convergence with . We found no indication for this in our data, but it is conjectured in Belius-b that the behavior for walks on the square lattice is as for off-lattice Brownian walks, which would suggest Belius-b
[TABLE]
with an unknown constant (indeed, the conjecture in Belius-b for lattice walks was slightly weaker). In Fig. 8 we show the data shown already in Fig. 1 together with two analytic curves representing Eq.(7): One with , and the other with . We see that the latter gives a very good fit, from which we conclude that the mathematical predictions are presumably all correct, and . We should warn, however, that we could also give decent fits with different coefficients of the term (and, of course, different ).
Finally, we show in Fig. 9 the ratios . For very small they are , because the large- tails contribute more to than to . For larger this effect is outweighed by the fact that because walks that do not yet cover at might have uncovered sites. Finally, at very large , the ratio seems to decrease again, although this is not significant in view of the large error bars. Yet it suggests that the ratio converges to 1 for , which would completely reconcile our data with the mathematical proofs. This is supported by the fact (O. Zeitouni, private communication) that the term is absent in .
In summary, our numerical data suggest at face value that and do not scale in the same way with , in contrast to rigorous proofs. But they can be reconciled with the proofs, if the (predicted) corrections to scaling are taken into account. As a result, the convergence towards the asymptotic behavior should be extremely slow (and non-monotonic!). Thus, without knowing the subleading terms, attempts to verify the leading behavior numerically would be futile.
The present paper can be seen as a warning that supposedly rigorous proofs can be wrong (and should thus be checked numerically), but more so as a warning that extrapolations of numerical data can be very subtle and misleading, even if they look completely benign and harmless. The vast number of wrong critical exponent estimates found in the literature bears ample witness to that. Combining rigorous mathematics and numerics can be useful if, as in the present case, the mathematics exclude too naive parametrizations, and the numerics can suggest the value(s) of constants that remain undetermined by the mathematical arguments.
I thank Pradep K. Mohanty, Bob Ziff, and Ofer Zeitouni for carefully reading the manuscript, and to Ricardo Mendonça for pointing out Ref. Mendonca . To all of them and also to David Belius, I am indebted for extremely helpful discussions.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1) H.S. Wilf, Amer. Math. Monthly 96 , 704 (1989).
- 2(2) G.M. Viswanathan, S.V. Buldyrev, S. Havlin, M.G.E. Da Luz, E.P. Raposo, and H.E. Stanley, Nature 401 , 911 (1999).
- 3(3) M.C. Santos, G.M. Viswanathan, E.P. Raposo, and M.G.E. da Luz, Phys. Rev. E 72 , 046143 (2005).
- 4(4) O. Bénichou, C. Loverdo, M. Moreau, and R. Voituriez, Rev. Mod. Phys. 83 , 81 (2011).
- 5(5) A.N. Mian, R. Beraldi, and R. Baldoni, 2010 IEEE 7th Int’l Conf. on Mobile Adhoc and Sensor Systems, p. 146 (2010).
- 6(6) K. Li, Int’l J. of Foundations of Computer Science 23 , 779 (2012).
- 7(7) C. Avin and B. Krishnamachari, Computer Networks 52 , 44 (2008).
- 8(8) A.M. Nemirovsky, H.O. Mártin, and M.D. Coutinho-Filho, Phys. Rev. A 41 , 761 (1990).
