Commit 0d0d0679 authored by Eddie Schoute's avatar Eddie Schoute
Browse files

Remove old code

parent ed399785
......@@ -73,11 +73,6 @@ def perm_to_01(L, i, j):
median = (j - i) // 2
return L[:i] + [int(sorted_subseq.index(k) > median) for k in subseq] + L[j + 1:]
def permutationsort_divideconquer_tbs(L):
"""Routes the given permutation using reversals. Returns the reversals"""
j = max(L)
return permutationsort_divideconquer_tbs(L, 0, j)
def permutationsort_divideconquer_tbs(L, i=None, j=None):
"""
Sorts the given permutations L from index i to j (inclusive) using a divide and conquer approach. Returns a list of
......
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