#12379: Graph chromatic_number - change default algorithm.
----------------------------+-----------------------------------------------
   Reporter:  JoalHeagney   |          Owner:  jason, ncohen, rlm           
       Type:  enhancement   |         Status:  new                          
   Priority:  minor         |      Milestone:  sage-5.0                     
  Component:  graph theory  |       Keywords:  graph, MILP, chromatic_number
Work_issues:                |       Upstream:  N/A                          
   Reviewer:                |         Author:  JoalHeagney                  
     Merged:                |   Dependencies:                               
----------------------------+-----------------------------------------------

Comment(by was):

 A student in my class -- Andrew Johnson -- looked at doing this ticket.
 But he was surprised to find that your assertion that

 {{{
 g = graphs.CubeGraph(11)
 time g.chromatic_number(algorithm='DLX')
 Time: CPU 0.27 s, Wall: 0.27 s
 time g.chromatic_number(algorithm='MILP')
 Time: CPU 0.06 s, Wall: 0.06 s
 }}}

 But the next one has DLX way ahead:
 {{{
 g = graphs.RandomGNP(30, .4)
 time g.chromatic_number(algorithm='DLX')
 Time: CPU 1.37 s, Wall: 1.37 s
 time g.chromatic_number(algorithm='MILP')
 Time: CPU 11.29 s, Wall: 11.30 s
 }}}

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

Reply via email to