A novel algorithm for high precision wavefront correction in adaptive optics is proposed in this paper. The process of the new global optimization distribution algorithm (GODA) is detailed described and compared with the existing stochastic parallel perturbation algorithm (SPPA). A deformable mirror (DM) group that could realize the algorithm is also introduced. It is made up of a number of single-actuator DMs. In the DM group, each actuator could have three dimensional movements-deformation in z direction and movements in x and y directions, making the equivalent actuator arrangement alterable. Simulations are carried out to verify the correction ability of the new algorithm realized by DM group. By comparing correction results of conventional DM, DM group with SPPA and GODA, the correction ability of DM group with GODA is proved to be better than SPPA and conventional DM.