fbpx
Wikipedia

Permutation pattern

In combinatorial mathematics and theoretical computer science, a permutation pattern is a sub-permutation of a longer permutation. Any permutation may be written in one-line notation as a sequence of entries representing the result of applying the permutation to the sequence 123...; for instance the sequence 213 represents the permutation on three elements that swaps elements 1 and 2. If π and σ are two permutations represented in this way (these variable names are standard for permutations and are unrelated to the number pi), then π is said to contain σ as a pattern if some subsequence of the entries of π has the same relative order as all of the entries of σ.

For instance, permutation π contains the pattern 213 whenever π has three entries x, y, and z that appear within π in the order x...y...z but whose values are ordered as y < x < z, the same as the ordering of the values in the permutation 213. The permutation 32415 on five elements contains 213 as a pattern in several different ways: 3··15, ··415, 32··5, 324··, and ·2·15 all form triples of entries with the same ordering as 213. Each of the subsequences 315, 415, 325, 324, and 215 is called a copy, instance, or occurrence of the pattern. The fact that π contains σ is written more concisely as σ ≤ π. If a permutation π does not contain a pattern σ, then π is said to avoid σ. The permutation 51342 avoids 213; it has 10 subsequences of three entries, but none of these 10 subsequences has the same ordering as 213.

Early results edit

A case can be made that Percy MacMahon (1915) was the first to prove a result in the field with his study of "lattice permutations".[1] In particular MacMahon shows that the permutations which can be divided into two decreasing subsequences (i.e., the 123-avoiding permutations) are counted by the Catalan numbers.[2]

Another early landmark result in the field is the Erdős–Szekeres theorem; in permutation pattern language, the theorem states that for any positive integers a and b every permutation of length at least   must contain either the pattern   or the pattern  .

Computer science origins edit

The study of permutation patterns began in earnest with Donald Knuth's consideration of stack-sorting in 1968.[3] Knuth showed that the permutation π can be sorted by a stack if and only if π avoids 231, and that the stack-sortable permutations are enumerated by the Catalan numbers.[4] Knuth also raised questions about sorting with deques. In particular, Knuth's question asking how many permutation of n elements are obtainable with the use of a deque remains open.[5] Shortly thereafter, Robert Tarjan (1972) investigated sorting by networks of stacks,[6] while Vaughan Pratt (1973) showed that the permutation π can be sorted by a deque if and only if for all k, π avoids 5,2,7,4,...,4k+1,4k−2,3,4k,1, and 5,2,7,4,...,4k+3,4k,1,4k+2,3, and every permutation that can be obtained from either of these by interchanging the last two elements or the 1 and the 2.[7] Because this collection of permutations is infinite (in fact, it is the first published example of an infinite antichain of permutations), it is not immediately clear how long it takes to decide if a permutation can be sorted by a deque. Rosenstiehl & Tarjan (1984) later presented a linear (in the length of π) time algorithm which determines if π can be sorted by a deque.[8]

In his paper, Pratt remarked that this permutation pattern order “seems to be the only partial order on permutation that arises in a simple and natural way” and concludes by noting that “from an abstract point of view”, the permutation pattern order “is even more interesting than the networks we were characterizing”.[7]

Enumerative origins edit

A prominent goal in the study of permutation patterns is in the enumeration of permutations avoiding a fixed (and typically short) permutation or set of permutations. Let Avn(B) denote the set of permutations of length n which avoid all of the permutations in the set B (in the case B is a singleton, say β, the abbreviation Avn(β) is used instead). As noted above, MacMahon and Knuth showed that |Avn(123)| = |Avn(231)| = Cn, the nth Catalan number. Thus these are isomorphic combinatorial classes.

Simion & Schmidt (1985) was the first paper to focus solely on enumeration. Among other results, Simion and Schmidt counted even and odd permutations avoiding a pattern of length three, counted permutations avoiding two patterns of length three, and gave the first bijective proof that 123- and 231-avoiding permutations are equinumerous.[9] Since their paper, many other bijections have been given, see Claesson & Kitaev (2008) for a survey.[10]

In general, if |Avn(β)| = |Avn(σ)| for all n, then β and σ are said to be Wilf-equivalent. Many Wilf-equivalences stem from the trivial fact that |Avn(β)| = |Avn(β−1)| = |Avn(βrev)| for all n, where β−1 denotes the inverse of β and βrev denotes the reverse of β. (These two operations generate the Dihedral group D8 with a natural action on permutation matrices.) However, there are also numerous examples of nontrivial Wilf-equivalences (such as that between 123 and 231):

From these two Wilf-equivalences and the inverse and reverse symmetries, it follows that there are three different sequences |Avn(β)| where β is of length four:

β sequence enumerating Avn(β) OEIS reference exact enumeration reference
 1342  1, 2, 6, 23, 103, 512, 2740, 15485, 91245, 555662, ... A022558 Bóna (1997)[14]
 1234  1, 2, 6, 23, 103, 513, 2761, 15767, 94359, 586590, ... A005802 Gessel (1990)[15]
 1324  1, 2, 6, 23, 103, 513, 2762, 15793, 94776, 591950, ... A061552 unenumerated

In the late 1980s, Richard Stanley and Herbert Wilf conjectured that for every permutation β, there is some constant K such that |Avn(β)| < Kn. This was known as the Stanley–Wilf conjecture until it was proved by Adam Marcus and Gábor Tardos.[16]

Closed classes edit

A closed class, also known as a pattern class, permutation class, or simply class of permutations is a downset in the permutation pattern order. Every class can be defined by the minimal permutations which do not lie inside it, its basis. Thus the basis for the stack-sortable permutations is {231}, while the basis for the deque-sortable permutations is infinite. The generating function for a class is Σ x|π| where the sum is taken over all permutations π in the class.

Möbius function edit

As the set of permutations under the containment order forms a poset it is natural to ask about its Möbius function, a goal first explicitly presented by Wilf (2002).[17] The goal in such investigations is to find a formula for the Möbius function of an interval [σ, π] in the permutation pattern poset which is more efficient than the naïve recursive definition. The first such result was established by Sagan & Vatter (2006), who gave a formula for the Möbius function of an interval of layered permutations.[18] Later, Burstein et al. (2011) generalized this result to intervals of separable permutations.[19]

It is known that, asymptotically, at least 39.95% of all permutations π of length n satisfy μ(1, π)=0 (that is, the principal Möbius function is equal to zero),[20] but for each n there exist permutations π such that μ(1, π) is an exponential function of n.[21]

Computational complexity edit

Given a permutation   (called the text) of length   and another permutation   of length   (called the pattern), the permutation pattern matching (PPM) problem asks whether   is contained in  . When both   and   are regarded as variables, the problem is known to be NP-complete, and the problem of counting the number of such matches is #P-complete.[22] However, PPM can be solved in linear time when k is a constant. Indeed, Guillemot and Marx[23] showed that PPM can be solved in time  , meaning that it is fixed-parameter tractable with respect to  .

There are several variants on the PPM problem, as surveyed by Bruner and Lackner.[24] For example, if the match is required to consist of contiguous entries then the problem can be solved in polynomial time.[25] A different natural variant is obtained when the pattern is restricted to a proper permutation class  . This problem is known as  -Pattern PPM and it was shown to be polynomial-time solvable for separable permutations.[22] Later, Jelínek and Kynčl[26] completely resolved the complexity of  -Pattern PPM by showing that it is polynomial-time solvable when   is equal to one of 1, 12, 21, 132, 231, 312 or 213 and NP-complete otherwise.

Another variant is when both the pattern and text are restricted to a proper permutation class  , in which case the problem is called  -PPM. For example, Guillemot and Vialette[27] showed that  -PPM could be solved in   time. Albert, Lackner, Lackner, and Vatter[28] later lowered this to   and showed that the same bound holds for the class of skew-merged permutations. They further asked if the  -PPM problem can be solved in polynomial time for every fixed proper permutation class  . This question was answered negatively by Jelínek and Kynčl who showed that  -PPM is in fact NP-complete.[26] Later, Jelínek, Opler, and Pekárek[29] showed that  -PPM is NP-complete for any   of length at least 4 not symmetric to one of 3412, 3142, 4213, 4123 or 41352.

Packing densities edit

The permutation π is said to be β-optimal if no permutation of the same length as π has more copies of β. In his address to the SIAM meeting on Discrete Mathematics in 1992, Wilf defined the packing density of the permutation β of length k as

 

An unpublished argument of Fred Galvin shows that the quantity inside this limit is nonincreasing for nk, and so the limit exists. When β is monotone, its packing density is clearly 1, and packing densities are invariant under the group of symmetries generated by inverse and reverse, so for permutations of length three, there is only one nontrivial packing density. Walter Stromquist (unpublished) settled this case by showing that the packing density of 132 is 23 − 3, approximately 0.46410.

For permutations β of length four, there are (due to symmetries) seven cases to consider:

β packing density reference
 1234  1 trivial
 1432  root of x3 − 12x2 + 156x − 64 ≅ 0.42357 Price (1997)[30]
 2143  ⅜ = 0.375 Price (1997)[30]
 1243  ⅜ = 0.375 Albert et al. (2002)[31]
 1324  conjectured to be ≅ 0.244
 1342  conjectured to be ≅ 0.19658
 2413  conjectured to be ≅ 0.10474

For the three unknown permutations, there are bounds and conjectures. Price (1997) used an approximation algorithm which suggests that the packing density of 1324 is around 0.244.[30] Birzhan Batkeyev (unpublished) constructed a family of permutations showing that the packing density of 1342 is at least the product of the packing densities of 132 and 1432, approximately 0.19658. This is conjectured to be the precise packing density of 1342. Presutti & Stromquist (2010) provided a lower bound on the packing density of 2413. This lower bound, which can be expressed in terms of an integral, is approximately 0.10474, and conjectured to be the true packing density.[32]

Superpatterns edit

A k-superpattern is a permutation that contains all permutations of length k. For example, 25314 is a 3-superpattern because it contains all 6 permutations of length 3. It is known that k-superpatterns must have length at least k2/e2, where e ≈ 2.71828 is Euler's number,[33] and that there exist k-superpatterns of length ⌈(k2 + 1)/2⌉.[34] This upper bound is conjectured to be best possible, up to lower-order terms.[35]

Generalizations edit

There are several ways in which the notion of "pattern" has been generalized. For example, a vincular pattern is a permutation containing dashes indicating the entries that need not occur consecutively (in the normal pattern definition, no entries need to occur consecutively). For example, the permutation 314265 has two copies of the dashed pattern 2-31-4, given by the entries 3426 and 3425. For a dashed pattern β and any permutation π, we write β(π) for the number of copies of β in π. Thus the number of inversions in π is 2-1(π), while the number of descents is 21(π). Going further, the number of valleys in π is 213(π) + 312(π), while the number of peaks is 231(π) + 132(π). These patterns were introduced by Babson & Steingrímsson (2000), who showed that almost all known Mahonian statistics could be expressed in terms of vincular permutations.[36] For example, the Major index of π is equal to 1-32(π) + 2-31(π) + 3-21(π) + 21(π).

Another generalization is that of a barred pattern, in which some of the entries are barred. For π to avoid the barred pattern β means that every set of entries of π which form a copy of the nonbarred entries of β can be extended to form a copy of all entries of β. West (1993) introduced these types of patterns in his study of permutations which could be sorted by passing them twice through a stack.[37] (Note that West's definition of sorting twice through a stack is not the same as sorting with two stacks in series.) Another example of barred patterns occurs in the work of Bousquet-Mélou & Butler (2007), who showed that the Schubert variety corresponding to π is locally factorial if and only if π avoids 1324 and 21354.[38]

References edit

  1. ^ MacMahon, Percy A. (1915), Combinatory Analysis, London: Cambridge University Press, Volume I, Section III, Chapter V.
  2. ^ MacMahon (1915), Items 97 and 98.
  3. ^ Knuth, Donald E. (1968), The Art Of Computer Programming Vol. 1, Boston: Addison-Wesley, ISBN 0-201-89683-4, MR 0286317, OCLC 155842391.
  4. ^ Knuth (1968), Section 2.2.1, Exercises 4 and 5.
  5. ^ Knuth (1968), Section 2.2.1, Exercise 13, rated M49 in the first printing, and M48 in the second.
  6. ^ Tarjan, Robert (1972), "Sorting using networks of queues and stacks", Journal of the ACM, 19 (2): 341–346, doi:10.1145/321694.321704, MR 0298803, S2CID 13608929.
  7. ^ a b Pratt, Vaughan R. (1973), "Computing permutations with double-ended queues. Parallel stacks and parallel queues", Proc. Fifth Annual ACM Symposium on Theory of Computing (Austin, Tex., 1973), pp. 268–277, doi:10.1145/800125.804058, MR 0489115, S2CID 15740957.
  8. ^ Rosenstiehl, Pierre; Tarjan, Robert (1984), "Gauss codes, planar Hamiltonian graphs, and stack-sortable permutations", Journal of Algorithms, 5 (3): 375–390, doi:10.1016/0196-6774(84)90018-X, MR 0756164.
  9. ^ Simion, Rodica; Schmidt, Frank W. (1985), "Restricted permutations", European Journal of Combinatorics, 6 (4): 383–406, doi:10.1016/s0195-6698(85)80052-4, MR 0829358.
  10. ^ Claesson, Anders; Kitaev, Sergey (2008), "Classification of bijections between 321- and 132-avoiding permutations", Séminaire Lotharingien de Combinatoire, 60: B60d, 30pp., arXiv:0805.1325, MR 2465405.
  11. ^ Stankova, Zvezdelina (1994), "Forbidden subsequences", Discrete Mathematics, 132 (1–3): 291–316, doi:10.1016/0012-365X(94)90242-9, MR 1297387.
  12. ^ Stankova, Zvezdelina; West, Julian (2002), "A New class of Wilf-Equivalent Permutations", Journal of Algebraic Combinatorics, 15 (3): 271–290, arXiv:math/0103152, doi:10.1023/A:1015016625432, MR 1900628, S2CID 13921676.
  13. ^ Backelin, Jörgen; West, Julian; Xin, Guoce (2007), "Wilf-equivalence for singleton classes", Advances in Applied Mathematics, 38 (2): 133–149, doi:10.1016/j.aam.2004.11.006, MR 2290807.
  14. ^ Bóna, Miklós (1997), "Exact enumeration of 1342-avoiding permutations: a close link with labeled trees and planar maps", Journal of Combinatorial Theory, Series A, 80 (2): 257–272, arXiv:math/9702223, doi:10.1006/jcta.1997.2800, MR 1485138, S2CID 18352890.
  15. ^ Gessel, Ira M. (1990), "Symmetric functions and P-recursiveness", Journal of Combinatorial Theory, Series A, 53 (2): 257–285, doi:10.1016/0097-3165(90)90060-A, MR 1041448.
  16. ^ Marcus, Adam; Tardos, Gábor (2004), "Excluded permutation matrices and the Stanley-Wilf conjecture", Journal of Combinatorial Theory, Series A, 107 (1): 153–160, doi:10.1016/j.jcta.2004.04.002, MR 2063960.
  17. ^ Wilf, Herbert (2002), "Patterns of permutations", Discrete Mathematics, 257 (2): 575–583, doi:10.1016/S0012-365X(02)00515-0, MR 1935750.
  18. ^ Sagan, Bruce; Vatter, Vince (2006), "The Möbius function of a composition poset", Journal of Algebraic Combinatorics, 24 (2): 117–136, arXiv:math/0507485, doi:10.1007/s10801-006-0017-4, MR 2259013, S2CID 11283347.
  19. ^ Burstein, Alexander; Jelinek, Vit; Jelinkova, Eva; Steingrimsson, Einar (2011), "The Möbius function of separable and decomposable permutations", Journal of Combinatorial Theory, Series A, 118 (1): 2346–2364, doi:10.1016/j.jcta.2011.06.002, MR 2834180, S2CID 13978488.
  20. ^ Brignall, Robert; Jelínek, Vit; Kynčl, Jan; Marchant, David (2019), "Zeros of the Möbius function of permutations" (PDF), Mathematika, 65 (4): 1074–1092, arXiv:1810.05449, doi:10.1112/S0025579319000251, MR 3992365, S2CID 53366318
  21. ^ Marchant, David (2020), "2413-balloon permutations and the growth of the Möbius function", Electronic Journal of Combinatorics, 27 (1): Article P1.7, 18 pp., arXiv:1812.05064, doi:10.37236/8554
  22. ^ a b Bose, Prosenjit; Buss, Jonathan F.; Lubiw, Anna (March 1998), "Pattern matching for permutations", Information Processing Letters, 65 (5): 277–283, doi:10.1016/S0020-0190(97)00209-3
  23. ^ Guillemot, Sylvain; Marx, Daniel (2014). "Finding small patterns in permutations in linear time". Proceedings of the Twenty-Fifth Annual ACM-SIAM Symposium on Discrete Algorithms: 20. arXiv:1307.3073. doi:10.1137/1.9781611973402.7. ISBN 978-1-61197-338-9. S2CID 1846959.
  24. ^ Bruner, Marie-Louise; Lackner, Martin (2013), "The computational landscape of permutation patterns", Pure Mathematics and Applications, 24 (2): 83–101, arXiv:1301.0340
  25. ^ Kubica, M.; Kulczyński, T.; Radoszewski, J.; Rytter, W.; Waleń, T. (2013), "A linear time algorithm for consecutive permutation pattern matching", Information Processing Letters, 113 (12): 430–433, doi:10.1016/j.ipl.2013.03.015
  26. ^ a b Jelínek, Vít; Kynčl, Jan (2017). "Hardness of Permutation Pattern Matching". Proceedings of the Twenty-Eighth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2017, Barcelona, Spain, Hotel Porta Fira, January 16-19. SIAM. pp. 378–396. arXiv:1608.00529. doi:10.1137/1.9781611974782.24.
  27. ^ Guillemot, Sylvain; Vialette, Stéphane (2009), "Pattern matching for 321-avoiding permutations", Algorithms and Computation, Lecture Notes in Computer Science, vol. 5878, pp. 1064–1073, arXiv:1511.01770, doi:10.1007/978-3-642-10631-6_107
  28. ^ Albert, Michael; Lackner, Marie-Louise; Lackner, Martin; Vatter, Vincent (2016), "The complexity of pattern matching for 321-avoiding and skew-merged permutations", Discrete Mathematics & Theoretical Computer Science, 18 (2), arXiv:1510.06051, doi:10.46298/dmtcs.1308, S2CID 5827603
  29. ^ Jelínek, Vít; Opler, Michal; Pekárek, Jakub (2021). "Griddings of Permutations and Hardness of Pattern Matching". 46th International Symposium on Mathematical Foundations of Computer Science, MFCS 2021, August 23-27, 2021, Tallinn, Estonia. Schloss Dagstuhl - Leibniz-Zentrum für Informatik. pp. 65:1–65:22. arXiv:2107.10897. doi:10.4230/LIPIcs.MFCS.2021.65.
  30. ^ a b c Price, Alkes (1997), Packing densities of layered patterns, Ph.D. thesis, University of Pennsylvania, ProQuest 304421853.
  31. ^ Albert, Michael H.; Atkinson, M. D.; Handley, C. C.; Holton, D. A.; Stromquist, W. (2002), "On packing densities of permutations", Electronic Journal of Combinatorics, 9: Article R5, 20 pp., doi:10.37236/1622, MR 1887086.
  32. ^ Presutti, Cathleen Battiste; Stromquist, Walter (2010), "Packing rates of measures and a conjecture for the packing density of 2413", in Linton, Steve; Ruškuc, Nik; Vatter, Vincent (eds.), Permutation Patterns, London Math. Soc. Lecture Notes, vol. 376, Cambridge University Press, pp. 287–316, doi:10.1017/CBO9780511902499.015.
  33. ^ Arratia, Richard (1999), "On the Stanley-Wilf conjecture for the number of permutations avoiding a given pattern", Electronic Journal of Combinatorics, 6: Article N1, 4 pp., doi:10.37236/1477, MR 1710623.
  34. ^ Engen, Michael; Vatter, Vincent (2021), "Containing all permutations", American Mathematical Monthly, 128 (1): 4–24, arXiv:1810.08252, doi:10.1080/00029890.2021.1835384
  35. ^ Eriksson, Henrik; Eriksson, Kimmo; Linusson, Svante; Wästlund, Johan (2007), "Dense packing of patterns in a permutation", Annals of Combinatorics, 11 (3–4): 459–470, doi:10.1007/s00026-007-0329-7, MR 2376116, S2CID 2021533.
  36. ^ Babson, Erik; Steingrímsson, Einar (2000), "Generalized permutation patterns and a classification of the Mahonian statistics", Séminaire Lotharingien de Combinatoire, 44: Research article B44b, 18 pp, MR 1758852.
  37. ^ West, Julian (1993), "Sorting twice through a stack", Theoretical Computer Science, 117 (1–2): 303–313, doi:10.1016/0304-3975(93)90321-J, MR 1235186.
  38. ^ Bousquet-Mélou, Mireille; Butler, Steve (2007), "Forest-like permutations", Annals of Combinatorics, 11 (3–4): 335–354, arXiv:math/0603617, doi:10.1007/s00026-007-0322-1, MR 2376109, S2CID 31236417.

External links edit

A conference on permutation patterns has been held annually since 2003:

  1. Permutation Patterns 2003, February 10–14, 2003, University of Otago, Dunedin, New Zealand.
  2. , July 5–9, 2004, Malaspina University-College, Nanaimo, British Columbia, Canada.
  3. Permutation Patterns 2005, March 7–11, 2005, University of Florida, Gainesville, Florida, USA.
  4. Permutation Patterns 2006, June 12–16, 2006, Reykjavík University, Reykjavík, Iceland.
  5. Permutation Patterns 2007, June 11–15, 2007, University of St. Andrews, St. Andrews, Scotland.
  6. Permutation Patterns 2008, June 16–20, 2008, University of Otago, Dunedin, New Zealand.
  7. Permutation Patterns 2009, July 13–17, 2009, Università di Firenze, Florence, Italy.
  8. Permutation Patterns 2010, August 9–13, 2010, Dartmouth College, Hanover, New Hampshire, USA.
  9. , June 20–24, 2011, California Polytechnic State University, San Luis Obispo, California, USA.
  10. Permutation Patterns 2012, June 11–15, 2012, University of Strathclyde, Glasgow, Scotland.
  11. Permutation Patterns 2013, July 1–5, 2013, Université Paris Diderot, Paris, France.
  12. Permutation Patterns 2014, July 7–11, 2014, East Tennessee State University, Johnson City, Tennessee, USA.
  13. Permutation Patterns 2015, June 15–19, 2015, De Morgan House, London, England.
  14. Permutation Patterns 2016, June 27–July 1, 2016, Howard University, Washington, DC, USA.
  15. Permutation Patterns 2017, June 26–30, 2017, Reykjavík University, Reykjavík, Iceland.
  16. Permutation Patterns 2018, July 9–13, 2018, Dartmouth College, Hanover, New Hampshire, USA.
  17. Permutation Patterns 2019, June 17–21, 2019, Universität Zürich, Zürich, Switzerland.
  18. Permutation Patterns 2020 Virtual Workshop, June 30–July 1, 2020, hosted by Valparaiso University, Valparaiso, Indiana, USA.
  19. Permutation Patterns 2021 Virtual Workshop, June 15–16, 2021, hosted by University of Strathclyde, Glasgow, Scotland.
  20. Permutation Patterns 2022, June 20-24, 2022, Valparaiso University, Valparaiso, Indiana, USA.
  21. Permutation Patterns 2023, July 3-7, 2023, University of Burgundy, Dijon, France.

American Mathematical Society Special Sessions on Patterns in Permutations have been held at the following meetings:

Other permutation patterns meetings:

  • Workshop on Permutation Patterns, May 29–June 3, 2005, University of Haifa, Haifa, Israel.
  • Pattern Avoidance and Genome Sorting, February 14-19, 2016, Schloss Dagstuhl, Wadern, Germany.
  • Genomics, Pattern Avoidance, and Statistical Mechanics, November 4-9, 2018, Schloss Dagstuhl, Wadern, Germany.
  • Pattern Avoidance, Statistical Mechanics and Computational Complexity, March 19-24, 2023, Schloss Dagstuhl, Wadern, Germany.

Other links:

  • PermLab: software for permutation patterns, maintained by Michael Albert.
  • Database of Permutation Pattern Avoidance, maintained by Bridget Tenner.
  • PermPAL: The Permutation Pattern Avoidance Library, a database of algorithmically-derived theorems about permutation classes, maintained by Christian Bean, Émile Nadeau, Jay Pantone and Henning Ulfarsson.

permutation, pattern, combinatorial, mathematics, theoretical, computer, science, permutation, pattern, permutation, longer, permutation, permutation, written, line, notation, sequence, entries, representing, result, applying, permutation, sequence, instance, . In combinatorial mathematics and theoretical computer science a permutation pattern is a sub permutation of a longer permutation Any permutation may be written in one line notation as a sequence of entries representing the result of applying the permutation to the sequence 123 for instance the sequence 213 represents the permutation on three elements that swaps elements 1 and 2 If p and s are two permutations represented in this way these variable names are standard for permutations and are unrelated to the number pi then p is said to contain s as a pattern if some subsequence of the entries of p has the same relative order as all of the entries of s For instance permutation p contains the pattern 213 whenever p has three entries x y and z that appear within p in the order x y z but whose values are ordered as y lt x lt z the same as the ordering of the values in the permutation 213 The permutation 32415 on five elements contains 213 as a pattern in several different ways 3 15 415 32 5 324 and 2 15 all form triples of entries with the same ordering as 213 Each of the subsequences 315 415 325 324 and 215 is called a copy instance or occurrence of the pattern The fact that p contains s is written more concisely as s p If a permutation p does not contain a pattern s then p is said to avoid s The permutation 51342 avoids 213 it has 10 subsequences of three entries but none of these 10 subsequences has the same ordering as 213 Contents 1 Early results 2 Computer science origins 3 Enumerative origins 4 Closed classes 5 Mobius function 6 Computational complexity 7 Packing densities 8 Superpatterns 9 Generalizations 10 References 11 External linksEarly results editA case can be made that Percy MacMahon 1915 was the first to prove a result in the field with his study of lattice permutations 1 In particular MacMahon shows that the permutations which can be divided into two decreasing subsequences i e the 123 avoiding permutations are counted by the Catalan numbers 2 Another early landmark result in the field is the Erdos Szekeres theorem in permutation pattern language the theorem states that for any positive integers a and b every permutation of length at least a 1 b 1 1 displaystyle a 1 b 1 1 nbsp must contain either the pattern 1 2 3 a displaystyle 1 2 3 dots a nbsp or the pattern b b 1 2 1 displaystyle b b 1 dots 2 1 nbsp Computer science origins editThe study of permutation patterns began in earnest with Donald Knuth s consideration of stack sorting in 1968 3 Knuth showed that the permutation p can be sorted by a stack if and only if p avoids 231 and that the stack sortable permutations are enumerated by the Catalan numbers 4 Knuth also raised questions about sorting with deques In particular Knuth s question asking how many permutation of n elements are obtainable with the use of a deque remains open 5 Shortly thereafter Robert Tarjan 1972 investigated sorting by networks of stacks 6 while Vaughan Pratt 1973 showed that the permutation p can be sorted by a deque if and only if for all k p avoids 5 2 7 4 4k 1 4k 2 3 4k 1 and 5 2 7 4 4k 3 4k 1 4k 2 3 and every permutation that can be obtained from either of these by interchanging the last two elements or the 1 and the 2 7 Because this collection of permutations is infinite in fact it is the first published example of an infinite antichain of permutations it is not immediately clear how long it takes to decide if a permutation can be sorted by a deque Rosenstiehl amp Tarjan 1984 later presented a linear in the length of p time algorithm which determines if p can be sorted by a deque 8 In his paper Pratt remarked that this permutation pattern order seems to be the only partial order on permutation that arises in a simple and natural way and concludes by noting that from an abstract point of view the permutation pattern order is even more interesting than the networks we were characterizing 7 Enumerative origins editMain article Enumerations of specific permutation classes A prominent goal in the study of permutation patterns is in the enumeration of permutations avoiding a fixed and typically short permutation or set of permutations Let Avn B denote the set of permutations of length n which avoid all of the permutations in the set B in the case B is a singleton say b the abbreviation Avn b is used instead As noted above MacMahon and Knuth showed that Avn 123 Avn 231 Cn the nth Catalan number Thus these are isomorphic combinatorial classes Simion amp Schmidt 1985 was the first paper to focus solely on enumeration Among other results Simion and Schmidt counted even and odd permutations avoiding a pattern of length three counted permutations avoiding two patterns of length three and gave the first bijective proof that 123 and 231 avoiding permutations are equinumerous 9 Since their paper many other bijections have been given see Claesson amp Kitaev 2008 for a survey 10 In general if Avn b Avn s for all n then b and s are said to be Wilf equivalent Many Wilf equivalences stem from the trivial fact that Avn b Avn b 1 Avn brev for all n where b 1 denotes the inverse of b and brev denotes the reverse of b These two operations generate the Dihedral group D8 with a natural action on permutation matrices However there are also numerous examples of nontrivial Wilf equivalences such as that between 123 and 231 Stankova 1994 proved that the permutations 1342 and 2413 are Wilf equivalent 11 Stankova amp West 2002 proved that for any permutation b the permutations 231 b and 312 b are Wilf equivalent where denotes the direct sum operation 12 Backelin West amp Xin 2007 proved that for any permutation b and any positive integer m the permutations 12 m b and m 21 b are Wilf equivalent 13 From these two Wilf equivalences and the inverse and reverse symmetries it follows that there are three different sequences Avn b where b is of length four b sequence enumerating Avn b OEIS reference exact enumeration reference 1342 1 2 6 23 103 512 2740 15485 91245 555662 A022558 Bona 1997 14 1234 1 2 6 23 103 513 2761 15767 94359 586590 A005802 Gessel 1990 15 1324 1 2 6 23 103 513 2762 15793 94776 591950 A061552 unenumerated In the late 1980s Richard Stanley and Herbert Wilf conjectured that for every permutation b there is some constant K such that Avn b lt Kn This was known as the Stanley Wilf conjecture until it was proved by Adam Marcus and Gabor Tardos 16 Closed classes editMain article Permutation class A closed class also known as a pattern class permutation class or simply class of permutations is a downset in the permutation pattern order Every class can be defined by the minimal permutations which do not lie inside it its basis Thus the basis for the stack sortable permutations is 231 while the basis for the deque sortable permutations is infinite The generating function for a class is S x p where the sum is taken over all permutations p in the class Mobius function editAs the set of permutations under the containment order forms a poset it is natural to ask about its Mobius function a goal first explicitly presented by Wilf 2002 17 The goal in such investigations is to find a formula for the Mobius function of an interval s p in the permutation pattern poset which is more efficient than the naive recursive definition The first such result was established by Sagan amp Vatter 2006 who gave a formula for the Mobius function of an interval of layered permutations 18 Later Burstein et al 2011 generalized this result to intervals of separable permutations 19 It is known that asymptotically at least 39 95 of all permutations p of length n satisfy m 1 p 0 that is the principal Mobius function is equal to zero 20 but for each n there exist permutations p such that m 1 p is an exponential function of n 21 Computational complexity editGiven a permutation t displaystyle tau nbsp called the text of length n displaystyle n nbsp and another permutation p displaystyle pi nbsp of length k displaystyle k nbsp called the pattern the permutation pattern matching PPM problem asks whether p displaystyle pi nbsp is contained in t displaystyle tau nbsp When both n displaystyle n nbsp and k displaystyle k nbsp are regarded as variables the problem is known to be NP complete and the problem of counting the number of such matches is P complete 22 However PPM can be solved in linear time when k is a constant Indeed Guillemot and Marx 23 showed that PPM can be solved in time 2 O k 2 log k n displaystyle 2 O k 2 log k cdot n nbsp meaning that it is fixed parameter tractable with respect to k displaystyle k nbsp There are several variants on the PPM problem as surveyed by Bruner and Lackner 24 For example if the match is required to consist of contiguous entries then the problem can be solved in polynomial time 25 A different natural variant is obtained when the pattern is restricted to a proper permutation class C displaystyle mathcal C nbsp This problem is known as C displaystyle mathcal C nbsp Pattern PPM and it was shown to be polynomial time solvable for separable permutations 22 Later Jelinek and Kyncl 26 completely resolved the complexity of Av s displaystyle mbox Av sigma nbsp Pattern PPM by showing that it is polynomial time solvable when s displaystyle sigma nbsp is equal to one of 1 12 21 132 231 312 or 213 and NP complete otherwise Another variant is when both the pattern and text are restricted to a proper permutation class C displaystyle mathcal C nbsp in which case the problem is called C displaystyle mathcal C nbsp PPM For example Guillemot and Vialette 27 showed that Av 321 displaystyle mbox Av 321 nbsp PPM could be solved in O k 2 n 6 displaystyle O k 2 n 6 nbsp time Albert Lackner Lackner and Vatter 28 later lowered this to O k n displaystyle O kn nbsp and showed that the same bound holds for the class of skew merged permutations They further asked if the C displaystyle mathcal C nbsp PPM problem can be solved in polynomial time for every fixed proper permutation class C displaystyle mathcal C nbsp This question was answered negatively by Jelinek and Kyncl who showed that Av 4321 displaystyle mbox Av 4321 nbsp PPM is in fact NP complete 26 Later Jelinek Opler and Pekarek 29 showed that Av s displaystyle mbox Av sigma nbsp PPM is NP complete for any s displaystyle sigma nbsp of length at least 4 not symmetric to one of 3412 3142 4213 4123 or 41352 Packing densities editThe permutation p is said to be b optimal if no permutation of the same length as p has more copies of b In his address to the SIAM meeting on Discrete Mathematics in 1992 Wilf defined the packing density of the permutation b of length k as lim n number of copies of b in a b optimal permutation of length n n k displaystyle lim n rightarrow infty frac text number of copies of beta text in a beta text optimal permutation of length n displaystyle n choose k nbsp An unpublished argument of Fred Galvin shows that the quantity inside this limit is nonincreasing for n k and so the limit exists When b is monotone its packing density is clearly 1 and packing densities are invariant under the group of symmetries generated by inverse and reverse so for permutations of length three there is only one nontrivial packing density Walter Stromquist unpublished settled this case by showing that the packing density of 132 is 2 3 3 approximately 0 46410 For permutations b of length four there are due to symmetries seven cases to consider b packing density reference 1234 1 trivial 1432 root of x3 12x2 156x 64 0 42357 Price 1997 30 2143 0 375 Price 1997 30 1243 0 375 Albert et al 2002 31 1324 conjectured to be 0 244 1342 conjectured to be 0 19658 2413 conjectured to be 0 10474 For the three unknown permutations there are bounds and conjectures Price 1997 used an approximation algorithm which suggests that the packing density of 1324 is around 0 244 30 Birzhan Batkeyev unpublished constructed a family of permutations showing that the packing density of 1342 is at least the product of the packing densities of 132 and 1432 approximately 0 19658 This is conjectured to be the precise packing density of 1342 Presutti amp Stromquist 2010 provided a lower bound on the packing density of 2413 This lower bound which can be expressed in terms of an integral is approximately 0 10474 and conjectured to be the true packing density 32 Superpatterns editMain article Superpattern A k superpattern is a permutation that contains all permutations of length k For example 25314 is a 3 superpattern because it contains all 6 permutations of length 3 It is known that k superpatterns must have length at least k2 e2 where e 2 71828 is Euler s number 33 and that there exist k superpatterns of length k2 1 2 34 This upper bound is conjectured to be best possible up to lower order terms 35 Generalizations editThere are several ways in which the notion of pattern has been generalized For example a vincular pattern is a permutation containing dashes indicating the entries that need not occur consecutively in the normal pattern definition no entries need to occur consecutively For example the permutation 314265 has two copies of the dashed pattern 2 31 4 given by the entries 3426 and 3425 For a dashed pattern b and any permutation p we write b p for the number of copies of b in p Thus the number of inversions in p is 2 1 p while the number of descents is 21 p Going further the number of valleys in p is 213 p 312 p while the number of peaks is 231 p 132 p These patterns were introduced by Babson amp Steingrimsson 2000 who showed that almost all known Mahonian statistics could be expressed in terms of vincular permutations 36 For example the Major index of p is equal to 1 32 p 2 31 p 3 21 p 21 p Another generalization is that of a barred pattern in which some of the entries are barred For p to avoid the barred pattern b means that every set of entries of p which form a copy of the nonbarred entries of b can be extended to form a copy of all entries of b West 1993 introduced these types of patterns in his study of permutations which could be sorted by passing them twice through a stack 37 Note that West s definition of sorting twice through a stack is not the same as sorting with two stacks in series Another example of barred patterns occurs in the work of Bousquet Melou amp Butler 2007 who showed that the Schubert variety corresponding to p is locally factorial if and only if p avoids 1324 and 213 54 38 References edit MacMahon Percy A 1915 Combinatory Analysis London Cambridge University Press Volume I Section III Chapter V MacMahon 1915 Items 97 and 98 Knuth Donald E 1968 The Art Of Computer Programming Vol 1 Boston Addison Wesley ISBN 0 201 89683 4 MR 0286317 OCLC 155842391 Knuth 1968 Section 2 2 1 Exercises 4 and 5 Knuth 1968 Section 2 2 1 Exercise 13 rated M49 in the first printing and M48 in the second Tarjan Robert 1972 Sorting using networks of queues and stacks Journal of the ACM 19 2 341 346 doi 10 1145 321694 321704 MR 0298803 S2CID 13608929 a b Pratt Vaughan R 1973 Computing permutations with double ended queues Parallel stacks and parallel queues Proc Fifth Annual ACM Symposium on Theory of Computing Austin Tex 1973 pp 268 277 doi 10 1145 800125 804058 MR 0489115 S2CID 15740957 Rosenstiehl Pierre Tarjan Robert 1984 Gauss codes planar Hamiltonian graphs and stack sortable permutations Journal of Algorithms 5 3 375 390 doi 10 1016 0196 6774 84 90018 X MR 0756164 Simion Rodica Schmidt Frank W 1985 Restricted permutations European Journal of Combinatorics 6 4 383 406 doi 10 1016 s0195 6698 85 80052 4 MR 0829358 Claesson Anders Kitaev Sergey 2008 Classification of bijections between 321 and 132 avoiding permutations Seminaire Lotharingien de Combinatoire 60 B60d 30pp arXiv 0805 1325 MR 2465405 Stankova Zvezdelina 1994 Forbidden subsequences Discrete Mathematics 132 1 3 291 316 doi 10 1016 0012 365X 94 90242 9 MR 1297387 Stankova Zvezdelina West Julian 2002 A New class of Wilf Equivalent Permutations Journal of Algebraic Combinatorics 15 3 271 290 arXiv math 0103152 doi 10 1023 A 1015016625432 MR 1900628 S2CID 13921676 Backelin Jorgen West Julian Xin Guoce 2007 Wilf equivalence for singleton classes Advances in Applied Mathematics 38 2 133 149 doi 10 1016 j aam 2004 11 006 MR 2290807 Bona Miklos 1997 Exact enumeration of 1342 avoiding permutations a close link with labeled trees and planar maps Journal of Combinatorial Theory Series A 80 2 257 272 arXiv math 9702223 doi 10 1006 jcta 1997 2800 MR 1485138 S2CID 18352890 Gessel Ira M 1990 Symmetric functions and P recursiveness Journal of Combinatorial Theory Series A 53 2 257 285 doi 10 1016 0097 3165 90 90060 A MR 1041448 Marcus Adam Tardos Gabor 2004 Excluded permutation matrices and the Stanley Wilf conjecture Journal of Combinatorial Theory Series A 107 1 153 160 doi 10 1016 j jcta 2004 04 002 MR 2063960 Wilf Herbert 2002 Patterns of permutations Discrete Mathematics 257 2 575 583 doi 10 1016 S0012 365X 02 00515 0 MR 1935750 Sagan Bruce Vatter Vince 2006 The Mobius function of a composition poset Journal of Algebraic Combinatorics 24 2 117 136 arXiv math 0507485 doi 10 1007 s10801 006 0017 4 MR 2259013 S2CID 11283347 Burstein Alexander Jelinek Vit Jelinkova Eva Steingrimsson Einar 2011 The Mobius function of separable and decomposable permutations Journal of Combinatorial Theory Series A 118 1 2346 2364 doi 10 1016 j jcta 2011 06 002 MR 2834180 S2CID 13978488 Brignall Robert Jelinek Vit Kyncl Jan Marchant David 2019 Zeros of the Mobius function of permutations PDF Mathematika 65 4 1074 1092 arXiv 1810 05449 doi 10 1112 S0025579319000251 MR 3992365 S2CID 53366318 Marchant David 2020 2413 balloon permutations and the growth of the Mobius function Electronic Journal of Combinatorics 27 1 Article P1 7 18 pp arXiv 1812 05064 doi 10 37236 8554 a b Bose Prosenjit Buss Jonathan F Lubiw Anna March 1998 Pattern matching for permutations Information Processing Letters 65 5 277 283 doi 10 1016 S0020 0190 97 00209 3 Guillemot Sylvain Marx Daniel 2014 Finding small patterns in permutations in linear time Proceedings of the Twenty Fifth Annual ACM SIAM Symposium on Discrete Algorithms 20 arXiv 1307 3073 doi 10 1137 1 9781611973402 7 ISBN 978 1 61197 338 9 S2CID 1846959 Bruner Marie Louise Lackner Martin 2013 The computational landscape of permutation patterns Pure Mathematics and Applications 24 2 83 101 arXiv 1301 0340 Kubica M Kulczynski T Radoszewski J Rytter W Walen T 2013 A linear time algorithm for consecutive permutation pattern matching Information Processing Letters 113 12 430 433 doi 10 1016 j ipl 2013 03 015 a b Jelinek Vit Kyncl Jan 2017 Hardness of Permutation Pattern Matching Proceedings of the Twenty Eighth Annual ACM SIAM Symposium on Discrete Algorithms SODA 2017 Barcelona Spain Hotel Porta Fira January 16 19 SIAM pp 378 396 arXiv 1608 00529 doi 10 1137 1 9781611974782 24 Guillemot Sylvain Vialette Stephane 2009 Pattern matching for 321 avoiding permutations Algorithms and Computation Lecture Notes in Computer Science vol 5878 pp 1064 1073 arXiv 1511 01770 doi 10 1007 978 3 642 10631 6 107 Albert Michael Lackner Marie Louise Lackner Martin Vatter Vincent 2016 The complexity of pattern matching for 321 avoiding and skew merged permutations Discrete Mathematics amp Theoretical Computer Science 18 2 arXiv 1510 06051 doi 10 46298 dmtcs 1308 S2CID 5827603 Jelinek Vit Opler Michal Pekarek Jakub 2021 Griddings of Permutations and Hardness of Pattern Matching 46th International Symposium on Mathematical Foundations of Computer Science MFCS 2021 August 23 27 2021 Tallinn Estonia Schloss Dagstuhl Leibniz Zentrum fur Informatik pp 65 1 65 22 arXiv 2107 10897 doi 10 4230 LIPIcs MFCS 2021 65 a b c Price Alkes 1997 Packing densities of layered patterns Ph D thesis University of Pennsylvania ProQuest 304421853 Albert Michael H Atkinson M D Handley C C Holton D A Stromquist W 2002 On packing densities of permutations Electronic Journal of Combinatorics 9 Article R5 20 pp doi 10 37236 1622 MR 1887086 Presutti Cathleen Battiste Stromquist Walter 2010 Packing rates of measures and a conjecture for the packing density of 2413 in Linton Steve Ruskuc Nik Vatter Vincent eds Permutation Patterns London Math Soc Lecture Notes vol 376 Cambridge University Press pp 287 316 doi 10 1017 CBO9780511902499 015 Arratia Richard 1999 On the Stanley Wilf conjecture for the number of permutations avoiding a given pattern Electronic Journal of Combinatorics 6 Article N1 4 pp doi 10 37236 1477 MR 1710623 Engen Michael Vatter Vincent 2021 Containing all permutations American Mathematical Monthly 128 1 4 24 arXiv 1810 08252 doi 10 1080 00029890 2021 1835384 Eriksson Henrik Eriksson Kimmo Linusson Svante Wastlund Johan 2007 Dense packing of patterns in a permutation Annals of Combinatorics 11 3 4 459 470 doi 10 1007 s00026 007 0329 7 MR 2376116 S2CID 2021533 Babson Erik Steingrimsson Einar 2000 Generalized permutation patterns and a classification of the Mahonian statistics Seminaire Lotharingien de Combinatoire 44 Research article B44b 18 pp MR 1758852 West Julian 1993 Sorting twice through a stack Theoretical Computer Science 117 1 2 303 313 doi 10 1016 0304 3975 93 90321 J MR 1235186 Bousquet Melou Mireille Butler Steve 2007 Forest like permutations Annals of Combinatorics 11 3 4 335 354 arXiv math 0603617 doi 10 1007 s00026 007 0322 1 MR 2376109 S2CID 31236417 External links edit nbsp Wikimedia Commons has media related to Permutation patterns A conference on permutation patterns has been held annually since 2003 Permutation Patterns 2003 February 10 14 2003 University of Otago Dunedin New Zealand Permutation Patterns 2004 July 5 9 2004 Malaspina University College Nanaimo British Columbia Canada Permutation Patterns 2005 March 7 11 2005 University of Florida Gainesville Florida USA Permutation Patterns 2006 June 12 16 2006 Reykjavik University Reykjavik Iceland Permutation Patterns 2007 June 11 15 2007 University of St Andrews St Andrews Scotland Permutation Patterns 2008 June 16 20 2008 University of Otago Dunedin New Zealand Permutation Patterns 2009 July 13 17 2009 Universita di Firenze Florence Italy Permutation Patterns 2010 August 9 13 2010 Dartmouth College Hanover New Hampshire USA Permutation Patterns 2011 June 20 24 2011 California Polytechnic State University San Luis Obispo California USA Permutation Patterns 2012 June 11 15 2012 University of Strathclyde Glasgow Scotland Permutation Patterns 2013 July 1 5 2013 Universite Paris Diderot Paris France Permutation Patterns 2014 July 7 11 2014 East Tennessee State University Johnson City Tennessee USA Permutation Patterns 2015 June 15 19 2015 De Morgan House London England Permutation Patterns 2016 June 27 July 1 2016 Howard University Washington DC USA Permutation Patterns 2017 June 26 30 2017 Reykjavik University Reykjavik Iceland Permutation Patterns 2018 July 9 13 2018 Dartmouth College Hanover New Hampshire USA Permutation Patterns 2019 June 17 21 2019 Universitat Zurich Zurich Switzerland Permutation Patterns 2020 Virtual Workshop June 30 July 1 2020 hosted by Valparaiso University Valparaiso Indiana USA Permutation Patterns 2021 Virtual Workshop June 15 16 2021 hosted by University of Strathclyde Glasgow Scotland Permutation Patterns 2022 June 20 24 2022 Valparaiso University Valparaiso Indiana USA Permutation Patterns 2023 July 3 7 2023 University of Burgundy Dijon France American Mathematical Society Special Sessions on Patterns in Permutations have been held at the following meetings Fall Eastern Sectional Meeting September 22 23 2012 Rochester Institute of Technology Rochester NY Joint Mathematics Meetings January 12 2013 San Diego CA Central Fall Sectional Meeting September 20 21 2014 University of Wisconsin Eau Claire Eau Claire WI Spring Eastern Sectional Meeting March 7 8 2015 Georgetown University Washington DC Other permutation patterns meetings Workshop on Permutation Patterns May 29 June 3 2005 University of Haifa Haifa Israel Pattern Avoidance and Genome Sorting February 14 19 2016 Schloss Dagstuhl Wadern Germany Genomics Pattern Avoidance and Statistical Mechanics November 4 9 2018 Schloss Dagstuhl Wadern Germany Pattern Avoidance Statistical Mechanics and Computational Complexity March 19 24 2023 Schloss Dagstuhl Wadern Germany Other links PermLab software for permutation patterns maintained by Michael Albert Database of Permutation Pattern Avoidance maintained by Bridget Tenner PermPAL The Permutation Pattern Avoidance Library a database of algorithmically derived theorems about permutation classes maintained by Christian Bean Emile Nadeau Jay Pantone and Henning Ulfarsson Retrieved from https en wikipedia org w index php title Permutation pattern amp oldid 1215564307, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.