Commit 306a710e authored by Hrishee Shastri's avatar Hrishee Shastri
Browse files

rename tbs_v1 to GDC_TBS

parent 65b853dc
......@@ -9,9 +9,10 @@ -- Implementation of the TBS algorithm for sorting bitst
along with a couple testing/analysis functions
def tbs_v1(perm):
def GDC_TBS(perm):
Returns the cost to sort perm using TBS
Returns the cost to sort perm using TBS as the binary sorting sequence.
revlist = permutationsort_divideconquer_tbs(perm, 0, len(perm) - 1)
cost = SBR.compress_reversals(revlist, len(perm)) / 3
Supports Markdown
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