Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
1
Newest
 Teacher
Impact
~5k people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Feb
26
comment Fastest way to find the closest point
You don't say very much about your data. If the coordinates are always integers in the range [0,N-1] then you can test if any of the points lies within a bounding box in time O(1) using a "summed area table" if you don't mind some preparation which will time time O(N^2) and use O(N^2) memory. In your example N=251. As you have 10000 points, you might not mind the O(251^2) memory.
Jun
13
comment Is Haskell good at teaching fundamentals of mathematics?
I don't think anyone expects a programming language to literally teach mathematics and I don't think the original question asked for a programming language to literally teach mathematics. They want something that can be used for some exercises to help with the teaching of mathematics.
Jun
11
awarded  Teacher
Jun
11
answered Is Haskell good at teaching fundamentals of mathematics?