Commit 65b853dc authored by Hrishee Shastri's avatar Hrishee Shastri
Browse files

remove debugged comments

parent 98e18fc2
......@@ -89,10 +89,7 @@ def is_valid_permutation(permutation, start, end):
def compress_reversals(revlist, permsize):
timesteps = []
for rev in revlist:
# print(rev, ' cost =', rev_cost(rev))
init_step = len(timesteps)
# if rev.beg == 5 and rev.end == 7:
# print('Here')
for step in timesteps[::-1]:
busy = False
for i in range(rev.beg, rev.end+1):
......@@ -104,15 +101,11 @@ def compress_reversals(revlist, permsize):
init_step -= 1
while init_step + rev_cost(rev) - 1 > len(timesteps) - 1:
timesteps.append([0]*permsize)
# if init_step + rev_cost(rev) - 1 > len(timesteps) - 1:
# timesteps += [[0] * permsize] * (init_step + rev_cost(rev) - 1 - (len(timesteps) - 1))
for i in range(init_step, init_step + rev_cost(rev)):
# print('Affecting row', i)
for j in range(rev.beg, rev.end+1):
timesteps[i][j] = 1
# for t in range(len(timesteps)):
# print(t, '\t-->', timesteps[t])
# print()
return len(timesteps)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment