-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py.old
16 lines (11 loc) · 1.27 KB
/
test.py.old
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from fonctions import *
from bruteforce import *
def to_test():
data=b
# optimize(a)
# optimize(a)
return bruteforce(data,6)
a={1:[48,[(0,0),(0,1),(0,2),(0,3),(1,1),(2,1)],combi_possibles(48,6,4)], 2:[72,[(1,0),(2,0),(3,0),(3,1)],combi_possibles(72,4,4)], 3: [5,[(1,2),(1,3)],combi_possibles(5,2,4)], 4: [2,[(2,2)],[(2,)]], 5:[3,[(2,3),(3,3)],combi_possibles(3,2,4)], 6: [4,[(3,2)],[(4,)]] }
b={1: [5, [(0, 0), (0, 1)], combi_possibles(5,2,6)], 2: [11, [(1, 0), (1, 1), (2, 1)], combi_possibles(11,3,6)], 3: [2, [(0, 2), (1, 2)], combi_possibles(2,2,6)], 4: [20, [(0, 3), (0, 4)],combi_possibles(20,2,6)], 5: [13, [(0, 5), (1, 5), (2, 5)], combi_possibles(13,3,6)], 6: [6, [(1, 4), (2, 4)], combi_possibles(6,2,6)], 7: [2, [(1, 3)], [(2,)]], 8: [3, [(2, 2), (2, 3)], combi_possibles(3,2,6)], 9: [4, [(2, 0), (3, 0), (3, 1)], combi_possibles(4,3,6)], 10: [15, [(3, 4), (3, 5)], combi_possibles(15,2,6)], 11: [11, [(3, 2), (4, 2)], combi_possibles(11,2,6)], 12: [24, [(3, 3), (4, 3)], combi_possibles(12,2,6)], 13: [48, [(4, 0), (5, 0), (4, 1)], combi_possibles(48,3,6)], 14: [2, [(5, 1), (5, 2)], combi_possibles(2,2,6)], 15: [7, [(5, 3), (5, 4)], combi_possibles(7,2,6)], 16: [4, [(5, 5), (4, 4), (4, 5)], combi_possibles(4,3,6)]}
if __name__ == '__main__':
print(to_test())