#6631: speed up is_lyndon method for words
---------------------------+------------------------------------------------
Reporter: saliola | Owner: Franco Saliola
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.1
Component: combinatorics | Keywords: words
Reviewer: | Author: Franco Saliola
Merged: |
---------------------------+------------------------------------------------
The current implementation of the method {{{is_lyndon}}} is too slow
{{{
sage: c = words.ChristoffelWord(380447,34369)
sage: c
Lower Christoffel word of slope 380447/34369 over Ordered Alphabet [0, 1]
sage: c.length()
414816
sage: time c.is_lyndon()
CPU times: user 84.15 s, sys: 0.17 s, total: 84.33 s
Wall time: 84.52 s
True
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6631>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---