Permutations/Rank of a permutation: Difference between revisions
Content added Content deleted
(New draft task and Python solution.) |
(limit wrong) |
||
Line 39: | Line 39: | ||
# Create the inverse function that given the permutation generates its rank. |
# Create the inverse function that given the permutation generates its rank. |
||
# Show that for <math>n=3</math> the two functions are indeed inverses of each other. |
# Show that for <math>n=3</math> the two functions are indeed inverses of each other. |
||
# Compute and show here 4 random, individual, samples of permutations of |
# Compute and show here 4 random, individual, samples of permutations of 12 objects. |
||
;Stretch goal: |
;Stretch goal: |
||
* State how reasonable it would be to use your program to address the limits of the Stack Overflow question. |
* State how reasonable it would be to use your program to address the limits of the Stack Overflow question. |