Heap-based algorithm for one-dimensional particle systems
arXiv:cond-mat/0101336
Abstract
A fast algorithm to study one-dimensional self-gravitating systems, and, more generally, systems that are Lagrangian integrable between collisions, is presented. The algorithm is event-driven, and uses a heap-ordered set of predicted future events. In the limit of large number of particles , the operation count is dominated by the cost of reordering the heap after each event, which goes asymptotically as . Some applications are discussed in detail.
submitted to J. Comput. Phys