Skip to content

bug in pattern avoiding permutations #4895

@jbandlow

Description

@jbandlow

The following behavior is clearly bad:

sage: [p for p in Permutations(4,avoiding=[2,3,1]) if p.has_pattern([2,3,1])]               
[[2, 3, 1, 4], [4, 2, 3, 1]]

Similar behavior occurs when avoiding [1,3,2], [2,1,3], and [3,1,2].

CC: @jbandlow @sagetrac-sage-combinat

Component: combinatorics

Keywords: pattern avoiding permutations

Issue created by migration from https://trac.sagemath.org/ticket/4895

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions