(Java) 15.15 Version

#1

Hi,

I have a question regarding the proper data structure choice for this problem.
If I choose 2 tree sets, first ordered by Ox axis, second by Oy axis, insert would take O(n log n) at most. Otherwise a k-d tree would do it?

0 Likes

#2

Why your algorithm insertion needs O(nlogn) time? I think there must something wrong here. k-d tree will definitely works.

0 Likes