The formation of carbonaceous and silicate precursor molecules to astrophysical dust grains is investigated. Using density functional theory (DFT) in combination with global optimization techniques, the ground-state binding energies of dust precursors are determined. These results are employed in atomistic nucleation theory (ANT) to predict the critical size and nucleation...