#13764: CartesianProduct with generators -> silent wrong answer
---------------------------------+------------------------------------------
       Reporter:  vbraun         |         Owner:  sage-combinat
           Type:  defect         |        Status:  needs_review 
       Priority:  major          |     Milestone:  sage-5.6     
      Component:  combinatorics  |    Resolution:               
       Keywords:                 |   Work issues:               
Report Upstream:  N/A            |     Reviewers:               
        Authors:  Volker Braun   |     Merged in:               
   Dependencies:                 |      Stopgaps:               
---------------------------------+------------------------------------------

Comment (by ncohen):

 (and of course there is a way to do this without remembering "the list of
 things you have already returned")

 Or else, a bit easier, is to return the elements in lexicographical order.
 It's less pretty, but easier to implement. And in this situation, you only
 remember from each iterator the list of elements you have already used.
 And you can "ask for another element" when needed.

 Actually, this order of enumeration is more realistic.
 I prefered the previous one, but it is trickier to enumerate :-P

 Nathann

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