Fix small mistakes.
This commit is contained in:
parent
6a44176cdf
commit
d7b3d75e0f
|
@ -87,7 +87,7 @@ def mbc_ch(points: Set[Point], flipper: callable, extra_prune=False, shuffle=Tru
|
|||
pr = {p for p in points if p.x >= med_x}
|
||||
|
||||
# Shuffle
|
||||
with Profiler("flipping constraints"):
|
||||
with Profiler("building constraints"):
|
||||
constraints = [((flipper(-p.x), flipper(-1)), flipper(-p.y)) for p in points]
|
||||
if shuffle:
|
||||
with Profiler("shuffling constraints"):
|
||||
|
|
|
@ -103,8 +103,8 @@ def do_one_profile(num_points):
|
|||
#("gift_wrapper", rapper),
|
||||
("quick_hull", quick_hull),
|
||||
("mbc", mbc),
|
||||
("mbc2", mbc2),
|
||||
("mbc_no_shuffle", mbc_no_shuffle),
|
||||
("mbc2", mbc2),
|
||||
("mbc2_no_shuffle", mbc2_no_shuffle),
|
||||
]
|
||||
|
||||
|
@ -144,7 +144,7 @@ def plot_mbc(results, ax):
|
|||
"other",
|
||||
"finding median",
|
||||
"partitioning set",
|
||||
"flipping constraints",
|
||||
"building constraints",
|
||||
"solving LP",
|
||||
"finding bridge points",
|
||||
"pruning between line points",
|
||||
|
|
Loading…
Reference in New Issue
Block a user