#4895: bug in pattern avoiding permutations
---------------------------+------------------------------------------------
Reporter: jbandlow | Owner: mhansen
Type: defect | Status: new
Priority: major | Milestone:
Component: combinatorics | Keywords: pattern avoiding permutations
---------------------------+------------------------------------------------
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].
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4895>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---