#14666: Test if a weight function is generic for a given matroid
-------------------------------------+-------------------------------------
       Reporter:  Stefan             |        Owner:  Stefanf
           Type:  enhancement        |       Status:  needs_review
       Priority:  minor              |    Milestone:  sage-7.2
      Component:  matroid theory     |   Resolution:
       Keywords:  matroid, weight    |    Merged in:
  function                           |    Reviewers:
        Authors:                     |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  059b6d3816eae7412bc5e6570c17888fa2b75678
  public/ticket/14666                |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by tara):

 The algorithm follows from the idea that whenever we apply the greedy
 algorithm, we get a maximal basis, and we can get each maximal basis by
 using the greedy algorithm. A maximal weighted basis `B` is unique if and
 only if for every `e\in E(M)-B`, we have `e` is in the closure of `{b\in
 B|w(b)>w(e)}`. In other words, `B` is unique, if when using the greedy
 algorithm, we never were able to choose an element of `E(M)-B`.

 We don't need an array for `smres` in the weights is None case. I had
 originally put both cases in one for loop, until I realized that that was
 gross, and I didn't notice, when I changed it, that `smres` is now
 pointless in that case.

--
Ticket URL: <http://trac.sagemath.org/ticket/14666#comment:16>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to