Bushindo's nice "Find the permutation" problem, which intermingled
a binary array with permutations, inspired me to strike out in a
similar vein. Here's the outcome.
Consider the permutation on 16 things:
1 -> 13
2 -> 5
3 -> 14
4 -> 3
5 -> 12
6 -> 9
7 -> 11
8 -> 10
9 -> 16
10 -> 6
11 -> 1
12 -> 15
13 -> 7
14 -> 4
15 -> 2
16 -> 8
[/code]
This can be written in [b]cyclic form[/b] like this:
(1,13,7,11)(2,5,12,15)(3,14,4)(6,9,16,8,10) so that
the cyclic structure of the permutation is easily seen.
(1,13,7,11) is just shorthand for 1 -> 13 -> 7 -> 11 -> 1 ...,
and is seen to be a 4-long cycle. We will use this
cyclic form for permutations in this problem.
We will assign a score to any permutation of 16 elements
by using the 16×16 array of integers below (the rows and
columns are numbered for ease of reference). The permutation
will decide which elements of this array will be added
together to form the score. If i -> j in the permutation
(or, equivalently, if j follows i in the cyclic form of it),
then the element in the i[sup]th[/sup] row and j[sup]th[/sup] column is chosen
to be in the sum. For example, the score for the above
permutation is seen to be 3277 because
[code]
219 from row 1, column 13
+226 from row 2, column 5
+131 from row 3, column 14
+136 from row 4, column 3
+218 from row 5, column 12
+230 from row 6, column 9
+254 from row 7, column 11
+203 from row 8, column 10
+245 from row 9, column 16
+241 from row 10, column 6
+185 from row 11, column 1
+201 from row 12, column 15
+246 from row 13, column 7
+135 from row 14, column 4
+157 from row 15, column 2
+250 from row 16, column 8
-----
3277 total
Question
superprismatic
Bushindo's nice "Find the permutation" problem, which intermingled
a binary array with permutations, inspired me to strike out in a
similar vein. Here's the outcome.
Consider the permutation on 16 things:
The problem is in 3 parts:
1. Find the highest scoring permutation which has one 16-long cycle
2. Find the highest scoring permutation which has two 8-long cycles
3. Find the highest scoring permutation which has four 4-long cycles
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.