Abstract: A system and method for computer-aided drug design employs adaptive sampling and iterative fitting of multi-atomic subunits. The iterative fitting is performed by successive perturbation of the location of the multi-atomic subunits in directions that reduces potential energy.