From Exponential to Polynomial Complexity: Efficient Permutation Counting with Subword Constraints
Martin Mathew, Javier Noda

TL;DR
This paper introduces a new mathematical framework that drastically improves the efficiency of counting permutations with subword constraints, reducing complexity from exponential to linear for single subwords and extending to multiple subwords.
Contribution
The paper presents a novel closed-form formula for permutation counting with subword constraints, significantly enhancing computational efficiency and scalability over traditional methods.
Findings
Achieved linear time complexity for single-subword permutation counting.
Extended the formulas to handle multiple subwords efficiently.
Validated the approach through applications in bioinformatics and cryptography.
Abstract
Counting distinct permutations with replacement, especially when involving multiple subwords, is a longstanding challenge in combinatorial analysis, with critical applications in cryptography, bioinformatics, and statistical modeling. This paper introduces a novel framework that presents closed-form formulas for calculating distinct permutations with replacement, fundamentally reducing the time complexity from exponential to linear relative to the sequence length for single-subword calculations. We then extend our foundational formula to handle multiple subwords through the development of an additional formula. Unlike traditional methods relying on brute-force enumeration or recursive algorithms, our approach leverages novel combinatorial constructs and advanced mathematical techniques to achieve unprecedented efficiency. This comprehensive advancement in reducing computational…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · semigroups and automata theory · Advanced Database Systems and Queries
