Selecting the algorithm for swarm intelligence