#17818: Interface to FindStat
-------------------------------------+-------------------------------------
   Reporter:  mantepse               |            Owner:
       Type:  enhancement            |           Status:  new
   Priority:  major                  |        Milestone:  sage-6.6
  Component:  interfaces             |         Keywords:  FindStat
  Merged in:                         |          Authors:  Martin Rubey
  Reviewers:                         |  Report Upstream:  N/A
Work issues:                         |           Branch:  public/findstat-
     Commit:                         |  interface
  ce07ce4d0cb545a054f6b4878ce349119d18d901|     Dependencies:
   Stopgaps:                         |
-------------------------------------+-------------------------------------
 Sage should have an interface to FindStat, the "combinatorial statistics
 finder".  A first version, modelled after the interface to the OEIS is
 attached.  To get you started, you can try the following:

 {{{
 sage: findstat('St000045')                   # optional -- internet
     St000045: The number of linear extensions of the tree.

     sage: s = findstat(3); s                            # optional --
 internet
     St000003: The number of [[/StandardTableaux|standard Young tableaux]]
 of the partition.

     sage: s.browse()

     sage: stat = {pi: pi.length() for pi in Permutations(3)}
     sage: search = findstat(stat) ; search    # optional -- internet
     0: (St000018: The [[/Permutations/Inversions|number of inversions]] of
 a permutation., [], 6)
     1: (St000004: The [[/Permutations/Descents-Major|major index]] of a
 permutation., ['inversion-number to major-index bijection'], 6)
     2: (St000067: The inversion number of the alternating sign matrix.,
 ['to alternating sign matrix'], 6)
     3: (St000224: The sorting index of a permutation., ['first fundamental
 transformation'], 6)
     4: (St000008: The major index of the composition., ['inversion-number
 to major-index bijection', 'descent composition'], 6)
     5: (St000059: The inversion number of a standard Young tableau as
 defined by Haglund and Stevens. [1]  , ['inversion-number to major-index
 bijection', 'Robinson-Schensted recording tableau'], 6)
     6: (St000153: The number of adjacent cycles of a permutation.,
 ['reverse', 'first fundamental transformation'], 6)
     7: (St000156: The Denert index of a permutation., ['inverse first
 fundamental transformation', 'foata_bijection'], 6)
     8: (St000174: The flush statistic on semistandard tableaux., ['to
 alternating sign matrix', 'to semistandard tableau'], 6)
 }}}

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