Utilizing Swarm Intelligence Algorithms for Pathfinding in Games
2017 (English)Independent thesis Basic level (degree of Bachelor), 20 credits / 30 HE credits
Student thesis
Abstract [en]
The Ant Colony Optimization and Particle Swarm Optimization are two Swarm Intelligence algorithms often utilized for optimization. Swarm Intelligence relies on agents that possess fragmented knowledge, a concept not often utilized in games. The aim of this study is to research whether there are any benefits to using these Swarm Intelligence algorithms in comparison to standard algorithms such as A* for pathfinding in a game.
Games often consist of dynamic environments with mobile agents, as such all experiments were conducted with dynamic destinations. Algorithms were measured on the length of their path and the time taken to calculate that path.
The algorithms were implemented with minor modifications to allow them to better function in a grid based environment. The Ant Colony Optimization was modified in regards to how pheromone was distributed in the dynamic environment to better allow the algorithm to path towards a mobile target. Whereas the Particle Swarm Optimization was given set start positions and velocity in order to increase initial search space and modifications to increase particle diversity.
The results obtained from the experimentation showcased that the Swarm Intelligence algorithms were capable of performing to great results in terms of calculation speed, they were however not able to obtain the same path optimality as A*. The algorithms' implementation can be improved but show potential to be useful in games.
Place, publisher, year, edition, pages
2017. , p. 55
Keywords [en]
Swarm Intelligence, Pathfinding, Ant Colony Optimization, Particle Swarm Optimization, A*
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:his:diva-13636OAI: oai:DiVA.org:his-13636DiVA, id: diva2:1106037
Subject / course
Informationsteknologi
Educational program
Computer Game Development - Programming
Supervisors
Examiners
2017-06-162017-06-062018-01-13Bibliographically approved