Towards Mass Spectrum Analysis with ASP
Küchenmeister, Nils, Ivliev, Alex, Krötzsch, Markus
–arXiv.org Artificial Intelligence
However, the mass spectrum of a substance does not reveal its exact molecular structure, but merely the possible ratios of elements in the compound and its fragments. To identify a sample, researcher may use commercial databases (for common compounds), or software tools that can discover molecular structures from the partial information available. The latter leads to a combinatorial search problem that is a natural fit for answer set programming (ASP). Molecules can be modeled as undirected graphs, representing the different elements and atomic bonds as node and edge labels, respectively. ASP is well-suited to encode chemical domain knowledge (e.g., possible number of bonds for carbon) and extra information about the sample (e.g., that it has an OH group), so that each answer set encodes a valid molecular graph. Unfortunately, this does not work: a direct ASP encoding yields exponentially many answer sets for each molecular graph due to the large number of symmetries (automorphisms) in such graphs. For example, C6H12O admits 211 distinct molecule structures but leads to 111,870 answer sets. Removing redundant solutions and limiting the search to unique representations are common techniques used in the ASP community where they have motivated research on symmetry-breaking. Related approaches work by rewriting the ground program before solving, see (Drescher et al. 2011, sbass) and (Devriendt et al. 2016a; Devriendt and Bogaerts 2016, BreakID), or augmenting ASP programs with additional constraints learned from generated instances (Tarzariol et al. 2023, ilasp
arXiv.org Artificial Intelligence
Feb-25-2026