# cost = 20 # n_nodes = 1476799 # version = 1.1 # time = 13805.930 # hash_table_size = 2457600 # n_solved = 117524 # n_unsolved = 1356866 # n_hits = 89742122 # n_misses = 644795 # n_stores = 644795 # avg_priority = 2558.846 # avg_cost = 6.547 # n=13, i=4, cost=20: no comparisons done find_1(a,b,c,d,e,f,g,h,i,j,k,l,m) = if a > b then find_2(a,b,c,d,e,f,g,h,i,j,k,l,m) else find_2(b,a,c,d,e,f,g,h,i,j,k,l,m) # n=13, i=4, cost=19: a>b find_2(a,b,c,d,e,f,g,h,i,j,k,l,m) = if a > c then find_3(a,b,c,d,e,f,g,h,i,j,k,l,m) else find_4(c,a,b,d,e,f,g,h,i,j,k,l,m) # n=13, i=4, cost=17: a>b,a>c,b>c find_4(a,b,c,d,e,f,g,h,i,j,k,l,m) = if d > e then find_5(a,b,d,c,e,f,g,h,i,j,k,l,m) else find_5(a,b,e,c,d,f,g,h,i,j,k,l,m) # n=13, i=4, cost=16: a>b,a>d,b>d,c>e find_5(a,b,c,d,e,f,g,h,i,j,k,l,m) = if f > g then find_6(a,b,c,f,d,e,g,h,i,j,k,l,m) else find_6(a,b,c,g,d,e,f,h,i,j,k,l,m) # n=13, i=4, cost=15: a>b,a>e,b>e,c>f,d>g find_6(a,b,c,d,e,f,g,h,i,j,k,l,m) = if c > d then find_7(c,a,d,b,g,e,f,h,i,j,k,l,m) else find_7(d,a,c,b,f,e,g,h,i,j,k,l,m) # n=13, i=4, cost=14: a>c,a>e,a>g,b>d,b>f,c>e,d>f find_7(a,b,c,d,e,f,g,h,i,j,k,l,m) = if h > i then find_8(a,b,c,d,h,e,f,g,i,j,k,l,m) else find_8(a,b,c,d,i,e,f,g,h,j,k,l,m) # n=13, i=4, cost=13: a>c,a>f,a>h,b>d,b>g,c>f,d>g,e>i find_8(a,b,c,d,e,f,g,h,i,j,k,l,m) = if j > k then find_9(a,b,c,d,e,j,f,g,h,i,k,l,m) else find_9(a,b,c,d,e,k,f,g,h,i,j,l,m) # n=13, i=4, cost=12: a>c,a>g,a>i,b>d,b>h,c>g,d>h,e>j,f>k find_9(a,b,c,d,e,f,g,h,i,j,k,l,m) = if e > f then find_10(a,e,b,c,f,d,g,k,h,i,j,l,m) else find_10(a,f,b,c,e,d,g,j,h,i,k,l,m) # n=13, i=4, cost=11: a>d,a>g,a>j,b>e,b>h,b>k,c>f,c>i,d>g,e>h,f>i find_10(a,b,c,d,e,f,g,h,i,j,k,l,m) = if a > b then find_11(a,b,c,e,d,f,h,k,g,i,j,l,m) else find_11(b,a,c,d,e,f,g,j,h,i,k,l,m) # n=13, i=4, cost=10: a>b,a>d,a>e,a>g,a>h,a>i,a>k,b>d,b>g,b>h,c>f,c>j,d>g,e>i,f>j find_11(a,b,c,d,e,f,g,h,i,j,k,l,m) = if l > m then find_12(a,b,c,d,e,f,l,g,h,i,j,k,m) else find_12(a,b,c,d,e,f,m,g,h,i,j,k,l) # n=13, i=4, cost=9: a>b,a>d,a>e,a>h,a>i,a>j,a>l,b>d,b>h,b>i,c>f,c>k,d>h,e>j,f>k,g>m find_12(a,b,c,d,e,f,g,h,i,j,k,l,m) = if e > g then find_13(a,b,e,c,d,g,f,h,m,i,j,k,l) else find_14(a,b,g,c,d,e,f,h,j,i,k,l,m) # n=13, i=4, cost=8: a>b,a>e,a>f,a>h,a>i,a>j,a>l,b>e,b>h,b>j,c>f,c>i,c>m,d>g,d>k,e>h,f>i,g>k find_14(a,b,c,d,e,f,g,h,i,j,k,l,m) = if b > c then find_15(a,b,c,d,e,g,f,m,h,j,k,l) else find_16(a,c,b,d,f,g,e,j,i,k,l,m) # n=12, i=4, cost=7: a>c,a>e,a>g,a>h,a>i,a>k,b>c,b>e,b>g,b>h,b>i,b>l,c>g,c>h,d>f,d>j,e>i,f>j find_16(a,b,c,d,e,f,g,h,i,j,k,l) = if c > d then find_17(c,e,d,g,h,i,k,l) else find_18(a,b,d,e,f,c,i,j,k,l) # n=10, i=4, cost=6: a>d,a>f,a>g,a>i,b>d,b>f,b>g,b>j,c>e,c>f,c>h,d>g,e>h find_18(a,b,c,d,e,f,g,h,i,j) = if i > j then find_19(a,b,c,d,i,e,f,g,j,h) else find_19(b,a,c,d,j,e,f,g,i,h) # n=10, i=4, cost=5: a>d,a>e,a>g,a>h,a>i,b>d,b>g,b>h,b>i,c>f,c>g,c>j,d>h,e>i,f>j find_19(a,b,c,d,e,f,g,h,i,j) = if e > f then find_20(b,c,e,d,g,i,h,f) else find_21(c,a,b,f,d,g,e,h,j) # n=9, i=4, cost=4: a>d,a>f,a>g,a>i,b>e,b>f,b>g,b>h,c>e,c>f,c>h,d>g,d>i,e>h find_21(a,b,c,d,e,f,g,h,i) = if c > d then find_22(a,b,d,e,f,i,h) else find_23(b,g,c,i) # n=4, i=2, cost=3: a>b find_23(a,b,c,d) = if c > d then find_24(a,c,b,d) else find_24(a,d,b,c) # n=4, i=2, cost=2: a>c,b>d find_24(a,b,c,d) = if a > b then find_25(b,c) else find_25(a,d) # n=2, i=1, cost=1: no comparisons done find_25(a,b) = if a > b then a else b # n=7, i=3, cost=3: a>c,a>e,a>f,b>d,b>e,b>g,c>f,d>g find_22(a,b,c,d,e,f,g) = if c > d then find_24(b,c,e,f) else find_24(a,d,e,g) # n=8, i=3, cost=4: a>d,a>e,a>f,a>g,b>e,b>h,c>f,c>h,d>g find_20(a,b,c,d,e,f,g,h) = if b > c then find_22(a,b,d,c,e,g,h) else find_22(a,c,d,b,f,g,h) # n=8, i=2, cost=6: a>c,a>d,a>e,b>f find_17(a,b,c,d,e,f,g,h) = if b > c then find_26(a,b,d,e,f,g,h) else find_27(a,c,d,e,g,h) # n=6, i=2, cost=5: a>b,a>c,a>d find_27(a,b,c,d,e,f) = if b > c then find_28(a,b,d,e,f) else find_28(a,c,d,e,f) # n=5, i=2, cost=4: a>b,a>c find_28(a,b,c,d,e) = if b > c then find_23(a,b,d,e) else find_23(a,c,d,e) # n=7, i=2, cost=5: a>c,a>d,b>e find_26(a,b,c,d,e,f,g) = if f > g then find_29(a,b,f,d,c,e,g) else find_29(a,b,g,d,c,e,f) # n=7, i=2, cost=4: a>d,a>e,b>f,c>g find_29(a,b,c,d,e,f,g) = if b > c then find_30(a,b,d,e,c,f) else find_30(a,c,d,e,b,g) # n=6, i=2, cost=3: a>c,a>d,b>e,b>f find_30(a,b,c,d,e,f) = if a > b then find_31(b,c,d) else find_31(a,e,f) # n=3, i=1, cost=2: no comparisons done find_31(a,b,c) = if a > b then find_25(a,c) else find_25(b,c) # n=12, i=4, cost=7: a>b,a>c,a>e,a>g,a>h,a>i,a>j,a>l,b>c,b>e,b>g,b>h,b>i,b>j,c>g,c>h,d>f,d>k,e>i,f>k find_15(a,b,c,d,e,f,g,h,i,j,k,l) = if c > d then find_17(c,e,d,g,h,i,j,l) else find_32(a,b,d,e,f,c,i,j,k,l) # n=10, i=4, cost=6: a>b,a>d,a>f,a>g,a>h,a>j,b>d,b>f,b>g,b>h,c>e,c>f,c>i,d>g,e>i find_32(a,b,c,d,e,f,g,h,i,j) = if b > c then find_26(c,d,e,f,g,h,j) else find_33(a,b,e,d,f,h,j,i) # n=8, i=3, cost=5: a>b,a>d,a>e,a>f,a>g,b>d,b>e,b>f,c>h find_33(a,b,c,d,e,f,g,h) = if c > g then find_34(a,b,c,d,e,f,g,h) else find_35(b,g,e,f,d,c) # n=6, i=2, cost=4: a>c,a>d,a>e,b>f find_35(a,b,c,d,e,f) = if a > b then find_36(b,c,d,e) else find_25(a,f) # n=4, i=1, cost=3: no comparisons done find_36(a,b,c,d) = if a > b then find_31(a,c,d) else find_31(b,c,d) # n=8, i=3, cost=4: a>b,a>d,a>e,a>f,a>g,b>d,b>e,b>f,c>g,c>h find_34(a,b,c,d,e,f,g,h) = if b > c then find_36(c,d,e,f) else find_37(a,b,g,h) # n=4, i=2, cost=3: a>b,a>c find_37(a,b,c,d) = if a > d then find_31(b,c,d) else a # n=13, i=4, cost=8: a>b,a>c,a>e,a>f,a>h,a>i,a>j,a>k,a>m,b>e,b>h,b>j,c>f,c>i,c>k,d>g,d>l,e>h,f>i,g>l find_13(a,b,c,d,e,f,g,h,i,j,k,l,m) = if b > c then find_15(a,b,c,d,e,g,f,k,h,j,l,m) else find_15(a,c,b,d,f,g,e,j,i,k,l,m) # n=13, i=4, cost=18: a>b,a>c find_3(a,b,c,d,e,f,g,h,i,j,k,l,m) = if a > d then find_38(a,b,c,d,e,f,g,h,i,j,k,l,m) else find_39(d,a,c,b,e,f,g,h,i,j,k,l,m) # n=13, i=4, cost=16: a>b,a>c,a>d,b>c,b>d find_39(a,b,c,d,e,f,g,h,i,j,k,l,m) = if e > f then find_40(a,b,e,d,c,f,g,h,i,j,k,l,m) else find_40(a,b,f,d,c,e,g,h,i,j,k,l,m) # n=13, i=4, cost=15: a>b,a>d,a>e,b>d,b>e,c>f find_40(a,b,c,d,e,f,g,h,i,j,k,l,m) = if a > c then find_41(a,b,c,d,e,f,g,h,i,j,k,l,m) else find_42(c,a,b,d,e,f,g,h,i,j,k,l,m) # n=13, i=4, cost=14: a>b,a>c,a>d,a>e,a>f,b>c,b>d,b>e,c>d,c>e find_42(a,b,c,d,e,f,g,h,i,j,k,l,m) = if b > f then find_43(a,b,c,d,e,f,g,h,i,j,k,l,m) else find_44(a,f,b,c,g,h,i,j,k,l,m) # n=11, i=4, cost=13: a>b,a>c,a>d,b>c,b>d,c>d find_44(a,b,c,d,e,f,g,h,i,j,k) = if a > e then find_45(a,b,c,d,e,f,g,h,i,j,k) else find_46(e,a,b,c,f,g,h,i,j,k) # n=10, i=4, cost=11: a>b,a>c,a>d,b>c,b>d,c>d find_46(a,b,c,d,e,f,g,h,i,j) = if e > f then find_47(a,b,c,e,d,f,g,h,i,j) else find_47(a,b,c,f,d,e,g,h,i,j) # n=10, i=4, cost=10: a>b,a>c,a>e,b>c,b>e,c>e,d>f find_47(a,b,c,d,e,f,g,h,i,j) = if g > h then find_48(a,b,c,d,g,e,f,h,i,j) else find_48(a,b,c,d,h,e,f,g,i,j) # n=10, i=4, cost=9: a>b,a>c,a>f,b>c,b>f,c>f,d>g,e>h find_48(a,b,c,d,e,f,g,h,i,j) = if d > e then find_49(a,d,b,c,e,f,h,g,i,j) else find_49(a,e,b,c,d,f,g,h,i,j) # n=10, i=4, cost=8: a>c,a>d,a>f,b>e,b>g,b>h,c>d,c>f,d>f,e>g find_49(a,b,c,d,e,f,g,h,i,j) = if c > e then find_50(a,c,b,d,e,f,h,i,j) else find_51(b,e,a,c,g,h,i,j) # n=8, i=4, cost=7: a>b,a>d,a>e,a>f,b>d,b>e,c>d find_51(a,b,c,d,e,f,g,h) = if f > g then find_52(b,c,f,d,e,g,h) else find_53(a,b,c,g,d,e,f,h) # n=8, i=4, cost=6: a>b,a>e,a>f,a>g,b>e,b>f,c>e,d>g find_53(a,b,c,d,e,f,g,h) = if b > d then find_54(b,d,c,g,e,f,h) else find_55(a,d,b,f,g,c,h) # n=7, i=4, cost=5: a>c,a>d,a>e,b>c,b>d,b>e,c>d find_55(a,b,c,d,e,f,g) = if f > g then find_56(a,b,c,f,d,e,g) else find_56(a,b,c,g,d,e,f) # n=7, i=4, cost=4: a>c,a>e,a>f,b>c,b>e,b>f,c>e,d>g find_56(a,b,c,d,e,f,g) = if c > g then find_23(c,e,d,f) else find_57(a,b,d,f,g) # n=5, i=4, cost=3: a>d,b>d,c>e find_57(a,b,c,d,e) = if a > b then find_58(b,c,d,e) else find_58(a,c,d,e) # n=4, i=3, cost=2: a>c,b>d find_58(a,b,c,d) = if c > d then find_59(b,c) else find_59(a,d) # n=2, i=2, cost=1: no comparisons done find_59(a,b) = if a > b then b else a # n=7, i=3, cost=5: a>b,a>d,a>e,a>f,b>d,c>e find_54(a,b,c,d,e,f,g) = if b > g then find_60(b,c,d,g,e,f) else find_61(a,c,g,e,b,f) # n=6, i=3, cost=4: a>d,a>e,a>f,b>d,c>e find_61(a,b,c,d,e,f) = if b > c then find_62(a,b,d,f,c) else find_62(a,c,e,f,b) # n=5, i=3, cost=3: a>c,a>d,b>c,b>e find_62(a,b,c,d,e) = if c > d then find_63(a,c,e) else find_58(a,b,d,e) # n=3, i=2, cost=2: a>b find_63(a,b,c) = if a > c then find_25(b,c) else a # n=6, i=2, cost=4: a>c,a>d,b>e find_60(a,b,c,d,e,f) = if b > f then find_30(a,b,c,d,e,f) else find_64(a,f,d,c,b) # n=5, i=2, cost=3: a>c,a>d,b>e find_64(a,b,c,d,e) = if a > b then find_31(b,c,d) else find_25(a,e) # n=7, i=3, cost=6: a>d,a>e,b>d,c>f find_52(a,b,c,d,e,f,g) = if a > c then find_54(a,c,b,f,d,e,g) else find_65(c,a,e,f,b,g) # n=6, i=3, cost=5: a>b,a>c,a>d,b>c find_65(a,b,c,d,e,f) = if b > d then find_66(a,b,c,d,e,f) else find_67(a,d,b,e,f) # n=5, i=3, cost=4: a>b,a>c,b>c find_67(a,b,c,d,e) = if a > d then find_23(b,c,d,e) else find_63(a,b,e) # n=6, i=3, cost=4: a>b,a>c,a>d,b>c,b>d find_66(a,b,c,d,e,f) = if e > f then find_68(a,b,e,d,c,f) else find_68(a,b,f,d,c,e) # n=6, i=3, cost=3: a>b,a>d,a>e,b>d,b>e,c>f find_68(a,b,c,d,e,f) = if b > c then find_31(c,d,e) else find_63(a,b,f) # n=9, i=4, cost=7: a>b,a>d,a>e,a>f,b>d,b>e,b>f,c>e,c>g,d>f find_50(a,b,c,d,e,f,g,h,i) = if b > c then find_69(b,c,d,e,g,f,h,i) else find_70(c,a,b,d,e,g,h,i) # n=8, i=4, cost=6: a>c,a>d,a>e,a>f,b>c,b>d,b>e,c>d,c>e find_70(a,b,c,d,e,f,g,h) = if c > f then find_71(a,b,c,d,e,f,g,h) else find_72(a,f,b,c,g,h) # n=6, i=4, cost=5: a>b,a>d,b>d,c>d find_72(a,b,c,d,e,f) = if b > c then find_67(b,c,d,e,f) else find_73(a,c,b,d,e,f) # n=6, i=4, cost=4: a>c,a>d,b>c,b>d,c>d find_73(a,b,c,d,e,f) = if e > f then find_74(a,b,c,e,d,f) else find_74(a,b,c,f,d,e) # n=6, i=4, cost=3: a>c,a>e,b>c,b>e,c>e,d>f find_74(a,b,c,d,e,f) = if c > f then find_63(c,e,d) else find_75(a,b,f) # n=3, i=3, cost=2: no comparisons done find_75(a,b,c) = if a > b then find_59(b,c) else find_59(a,c) # n=8, i=4, cost=5: a>c,a>d,a>e,a>f,b>c,b>d,b>e,b>f,c>d,c>e,c>f find_71(a,b,c,d,e,f,g,h) = if g > h then find_76(a,b,c,g,e,f,d,h) else find_76(a,b,c,h,e,f,d,g) # n=8, i=4, cost=4: a>c,a>e,a>f,a>g,b>c,b>e,b>f,b>g,c>e,c>f,c>g,d>h find_76(a,b,c,d,e,f,g,h) = if c > d then find_36(d,e,f,g) else find_77(a,b,c,h) # n=4, i=3, cost=3: a>c,b>c find_77(a,b,c,d) = if a > b then find_63(b,c,d) else find_63(a,c,d) # n=8, i=3, cost=6: a>b,a>c,a>d,a>e,a>f,b>d,b>e,c>f find_69(a,b,c,d,e,f,g,h) = if a > g then find_26(b,c,d,e,f,g,h) else find_37(a,b,c,h) # n=11, i=4, cost=12: a>b,a>c,a>d,a>e,b>c,b>d,c>d find_45(a,b,c,d,e,f,g,h,i,j,k) = if b > f then find_78(a,b,c,d,f,e,g,h,i,j,k) else find_79(a,f,b,c,e,g,h,i,j,k) # n=10, i=4, cost=11: a>c,a>d,a>e,b>c,b>d,c>d find_79(a,b,c,d,e,f,g,h,i,j) = if f > g then find_80(a,b,c,f,d,e,g,h,i,j) else find_80(a,b,c,g,d,e,f,h,i,j) # n=10, i=4, cost=10: a>c,a>e,a>f,b>c,b>e,c>e,d>g find_80(a,b,c,d,e,f,g,h,i,j) = if h > i then find_81(a,b,c,d,h,e,f,g,i,j) else find_81(a,b,c,d,i,e,f,g,h,j) # n=10, i=4, cost=9: a>c,a>f,a>g,b>c,b>f,c>f,d>h,e>i find_81(a,b,c,d,e,f,g,h,i,j) = if d > e then find_82(a,d,b,c,e,f,i,g,h,j) else find_82(a,e,b,c,d,f,h,g,i,j) # n=10, i=4, cost=8: a>d,a>f,a>h,b>e,b>g,b>i,c>d,c>f,d>f,e>g find_82(a,b,c,d,e,f,g,h,i,j) = if e > j then find_83(b,a,e,c,d,f,g,j,i,h) else find_84(a,b,c,j,e,d,g,f,h,i) # n=10, i=4, cost=7: a>f,a>h,a>i,b>e,b>g,b>j,c>f,c>h,d>e,d>g,e>g,f>h find_84(a,b,c,d,e,f,g,h,i,j) = if a > b then find_85(c,b,f,d,h,e,j,i) else find_85(d,a,e,c,g,f,i,j) # n=8, i=3, cost=6: a>c,a>e,b>f,b>g,c>e,d>f find_85(a,b,c,d,e,f,g,h) = if a > b then find_86(a,b,c,g,e,d,h) else find_54(b,a,d,c,f,g,h) # n=7, i=3, cost=5: a>b,a>c,a>d,a>e,b>d,c>e find_86(a,b,c,d,e,f,g) = if b > c then find_66(a,b,c,d,f,g) else find_66(a,c,b,e,f,g) # n=10, i=4, cost=7: a>c,a>g,a>h,a>i,b>e,b>f,b>j,c>g,c>h,d>e,d>f,e>f find_83(a,b,c,d,e,f,g,h,i,j) = if b > c then find_87(b,a,c,d,e,g,h,f,j,i) else find_88(c,b,j,h,g,i,d) # n=7, i=3, cost=6: a>b,a>c,a>d,a>e,b>c find_88(a,b,c,d,e,f,g) = if b > f then find_89(b,c,f,e,d,g) else find_90(a,f,b,e,d,g) # n=6, i=3, cost=5: a>c,a>d,a>e,b>c find_90(a,b,c,d,e,f) = if b > f then find_91(a,b,c,d,e,f) else find_92(a,f,e,d,b) # n=5, i=3, cost=4: a>c,a>d,b>e find_92(a,b,c,d,e) = if a > b then find_23(b,e,d,c) else find_37(a,c,d,e) # n=6, i=3, cost=4: a>c,a>d,a>e,b>c,b>f find_91(a,b,c,d,e,f) = if d > e then find_93(a,b,d,c,e,f) else find_93(a,b,e,c,d,f) # n=6, i=3, cost=3: a>c,a>d,a>e,b>d,b>f,c>e find_93(a,b,c,d,e,f) = if c > f then find_24(b,c,d,e) else find_63(a,d,f) # n=6, i=2, cost=5: a>b,a>c find_89(a,b,c,d,e,f) = if d > e then find_60(a,d,c,b,e,f) else find_60(a,e,c,b,d,f) # n=10, i=4, cost=6: a>c,a>e,a>f,a>g,a>h,a>i,b>c,b>f,b>g,b>j,c>f,c>g,d>e,d>h,e>h find_87(a,b,c,d,e,f,g,h,i,j) = if c > d then find_27(c,d,f,g,i,j) else find_94(a,d,b,e,c,h,i,j) # n=8, i=4, cost=5: a>d,a>e,a>f,a>g,b>d,b>e,b>f,c>e,c>h,d>f find_94(a,b,c,d,e,f,g,h) = if d > g then find_95(a,b,d,c,f,g,e,h) else find_96(a,b,c,g,e,d,h) # n=7, i=4, cost=4: a>d,a>e,a>f,b>e,b>f,c>e,c>g,d>f find_96(a,b,c,d,e,f,g) = if d > g then find_97(b,c,d,e,f,g) else find_98(a,b,g,e,d) # n=5, i=3, cost=3: a>d,a>e,b>d,c>e find_98(a,b,c,d,e) = if a > b then find_24(b,c,d,e) else find_63(a,d,c) # n=6, i=3, cost=3: a>d,a>e,b>d,b>f,c>e,c>f find_97(a,b,c,d,e,f) = if a > b then find_24(b,c,d,e) else find_24(a,c,d,f) # n=8, i=4, cost=4: a>c,a>e,a>f,a>g,b>c,b>e,b>f,b>g,c>e,c>f,d>g,d>h find_95(a,b,c,d,e,f,g,h) = if c > h then find_64(c,d,e,f,g) else find_77(a,b,g,h) # n=11, i=4, cost=11: a>b,a>c,a>d,a>e,a>f,b>c,b>d,b>e,c>d find_78(a,b,c,d,e,f,g,h,i,j,k) = if f > g then find_99(a,b,c,f,d,e,g,h,i,j,k) else find_100(a,b,c,g,d,e,f,h,i,j,k) # n=11, i=4, cost=10: a>b,a>c,a>e,a>f,a>g,b>c,b>e,b>f,c>e,d>g find_100(a,b,c,d,e,f,g,h,i,j,k) = if h > i then find_101(a,b,c,d,h,e,f,g,i,j,k) else find_101(a,b,c,d,i,e,f,g,h,j,k) # n=11, i=4, cost=9: a>b,a>c,a>f,a>g,a>h,b>c,b>f,b>g,c>f,d>h,e>i find_101(a,b,c,d,e,f,g,h,i,j,k) = if b > e then find_102(a,b,c,e,d,f,i,g,h,j,k) else find_103(a,e,b,d,c,g,h,i,j,k) # n=10, i=4, cost=8: a>c,a>e,a>f,a>g,b>c,b>e,b>f,b>h,c>e,c>f,d>g find_103(a,b,c,d,e,f,g,h,i,j) = if i > j then find_104(a,b,c,d,i,f,e,g,h,j) else find_104(a,b,c,d,j,f,e,g,h,i) # n=10, i=4, cost=7: a>c,a>f,a>g,a>h,b>c,b>f,b>g,b>i,c>f,c>g,d>h,e>j find_104(a,b,c,d,e,f,g,h,i,j) = if d > e then find_105(a,b,d,c,e,f,g,h,j,i) else find_106(a,b,e,c,d,f,g,h,i,j) # n=10, i=4, cost=6: a>d,a>f,a>g,a>h,b>d,b>f,b>g,b>i,c>e,c>h,c>j,d>f,d>g,e>h find_106(a,b,c,d,e,f,g,h,i,j) = if i > j then find_107(b,a,c,d,i,e,g,f,j,h) else find_108(a,b,c,d,e,j,i,f,g,h) # n=10, i=4, cost=5: a>d,a>h,a>i,a>j,b>d,b>g,b>h,b>i,c>e,c>f,c>g,c>j,d>h,d>i,e>j,f>g find_108(a,b,c,d,e,f,g,h,i,j) = if e > f then find_109(a,b,c,d,e,h,i,j,f) else find_109(b,a,c,d,f,h,i,g,e) # n=9, i=4, cost=4: a>d,a>f,a>g,a>h,b>d,b>f,b>g,c>e,c>h,c>i,d>f,d>g,e>h,e>i find_109(a,b,c,d,e,f,g,h,i) = if b > e then find_110(a,d,c,e,f,g,i) else find_23(a,h,b,i) # n=7, i=3, cost=3: a>b,a>e,a>f,b>e,b>f,c>d,c>g,d>g find_110(a,b,c,d,e,f,g) = if b > c then find_31(c,e,f) else find_24(a,d,b,g) # n=10, i=4, cost=5: a>d,a>e,a>g,a>h,a>i,b>d,b>g,b>h,b>j,c>f,c>i,c>j,d>g,d>h,e>i,f>j find_107(a,b,c,d,e,f,g,h,i,j) = if d > f then find_111(b,d,c,e,g,h,i) else find_112(c,a,f,e,b,i,j) # n=7, i=4, cost=4: a>c,a>f,a>g,b>d,b>f,c>g,d>f,e>g find_112(a,b,c,d,e,f,g) = if d > e then find_62(a,d,f,c,e) else find_113(a,e,c,b,g,d) # n=6, i=4, cost=3: a>c,a>e,b>e,b>f,c>e,d>f find_113(a,b,c,d,e,f) = if c > d then find_63(b,e,d) else find_58(a,b,c,f) # n=7, i=3, cost=4: a>b,a>e,a>f,b>e,b>f,c>g,d>g find_111(a,b,c,d,e,f,g) = if c > d then find_110(a,b,c,d,e,f,g) else find_110(a,b,d,c,e,f,g) # n=10, i=4, cost=6: a>d,a>f,a>g,a>h,b>d,b>f,b>g,b>j,c>e,c>h,c>i,d>f,d>g,e>i find_105(a,b,c,d,e,f,g,h,i,j) = if d > e then find_114(a,b,d,c,f,g,h,j) else find_115(c,e,a,b,i,h,j) # n=7, i=4, cost=5: a>b,a>e,a>f,b>e,c>f,d>g find_115(a,b,c,d,e,f,g) = if b > c then find_116(b,c,d,f,e,g) else find_56(a,c,b,d,e,f,g) # n=6, i=3, cost=4: a>b,a>d,a>e,b>d,c>f find_116(a,b,c,d,e,f) = if b > c then find_37(b,c,d,e) else find_62(a,c,b,e,f) # n=8, i=4, cost=5: a>c,a>e,a>f,a>g,b>c,b>e,b>f,b>h,c>e,c>f,d>g find_114(a,b,c,d,e,f,g,h) = if c > d then find_117(c,d,e,f,h) else find_118(a,d,b,c,g,h) # n=6, i=4, cost=4: a>d,a>e,b>d,b>e,c>d,c>f find_118(a,b,c,d,e,f) = if a > b then find_62(b,c,d,e,f) else find_62(a,c,d,e,f) # n=5, i=2, cost=4: a>b,a>c,a>d find_117(a,b,c,d,e) = if a > e then find_36(b,c,d,e) else a # n=11, i=4, cost=8: a>b,a>c,a>d,a>f,a>g,a>h,a>i,b>c,b>d,b>f,b>g,b>h,c>f,d>g,e>i find_102(a,b,c,d,e,f,g,h,i,j,k) = if c > d then find_119(a,b,c,e,d,f,h,i,j,k) else find_119(a,b,d,e,c,g,h,i,j,k) # n=10, i=4, cost=7: a>b,a>c,a>e,a>f,a>g,a>h,b>c,b>e,b>f,b>g,c>e,c>f,d>h find_119(a,b,c,d,e,f,g,h,i,j) = if c > i then find_120(b,c,d,e,f,i,g,h,j) else find_53(a,b,i,d,c,g,h,j) # n=9, i=3, cost=6: a>b,a>d,a>e,a>f,a>g,b>d,b>e,b>f,c>h find_120(a,b,c,d,e,f,g,h,i) = if g > i then find_121(a,b,g,c,e,f,d,i,h) else find_122(a,b,i,c,e,f,d,g,h) # n=9, i=3, cost=5: a>b,a>e,a>f,a>g,a>h,b>e,b>f,b>g,c>h,d>i find_122(a,b,c,d,e,f,g,h,i) = if c > d then find_123(a,b,c,d,e,f,g,h,i) else find_124(a,b,d,e,f,g,c,i) # n=8, i=3, cost=4: a>b,a>d,a>e,a>f,b>d,b>e,b>f,c>g,c>h find_124(a,b,c,d,e,f,g,h) = if b > c then find_36(c,d,e,f) else find_23(a,b,g,h) # n=9, i=3, cost=4: a>b,a>e,a>f,a>g,a>h,b>e,b>f,b>g,c>d,c>h,c>i,d>i find_123(a,b,c,d,e,f,g,h,i) = if b > c then find_36(c,e,f,g) else find_64(a,d,b,h,i) # n=9, i=3, cost=5: a>b,a>c,a>e,a>f,a>g,a>h,b>e,b>f,b>g,c>h,d>i find_121(a,b,c,d,e,f,g,h,i) = if c > d then find_125(b,c,e,f,g,d,h) else find_34(a,b,d,e,f,g,c,i) # n=7, i=2, cost=4: a>c,a>d,a>e,b>f,b>g find_125(a,b,c,d,e,f,g) = if a > b then find_36(b,c,d,e) else find_31(a,f,g) # n=11, i=4, cost=10: a>b,a>c,a>d,a>e,a>f,a>g,b>c,b>e,b>f,c>e,d>g find_99(a,b,c,d,e,f,g,h,i,j,k) = if d > h then find_126(a,b,d,c,e,f,g,h,i,j,k) else find_127(a,b,h,c,d,e,g,f,i,j,k) # n=11, i=4, cost=9: a>b,a>d,a>e,a>f,a>g,a>h,b>d,b>f,b>h,c>e,c>g,d>f,e>g find_127(a,b,c,d,e,f,g,h,i,j,k) = if b > c then find_128(a,b,c,d,e,f,h,i,j,k) else find_129(a,c,b,e,d,h,g,i,j,k) # n=10, i=4, cost=8: a>c,a>d,a>e,a>f,a>g,b>c,b>d,b>e,b>f,b>g,c>e,c>f,d>g find_129(a,b,c,d,e,f,g,h,i,j) = if a > b then find_130(a,b,c,d,e,f,g,h,i,j) else find_130(b,a,c,d,e,f,g,h,i,j) # n=10, i=4, cost=7: a>b,a>c,a>d,a>e,a>f,a>g,b>c,b>d,b>e,b>f,b>g,c>e,c>f,d>g find_130(a,b,c,d,e,f,g,h,i,j) = if c > h then find_131(b,c,d,e,f,h,g,i,j) else find_132(a,b,d,h,g,c,i,j) # n=8, i=4, cost=6: a>b,a>c,a>e,a>f,b>c,b>e,b>f,c>e,d>f find_132(a,b,c,d,e,f,g,h) = if b > d then find_86(b,c,d,e,f,g,h) else find_133(a,d,b,c,f,g,h) # n=7, i=4, cost=5: a>c,a>d,a>e,b>c,b>d,b>e,c>d,c>e find_133(a,b,c,d,e,f,g) = if a > b then find_66(b,c,d,e,f,g) else find_66(a,c,d,e,f,g) # n=9, i=3, cost=6: a>b,a>c,a>d,a>e,a>f,a>g,b>d,b>e,b>f,c>g find_131(a,b,c,d,e,f,g,h,i) = if c > h then find_134(b,c,d,e,f,g,h,i) else find_135(a,b,h,e,f,d,c,i) # n=8, i=3, cost=5: a>b,a>d,a>e,a>f,a>g,b>d,b>e,b>f,c>g find_135(a,b,c,d,e,f,g,h) = if c > h then find_34(a,b,c,d,e,f,g,h) else find_136(a,b,h,e,f,d,c) # n=7, i=3, cost=4: a>b,a>d,a>e,a>f,b>d,b>e,b>f,c>g find_136(a,b,c,d,e,f,g) = if b > c then find_36(c,d,e,f) else find_63(a,b,g) # n=8, i=2, cost=5: a>c,a>d,a>e,b>f,b>g find_134(a,b,c,d,e,f,g,h) = if b > h then find_137(a,b,c,d,e,f,g,h) else find_35(a,h,d,e,c,b) # n=8, i=2, cost=4: a>c,a>d,a>e,b>f,b>g,b>h find_137(a,b,c,d,e,f,g,h) = if a > b then find_36(b,c,d,e) else find_36(a,f,g,h) # n=10, i=4, cost=8: a>b,a>c,a>d,a>e,a>f,a>g,b>c,b>d,b>e,b>f,b>g,c>e,d>f find_128(a,b,c,d,e,f,g,h,i,j) = if c > d then find_138(a,b,c,d,e,g,h,i,j) else find_138(a,b,d,c,f,g,h,i,j) # n=9, i=4, cost=7: a>b,a>c,a>d,a>e,a>f,b>c,b>d,b>e,b>f,c>d,c>e find_138(a,b,c,d,e,f,g,h,i) = if c > g then find_139(b,c,d,e,g,f,h,i) else find_140(a,b,g,c,f,h,i) # n=7, i=4, cost=6: a>b,a>d,a>e,b>d,b>e,c>d find_140(a,b,c,d,e,f,g) = if b > c then find_65(b,c,d,e,f,g) else find_133(a,c,b,d,e,f,g) # n=8, i=3, cost=6: a>b,a>c,a>d,a>e,a>f,b>c,b>d,b>e find_139(a,b,c,d,e,f,g,h) = if f > g then find_141(b,f,d,e,c,g,h) else find_135(a,b,g,d,e,c,f,h) # n=7, i=2, cost=5: a>c,a>d,a>e,b>f find_141(a,b,c,d,e,f,g) = if b > c then find_60(a,b,d,e,f,g) else find_117(a,c,d,e,g) # n=11, i=4, cost=9: a>b,a>c,a>d,a>e,a>f,a>g,a>h,b>d,b>e,b>f,c>g,c>h,d>e find_126(a,b,c,d,e,f,g,h,i,j,k) = if b > c then find_142(a,b,c,d,g,h,e,f,i,j,k) else find_143(a,c,b,d,f,g,h,i,j,k) # n=10, i=4, cost=8: a>b,a>c,a>d,a>e,a>f,a>g,b>c,b>d,b>e,b>f,b>g,c>d,c>e find_143(a,b,c,d,e,f,g,h,i,j) = if c > h then find_144(b,c,d,e,h,g,f,i,j) else find_145(a,b,h,c,g,f,i,j) # n=8, i=4, cost=7: a>b,a>d,a>e,a>f,b>d,b>e,b>f,c>d find_145(a,b,c,d,e,f,g,h) = if b > c then find_88(b,c,d,e,f,g,h) else find_71(a,c,b,d,e,f,g,h) # n=9, i=3, cost=7: a>b,a>c,a>d,a>e,a>f,a>g,b>c,b>d,b>e find_144(a,b,c,d,e,f,g,h,i) = if f > g then find_131(a,b,f,d,e,c,g,h,i) else find_131(a,b,g,d,e,c,f,h,i) # n=11, i=4, cost=8: a>b,a>c,a>d,a>e,a>f,a>g,a>h,b>c,b>d,b>e,b>f,b>g,b>h,c>e,c>f,d>g find_142(a,b,c,d,e,f,g,h,i,j,k) = if c > i then find_146(b,c,d,e,f,i,g,h,j,k) else find_147(a,b,d,i,g,c,h,j,k) # n=9, i=4, cost=7: a>b,a>c,a>e,a>f,a>g,b>c,b>e,b>f,b>g,c>e,d>f find_147(a,b,c,d,e,f,g,h,i) = if b > d then find_148(b,c,d,e,f,g,h,i) else find_71(a,d,b,c,f,g,h,i) # n=8, i=3, cost=6: a>b,a>c,a>d,a>e,a>f,b>d,c>e find_148(a,b,c,d,e,f,g,h) = if b > g then find_26(b,c,d,g,e,f,h) else find_54(a,c,g,e,b,f,h) # n=10, i=3, cost=7: a>b,a>c,a>d,a>e,a>f,a>g,a>h,b>d,b>e,b>f,c>g find_146(a,b,c,d,e,f,g,h,i,j) = if c > h then find_149(a,b,c,d,e,f,g,h,i,j) else find_131(a,b,h,e,f,d,c,i,j) # n=10, i=3, cost=6: a>b,a>c,a>d,a>e,a>f,a>g,a>h,b>d,b>e,b>f,c>g,c>h find_149(a,b,c,d,e,f,g,h,i,j) = if i > j then find_150(a,b,c,i,e,f,d,h,g,j) else find_150(a,b,c,j,e,f,d,h,g,i) # n=10, i=3, cost=5: a>b,a>c,a>e,a>f,a>g,a>h,a>i,b>e,b>f,b>g,c>h,c>i,d>j find_150(a,b,c,d,e,f,g,h,i,j) = if c > d then find_137(b,c,e,f,g,d,h,i) else find_34(a,b,d,e,f,g,c,j) # n=13, i=4, cost=13: a>b,a>c,a>d,a>e,a>f,b>c,b>d,b>e,b>f,c>d,c>e find_43(a,b,c,d,e,f,g,h,i,j,k,l,m) = if b > g then find_151(a,b,c,d,e,f,g,h,i,j,k,l,m) else find_152(a,g,b,f,c,h,i,j,k,l,m) # n=11, i=4, cost=12: a>c,a>d,a>e,b>c,b>d,b>e,c>d,c>e find_152(a,b,c,d,e,f,g,h,i,j,k) = if a > b then find_153(a,b,c,d,e,f,g,h,i,j,k) else find_153(b,a,c,d,e,f,g,h,i,j,k) # n=11, i=4, cost=11: a>b,a>c,a>d,a>e,b>c,b>d,b>e,c>d,c>e find_153(a,b,c,d,e,f,g,h,i,j,k) = if f > g then find_154(a,b,c,f,e,d,g,h,i,j,k) else find_154(a,b,c,g,e,d,f,h,i,j,k) # n=11, i=4, cost=10: a>b,a>c,a>e,a>f,b>c,b>e,b>f,c>e,c>f,d>g find_154(a,b,c,d,e,f,g,h,i,j,k) = if h > i then find_155(a,b,c,d,h,f,e,g,i,j,k) else find_155(a,b,c,d,i,f,e,g,h,j,k) # n=11, i=4, cost=9: a>b,a>c,a>f,a>g,b>c,b>f,b>g,c>f,c>g,d>h,e>i find_155(a,b,c,d,e,f,g,h,i,j,k) = if d > e then find_156(a,b,d,c,e,f,g,i,h,j,k) else find_156(a,b,e,c,d,f,g,h,i,j,k) # n=11, i=4, cost=8: a>b,a>d,a>f,a>g,b>d,b>f,b>g,c>e,c>h,c>i,d>f,d>g,e>h find_156(a,b,c,d,e,f,g,h,i,j,k) = if b > e then find_157(a,b,d,c,f,g,e,i,j,k) else find_51(c,e,a,b,h,i,j,k) # n=10, i=4, cost=7: a>b,a>c,a>e,a>f,a>g,b>c,b>e,b>f,b>g,c>e,c>f,d>g,d>h find_157(a,b,c,d,e,f,g,h,i,j) = if b > d then find_158(b,c,d,e,f,g,h,i,j) else find_70(d,a,b,c,g,h,i,j) # n=9, i=3, cost=6: a>b,a>c,a>d,a>e,a>f,a>g,b>d,b>e,c>f,c>g find_158(a,b,c,d,e,f,g,h,i) = if b > c then find_159(a,b,c,d,e,h,i) else find_159(a,c,b,f,g,h,i) # n=7, i=3, cost=5: a>b,a>c,a>d,a>e,b>c,b>d,b>e find_159(a,b,c,d,e,f,g) = if c > d then find_66(a,b,c,e,f,g) else find_66(a,b,d,e,f,g) # n=13, i=4, cost=12: a>b,a>c,a>d,a>e,a>f,a>g,b>c,b>d,b>e,b>f,b>g,c>d,c>e find_151(a,b,c,d,e,f,g,h,i,j,k,l,m) = if h > i then find_160(a,b,c,h,e,d,g,f,i,j,k,l,m) else find_160(a,b,c,i,e,d,g,f,h,j,k,l,m) # n=13, i=4, cost=11: a>b,a>c,a>e,a>f,a>g,a>h,b>c,b>e,b>f,b>g,b>h,c>e,c>f,d>i find_160(a,b,c,d,e,f,g,h,i,j,k,l,m) = if j > k then find_161(a,b,c,d,j,f,e,h,g,k,i,l,m) else find_161(a,b,c,d,k,f,e,h,g,j,i,l,m) # n=13, i=4, cost=10: a>b,a>c,a>f,a>g,a>h,a>i,b>c,b>f,b>g,b>h,b>i,c>f,c>g,d>k,e>j find_161(a,b,c,d,e,f,g,h,i,j,k,l,m) = if d > e then find_162(a,b,d,c,e,f,g,h,i,j,k,l,m) else find_162(a,b,e,c,d,f,g,h,i,k,j,l,m) # n=13, i=4, cost=9: a>b,a>d,a>f,a>g,a>h,a>i,b>d,b>f,b>g,b>h,b>i,c>e,c>j,c>k,d>f,d>g,e>j find_162(a,b,c,d,e,f,g,h,i,j,k,l,m) = if b > c then find_163(b,c,d,e,k,g,f,i,h,l,m) else find_164(c,a,b,e,d,h,i,j,k,l,m) # n=11, i=4, cost=8: a>c,a>d,a>e,a>f,a>g,a>h,a>i,b>c,b>e,b>f,b>g,c>e,c>f,c>g,d>h find_164(a,b,c,d,e,f,g,h,i,j,k) = if c > d then find_165(a,b,c,d,e,f,g,i,j,k) else find_51(a,d,b,c,h,i,j,k) # n=10, i=4, cost=7: a>c,a>d,a>e,a>f,a>g,a>h,b>c,b>d,b>e,b>f,b>g,c>d,c>e,c>f,c>g find_165(a,b,c,d,e,f,g,h,i,j) = if h > i then find_166(b,c,h,e,f,g,d,i,j) else find_167(a,b,c,i,e,f,g,d,h,j) # n=10, i=4, cost=6: a>c,a>e,a>f,a>g,a>h,a>i,b>c,b>e,b>f,b>g,b>h,c>e,c>f,c>g,c>h,d>i find_167(a,b,c,d,e,f,g,h,i,j) = if d > j then find_168(a,b,c,d,e,f,g,h,i,j) else find_169(a,b,c,j,d,f,g,h,e,i) # n=10, i=4, cost=5: a>c,a>f,a>g,a>h,a>i,a>j,b>c,b>f,b>g,b>h,b>i,c>f,c>g,c>h,c>i,d>e,d>j,e>j find_169(a,b,c,d,e,f,g,h,i,j) = if c > d then find_170(d,f,g,h,i) else find_98(a,b,e,c,j) # n=5, i=1, cost=4: no comparisons done find_170(a,b,c,d,e) = if a > b then find_36(a,c,d,e) else find_36(b,c,d,e) # n=10, i=4, cost=5: a>c,a>e,a>f,a>g,a>h,a>i,b>c,b>e,b>f,b>g,b>h,c>e,c>f,c>g,c>h,d>i,d>j find_168(a,b,c,d,e,f,g,h,i,j) = if c > d then find_170(d,e,f,g,h) else find_171(a,b,c,i,j) # n=5, i=3, cost=4: a>c,a>d,b>c find_171(a,b,c,d,e) = if a > b then find_23(b,c,d,e) else find_37(a,c,d,e) # n=9, i=3, cost=6: a>b,a>d,a>e,a>f,a>g,b>d,b>e,b>f,b>g,c>h find_166(a,b,c,d,e,f,g,h,i) = if c > d then find_172(a,b,c,e,f,g,h,i) else find_173(b,d,e,f,g,i) # n=6, i=2, cost=5: a>b,a>c,a>d,a>e find_173(a,b,c,d,e,f) = if a > f then find_170(b,c,d,e,f) else a # n=8, i=3, cost=5: a>b,a>d,a>e,a>f,b>d,b>e,b>f,c>g find_172(a,b,c,d,e,f,g,h) = if c > h then find_124(a,b,c,d,e,f,g,h) else find_174(a,b,h,c,e,f,d,g) # n=8, i=3, cost=4: a>b,a>e,a>f,a>g,b>e,b>f,b>g,c>d,c>h,d>h find_174(a,b,c,d,e,f,g,h) = if b > c then find_36(c,e,f,g) else find_24(a,d,b,h) # n=11, i=3, cost=8: a>b,a>c,a>d,a>e,a>f,a>g,a>h,a>i,b>d,b>e,c>f,c>g find_163(a,b,c,d,e,f,g,h,i,j,k) = if b > c then find_144(a,b,c,d,e,h,i,j,k) else find_144(a,c,b,f,g,h,i,j,k) # n=13, i=4, cost=14: a>b,a>c,a>d,a>e,a>f,b>d,b>e,c>f find_41(a,b,c,d,e,f,g,h,i,j,k,l,m) = if g > h then find_175(a,b,c,g,e,d,f,h,i,j,k,l,m) else find_175(a,b,c,h,e,d,f,g,i,j,k,l,m) # n=13, i=4, cost=13: a>b,a>c,a>e,a>f,a>g,b>e,b>f,c>g,d>h find_175(a,b,c,d,e,f,g,h,i,j,k,l,m) = if b > d then find_176(a,b,d,c,h,f,e,g,i,j,k,l,m) else find_177(a,d,b,c,e,f,g,h,i,j,k,l,m) # n=13, i=4, cost=12: a>c,a>d,a>e,a>f,a>g,b>c,b>e,b>f,b>h,c>e,c>f,d>g find_177(a,b,c,d,e,f,g,h,i,j,k,l,m) = if i > j then find_178(a,b,c,d,i,f,e,g,h,j,k,l,m) else find_178(a,b,c,d,j,f,e,g,h,i,k,l,m) # n=13, i=4, cost=11: a>c,a>d,a>f,a>g,a>h,b>c,b>f,b>g,b>i,c>f,c>g,d>h,e>j find_178(a,b,c,d,e,f,g,h,i,j,k,l,m) = if k > l then find_179(a,b,c,d,e,k,g,f,h,j,i,l,m) else find_179(a,b,c,d,e,l,g,f,h,j,i,k,m) # n=13, i=4, cost=10: a>c,a>d,a>g,a>h,a>i,b>c,b>g,b>h,b>k,c>g,c>h,d>i,e>j,f>l find_179(a,b,c,d,e,f,g,h,i,j,k,l,m) = if e > f then find_180(a,b,e,c,d,f,g,h,i,l,k,j,m) else find_180(a,b,f,c,d,e,g,h,i,j,k,l,m) # n=13, i=4, cost=9: a>d,a>e,a>g,a>h,a>i,b>d,b>g,b>h,b>k,c>f,c>j,c>l,d>g,d>h,e>i,f>j find_180(a,b,c,d,e,f,g,h,i,j,k,l,m) = if a > c then find_181(a,b,c,d,f,e,g,h,j,l,i,k,m) else find_182(c,a,b,e,f,d,i,j,l,k,m) # n=11, i=4, cost=8: a>b,a>d,a>e,a>f,a>g,a>h,a>i,b>d,b>f,b>g,c>f,c>j,d>g,e>h find_182(a,b,c,d,e,f,g,h,i,j,k) = if b > c then find_183(b,c,d,e,f,j,g,h,i,k) else find_184(a,c,b,e,d,f,h,i,j,k) # n=10, i=4, cost=7: a>c,a>d,a>e,a>f,a>g,a>h,b>c,b>e,b>f,b>i,c>e,c>f,d>g find_184(a,b,c,d,e,f,g,h,i,j) = if c > j then find_120(b,c,d,e,f,j,i,g,h) else find_185(a,b,d,j,c,g,h,i) # n=8, i=4, cost=6: a>c,a>e,a>f,a>g,b>e,b>h,c>f,d>e find_185(a,b,c,d,e,f,g,h) = if b > c then find_186(a,b,c,d,f,e,g,h) else find_65(c,b,h,f,g,d) # n=8, i=4, cost=5: a>c,a>e,a>f,a>g,b>c,b>e,b>f,b>h,c>e,d>f find_186(a,b,c,d,e,f,g,h) = if g > h then find_187(b,c,d,g,e,f,h) else find_187(a,c,d,h,e,f,g) # n=7, i=3, cost=4: a>b,a>e,a>f,a>g,b>e,c>f,d>g find_187(a,b,c,d,e,f,g) = if c > d then find_93(a,c,b,f,e,d) else find_93(a,d,b,g,e,c) # n=10, i=3, cost=7: a>b,a>c,a>e,a>f,a>g,b>e,b>f,c>g,d>h find_183(a,b,c,d,e,f,g,h,i,j) = if b > i then find_188(a,b,c,d,e,f,i,g,h,j) else find_189(a,c,i,d,g,b,h,j) # n=8, i=3, cost=6: a>b,a>e,a>f,b>e,c>f,d>g find_189(a,b,c,d,e,f,g,h) = if a > d then find_190(a,b,d,c,e,g,f,h) else find_65(d,a,b,g,c,h) # n=8, i=3, cost=5: a>b,a>c,a>e,a>f,a>g,b>e,c>f,d>g find_190(a,b,c,d,e,f,g,h) = if b > h then find_29(b,c,d,e,h,f,g) else find_187(a,c,d,h,f,g,b) # n=10, i=3, cost=6: a>b,a>c,a>e,a>f,a>g,a>h,b>e,b>f,b>g,c>h,d>i find_188(a,b,c,d,e,f,g,h,i,j) = if c > j then find_150(a,b,c,d,e,f,g,h,j,i) else find_122(a,b,j,d,f,g,e,c,i) # n=13, i=4, cost=8: a>c,a>d,a>e,a>f,a>g,a>h,a>i,a>j,a>k,b>d,b>g,b>h,b>l,c>e,c>i,c>j,d>g,d>h,e>i,f>k find_181(a,b,c,d,e,f,g,h,i,j,k,l,m) = if b > c then find_191(a,b,c,d,f,e,j,h,g,k,l,m) else find_192(c,b,e,f,d,l,i,j,k,m) # n=10, i=3, cost=7: a>b,a>c,a>e,a>f,a>g,a>h,b>e,b>f,c>g,d>i find_192(a,b,c,d,e,f,g,h,i,j) = if b > c then find_120(a,b,d,c,e,f,h,i,j) else find_193(a,c,d,b,g,h,i,j) # n=8, i=3, cost=6: a>b,a>d,a>e,a>f,b>d,b>e,c>g find_193(a,b,c,d,e,f,g,h) = if a > c then find_26(b,c,d,e,g,f,h) else find_28(a,b,f,g,h) # n=12, i=4, cost=7: a>c,a>d,a>e,a>f,a>g,a>h,a>i,a>j,b>c,b>d,b>f,b>g,b>h,b>i,b>k,c>f,c>g,d>h,d>i,e>j find_191(a,b,c,d,e,f,g,h,i,j,k,l) = if c > d then find_194(a,b,c,e,d,f,g,j,k,l) else find_194(a,b,d,e,c,h,i,j,k,l) # n=10, i=4, cost=6: a>c,a>d,a>e,a>f,a>g,a>h,b>c,b>e,b>f,b>g,b>i,c>e,c>f,c>g,d>h find_194(a,b,c,d,e,f,g,h,i,j) = if i > j then find_195(a,b,c,d,i,f,g,e,j,h) else find_196(a,b,c,d,j,f,g,e,h,i) # n=10, i=4, cost=5: a>c,a>d,a>f,a>g,a>h,a>i,b>c,b>f,b>g,b>h,b>j,c>f,c>g,c>h,d>i,e>j find_196(a,b,c,d,e,f,g,h,i,j) = if d > e then find_124(b,c,d,f,g,h,e,i) else find_197(a,b,c,e,d,f,g,h,i,j) # n=10, i=4, cost=4: a>c,a>e,a>f,a>g,a>h,a>i,b>c,b>f,b>g,b>h,b>j,c>f,c>g,c>h,d>e,d>i,d>j,e>i find_197(a,b,c,d,e,f,g,h,i,j) = if c > d then find_36(d,f,g,h) else find_93(a,b,e,c,i,j) # n=10, i=4, cost=5: a>c,a>d,a>f,a>g,a>h,a>j,b>c,b>e,b>f,b>g,b>h,b>i,c>f,c>g,c>h,d>j,e>i find_195(a,b,c,d,e,f,g,h,i,j) = if d > e then find_34(b,c,d,f,g,h,e,j) else find_34(a,c,e,f,g,h,d,i) # n=13, i=4, cost=12: a>b,a>c,a>d,a>e,a>f,a>g,a>h,b>c,b>e,b>f,b>g,c>e,d>h find_176(a,b,c,d,e,f,g,h,i,j,k,l,m) = if d > i then find_198(a,b,d,c,e,f,g,h,i,j,k,l,m) else find_199(a,b,i,c,d,e,h,f,g,j,k,l,m) # n=13, i=4, cost=11: a>b,a>d,a>e,a>f,a>g,a>h,a>i,b>d,b>f,b>h,b>i,c>e,c>g,d>f,e>g find_199(a,b,c,d,e,f,g,h,i,j,k,l,m) = if c > j then find_200(a,b,c,d,e,f,g,h,i,j,k,l,m) else find_201(a,b,j,d,c,f,e,i,h,k,l,m) # n=12, i=4, cost=10: a>b,a>d,a>f,a>g,a>h,a>i,b>d,b>f,b>h,b>i,c>e,c>g,d>f,e>g find_201(a,b,c,d,e,f,g,h,i,j,k,l) = if b > c then find_202(a,b,c,d,e,f,h,i,j,k,l) else find_203(c,a,b,e,d,h,i,g,j,k,l) # n=11, i=4, cost=8: a>c,a>d,a>e,a>f,a>g,a>h,b>c,b>e,b>f,b>g,b>h,c>e,c>f,c>g,d>h find_203(a,b,c,d,e,f,g,h,i,j,k) = if c > i then find_204(a,b,c,d,e,f,g,i,h,j,k) else find_205(a,b,d,i,h,c,j,k) # n=8, i=4, cost=7: a>c,a>e,a>f,b>e,b>f,c>e,d>f find_205(a,b,c,d,e,f,g,h) = if b > d then find_206(a,b,c,d,e,f,g,h) else find_207(d,a,b,f,c,g,h) # n=7, i=4, cost=6: a>c,a>d,b>d,b>e,c>d find_207(a,b,c,d,e,f,g) = if c > e then find_208(a,c,b,d,e,f,g) else find_72(b,e,a,c,f,g) # n=7, i=4, cost=5: a>b,a>d,a>e,b>d,b>e,c>d,c>e find_208(a,b,c,d,e,f,g) = if f > g then find_209(a,b,c,f,e,d,g) else find_209(a,b,c,g,e,d,f) # n=7, i=4, cost=4: a>b,a>e,a>f,b>e,b>f,c>e,c>f,d>g find_209(a,b,c,d,e,f,g) = if b > d then find_64(c,d,e,f,g) else find_210(a,b,c,g) # n=4, i=3, cost=3: a>b find_210(a,b,c,d) = if c > d then find_58(a,c,b,d) else find_58(a,d,b,c) # n=8, i=4, cost=6: a>c,a>e,a>f,b>d,b>e,b>f,c>e,d>f find_206(a,b,c,d,e,f,g,h) = if c > d then find_208(a,c,b,d,e,g,h) else find_208(b,d,a,c,f,g,h) # n=11, i=4, cost=7: a>c,a>d,a>e,a>f,a>g,a>h,a>i,b>c,b>e,b>f,b>g,b>h,b>i,c>e,c>f,c>g,c>h,d>i find_204(a,b,c,d,e,f,g,h,i,j,k) = if d > j then find_211(b,c,d,e,f,g,h,i,j,k) else find_167(a,b,c,j,f,g,h,e,d,k) # n=10, i=3, cost=6: a>b,a>d,a>e,a>f,a>g,a>h,b>d,b>e,b>f,b>g,c>h,c>i find_211(a,b,c,d,e,f,g,h,i,j) = if c > j then find_212(a,b,c,d,e,f,g,h,i,j) else find_213(a,b,j,c,e,f,g,d,i) # n=9, i=3, cost=5: a>b,a>e,a>f,a>g,a>h,b>e,b>f,b>g,b>h,c>d,c>i,d>i find_213(a,b,c,d,e,f,g,h,i) = if b > c then find_170(c,e,f,g,h) else find_24(a,d,b,i) # n=10, i=3, cost=5: a>b,a>d,a>e,a>f,a>g,a>h,b>d,b>e,b>f,b>g,c>h,c>i,c>j find_212(a,b,c,d,e,f,g,h,i,j) = if b > c then find_170(c,d,e,f,g) else find_28(a,b,h,i,j) # n=11, i=4, cost=9: a>b,a>c,a>d,a>e,a>f,a>g,a>h,b>c,b>d,b>e,b>f,b>g,b>h,c>e,d>f find_202(a,b,c,d,e,f,g,h,i,j,k) = if c > d then find_143(a,b,c,d,e,g,h,i,j,k) else find_143(a,b,d,c,f,g,h,i,j,k) # n=13, i=4, cost=10: a>b,a>d,a>e,a>f,a>g,a>h,a>i,b>d,b>f,b>h,b>i,c>e,c>g,c>j,d>f,e>g find_200(a,b,c,d,e,f,g,h,i,j,k,l,m) = if b > c then find_214(a,b,c,d,e,j,f,i,h,k,l,m) else find_215(c,a,b,e,d,h,i,g,j,k,l,m) # n=12, i=4, cost=9: a>c,a>d,a>e,a>f,a>g,a>h,a>i,b>c,b>d,b>e,b>f,b>g,b>h,c>e,c>f,c>g,d>h find_215(a,b,c,d,e,f,g,h,i,j,k,l) = if c > j then find_216(a,b,c,d,e,f,g,j,h,i,k,l) else find_217(a,b,d,j,h,c,i,k,l) # n=9, i=4, cost=8: a>c,a>e,a>f,a>g,b>c,b>e,b>f,c>e,d>f find_217(a,b,c,d,e,f,g,h,i) = if a > b then find_218(a,b,c,d,e,f,g,h,i) else find_147(b,a,c,d,e,f,g,h,i) # n=9, i=4, cost=7: a>b,a>c,a>e,a>f,a>g,b>c,b>e,b>f,c>e,d>f find_218(a,b,c,d,e,f,g,h,i) = if g > h then find_189(b,c,d,g,e,f,h,i) else find_219(a,b,c,d,h,e,f,g,i) # n=9, i=4, cost=6: a>b,a>c,a>f,a>g,a>h,b>c,b>f,b>g,c>f,d>g,e>h find_219(a,b,c,d,e,f,g,h,i) = if b > e then find_190(b,c,e,d,f,h,g,i) else find_55(a,e,b,c,h,d,i) # n=12, i=4, cost=8: a>c,a>d,a>e,a>f,a>g,a>h,a>i,a>j,b>c,b>d,b>e,b>f,b>g,b>h,b>i,c>e,c>f,c>g,c>h,d>i find_216(a,b,c,d,e,f,g,h,i,j,k,l) = if d > j then find_220(a,b,c,d,e,f,g,h,i,j,k,l) else find_204(a,b,c,j,f,g,h,e,d,k,l) # n=12, i=4, cost=7: a>c,a>d,a>e,a>f,a>g,a>h,a>i,a>j,b>c,b>d,b>e,b>f,b>g,b>h,b>i,b>j,c>e,c>f,c>g,c>h,d>i,d>j find_220(a,b,c,d,e,f,g,h,i,j,k,l) = if d > k then find_221(c,d,e,f,g,h,i,j,k,l) else find_222(a,b,c,k,f,g,h,e,d,l) # n=10, i=4, cost=6: a>c,a>e,a>f,a>g,a>h,a>i,b>c,b>e,b>f,b>g,b>h,b>i,c>e,c>f,c>g,c>h,d>i find_222(a,b,c,d,e,f,g,h,i,j) = if d > j then find_223(a,b,c,d,e,f,g,h,i,j) else find_224(a,b,c,j,f,g,h,e,d) # n=9, i=4, cost=5: a>c,a>e,a>f,a>g,a>h,b>c,b>e,b>f,b>g,b>h,c>e,c>f,c>g,c>h,d>i find_224(a,b,c,d,e,f,g,h,i) = if c > d then find_170(d,e,f,g,h) else find_77(a,b,c,i) # n=10, i=4, cost=5: a>c,a>e,a>f,a>g,a>h,a>i,b>c,b>e,b>f,b>g,b>h,b>i,c>e,c>f,c>g,c>h,d>i,d>j find_223(a,b,c,d,e,f,g,h,i,j) = if c > d then find_170(d,e,f,g,h) else find_225(a,b,c,i,j) # n=5, i=3, cost=4: a>c,a>d,b>c,b>d find_225(a,b,c,d,e) = if a > b then find_37(b,c,d,e) else find_37(a,c,d,e) # n=10, i=2, cost=6: a>c,a>d,a>e,a>f,b>g,b>h,b>i find_221(a,b,c,d,e,f,g,h,i,j) = if b > j then find_226(a,b,c,d,e,f,g,h,i,j) else find_227(a,j,d,e,f,c,b) # n=7, i=2, cost=5: a>c,a>d,a>e,a>f,b>g find_227(a,b,c,d,e,f,g) = if a > b then find_170(b,c,d,e,f) else find_25(a,g) # n=10, i=2, cost=5: a>c,a>d,a>e,a>f,b>g,b>h,b>i,b>j find_226(a,b,c,d,e,f,g,h,i,j) = if a > b then find_170(b,c,d,e,f) else find_170(a,g,h,i,j) # n=12, i=4, cost=9: a>b,a>c,a>d,a>e,a>f,a>g,a>h,a>i,b>c,b>d,b>e,b>f,b>g,b>h,b>i,c>e,c>f,d>g find_214(a,b,c,d,e,f,g,h,i,j,k,l) = if c > j then find_228(b,c,d,e,f,j,g,i,h,k,l) else find_229(a,b,d,j,g,c,i,h,k,l) # n=10, i=4, cost=8: a>b,a>c,a>e,a>f,a>g,a>h,b>c,b>e,b>f,b>g,b>h,c>e,d>f find_229(a,b,c,d,e,f,g,h,i,j) = if c > d then find_230(b,c,d,e,g,h,i,j) else find_231(a,b,d,c,f,g,h,i,j) # n=9, i=4, cost=7: a>b,a>d,a>e,a>f,a>g,b>d,b>e,b>f,b>g,c>d,c>e find_231(a,b,c,d,e,f,g,h,i) = if f > g then find_232(a,b,c,f,e,d,g,h,i) else find_232(a,b,c,g,e,d,f,h,i) # n=9, i=4, cost=6: a>b,a>d,a>e,a>f,a>g,b>d,b>e,b>f,b>g,c>e,c>f,d>g find_232(a,b,c,d,e,f,g,h,i) = if h > i then find_233(a,b,c,d,h,f,e,g,i) else find_233(a,b,c,d,i,f,e,g,h) # n=9, i=4, cost=5: a>b,a>d,a>f,a>g,a>h,b>d,b>f,b>g,b>h,c>f,c>g,d>h,e>i find_233(a,b,c,d,e,f,g,h,i) = if b > e then find_29(c,d,e,f,g,h,i) else find_67(a,b,d,c,i) # n=8, i=3, cost=7: a>b,a>c,a>d,a>e,a>f,b>c,b>d find_230(a,b,c,d,e,f,g,h) = if a > g then find_234(b,c,d,e,f,g,h) else find_117(a,b,e,f,h) # n=7, i=2, cost=6: a>b,a>c find_234(a,b,c,d,e,f,g) = if d > e then find_26(a,d,c,b,e,f,g) else find_26(a,e,c,b,d,f,g) # n=11, i=3, cost=8: a>b,a>c,a>d,a>e,a>f,a>g,a>h,a>i,b>d,b>e,b>f,c>g find_228(a,b,c,d,e,f,g,h,i,j,k) = if c > j then find_235(b,c,d,e,f,g,j,i,h,k) else find_236(a,b,j,e,f,d,c,i,h,k) # n=10, i=3, cost=7: a>b,a>d,a>e,a>f,a>g,a>h,a>i,b>d,b>e,b>f,c>g find_236(a,b,c,d,e,f,g,h,i,j) = if h > i then find_237(a,b,h,c,e,f,d,i,g,j) else find_237(a,b,i,c,e,f,d,h,g,j) # n=10, i=3, cost=6: a>b,a>c,a>e,a>f,a>g,a>h,a>i,b>e,b>f,b>g,c>h,d>i find_237(a,b,c,d,e,f,g,h,i,j) = if c > j then find_238(b,c,d,e,f,g,h,j,i) else find_239(a,b,d,j,f,g,e,c,i) # n=9, i=3, cost=5: a>b,a>e,a>f,a>g,a>h,a>i,b>e,b>f,b>g,c>i,d>h find_239(a,b,c,d,e,f,g,h,i) = if c > d then find_34(a,b,c,e,f,g,i,d) else find_34(a,b,d,e,f,g,h,c) # n=9, i=2, cost=5: a>d,a>e,a>f,b>g,b>h,c>i find_238(a,b,c,d,e,f,g,h,i) = if b > c then find_137(a,b,d,e,f,c,g,h) else find_125(a,c,d,e,f,b,i) # n=10, i=2, cost=7: a>c,a>d,a>e,b>f,b>g find_235(a,b,c,d,e,f,g,h,i,j) = if h > i then find_240(a,b,h,d,e,c,g,f,i,j) else find_240(a,b,i,d,e,c,g,f,h,j) # n=10, i=2, cost=6: a>d,a>e,a>f,b>g,b>h,c>i find_240(a,b,c,d,e,f,g,h,i,j) = if c > j then find_241(a,b,c,d,e,f,g,h,i,j) else find_238(a,b,j,e,f,d,h,g,c) # n=10, i=2, cost=5: a>d,a>e,a>f,b>g,b>h,c>i,c>j find_241(a,b,c,d,e,f,g,h,i,j) = if b > c then find_137(a,b,d,e,f,c,g,h) else find_137(a,c,d,e,f,b,i,j) # n=13, i=4, cost=11: a>b,a>c,a>d,a>e,a>f,a>g,a>h,a>i,b>d,b>e,b>f,b>g,c>h,c>i,d>e find_198(a,b,c,d,e,f,g,h,i,j,k,l,m) = if j > k then find_242(a,b,c,d,j,e,g,f,i,h,k,l,m) else find_242(a,b,c,d,k,e,g,f,i,h,j,l,m) # n=13, i=4, cost=10: a>b,a>c,a>d,a>f,a>g,a>h,a>i,a>j,b>d,b>f,b>g,b>h,c>i,c>j,d>f,e>k find_242(a,b,c,d,e,f,g,h,i,j,k,l,m) = if c > e then find_243(b,c,d,e,f,k,h,g,j,i,l,m) else find_244(a,b,e,c,d,i,j,f,g,h,k,l,m) # n=13, i=4, cost=9: a>b,a>d,a>e,a>f,a>g,a>h,a>i,a>j,b>e,b>h,b>i,b>j,c>d,c>f,c>g,c>k,d>f,d>g,e>h find_244(a,b,c,d,e,f,g,h,i,j,k,l,m) = if b > c then find_245(b,c,e,d,k,h,j,i,l,m) else find_246(c,a,b,d,e,i,j,f,g,k,l,m) # n=12, i=4, cost=8: a>c,a>d,a>e,a>f,a>g,a>h,a>i,a>j,b>c,b>d,b>e,b>f,b>g,b>h,b>i,c>e,c>f,c>g,d>h,d>i find_246(a,b,c,d,e,f,g,h,i,j,k,l) = if c > d then find_165(a,b,c,d,e,f,g,j,k,l) else find_247(a,b,d,c,h,i,j,k,l) # n=9, i=4, cost=7: a>c,a>d,a>e,a>f,a>g,b>c,b>d,b>e,b>f,c>d,c>e,c>f find_247(a,b,c,d,e,f,g,h,i) = if a > b then find_248(b,c,d,e,f,g,h,i) else find_139(a,c,d,e,f,g,h,i) # n=8, i=3, cost=6: a>b,a>c,a>d,a>e,b>c,b>d,b>e find_248(a,b,c,d,e,f,g,h) = if f > g then find_172(a,b,f,d,e,c,g,h) else find_172(a,b,g,d,e,c,f,h) # n=10, i=3, cost=8: a>b,a>c,a>d,a>e,a>f,a>g,a>h,b>d,b>e,c>f find_245(a,b,c,d,e,f,g,h,i,j) = if b > c then find_144(a,b,c,d,e,g,h,i,j) else find_230(a,c,b,f,g,h,i,j) # n=12, i=3, cost=9: a>c,a>e,a>g,a>h,b>d,b>f,b>i,b>j,c>e,d>f find_243(a,b,c,d,e,f,g,h,i,j,k,l) = if a > b then find_228(a,b,c,d,i,j,e,g,h,k,l) else find_228(b,a,d,c,g,h,f,i,j,k,l) # n=13, i=4, cost=17: a>b,a>c,a>d find_38(a,b,c,d,e,f,g,h,i,j,k,l,m) = if e > f then find_249(a,e,c,d,b,f,g,h,i,j,k,l,m) else find_249(a,f,c,d,b,e,g,h,i,j,k,l,m) # n=13, i=4, cost=16: a>c,a>d,a>e,b>f find_249(a,b,c,d,e,f,g,h,i,j,k,l,m) = if g > h then find_250(a,b,g,d,e,c,f,h,i,j,k,l,m) else find_250(a,b,h,d,e,c,f,g,i,j,k,l,m) # n=13, i=4, cost=15: a>d,a>e,a>f,b>g,c>h find_250(a,b,c,d,e,f,g,h,i,j,k,l,m) = if b > c then find_251(b,a,c,h,g,f,d,e,i,j,k,l,m) else find_251(c,a,b,g,h,f,d,e,i,j,k,l,m) # n=13, i=4, cost=14: a>c,a>d,a>e,b>f,b>g,b>h,c>d find_251(a,b,c,d,e,f,g,h,i,j,k,l,m) = if i > j then find_252(a,b,c,i,d,e,g,h,f,j,k,l,m) else find_252(a,b,c,j,d,e,g,h,f,i,k,l,m) # n=13, i=4, cost=13: a>c,a>e,a>f,b>g,b>h,b>i,c>e,d>j find_252(a,b,c,d,e,f,g,h,i,j,k,l,m) = if k > l then find_253(a,b,c,d,k,e,f,h,i,g,j,l,m) else find_253(a,b,c,d,l,e,f,h,i,g,j,k,m) # n=13, i=4, cost=12: a>c,a>f,a>g,b>h,b>i,b>j,c>f,d>k,e>l find_253(a,b,c,d,e,f,g,h,i,j,k,l,m) = if d > e then find_254(a,d,b,c,e,f,l,g,k,j,h,i,m) else find_254(a,e,b,c,d,f,k,g,l,j,h,i,m) # n=13, i=4, cost=11: a>d,a>f,a>h,b>e,b>g,b>i,c>j,c>k,c>l,d>f,e>g find_254(a,b,c,d,e,f,g,h,i,j,k,l,m) = if a > b then find_255(a,b,c,e,d,g,i,f,h,j,k,l,m) else find_255(b,a,c,d,e,f,h,g,i,j,k,l,m) # n=13, i=4, cost=10: a>b,a>d,a>e,a>f,a>g,a>h,a>i,b>d,b>f,b>g,c>j,c>k,c>l,d>f,e>h find_255(a,b,c,d,e,f,g,h,i,j,k,l,m) = if e > m then find_256(a,b,c,e,d,f,g,h,m,i,k,l,j) else find_257(a,b,c,m,d,e,f,h,g,i,k,l,j) # n=13, i=4, cost=9: a>b,a>e,a>f,a>g,a>h,a>i,a>j,b>e,b>g,b>i,c>k,c>l,c>m,d>f,d>h,e>g,f>h find_257(a,b,c,d,e,f,g,h,i,j,k,l,m) = if j > k then find_258(a,b,c,d,e,f,j,g,k,h,i,l,m) else find_259(a,c,b,d,e,f,k,j,g,h,i,l,m) # n=13, i=4, cost=8: a>c,a>e,a>f,a>h,a>i,a>j,a>k,b>g,b>h,b>l,b>m,c>e,c>i,c>k,d>f,d>j,e>i,f>j,g>h find_259(a,b,c,d,e,f,g,h,i,j,k,l,m) = if c > g then find_260(a,c,b,d,e,f,g,i,j,k,l,m) else find_261(b,a,g,d,f,c,h,j,l,m) # n=10, i=4, cost=7: a>c,a>f,a>g,a>i,a>j,b>e,b>f,b>g,b>h,c>f,c>g,d>e,d>h,e>h find_261(a,b,c,d,e,f,g,h,i,j) = if b > c then find_262(b,a,c,d,e,f,g,h,i,j) else find_263(c,b,f,g,d,i,j) # n=7, i=3, cost=6: a>b,a>c,a>d,b>c,b>d find_263(a,b,c,d,e,f,g) = if b > e then find_159(a,b,c,d,e,f,g) else find_264(a,e,b,f,g) # n=5, i=3, cost=5: a>c,b>c find_264(a,b,c,d,e) = if a > b then find_67(a,b,c,d,e) else find_67(b,a,c,d,e) # n=10, i=4, cost=6: a>c,a>e,a>f,a>g,a>h,b>c,b>f,b>g,b>i,b>j,c>f,c>g,d>e,d>h,e>h find_262(a,b,c,d,e,f,g,h,i,j) = if c > d then find_159(a,c,d,f,g,i,j) else find_265(a,d,b,e,c,h,i,j) # n=8, i=4, cost=5: a>d,a>e,a>f,b>d,b>e,b>f,c>e,c>g,c>h,d>f find_265(a,b,c,d,e,f,g,h) = if g > h then find_266(a,b,c,d,g,e,f,h) else find_266(a,b,c,d,h,e,f,g) # n=8, i=4, cost=4: a>d,a>f,a>g,b>d,b>f,b>g,c>e,c>f,c>h,d>g,e>h find_266(a,b,c,d,e,f,g,h) = if a > e then find_22(b,c,d,e,f,g,h) else find_267(a,b,h) # n=3, i=2, cost=3: no comparisons done find_267(a,b,c) = if a > b then find_63(a,b,c) else find_63(b,a,c) # n=12, i=4, cost=7: a>b,a>e,a>f,a>g,a>h,a>i,a>j,b>e,b>g,b>h,b>j,c>g,c>k,c>l,d>f,d>i,e>h,f>i find_260(a,b,c,d,e,f,g,h,i,j,k,l) = if b > c then find_268(b,c,d,e,f,g,k,l,h,i,j) else find_269(a,c,b,d,f,e,g,j,i,k,l) # n=11, i=4, cost=6: a>c,a>e,a>f,a>g,a>h,a>i,b>c,b>f,b>g,b>h,b>j,b>k,c>f,c>g,c>h,d>e,d>i,e>i find_269(a,b,c,d,e,f,g,h,i,j,k) = if j > k then find_270(a,b,c,d,e,j,g,h,f,i,k) else find_270(a,b,c,d,e,k,g,h,f,i,j) # n=11, i=4, cost=5: a>c,a>e,a>g,a>h,a>i,a>j,b>c,b>f,b>g,b>h,b>i,b>k,c>g,c>h,c>i,d>e,d>j,e>j,f>k find_270(a,b,c,d,e,f,g,h,i,j,k) = if d > f then find_271(a,b,d,c,e,f,g,h,i,k,j) else find_124(a,c,f,g,h,i,d,k) # n=11, i=4, cost=4: a>d,a>e,a>g,a>h,a>i,a>k,b>d,b>f,b>g,b>h,b>i,b>j,c>e,c>f,c>j,c>k,d>g,d>h,d>i,e>k,f>j find_271(a,b,c,d,e,f,g,h,i,j,k) = if c > d then find_22(a,b,e,f,d,k,j) else find_36(c,g,h,i) # n=11, i=3, cost=6: a>b,a>d,a>f,a>g,a>h,a>i,a>k,b>f,b>g,b>h,c>e,c>j,d>i,e>j find_268(a,b,c,d,e,f,g,h,i,j,k) = if d > k then find_272(a,b,d,c,e,f,g,h,i,k,j) else find_273(a,b,c,k,e,g,h,f,d,j) # n=10, i=3, cost=5: a>b,a>d,a>f,a>g,a>h,a>i,b>f,b>g,b>h,c>e,c>j,d>i,e>j find_273(a,b,c,d,e,f,g,h,i,j) = if c > d then find_123(a,b,c,e,f,g,h,d,j) else find_125(b,d,f,g,h,c,i) # n=11, i=3, cost=5: a>b,a>c,a>f,a>g,a>h,a>i,a>j,b>f,b>g,b>h,c>i,c>j,d>e,d>k,e>k find_272(a,b,c,d,e,f,g,h,i,j,k) = if c > d then find_137(b,c,f,g,h,d,i,j) else find_123(a,b,d,e,f,g,h,c,k) # n=13, i=4, cost=8: a>b,a>e,a>f,a>g,a>h,a>i,a>j,a>k,b>e,b>h,b>k,c>i,c>l,c>m,d>f,d>j,e>h,f>j,g>i find_258(a,b,c,d,e,f,g,h,i,j,k,l,m) = if b > c then find_274(b,c,d,e,f,l,m,h,j,k,g) else find_275(a,c,b,d,f,g,e,k,i,j,l,m) # n=12, i=4, cost=7: a>c,a>e,a>f,a>g,a>h,a>i,a>j,b>c,b>g,b>h,b>i,b>k,b>l,c>g,c>h,d>e,d>j,e>j,f>i find_275(a,b,c,d,e,f,g,h,i,j,k,l) = if k > l then find_276(a,b,c,d,e,f,k,h,g,i,j,l) else find_276(a,b,c,d,e,f,l,h,g,i,j,k) # n=12, i=4, cost=6: a>c,a>e,a>f,a>h,a>i,a>j,a>k,b>c,b>g,b>h,b>i,b>j,b>l,c>h,c>i,d>e,d>k,e>k,f>j,g>l find_276(a,b,c,d,e,f,g,h,i,j,k,l) = if f > g then find_277(b,c,d,f,e,h,i,g,j,k) else find_278(b,a,c,g,d,e,h,i,f,k,l) # n=11, i=4, cost=5: a>c,a>d,a>g,a>h,a>i,a>k,b>c,b>f,b>g,b>h,b>i,b>j,c>g,c>h,d>i,d>k,e>f,e>j,f>j find_278(a,b,c,d,e,f,g,h,i,j,k) = if c > e then find_34(b,c,d,e,g,h,i,k) else find_21(a,b,e,d,f,c,i,j,k) # n=10, i=3, cost=5: a>b,a>f,a>g,a>h,a>i,b>f,b>g,c>e,c>j,d>h,d>i,e>j find_277(a,b,c,d,e,f,g,h,i,j) = if c > d then find_279(a,c,b,e,f,g,j,d) else find_280(a,d,b,c,h,i,f,g,e) # n=9, i=3, cost=4: a>c,a>e,a>f,a>g,a>h,b>d,b>e,b>f,b>i,c>g,c>h,d>i find_280(a,b,c,d,e,f,g,h,i) = if c > d then find_30(b,c,e,f,g,h) else find_64(a,d,e,f,i) # n=8, i=3, cost=4: a>c,a>e,a>f,b>d,b>g,b>h,c>e,c>f,d>g find_279(a,b,c,d,e,f,g,h) = if c > d then find_68(a,c,b,e,f,h) else find_23(d,g,a,h) # n=11, i=3, cost=7: a>b,a>d,a>f,a>g,a>h,a>j,b>f,b>g,c>e,c>i,d>h,e>i find_274(a,b,c,d,e,f,g,h,i,j,k) = if b > c then find_17(b,d,c,f,g,h,j,k) else find_281(a,c,d,e,b,h,i,j,k) # n=9, i=3, cost=6: a>c,a>e,a>f,a>h,b>d,b>e,b>g,c>f,d>g find_281(a,b,c,d,e,f,g,h,i) = if a > b then find_26(b,c,d,e,f,h,i) else find_141(a,d,c,e,h,g,i) # n=13, i=4, cost=9: a>b,a>d,a>e,a>f,a>g,a>h,a>i,a>j,b>e,b>f,b>g,c>k,c>l,c>m,d>h,d>i,e>f find_256(a,b,c,d,e,f,g,h,i,j,k,l,m) = if b > d then find_282(a,b,c,d,e,h,i,f,g,j,k,l,m) else find_283(a,d,c,b,e,g,h,i,k,l,m,j) # n=12, i=4, cost=8: a>b,a>d,a>e,a>f,a>g,a>h,a>l,b>d,b>e,b>f,b>g,b>h,c>i,c>j,c>k,d>e,d>f find_283(a,b,c,d,e,f,g,h,i,j,k,l) = if b > c then find_235(c,d,i,j,k,f,e,h,g,l) else find_284(a,b,d,g,h,l,j,k,i) # n=9, i=3, cost=7: a>b,a>c,a>d,a>e,a>f,b>c,b>d,b>e find_284(a,b,c,d,e,f,g,h,i) = if f > g then find_131(a,b,f,d,e,c,g,h,i) else find_285(a,b,g,d,e,c,f,h,i) # n=9, i=3, cost=6: a>b,a>d,a>e,a>f,a>g,b>d,b>e,b>f,c>g find_285(a,b,c,d,e,f,g,h,i) = if h > i then find_122(a,b,c,h,e,f,d,g,i) else find_122(a,b,c,i,e,f,d,g,h) # n=13, i=4, cost=8: a>b,a>d,a>e,a>f,a>g,a>h,a>i,a>j,b>d,b>e,b>f,b>g,b>h,b>i,c>k,c>l,c>m,d>f,d>g,e>h find_282(a,b,c,d,e,f,g,h,i,j,k,l,m) = if b > c then find_286(c,d,e,k,l,m,g,f,h,j,i) else find_284(a,b,d,e,i,j,k,l,m) # n=11, i=2, cost=7: a>d,a>e,a>f,b>g,b>h,c>i find_286(a,b,c,d,e,f,g,h,i,j,k) = if j > k then find_287(a,b,c,j,e,f,d,h,g,k,i) else find_287(a,b,c,k,e,f,d,h,g,j,i) # n=11, i=2, cost=6: a>e,a>f,a>g,b>h,b>i,c>k,d>j find_287(a,b,c,d,e,f,g,h,i,j,k) = if c > d then find_241(a,b,c,e,f,g,h,i,d,k) else find_241(a,b,d,e,f,g,h,i,c,j)