Skip to content

Commit

Permalink
fix: execution time problem
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyChow19 committed Feb 27, 2023
1 parent 6c6ad6c commit 2fd5780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/divide_and_conquer.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def find_closest_pair_dnc(points: np.ndarray[np.ndarray[float]], dimension: int,

if abs(sorted_points[i][k] - sorted_points[j][k]) > min_dist:
check_further = False
continue
break

if check_further:
temp_dist = util.euclidean_distance(sorted_points[i], sorted_points[j])
Expand Down

0 comments on commit 2fd5780

Please sign in to comment.