Skip to main content
QUICK REVIEW

[Paper Review] Sorting and preimages of pattern classes

Anders Claesson, Henning Úlfarsson|arXiv (Cornell University)|Mar 12, 2012
Advanced Combinatorial MathematicsMathematics7 references6 citations
TL;DR

This paper introduces an algorithm to determine when sorting operations like stack-sort or bubble-sort produce a given permutation pattern, using generalized patterns including decorated patterns. It provides a new characterization of West-3-stack-sortable permutations—solving a long-standing open problem—by extending mesh patterns with marking and shading rules to capture preimage conditions.

ABSTRACT

We introduce an algorithm to determine when a sorting operation, such as stack-sort or bubble-sort, outputs a given pattern. The algorithm provides a new proof of the description of West-2-stack-sortable permutations, that is permutations that are completely sorted when passed twice through a stack, in terms of patterns. We also solve the long-standing problem of describing West-3-stack-sortable permutations. This requires a new type of generalized permutation pattern we call a decorated pattern.

Motivation & Objective

  • To solve the long-standing open problem of characterizing West-3-stack-sortable permutations.
  • To develop a systematic method for determining which permutations map to a given pattern under sorting operations like stack-sort or bubble-sort.
  • To extend the theory of generalized permutation patterns to include decorated patterns that capture finer control over forbidden regions in permutations.
  • To provide an algorithm that computes the preimage of a classical pattern under the stack-sort operator, expressed as a set of forbidden mesh patterns.
  • To unify and automate the description of preimages under sorting operators using a formal, algorithmic framework.

Proposed method

  • Introduces decorated patterns—a new type of generalized permutation pattern that combines marking and shading to control element placement in forbidden regions.
  • Adapts the concept of mesh patterns from Brändén and Claesson (2011) to include marked entries that restrict the number or presence of elements in specific regions.
  • Develops an algorithm, called *ShadeAndMark*, that takes a classical pattern $ p $ and computes a finite list of (marked) mesh patterns $ P $ such that $ S^{-1}( ext{Av}(p)) = ext{Av}(P) $, where $ S $ is the stack-sort operator.
  • Applies the algorithm to reprove known results, such as the characterization of West-2-stack-sortable permutations as those avoiding the pattern 231.
  • Extends the algorithm to the bubble-sort operator, showing its adaptability to different sorting mechanisms.
  • Uses the algorithm to derive the preimage of $ ext{Av}(p) $ for classical patterns, enabling automated pattern-based reasoning about sorting outcomes.

Experimental results

Research questions

  • RQ1What is the complete characterization of permutations that are sorted to a given pattern after three passes through a stack?
  • RQ2How can generalized permutation patterns be extended to capture the preimage conditions of sorting operations like stack-sort?
  • RQ3Can an algorithm be constructed to systematically compute the set of forbidden patterns that define the preimage of a given pattern under stack-sort?
  • RQ4Is there a stable pattern definition under the inverse of the stack-sort operation, allowing for a uniform description of preimages?
  • RQ5Can the algorithm be adapted to other sorting operators, such as bubble-sort, to describe their preimage sets?

Key findings

  • The paper provides a complete solution to the long-standing problem of describing West-3-stack-sortable permutations using decorated patterns.
  • The algorithm *ShadeAndMark* successfully computes the preimage of any classical pattern under the stack-sort operator as a finite set of (marked) mesh patterns.
  • The characterization of West-2-stack-sortable permutations (those avoiding 231) is reproven using the new algorithmic framework.
  • The method extends to the bubble-sort operator, enabling automated derivation of preimage sets for this operator as well.
  • The use of decorated patterns allows for precise control over forbidden regions in permutations, enabling the description of complex preimage conditions.
  • The framework provides a foundation for further study of sorting operators and their inverse images using pattern-based formalism.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.