Confusion of syllables and consonant clusters with morphemes is a widespread phenomenon. Suffice it to say that, as I have explained in my book, the treatment of phoneme clusters and morphemes as objects of the same order constitutes the very foundation of generative phonology. I wouldn't trust any algorithms, or any mathematics, based on the confusion of morphemes with syllables and consonant clusters. But it does not appeal to mathematics in support of its fundamental concepts. The conceptual problems have nothing to do with mathematics.
Conceptual analysis is independent of any mathematics.
Mathematics is a tool of deduction. The value of deduction depends on the value of the initial ideas to which deduction is applied. Deduction must be applied to right concepts. In this connection I would like to quote mathematicians as impartial judges on the value of mathematics in science. Mathematics is not the means for correcting errors in the human genetic code.