qap.h
111 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
/* template
int XXX_flow[] = {
};
int XXX_dist[] = {
};
int XXX_sol[] = { };
QAP(XXX, SIZE, OPTCOST, XXX_sol);
*/
/* moved to qap.c
#define QAP(p, s, w, d, ...) \
int p ## _flow[] = w; \
int p ## _dist[] = d; \
qap p = { s, p ## _flow, p ## _dist, #p, ## __VA_ARGS__ };
QAP(x3, 1, ({ 2, 3, 4, 5 }), ({ 6, 7 }))
QAP(x2, 10, 100, 1000, 10000, ({ 0xa, 0xb, 0xc, 0xd }))
*/
int esc16a_flow[] = {
0, 2, 1, 1, 2, 1, 1, 2, 2, 3, 0, 0, 0, 0, 0, 0,
2, 0, 1, 1, 1, 0, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0,
1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0,
1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
2, 1, 0, 0, 0, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0,
1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0,
1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0,
2, 1, 1, 1, 1, 1, 1, 0, 2, 2, 0, 0, 0, 0, 0, 0,
2, 1, 1, 1, 1, 1, 1, 2, 0, 2, 0, 0, 0, 0, 0, 0,
3, 2, 1, 1, 2, 1, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0,
0, 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 2, 1, 2, 1, 1, 0, 2, 1, 1, 0, 1, 0, 0, 0
};
int esc16a_sol[] = { 2, 14, 10, 16, 5, 3, 7, 8, 4, 6, 12, 11, 15, 13, 9, 1 };
// 2 14 10 16 5 1 7 4 8 6 3 9 11 12 13 15
// 2 14 10 9 8 4 3 1 5 6 7 11 12 13 15 16
// 2 14 5 6 12 3 4 1 9 10 7 8 11 13 15 16
// 2 3 1 5 12 10 14 6 8 4 7 9 11 13 15 16
// 4 1 2 5 11 12 15 7 8 3 6 9 10 13 14 16
QAP(esc16a, 16, 68, esc16a_sol);
/*
ism: 4 - 0:08 (2.42) (args: 2 14 10 16)
1:37 (64.28) (args: 2 14 10)
19:57 (6:04) (args: 2 14)
4:56:30 (62.65) (args: 2)
*/
int esc16d_flow[] = {
0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0,
1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0,
0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0,
0, 1, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 1, 1, 1, 0,
0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0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 4.83
4 - 3:53; 3 - 5:08; 2 - 7:30; 1 - 15:00 (generic)
3.86 2.93 2.00
16 - 0:58; 12 - 1:03; 8 - 1:09; 7 - 1:18; 6 - 1:31; 5 - 1:50;
9.10 8.44 7.74 6.77 5.81 4.84
4 - 2:17; 3 - 3:01; 2 - 4:24; 1 - 8:51
3.87 2.94 2.01
ism: 4 - 0:40 (0.15); 3 - 0:54 (0.18); 2 - 1:20 (0.21) 1 - 2:41 (0.21)
3.98 2.99 2.00
2 * 4 - 0:21 (0.09)
7.54
ccciti01: 4 - 0:52 (0.14); 3 - 1:10 (0.12); 2 - 1:45 (0.16); 1 - 3:29 (0.16) (first-fail)
4.01 3.00 2.00
4 - 0:09 (0.04); 3 - 0:13 (0.03); 2 - 0:19 (0.04); 1 - 0:38 (0.04) (B, first-fail)
4.07 3.00 1.97
bicho: 5:12 (0.44) (-O3)
5:13 (0.28) (-O3, label)
0:44 (0.09) (B, -O3)
qap.pl 3:34 (0.65)
710277120 solutions (ism * 6, 11:46:42.261)
*/
int esc16j_flow[] = {
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 2, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0,
1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0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1,2,1,1,0,1,0,0,0,3,2,2,1,2,1,1,0,
1,2,2,3,2,3,3,4,0,1,1,2,1,2,2,3,0,1,1,2,1,2,2,3,0,0,0,1,0,1,1,2,
2,1,3,2,3,2,4,3,1,0,2,1,2,1,3,2,1,0,2,1,2,1,3,2,0,0,1,0,1,0,2,1,
2,3,1,2,3,4,2,3,1,2,0,1,2,3,1,2,1,2,0,1,2,3,1,2,0,1,0,0,1,2,0,1,
3,2,2,1,4,3,3,2,2,1,1,0,3,2,2,1,2,1,1,0,3,2,2,1,1,0,0,0,2,1,1,0,
2,3,3,4,1,2,2,3,1,2,2,3,0,1,1,2,1,2,2,3,0,1,1,2,0,1,1,2,0,0,0,1,
3,2,4,3,2,1,3,2,2,1,3,2,1,0,2,1,2,1,3,2,1,0,2,1,1,0,2,1,0,0,1,0,
3,4,2,3,2,3,1,2,2,3,1,2,1,2,0,1,2,3,1,2,1,2,0,1,1,2,0,1,0,1,0,0,
4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,0,3,2,2,1,2,1,1,0,2,1,1,0,1,0,0,0
};
#define esc32e_opt 2
int esc32e_sol[] = {
1, 2, 5, 6, 8, 16, 13, 19, 9, 32, 7, 22, 24, 20, 4, 12, 3,
17, 29, 21, 11, 25, 27, 18, 30, 31, 23, 28, 14, 15, 26, 10
};
QAP(esc32e, 32, 2, esc32e_sol);
/*
ism: 4 - 3:30 (?) (A, first-fail, args: 1 2 3 4)
4 - 1:11:24 (?) (A, first-fail, args: 1 2 3)
1 x 4 - +1h41 (3.00)
diaz: 4 - 0.36 (0.34) (B, first-fail, args: 1 2 3 4 5 6 7 8)
4 - 0.25 (0.02) (B, first-fail, args: 1 2 3 4 5 6 7)
4 - +10h12 (0.02) (B, first-fail, args: 1 2 3 4 5 6)
*/
int esc64a_flow[] = {
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,3,1,2,2,3,1,2,1,2,0,1,3,4,2,3,2,3,1,2,2,3,1,2,1,2,0,1,2,3,1,2,1,2,0,1,1,2,0,1,0,1,0,0,
6,5,5,4,5,4,4,3,5,4,4,3,4,3,3,2,5,4,4,3,4,3,3,2,4,3,3,2,3,2,2,1,5,4,4,3,4,3,3,2,4,3,3,2,3,2,2,1,4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,0,5,4,4,3,4,3,3,2,4,3,3,2,3,2,2,1,4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,0,4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,0,3,2,2,1,2,1,1,0,2,1,1,0,1,0,0,0
};
int esc128_sol[] = {
9, 92, 87, 19, 110, 114, 76, 8, 117, 77, 44, 16, 28, 97, 81, 99, 66,
18, 36, 10, 79, 108, 82, 57, 58, 78, 11, 109, 12, 14, 41, 125, 45,
113, 33, 37, 69, 22, 39, 104, 73, 103, 101, 93, 120, 74, 96, 88, 23,
30, 86, 52, 94, 106, 90, 102, 72, 89, 60, 98, 59, 83, 100, 115, 105,
62, 123, 124, 56, 65, 64, 24, 54, 122, 46, 7, 40, 49, 48, 38, 127, 61,
25, 26, 91, 21, 128, 80, 119, 51, 32, 6, 70, 126, 2, 4, 27, 68, 50,
107, 53, 13, 67, 63, 121, 1, 47, 15, 29, 95, 111, 35, 112, 42, 17, 3,
71, 118, 116, 43, 34, 55, 31, 84, 75, 20, 5, 85
};
/*
* ??? (from QAPlib, cost is 314, 64 in the dual problem)
80, 75, 66, 79, 71, 73, 77, 69, 20, 6, 49, 25, 115, 81, 122, 119, 85,
91, 32, 28, 48, 87, 9, 5, 123, 126, 16, 26, 47, 94, 120, 92, 43, 2, 11,
72, 12, 27, 128, 46, 62, 57, 21, 86, 30, 58, 98, 10, 125, 78, 116, 45,
84, 70, 41, 54, 106, 99, 38, 18, 52, 34, 7, 105, 36, 110, 35, 63, 31,
90, 33, 111, 55, 60, 96, 23, 83, 117, 8, 82, 67, 29, 114, 97, 51, 108,
76, 113, 101, 124, 14, 65, 53, 88, 107, 59, 40, 44, 127, 37, 42, 24,
112, 104, 64, 74, 15, 17, 95, 19, 50, 13, 4, 102, 103, 39, 56, 68, 109,
118, 100, 121, 1, 93, 3, 61, 89, 22
* corresponding solution for the original problem (cost 64)
123, 34, 125, 113, 24, 10, 63, 79, 23, 48, 35, 37, 112, 91, 107, 27,
108, 60, 110, 9, 43, 128, 76, 102, 12, 28, 38, 20, 82, 45, 69, 19, 71,
62, 67, 65, 100, 59, 116, 97, 55, 101, 33, 98, 52, 40, 29, 21, 11,
111, 85, 61, 93, 56, 73, 117, 42, 46, 96, 74, 126, 41, 68, 105, 92, 3,
81, 118, 8, 54, 5, 36, 6, 106, 2, 87, 7, 50, 4, 1, 14, 80, 77, 53, 17,
44, 22, 94, 127, 70, 18, 32, 124, 30, 109, 75, 84, 47, 58, 121, 89,
114, 115, 104, 64, 57, 95, 86, 119, 66, 72, 103, 88, 83, 13, 51, 78,
120, 16, 31, 122, 15, 25, 90, 49, 26, 99, 39
*/
QAP(esc128, 128, 64, esc128_sol);
/*
from:
Darwin Choi, Quadratic Assignment Problems (QAP) and Its Size
Reduction Method. Undergraduate Math Journal, 4(1), Rose-Hulman
Institute of Technology, 2003.
<http://www.rose-hulman.edu/mathjournal/archives/2003/vol4-n1/paper7/v4n1-7pd.pdf>
*/
int choi16_flow[] = {
5, 8, 3, 2, 5, 8, 3, 2, 5, 8, 3, 2, 5, 8, 3, 2,
8, 7, 4, 6, 8, 7, 4, 6, 8, 7, 4, 6, 8, 7, 4, 6,
3, 4, 6, 1, 3, 4, 6, 1, 3, 4, 6, 1, 3, 4, 6, 1,
2, 6, 1, 9, 2, 6, 1, 9, 2, 6, 1, 9, 2, 6, 1, 9,
5, 8, 3, 2, 5, 8, 3, 2, 5, 8, 3, 2, 5, 8, 3, 2,
8, 7, 4, 6, 8, 7, 4, 6, 8, 7, 4, 6, 8, 7, 4, 6,
3, 4, 6, 1, 3, 4, 6, 1, 3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