10797 - Peaceful Sharing
Moderator: Board moderators
-
- Experienced poster
- Posts: 123
- Joined: Thu Feb 10, 2005 4:46 am
-
- Experienced poster
- Posts: 123
- Joined: Thu Feb 10, 2005 4:46 am
I guess it depends on coordinate limits, right? like log(DX) * log(DY)
DX=MAXX-MINX, DY=MAXY-MINY
If so, then it's actually O(N*log(DX)*log(DY)) for arbitrary values of X/Y fitting into 'long double' without precision issues. Might be O(N*log(N)) if we can compact space between neighboring X/Y values.
I'll know when I find it![:)](./images/smilies/icon_smile.gif)
DX=MAXX-MINX, DY=MAXY-MINY
If so, then it's actually O(N*log(DX)*log(DY)) for arbitrary values of X/Y fitting into 'long double' without precision issues. Might be O(N*log(N)) if we can compact space between neighboring X/Y values.
I'll know when I find it
![:)](./images/smilies/icon_smile.gif)
To be the best you must become the best!
Re: 10797 - Peaceful Sharing
Could someone explain or introduce something about the term "dual" or "median of arrangement"?
This problem looks interesting. But I just got no idea on solving this...
Thanks in advance.
This problem looks interesting. But I just got no idea on solving this...
Thanks in advance.