Click here to Skip to main content
15,912,977 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Solving a circularly recursive system of equations Pin
Tim Craig7-Dec-09 21:42
Tim Craig7-Dec-09 21:42 
GeneralRe: Solving a circularly recursive system of equations Pin
MikeMarq9-Dec-09 9:52
MikeMarq9-Dec-09 9:52 
GeneralRe: Solving a circularly recursive system of equations Pin
Tim Craig9-Dec-09 13:42
Tim Craig9-Dec-09 13:42 
AnswerRe: Solving a circularly recursive system of equations - I think I may have solved it Pin
MikeMarq7-Dec-09 16:49
MikeMarq7-Dec-09 16:49 
GeneralRe: Solving a circularly recursive system of equations - I think I may have solved it Pin
Gideon Engelberth7-Dec-09 17:18
Gideon Engelberth7-Dec-09 17:18 
GeneralRe: Solving a circularly recursive system of equations - I think I may have solved it Pin
MikeMarq7-Dec-09 18:19
MikeMarq7-Dec-09 18:19 
AnswerRe: Solving a circularly recursive system of equations Pin
mabo429-Dec-09 4:05
mabo429-Dec-09 4:05 
AnswerSuch Equations Don't Exist Pin
Som Shekhar15-Dec-09 7:42
Som Shekhar15-Dec-09 7:42 
QuestionAdvice about choice of algorithm Pin
thebiggestbangtheory25-Nov-09 11:06
thebiggestbangtheory25-Nov-09 11:06 
AnswerRe: Advice about choice of algorithm Pin
Fatbuddha 126-Nov-09 21:02
Fatbuddha 126-Nov-09 21:02 
AnswerRe: Advice about choice of algorithm Pin
Eddy Vluggen27-Nov-09 0:28
professionalEddy Vluggen27-Nov-09 0:28 
AnswerRe: Advice about choice of algorithm Pin
Alan Balkany1-Dec-09 4:17
Alan Balkany1-Dec-09 4:17 
QuestionHow to Generate Unique Serial Number.. Pin
shaina223120-Nov-09 0:12
shaina223120-Nov-09 0:12 
AnswerRe: How to Generate Unique Serial Number.. Pin
Paulo Zemek20-Nov-09 1:16
Paulo Zemek20-Nov-09 1:16 
GeneralRe: How to Generate Unique Serial Number.. Pin
shaina223120-Nov-09 2:40
shaina223120-Nov-09 2:40 
GeneralRe: How to Generate Unique Serial Number.. Pin
Member 419459311-Dec-09 11:44
Member 419459311-Dec-09 11:44 
AnswerRe: How to Generate Unique Serial Number.. Pin
Robin_Roy2-Dec-09 19:04
Robin_Roy2-Dec-09 19:04 
GeneralRe: How to Generate Unique Serial Number.. Pin
supercat98-Dec-09 8:04
supercat98-Dec-09 8:04 
QuestionWhats the fastest way to search through a binary heap? Pin
CaptainSeeSharp18-Nov-09 18:08
CaptainSeeSharp18-Nov-09 18:08 
AnswerRe: Whats the fastest way to search through a binary heap? Pin
harold aptroot18-Nov-09 23:06
harold aptroot18-Nov-09 23:06 
GeneralRe: Whats the fastest way to search through a binary heap? Pin
CaptainSeeSharp19-Nov-09 5:43
CaptainSeeSharp19-Nov-09 5:43 
GeneralRe: Whats the fastest way to search through a binary heap? Pin
harold aptroot19-Nov-09 6:00
harold aptroot19-Nov-09 6:00 
GeneralRe: Whats the fastest way to search through a binary heap? Pin
CaptainSeeSharp19-Nov-09 6:07
CaptainSeeSharp19-Nov-09 6:07 
GeneralRe: Whats the fastest way to search through a binary heap? Pin
harold aptroot19-Nov-09 6:25
harold aptroot19-Nov-09 6:25 
But surely your heap is sorted by F cost? And if you find a node a second time, the G (and therefore the F) will probably be different since you would have reached it from an other node (since the one you reached it from the first time should be in your closed list)

I used a sparse "grid of grids"-of bits to test membership of open and closed lists (closed "list" was only that grid and no list), a normal grid would be easier but I had huge maps where paths would "usually" stay in roughly 1 "area", which meant that usually only up to 4 entries of the "supergrid" would be used. The whole thing was just a BitArray[,] btw. The "supertile"-size should be a power of 2 and the area divisible by 32 to be efficient this way, like 16x16, or 32x32. Testing membership of open or closed list is then only O(1), at the expense of .. not even all that much memory (just 1 bit per tile and some overhead, and usually only for a subset of tiles).



GeneralRe: Whats the fastest way to search through a binary heap? Pin
CaptainSeeSharp19-Nov-09 7:17
CaptainSeeSharp19-Nov-09 7:17 

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.