- An algorithm is described for efficiently assigning the resonances in NMR spectra to the inequivalent atoms in the structure under study based on the information in two-dimensional NMR correlation experiments and the 'connectivities' known from the structure. The algorithm, which is based on basic graph theory concepts, finds all possible assignments sets which are consistent with the experimentally observed correlations and known connectivities in a very efficient manner. It is designed to deal with less than ideal experimental data in which there may be overlapping peaks and uncertainty about the presence or absence of correlation peaks. The algorithm was primarily developed for assigning the peaks in the high-resolution solid-state 29Si MAS NMR spectra of highly siliceous zeolites based on two-dimensional 29Si INADEQUATE spectra and is described using the zeolites ZSM-12 and ZSM-5 as working examples. Peak assignment for zeolite frameworks is particularly challenging since there is often little or no information to distinguish peaks from one another such as characteristic chemical shifts, relative intensities, or different relaxation times. The algorithm may be a useful tool for easily, reliably, and efficiently working out peak assignments from other types of correlation experiments on other types of systems and further examples are provided in the Supplementary material.