Presentation is loading. Please wait.

Presentation is loading. Please wait.

Graeko-Latin Squares. Arrange the playing cards in a 4 by 4 grid such that each value occurs once in each row and once in each column and each suit.

Similar presentations


Presentation on theme: "Graeko-Latin Squares. Arrange the playing cards in a 4 by 4 grid such that each value occurs once in each row and once in each column and each suit."— Presentation transcript:

1 Graeko-Latin Squares

2

3

4 Arrange the playing cards in a 4 by 4 grid such that each value occurs once in each row and once in each column and each suit occurs once in each row and once in each column (problem is due to Jacques Ozanam 1725).

5

6

7

8 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Numbering

9

10 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (0,0) (0,1) (0,2) (0,3) (1,0) (1,1) (1,2) (1,3) (2,0) (2,1) (2,2) (2,3) (3,0) (3,1) (3,2) (3,3) (Z[i][j]/n,Z[i][j]%n) Numbering

11

12 0 5 10 15 6 3 12 9 11 14 1 4 13 8 7 2 Solution n=4

13 0 5 10 15 6 3 12 9 11 14 1 4 13 8 7 2 (0,0) (1,1) (2,2) (3,3) (1,2) (0,3) (3,0) (2,1) (2,3) (3,2) (0,1) (1,0) (3,1) (2,0) (1,3) (0,2) Solution n=4

14 0 5 10 15 6 3 12 9 11 14 1 4 13 8 7 2 (0,0) (1,1) (2,2) (3,3) (1,2) (0,3) (3,0) (2,1) (2,3) (3,2) (0,1) (1,0) (3,1) (2,0) (1,3) (0,2) Solution n=4

15 0123 1032 2301 3210 X Latin All different in a row All different in a column Model 0

16 0123 1032 2301 3210 0123 2301 3210 1032 XY Greek All different in a row All different in a column Model 0

17 0123 1032 2301 3210 0123 2301 3210 1032 XY Graeco-Latin (0,0)(1,1)(2,2)(3,3) (1,2)(0,3)(3,0)(2,1) (2,3)(3,2)(0,1)(1,0) (3,1)(2,0)(1,3)(0,2) Model 0

18 0123 1032 2301 3210 0123 2301 3210 1032 XY (0,0)(1,1)(2,2)(3,3) (1,2)(0,3)(3,0)(2,1) (2,3)(3,2)(0,1)(1,0) (3,1)(2,0)(1,3)(0,2) Z Model 0

19 0123 1032 2301 3210 0123 2301 3210 1032 XY 051015 63129 111414 13872 Z Z[i][j] = 4.X[i][j] + Y[i][j Model 0

20

21

22 0123 1032 2301 3210 0123 2301 3210 1032 XY 051015 63129 111414 13872 Z Z[i][j] = 4.X[i][j] + Y[i][j Can fix first row Symmetry Model 1

23 0123 1032 2301 3210 0123 2301 3210 1032 XY 051015 63129 111414 13872 Z Z[i][j] = 4.X[i][j] + Y[i][j Can fix first row Can fix first column Symmetry Model 1

24

25 051015 63129 111414 13872 Z Z[i][j] = 4.X[i][j] + Y[i][j Observe sum of each row and sum of each column Magic? Model 2

26

27 051015 63129 111414 13872 Z Flatten Z, Z’ 0510156312911141413872 Channeling Model BMS

28 051015 63129 111414 13872 Z 0510156312911141413872 010155111414 1372861293 location Channeling Model BMS

29 051015 63129 111414 13872 Z 0510156312911141413872 010155111414 1372861293 Channeling constraint Z’[i] = x ↔ loc[x] = i Channeling Model BMS

30 051015 63129 111414 13872 Z 0510156312911141413872 010155111414 1372861293 Channeling constraint Z’[i] = x ↔ loc[x] = i Can then do away with an allDiff on Z’ Model BMS


Download ppt "Graeko-Latin Squares. Arrange the playing cards in a 4 by 4 grid such that each value occurs once in each row and once in each column and each suit."

Similar presentations


Ads by Google