#16304: Non-deterministic ordering of GMP-ECM output
-------------------------------------------------+-------------------------
Reporter: pbruin | Owner:
Type: defect | Status: new
Priority: minor | Milestone: sage-6.2
Component: interfaces | Resolution:
Keywords: gmp-ecm elliptic curve | Merged in:
factoring | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | Stopgaps:
Dependencies: |
-------------------------------------------------+-------------------------
Comment (by pbruin):
Replying to [comment:4 zimmerma]:
> > How about letting `_parse_output()` always sort the list of pairs
`(factor, probable_prime)` before returning it, regardless of the number
of factors and the value of `probable_prime` for each?
>
> but then we would lose some information, since the first factor is the
one which is really found by ECM.
>
> And with 3 prime factors or more, we would still have non-deterministic
output.
Ah, right. Then maybe the most reasonable solution is not to change the
code at all, but to make the doctests resistant to non-deterministic
results: sort the output in those tests where ''n'' has only two prime
factors, and check that the output consists of at least 2 factors with the
correct product if ''n'' has at least three prime factors.
--
Ticket URL: <http://trac.sagemath.org/ticket/16304#comment:5>
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.