1. A method for generating theoretical mass spectral fragmentation patterns of a chemical structure comprising: (a) obtaining a description of a chemical structure; (b) generating, from the description, a list of chemical structure information; (c) organizing the list of chemical structure information in a binary tree data structure; and (d) applying predetermined breaking rules to nodes in the binary tree data structure to identify theoretical mass spectral fragmentation patterns of the chemical structure.