Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- to_remove = Make an (empty) list of squares to not keep
- squares = Create a square for each point, with the point as its center
- For each square in squares
- If the square has more than one point in it
- For each of the points in this square that aren't the center point
- temp_list = intersect(points_in_this_square, points_in_other_point's_square)
- If sort(temp_list) == sort(points_in_this_square)
- to_remove = append(to_remove, other_point's_square)
- squares = squares not in to_remove
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement