Function Repository Resource:

RandomYoungTableau

Source Notebook

Generate a random Young tableau with a given shape

Contributed by: Wolfram Staff

ResourceFunction["RandomYoungTableau"][p]

generates a random Young tableau of shape p.

ResourceFunction["RandomYoungTableau"][p,n]

generates n random Young tableaux of shape p.

Examples

Basic Examples (2) 

Generate a random Young tableau:

In[1]:=
ResourceFunction["RandomYoungTableau"][{3, 1, 1}]
Out[1]=

Generate multiple random Young tableaux:

In[2]:=
ResourceFunction["RandomYoungTableau"][{5, 4, 2, 2}, 3]
Out[2]=

Scope (2) 

Visualize some random Young tableaux:

In[3]:=
Grid[Map[Function[x, Item[x, Frame -> True]], #, {2}]] & /@ ResourceFunction["RandomYoungTableau"][{4, 2, 1}, 3]
Out[3]=

Generate a medium-sized tableau:

In[4]:=
ResourceFunction[
 "RandomYoungTableau"][{6, 4, 3, 3, 2, 2, 2, 2, 1, 1, 1}]
Out[4]=

Version History

  • 1.0.0 – 14 February 2022

Related Resources

License Information