Click here to Skip to main content
15,891,375 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Multiplayer game rating Pin
Alan Balkany23-Jan-08 4:01
Alan Balkany23-Jan-08 4:01 
GeneralRe: Multiplayer game rating Pin
Russell Jones23-Jan-08 5:58
Russell Jones23-Jan-08 5:58 
GeneralRe: Multiplayer game rating Pin
J4amieC23-Jan-08 6:20
J4amieC23-Jan-08 6:20 
GeneralRe: Multiplayer game rating Pin
Russell Jones24-Jan-08 0:23
Russell Jones24-Jan-08 0:23 
GeneralRe: Multiplayer game rating Pin
LongRange.Shooter1-Feb-08 10:33
LongRange.Shooter1-Feb-08 10:33 
GeneralFinding Closest Points in 2 dimensions Pin
MikeMarq12-Jan-08 18:24
MikeMarq12-Jan-08 18:24 
GeneralRe: Finding Closest Points in 2 dimensions Pin
cp987612-Jan-08 23:04
cp987612-Jan-08 23:04 
GeneralRe: Finding Closest Points in 2 dimensions Pin
Member 419459314-Mar-08 6:36
Member 419459314-Mar-08 6:36 
Unfortunately, Peter, this is not sufficient. Even comparing the smallest distance between any of the stars in all of the grid boxes may miss the case where a star in one grid box is immediately adjacent to another star in another grid box. You also need to make a quick comparison at the end inside a narrow band that spans the grid lines, the width of the band being the smallest distance between two stars found thus far.

Many, many optimizations also need to be done in the algorithm to avoid expensive calculations. With 9100 6.5 magnitude stars, about 4500 should be visible from any point on earth. O(n) of 4500 is about 10,125,000, and that is a lot of calculations.

What I was concerned with, is not that these were stars (~4500), but (as stated) this is an analogy for... Maybe the real problem was one in physics where the points were atoms in some condensate and numbered in the billions and the distance was to determine attractions.

Dave Augustine.
GeneralRe: Finding Closest Points in 2 dimensions Pin
cp98768-May-08 16:14
cp98768-May-08 16:14 
GeneralRe: Finding Closest Points in 2 dimensions Pin
CPallini14-Jan-08 2:24
mveCPallini14-Jan-08 2:24 
GeneralRe: Finding Closest Points in 2 dimensions Pin
Alan Balkany14-Jan-08 3:47
Alan Balkany14-Jan-08 3:47 
GeneralRe: Finding Closest Points in 2 dimensions [modified] Pin
Stephen Hewitt14-Jan-08 11:18
Stephen Hewitt14-Jan-08 11:18 
GeneralRe: Finding Closest Points in 2 dimensions Pin
Alan Balkany16-Jan-08 3:41
Alan Balkany16-Jan-08 3:41 
GeneralRe: Finding Closest Points in 2 dimensions Pin
CPallini17-Jan-08 2:10
mveCPallini17-Jan-08 2:10 
GeneralRe: Finding Closest Points in 2 dimensions Pin
MikeMarq17-Jan-08 12:13
MikeMarq17-Jan-08 12:13 
GeneralRe: Finding Closest Points in 2 dimensions Pin
cp987617-Jan-08 15:18
cp987617-Jan-08 15:18 
GeneralRe: Finding Closest Points in 2 dimensions Pin
brien_rtb17-Jan-08 18:00
brien_rtb17-Jan-08 18:00 
GeneralRe: Finding Closest Points in 2 dimensions [modified] Pin
Skippums21-Jan-08 8:58
Skippums21-Jan-08 8:58 
GeneralMulti-dimensional surface representation and interpolation in C++ Pin
sjcomp12-Jan-08 11:47
sjcomp12-Jan-08 11:47 
GeneralRe: Multi-dimensional surface representation and interpolation in C++ Pin
CKnig22-Jan-08 3:09
CKnig22-Jan-08 3:09 
GeneralRe: Multi-dimensional surface representation and interpolation in C++ Pin
sjcomp22-Jan-08 6:48
sjcomp22-Jan-08 6:48 
GeneralOne Big doubt in a small algo... Pin
selvabsc11-Dec-07 1:19
selvabsc11-Dec-07 1:19 
GeneralRe: One Big doubt in a small algo... Pin
Luc Pattyn11-Dec-07 4:19
sitebuilderLuc Pattyn11-Dec-07 4:19 
Questionhelpppp Pin
FREAK880230-Nov-07 7:25
FREAK880230-Nov-07 7:25 
AnswerRe: helpppp Pin
Dan Neely30-Nov-07 7:57
Dan Neely30-Nov-07 7:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.