Mathematica ile (Rastgele Arama yontemi ) ben su ikiliyi buldum. Bundan daha kucuk ikili bulmak mumkun.
Daha hizli versiyon ile da kucuk fark buldum..
3. deneme:
list = Table[Partition[RandomSample[Range@50], 25], 20000000];
list2 = Abs[(Total[Sqrt[N@#1] - Sqrt[N@#2]]) & @@@ list];
min = Min@list2 // DecimalForm
0.000000471679
Sort /@ Extract[list, First@Ordering[list2, 1]]
{{3, 5, 7, 8, 9, 12, 13, 16, 18, 19, 22, 23, 24, 25, 28, 29, 35, 36,
39, 40, 41, 42, 43, 44, 46}, {1, 2, 4, 6, 10, 11, 14, 15, 17, 20,
21, 26, 27, 30, 31, 32, 33, 34, 37, 38, 45, 47, 48, 49, 50}}
2. deneme:
list = Table[Partition[RandomSample[Range@50], 25], 5000000];
list2 = Abs[(Total[Sqrt[N@#1] - Sqrt[N@#2]]) & @@@ list];
min = Min@list2 // DecimalForm
0.000000866643
Sort /@ Extract[list, First@Ordering[list2, 1]]
{{1, 5, 6, 9, 10, 12, 13, 14, 16, 18, 20, 23, 25, 26, 28, 30, 32, 34,
40, 41, 43, 45, 48, 49, 50}, {2, 3, 4, 7, 8, 11, 15, 17, 19, 21, 22,
24, 27, 29, 31, 33, 35, 36, 37, 38, 39, 42, 44, 46, 47}}
Ilk deneme:
list2 = Table[Partition[RandomSample[Range@50, 50], 25], 500000];
list3 = Abs[(Total@Sqrt[#1] - Total@Sqrt[#2]) & @@@ list2 // N];
min = Min@list3 // DecimalForm
0.00000988892
Sort /@ Extract[list2, First@Ordering[list3, 1]]
{{1, 4, 6, 7, 8, 9, 13, 14, 16, 18, 23, 24, 28, 30, 32, 33, 35, 36,
37, 39, 42, 44, 46, 48, 50}, {2, 3, 5, 10, 11, 12, 15, 17, 19, 20,
21, 22, 25, 26, 27, 29, 31, 34, 38, 40, 41, 43, 45, 47, 49}}
Kolay Gelsin..