Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have a problem which is mostly neatly described by using Young Tableaux. Mathematica seems to have these Tableaux built in, except that the Tableaux function is only in Combinatorica. When I Needs[Combinatorica] I get a warning suggesting that I look at the Compatability Guide for Combinatorica, which I can't seem to find. Does anyone have a link, or know if any of the Tableaux-related functions are the problematic ones?

The Tableaux function itself is hardly documented at all, and its output is quite tough to read. I am hoping there is a nice built-in way to draw the Tableaux in the nice YT in English notation (longest rows on top) [A custom drawing function is in How to insert a function into OptionsPattern? ]. Is there such a function?

Finally, can anyone explain what the format of the input to Tableaux should be?

Here are some examples that work:

In[1]:= Needs["Combinatorica`"]

    General::compat: Combinatorica Graph and Permutations functionality has been superseded by 
preloaded functionality. The package now being loaded may conflict with this. Please see 
the Compatibility Guide for details.

In[2]:= Tableaux[3]
Out[2]= {{{1, 2, 3}}, {{1, 3}, {2}}, {{1, 2}, {3}}, {{1}, {2}, {3}}}

In[3]:= Tableaux[{3}]
Out[3]= {{{1, 2, 3}}}

In[4]:= Tableaux /@ IntegerPartitions[3]
Out[4]= {{{{1, 2, 3}}}, {{{1, 3}, {2}}, {{1, 
    2}, {3}}}, {{{1}, {2}, {3}}}}

while something like Tableaux[{1, 2, 3}] gives errors.

Does Tableaux[integer] give all possible tableaux with integer entries?
Does Tableaux[{int1, int2, ..., intk}] give all possible tableaux of k rows of length int1 ... intk respectively? This would explain why Tableaux[{1,2,3}] throws errors---it would be a malformed tableaux.

share|improve this question
Combinatorica documentation is unfortunately not included with Mathematica. The detailed description is in this book. Try to check google books for the relevant page or borrow it from your library, if you can. While Combinatorica is supposed to be obsolete, a significant part of its functionality is not yet built into Mathematica. I'm not familiar with this topic so I can't tell you if this functionality is available elsewhere ... –  Szabolcs Feb 28 '14 at 23:59
Wow, I couldn't have asked for a better, yet more disappointing, answer. –  evanb Mar 1 '14 at 0:48
@evanb: As Szabolcs said, that is the canonical reference, and even it is a bit sparse to be honest (though an excellent book). Steven makes himself quite available (I found this true when I found some inconsistencies in his Algo. book), might be worth a try pinging him, and IIRC you can peruse the source, figure it out from there. –  rasher Mar 1 '14 at 2:17
That's good to know. Maybe I will shoot him an email at some point next week... –  evanb Mar 1 '14 at 6:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.