#10205: Random test in sage.graphs.generic_graph_pyx.find_hamiltonian takes a
very
long time
------------------------+---------------------------------------------------
Reporter: jdemeyer | Owner: mvngu
Type: defect | Status: new
Priority: major | Milestone: sage-4.6.1
Component: doctest | Keywords: graph find_hamiltonian
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Changes (by jdemeyer):
* cc: fidelbarrera, rlm, boothby, ncohen (added)
* keywords: => graph find_hamiltonian
Old description:
> The following test from sage/graphs/generic_graph_pyx.pyx takes a very
> long time:
> {{{
> TESTS:
>
> Running the algorithm on random instances, just to make sure the
> answers are still satisfiable path (the algorithm would raise an
> exception otherwise)::
>
> sage: for i in range(200):
> ... g = graphs.RandomGNP(20,.1)
> ... _ = fh(G,find_path=True)
> }}}
> At the very least, it should be marked {{{# long time}}} but even then I
> think it takes way too long.
>
> Also, it looks like {{{g}}} should be {{{G}}}.
New description:
The following test from {{{sage/graphs/generic_graph_pyx.pyx}}} takes a
very long time:
{{{
TESTS:
Running the algorithm on random instances, just to make sure the
answers are still satisfiable path (the algorithm would raise an
exception otherwise)::
sage: for i in range(200):
... g = graphs.RandomGNP(20,.1)
... _ = fh(G,find_path=True)
}}}
It looks like {{{g}}} should be {{{G}}}. Making this change makes the
runtime even larger.
At the very least, it should be marked {{{# long time}}} but even then I
think it takes way too long. Possibly some other tests in that file
should also be marked {{{# long time}}}.
See #9698 where the algorithm was implemented.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10205#comment:2>
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.