From 0ea400f339dd045d7692e4474036a2037378acb5 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Sun, 23 Feb 2020 11:36:02 +0000 Subject: [PATCH] checksumsets.py: if BRUTEFORCE_THRESHOLD is 0, don't call bruteforce_D (and don't depend on bintrees in that case). Signed-off-by: Daira Hopwood --- checksumsets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checksumsets.py b/checksumsets.py index f356c54..79896ac 100755 --- a/checksumsets.py +++ b/checksumsets.py @@ -59,7 +59,7 @@ BRUTEFORCE_THRESHOLD = 100000 def D(q, zeta, mm): if DEBUG: print("(q, zeta, mm) =", (q, zeta, mm)) - Dcheck = bruteforce_D(q, zeta, min(mm, BRUTEFORCE_THRESHOLD)) + Dcheck = [] if BRUTEFORCE_THRESHOLD == 0 else bruteforce_D(q, zeta, min(mm, BRUTEFORCE_THRESHOLD)) (u, m) = (0, 1) # (u + am) : a ∈ Nat is the current arithmetic progression n = q # the previous min-distance