In this paper we discuss the problem of estimating graph parameters from a random walk with restarts at a fixed vertex . For regular graphs , one can estimate the number of vertices and the mixing time of from in steps, where is the uniform mixing time on . The algorithm is based on the number of intersections of random walk paths , i.e. the number of times such that . Our method improves on previous methods by various authors which only consider collisions (i.e. times with ). We also show that the time complexity of our algorithm is optimal (up to log factors) for -regular graphs with prescribed mixing times. For general graphs, we adapt the intersections algorithm to compute the number of edges and the mixing time from the starting vertex in steps. Under mild additional assumptions (which hold e.g. for sparse graphs) the number of vertices can also be estimated by this time. Finally, we show that these algorithms, which may take sublinear time, have a fundamental limitation: it is not possible to devise a sublinear stopping time at which one can be reasonably sure that our parameters are well estimated. On the other hand, we show that, given either or the mixing time of , we can compute the "other parameter" with a self-stopping algorithm.
View on arXiv