#10134: Provide the enumeration of word morphisms from a range of integers
-----------------------------+----------------------------------------------
   Reporter:  slabbe         |       Owner:  slabbe  
       Type:  enhancement    |      Status:  new     
   Priority:  major          |   Milestone:  sage-4.6
  Component:  combinatorics  |    Keywords:          
     Author:                 |    Upstream:  N/A     
   Reviewer:                 |      Merged:          
Work_issues:                 |  
-----------------------------+----------------------------------------------
 The method `iter_morphisms` may iterate through all morphisms (infinite
 iterator) or through all morphisms having particular lengths for the image
 of each letter. Recently, I needed something in the middle, that is, a
 finite iterator that behaves like the infinite one. Thus, I added a new
 possible type for the argument (tuple) which specifies a range for the sum
 of the lengths of the images. Here is an example:

 {{{
     sage: W = Words('ab')
     sage: for m in W.iter_morphisms( (2, 4) ): print m
     WordMorphism: a->a, b->a
     WordMorphism: a->a, b->b
     WordMorphism: a->b, b->a
     WordMorphism: a->b, b->b
     WordMorphism: a->aa, b->a
     WordMorphism: a->aa, b->b
     WordMorphism: a->ab, b->a
     WordMorphism: a->ab, b->b
     WordMorphism: a->ba, b->a
     WordMorphism: a->ba, b->b
     WordMorphism: a->bb, b->a
     WordMorphism: a->bb, b->b
     WordMorphism: a->a, b->aa
     WordMorphism: a->a, b->ab
     WordMorphism: a->a, b->ba
     WordMorphism: a->a, b->bb
     WordMorphism: a->b, b->aa
     WordMorphism: a->b, b->ab
     WordMorphism: a->b, b->ba
     WordMorphism: a->b, b->bb
 }}}

 Patch to be posted soon.

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