Skip to main navigation Skip to search Skip to main content

Counting Permutation Patterns with Multidimensional Trees

  • Gal Beniamini*
  • , Nir Lavee*
  • *Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Scopus citations

Abstract

We consider the well-studied pattern-counting problem: given a permutation π ∈ Sn and an integer k > 1, count the number of order-isomorphic occurrences of every pattern τ ∈ Sk in π. Our first result is an Õ(n2)-time algorithm for k = 6 and k = 7. The proof relies heavily on a new family of graphs that we introduce, called pattern-trees. Every such tree corresponds to an integer linear combination of permutations in Sk, and is associated with linear extensions of partially ordered sets. We design an evaluation algorithm for these combinations, and apply it to a family of linearly-independent trees. For k = 8, we show a barrier: the subspace spanned by trees in the previous family has dimension exactly |S8|− 1, one less than required. Our second result is an Õ(n7/4)-time algorithm for k = 5. This algorithm extends the framework of pattern-trees by speeding-up their evaluation in certain cases. A key component of the proof is the introduction of pair-rectangle-trees, a data structure for dominance counting.

Original languageEnglish
Title of host publication52nd International Colloquium on Automata, Languages, and Programming, ICALP 2025
EditorsKeren Censor-Hillel, Fabrizio Grandoni, Joel Ouaknine, Gabriele Puppis
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
ISBN (Electronic)9783959773720
DOIs
StatePublished - 30 Jun 2025
Event52nd EATCS International Colloquium on Automata, Languages, and Programming, ICALP 2025 - Aarhus, Denmark
Duration: 8 Jul 202511 Jul 2025

Publication series

NameLeibniz International Proceedings in Informatics, LIPIcs
Volume334
ISSN (Print)1868-8969

Conference

Conference52nd EATCS International Colloquium on Automata, Languages, and Programming, ICALP 2025
Country/TerritoryDenmark
CityAarhus
Period8/07/2511/07/25

Bibliographical note

Publisher Copyright:
© Gal Beniamini and Nir Lavee.

Keywords

  • Pattern counting
  • patterns
  • permutations

Fingerprint

Dive into the research topics of 'Counting Permutation Patterns with Multidimensional Trees'. Together they form a unique fingerprint.

Cite this