首页 | 本学科首页   官方微博 | 高级检索  
     检索      

用莫顿序对BH算法的改进
引用本文:赖国明,杨圣云,袁德辉.用莫顿序对BH算法的改进[J].韩山师范学院学报,2006,27(6):19-23.
作者姓名:赖国明  杨圣云  袁德辉
作者单位:韩山师范学院,数学与信息技术学院,广东潮州,521041
基金项目:广东省教育厅自然科学基金;韩山师院重点科研究项目
摘    要:详细分析Barnes-Hut算法的基本原理,介绍BH空间的分割和BH树的创建,并用伪码方式描述了BH算法,同时介绍了Z序的生成方法.利用莫顿映射得到粒子的键值对粒子进行排序,由于N-Body仿真粒子的位移很小,有序的粒子经过一步仿真后基本保持有序.因为对有序粒子的排序和用有序粒子来建BH树的时间复杂度都为O(n),文章提出了对BH算法进行改进的一种方法,使得其时间复杂度从O(nlogn)降为O(n)。

关 键 词:N-Body仿真  Barnes-Hut算法  莫顿序  希尔伯特序
文章编号:1007-6883(2006)06-0019-05
收稿时间:2006-04-29
修稿时间:2006-04-29

The Improvement on BH Algorithm Using Morton-order
LAI Guo-ming,YANG Sheng-yun,YUAN De-hui.The Improvement on BH Algorithm Using Morton-order[J].Journal of Hanshan Teachers College,2006,27(6):19-23.
Authors:LAI Guo-ming  YANG Sheng-yun  YUAN De-hui
Institution:College of Mathematics and Information Technology, Hanshan Normal University, Chaozhou 521041, China
Abstract:The keystone of BH algorithm,the division of BH space and the process of building BH tree are detailed.The theory and the generation method of Z-order are also introduced.The particles are sorted by using their key values that can be got from Morton-mapping.In the N-body simulation,the displacements of particles are very small,so after one simulation step,the particles are almost kept sorted.Because the time complexity of the process of sorting almost sorted particles and building a tree using sorted particles is O(n),it presents a method to improve the Barnes-Hut algorithm,which decreases the time complexity from O(nlogn) to O(n).
Keywords:N-Body simulation  Barnes-Hut Algorithm  Morton-order  Peano-Hilbert order
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号