AbstrcatSwarm intelligence indicates any attempt to design algorithms or distributed problem-solving devices inspired by the collective behavior of social insect colonies and other animal societies. Swarm intelligence is becoming a hot domain in artificial intelligence and relevant fields. In this paper, the main ideas of ant colony algorithm and particle swarm optimization,which are two important algorithms in swarm intelligence,are introduced,and the ant colony algorithm is discussed in detail,including the basic ant colony algorithm and the improved ant colony algorithm.