Skip to content

Commit

Permalink
gen ace
Browse files Browse the repository at this point in the history
  • Loading branch information
SHoltzen committed Mar 8, 2019
1 parent 131fd31 commit e868db8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .#gen_pigeonhole_fg.py
29 changes: 29 additions & 0 deletions gen_pigeonhole_fg.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import sys
import itertools

def findsubsets(S,m):
return set(itertools.combinations(S, m))

# num pigeons
n = 3
print("MARKOV")
print(n * 2)
for i in range(0,n * 2):
sys.stdout.write("2 " )
print("")
# print factor description
subsets = findsubsets(range(0,n), 2)
print(len(subsets) * 2 + n)
for (a,b) in subsets:
print("2 %s %s " % (a,b))
print("2 %s %s " % (a + n, b + n))
# print holes
for a in range(0, n):
print("2 %s %s" % (a, a+n))

print("")
# print tables
for i in range(0, len(subsets) * 2 + n):
print("4")
print(" 1 1000")
print(" 1000 1")

0 comments on commit e868db8

Please sign in to comment.