Macaulay2 » Documentation
Packages » MatrixSchubert » Functions for investigating permutations » avoidsAllPatterns
next | previous | forward | backward | up | index | toc

avoidsAllPatterns -- whether a permutation avoids all of the given patterns

Description

Given a permutation in one-line notation, and a list of patterns checks if the permutation avoids every pattern.

i1 : w = {7,2,5,8,1,3,6,4}

o1 = {7, 2, 5, 8, 1, 3, 6, 4}

o1 : List
i2 : patterns = {{2,1,4,3},{1,4,3,2}}

o2 = {{2, 1, 4, 3}, {1, 4, 3, 2}}

o2 : List
i3 : avoidsAllPatterns(w,patterns)

o3 = false

Ways to use avoidsAllPatterns:

  • avoidsAllPatterns(List,List)

For the programmer

The object avoidsAllPatterns is a method function.


The source of this document is in MatrixSchubert/permutationMethodsDOC.m2:313:0.