#12997: LyndonWords from composition beginning by 0's
-----------------------------+----------------------------------------------
   Reporter:  Adrien         |             Owner:  sage-combinat              
       Type:  defect         |            Status:  new                        
   Priority:  minor          |         Milestone:  sage-5.1                   
  Component:  combinatorics  |          Keywords:  lyndon words, sage-combinat
Work issues:                 |   Report Upstream:  N/A                        
  Reviewers:                 |           Authors:                             
  Merged in:                 |      Dependencies:                             
   Stopgaps:                 |  
-----------------------------+----------------------------------------------
 LyndonWords, when applied to a composition starting with 0's, gives a
 wrong result, e.g.:

 for w in LyndonWords(list([0,1])):
     print w

 return 1 instead of 2, and in a similar vein

 for w in LyndonWords(list([0,2])):
     print w

 return '12'

 The problem is also described here : http://groups.google.com/group/sage-
 combinat-devel/browse_thread/thread/5c4b691a692b56b0#

 The problem is that necklace._sfc() ignores 0's at the begining of a list.

 A modified lyndon_word.py file which fix the problem is attached.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12997>
Sage <http://www.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.

Reply via email to