Tree-less 3d Friends-of-Friends using Spatial Hashing

Peter E. Creasey
5/13/2018
astro-ph.CO

Official code: pec27/hfof (15 stars, C, MIT, last commit 2023-05-26).

Abstract

I describe a fast algorithm for the identification of connected sets of points where the point-wise connections are determined by a fixed spatial distance - a task commonly referred to in the cosmological simulation community as Friends-of-Friends (FOF) group finding. This technique sorts particles into fine cells sufficiently compact to guarantee their cohabitants are linked, and uses locality sensitive hashing to search for neighbouring (blocks of) cells.

Show full abstract

Tests on N-body simulations of up to a billion particles exhibit speed increases of factors up to 20x compared with FOF via trees (a factor around 8 is typical), and is consistently complete in less than the time of a k-d tree construction, giving it an intrinsic advantage over tree-based methods. The code is open-source and available online at https://github.com/pec27/hfof .

View on arXivView PDF

Code Implementations(1)

pec27/hfofOfficial100%
MIT

Friends-of-Friends via spatial hashing

153C, PythonJan 31, 20183 years agoMIT

Similar Papers

Cite this paper

@article{creasey2018treeless,
  title  = {Tree-less 3d Friends-of-Friends using Spatial Hashing},
  author = {Peter E. Creasey},
  year   = {2018},
  eprint = {1805.04911},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1805.04911}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1805.04911.svg)](https://codeofpaper.com/paper/1805.04911)

Discussion