#16935: Faster palindromes function for the Words library
-------------------------------------+-------------------------------------
       Reporter:  nadialafreniere    |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.4
      Component:  combinatorics      |   Resolution:
       Keywords:  words, finite      |    Merged in:
  words, palindromes                 |    Reviewers:
        Authors:  Nadia Lafrenière   |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  def64a1a59757069be2840256a41dbc5951d5e07
  u/nadialafreniere/16935            |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by slabbe):

 16. Be more brief. For instance replace the 7 lines

 {{{
 # The list LPS records the lengths of the longest
 # `f`-palindromic suffix for each prefix of self.
 LPS = []

 # The list LPC records the lengths of the maximal
 # `f`-palindromes centered at each position j in self.
 LPC = []
 }}}

 by the 2 lines:

 {{{
 LPS = [] #lengths of longest palindrome suffix of prefixes
 LPC = [] #lengths of maximal palindromes centered at a position
 }}}

 and so on...

--
Ticket URL: <http://trac.sagemath.org/ticket/16935#comment:15>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to