Journal of Physics: Conference Series

An improved KMY algorithm for pattern-avoiding inversion sequences

Qi Liu

Computational

Key points

From the paper's conclusion
  • These results demonstrate that the proposed algorithm provides an effective approach for constructing reduced generating trees for pattern-avoiding inversion sequences.

Abstract

Inversion sequences are an important class of integer sequences in combinatorics, and their pattern avoidance problems are closely related to Wilf-equivalence classification and enumeration. Based on the generating-tree algorithm of Kotsireas, Mansour, and Yıldırım, this paper proposes an optimized reduced generating-tree construction algorithm for pattern-avoiding inversion sequences. The algorithm combines the truncated isomorphism criterion, tail-anchored pattern checking, 64-bit unordered tree hashing, and incremental depth comparison, thereby reducing the computational cost of pattern detection and subtree isomorphism determination. Experiments on 13 single forbidden patterns of length 3 show that the optimized algorithm preserves the labels, rules, and succession structures of the original implementation while substantially reducing the running time in most cases. These results demonstrate that the proposed algorithm provides an effective approach for constructing reduced generating trees for pattern-avoiding inversion sequences.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers