Macaulay2 » Documentation
Packages » MatrixSchubert :: avoidsAllPatterns
next | previous | forward | backward | up | index | toc

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

Synopsis

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 :

For the programmer

The object avoidsAllPatterns is a method function.