Abstract:Aiming at uneven resource distribution in cloud computing and bad distribution effect, this paper distributes resources in improved and colony algorithm and particle swarm algorithm. First of all, improve the inertia weight value of particle swarm algorithm, set the fitness function and select particles at the optimal location, then convert the location of selected particles into the value of ant colony algorithm's initial pheromone and improve ant colony algorithm's selection of pheromone through wolves algorithm. Through simulation experiment, compared with ant colony algorithm and particle swarm algorithm, algorithm in this paper has been significantly improved in time to complete tasks and energy consumption.