A fast algorithm for simulation of flocking behavior

Jae-Moon Lee, Seoyeon Cho, R. Calvo
{"title":"A fast algorithm for simulation of flocking behavior","authors":"Jae-Moon Lee, Seoyeon Cho, R. Calvo","doi":"10.1109/ICEGIC.2009.5293611","DOIUrl":null,"url":null,"abstract":"This paper proposes an algorithm to enhance the performance of the spatial partitioning method for flocking behavior. Even when a moving entity (boid) in a flock changes its direction and location, its k-nearest neighbors (kNN), which influence its decision for the next direction, seldom change. Using this fact, this paper improves the performance by finding kNN of boids efficiently. A method to check that the new kNN is not changed from the previous kNN is proposed, and the correctness of the method is proven with two theorems. In order to minimize the cost of computing the new kNN, the method checks the fact that the new kNN did not change from the previous kNN. If the new kNN is not changed, the method copies the previous kNN to the new kNN instead of computing the new kNN. The proposed algorithm was implemented and its performance was compared with the original spatial partitioning method. The results of the comparison showed that the proposed algorithm outperformed the original method by about 57.7% with respect to the number of frames per second.","PeriodicalId":328281,"journal":{"name":"2009 International IEEE Consumer Electronics Society's Games Innovations Conference","volume":"149 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2009-10-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2009 International IEEE Consumer Electronics Society's Games Innovations Conference","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICEGIC.2009.5293611","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4

Abstract

This paper proposes an algorithm to enhance the performance of the spatial partitioning method for flocking behavior. Even when a moving entity (boid) in a flock changes its direction and location, its k-nearest neighbors (kNN), which influence its decision for the next direction, seldom change. Using this fact, this paper improves the performance by finding kNN of boids efficiently. A method to check that the new kNN is not changed from the previous kNN is proposed, and the correctness of the method is proven with two theorems. In order to minimize the cost of computing the new kNN, the method checks the fact that the new kNN did not change from the previous kNN. If the new kNN is not changed, the method copies the previous kNN to the new kNN instead of computing the new kNN. The proposed algorithm was implemented and its performance was compared with the original spatial partitioning method. The results of the comparison showed that the proposed algorithm outperformed the original method by about 57.7% with respect to the number of frames per second.
一种快速模拟群集行为的算法
本文提出了一种算法来提高空间划分方法对群集行为的性能。即使群体中移动的实体(boid)改变了方向和位置,影响其下一个方向决定的k近邻(kNN)也很少改变。利用这一事实,本文通过有效地寻找物体的kNN来提高性能。提出了一种检验新kNN是否与旧kNN相同的方法,并用两个定理证明了该方法的正确性。为了最小化计算新kNN的成本,该方法检查新kNN与前kNN没有变化。如果新的kNN没有改变,该方法将以前的kNN复制到新的kNN中,而不是计算新的kNN。实现了该算法,并与原有的空间划分方法进行了性能比较。对比结果表明,该算法在每秒帧数方面比原方法提高了57.7%。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信