01-16-2009 09:28 AM
I was just wandering if i can use labview or not for the following as the last day is tuesday.
i have 700000 locations' latitude,longitude.and i have 30000 other locations'latitude,longitude.
now i will take one by one location from 30000 and want to find all the locations out of 700000 which are within the 20 miles radius of my location(which is one from the 30000).
i dont want to compare distance between one point and all the other 700000. instead can we do this comparison for some lesser values. i mean just a look at all 700000 and it may be reduced without comparing each and every value. is it possible?
if not then---
I have made a distance calculator using formula node and it works with 100000.( i have tested) now if i make it to calculate for 700000 and that also 30000 times, how long will it take, anybody has any idea? here time is restriction.
i am using labview 8.6 evaluation version.
01-16-2009 09:40 AM
01-16-2009 11:51 AM
janki wrote:I was just wandering if i can use labview or not for the following as the last day is tuesday.
Of course you can use LabVIEW!
If the problem fits into the memory contraint of a 32 bit OS, LabVIEW is equally sutable as any other programming language.
As Joseph already mentioned, deciding on a good internal data structure is important for speed and efficiency. Make sure to keep the large data structures "in place" and avoid constantly making data copies in memory. I assume you have an efficient algorithm to calculate the distance between two points given their long/lat coordinates.
Why don't you start with a scaled down program containing small arrays of artificial data and work out the main algorithm. Feel free to post it here so we can discuss they layout possibly offer improvments. Good luck! 🙂
01-16-2009 12:14 PM
janki wrote:I have made a distance calculator using formula node and it works with 100000.( i have tested) now if i make it to calculate for 700000 and that also 30000 times, how long will it take, anybody has any idea? here time is restriction.
It also all depends on the typical data and now you want the output represented. If typically all (or most) points are within 20 miles of each other, you will run out of memory for the result, guranteed. If a match is rare, your success is more likely. 😉
01-16-2009 12:33 PM
hey, joseph
thanks a lot
I had thoght this option considering lat and long as x and y coordinates . i have only one doubt-- if i will sort w.r.t lat, i think i will miss some points (which are actually within 20 miles of radius) because i am considering only horizontal points and creating rough box.
infact what i am considering is i should sort horizontally as well as vertically then only i can get the whole circle( 20 miles radius).
please reply soon.
and i am not getting--The second method probably is order nxm where this should be somewhere order m or near linear depending on your densities.
and i will surely post it soon if i complete it successfully.
01-16-2009 02:16 PM