#5288: [with patch, not ready for review] cython gray code iterator for
k-combinations of a set
---------------------------------+------------------------------------------
       Reporter:  dgordon        |         Owner:  mhansen   
           Type:  enhancement    |        Status:  needs_work
       Priority:  major          |     Milestone:  sage-5.6  
      Component:  combinatorics  |    Resolution:            
       Keywords:                 |   Work issues:            
Report Upstream:  N/A            |     Reviewers:            
        Authors:                 |     Merged in:            
   Dependencies:                 |      Stopgaps:            
---------------------------------+------------------------------------------

Comment (by jason):

 What's the current status?

 Just the other day, I would have loved an iterator that would iterate
 through a gray code and tell me just the element that changed and by how
 much, so I could do:

 {{{
 for i in myiter():
     # i is the thing that changed, so I can update my data structure
 accordingly, and just have to change one thing
     # some other code depending on the current status of my data structure
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5288#comment:4>
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