#17233: Uniform  random generation  of StandardTableau of a given size
-------------------------------------+-------------------------------------
       Reporter:  g.chatel           |        Owner:  gchatel
           Type:  enhancement        |       Status:  new
       Priority:  major              |    Milestone:  sage-6.4
      Component:  combinatorics      |   Resolution:
       Keywords:  StandardTableaux,  |    Merged in:
  random, combinat                   |    Reviewers:
        Authors:  Grégory Châtel     |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:  public/combinat    |  3afe72304d59aa71dd7c212ea7f3a20a49245821
  /tableaux-random-17233             |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by darij):

 More minor comments:

 - "couple" should be "pair" in mathematical usage.

 - You are using
 `Permutations(self.size).random_element()[:fixed_point_number]` to
 generate a random `k`-element subset of `{1, 2, ..., n}` (if I understand
 you correctly -- otherwise, please correct me!). I think you can just as
 well do `sage.misc.prandom.sample(range(1, n+1), k)`, which is the method
 that is internally used when you call
 `Permutations(self.size).random_element()`.

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

Reply via email to