arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1607.03224astro-ph.IMcs.DS
收藏

一种快速识别好友光环的算法

A fast algorithm for identifying Friends-of-Friends halos

Yu Feng, Chirag Modi

摘要:

我们描述了一个简单而快速的算法来识别朋友的朋友的功能,并证明其正确性。该算法避免了不必要的昂贵的邻居查询,使用最小的内存开销,并拒绝在高密度区域的减速。我们正式定义我们的算法对枚举的基础上,一个问题,已被大量研究,在快速2点相关码和我们的参考实现采用了双KD树关联函数代码。我们在一个分层的树结构中构建功能,并使用一个splay操作,以减少识别一个功能的根的平均成本从$O[\log L]$到$O[1]$($L$是一个功能的大小),而没有额外的内存成本。这降低了从$O[L\log L]$到$O[L]$的合并树的总体时间复杂度,将每个展开的操作数量减少了几个数量级。接下来,我们介绍一个修剪操作,跳过两个完全自连接的KD树节点之间的合并操作。这提高了算法的鲁棒性,将高密度峰中的合并操作的数量从$O[δ^2]$减少到$O[δ]$。我们表明,对于宇宙学数据集的算法消除了一半以上的合并操作通常使用的连接长度$b \sim 0.2$(相对于平均分离)。此外,我们的算法是非常简单,易于实现现有的对枚举代码的顶部,重用的优化工作,已投入快速关联函数代码。

英文摘要:

We describe a simple and fast algorithm for identifying friends-of-friends features and prove its correctness. The algorithm avoids unnecessary expensive neighbor queries, uses minimal memory overhead, and rejects slowdown in high over-density regions. We define our algorithm formally based on pair enumeration, a problem that has been heavily studied in fast 2-point correlation codes and our reference implementation employs a dual KD-tree correlation function code. We construct features in a hierarchical tree structure, and use a splay operation to reduce the average cost of identifying the root of a feature from $O[\log L]$ to $O[1]$ ($L$ is the size of a feature) without additional memory costs. This reduces the overall time complexity of merging trees from $O[L\log L]$ to $O[L]$, reducing the number of operations per splay by orders of magnitude. We next introduce a pruning operation that skips merge operations between two fully self-connected KD-tree nodes. This improves the robustness of the algorithm, reducing the number of merge operations in high density peaks from $O[δ^2]$ to $O[δ]$. We show that for cosmological data set the algorithm eliminates more than half of merge operations for typically used linking lengths $b \sim 0.2$ (relative to mean separation). Furthermore, our algorithm is extremely simple and easy to implement on top of an existing pair enumeration code, reusing the optimization effort that has been invested in fast correlation function codes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑