Click here to Skip to main content
15,889,992 members
Home / Discussions / Algorithms
   

Algorithms

 
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 
QuestionCrowd detection (people), how to? Pin
Gamma_ace12-Nov-09 15:53
Gamma_ace12-Nov-09 15:53 
AnswerRe: Crowd detection (people), how to? Pin
kaushik_acharya5-Nov-11 20:03
kaushik_acharya5-Nov-11 20:03 
QuestionAlgorithm to C# [modified] Pin
VS newbie 11-Nov-09 7:05
VS newbie 11-Nov-09 7:05 
AnswerRe: Algorithm to C# Pin
RichardM111-Nov-09 11:29
RichardM111-Nov-09 11:29 
QuestionCollision Detection with a Quad tree Pin
Anthony Mushrow5-Nov-09 16:22
professionalAnthony Mushrow5-Nov-09 16:22 
AnswerRe: Collision Detection with a Quad tree Pin
Luc Pattyn5-Nov-09 16:40
sitebuilderLuc Pattyn5-Nov-09 16:40 
AnswerRe: Collision Detection with a Quad tree Pin
ely_bob18-Nov-09 12:05
professionalely_bob18-Nov-09 12:05 
Questionorder of algorithm Pin
khomeyni4-Nov-09 20:30
khomeyni4-Nov-09 20:30 
QuestionRe: order of algorithm Pin
harold aptroot5-Nov-09 1:32
harold aptroot5-Nov-09 1:32 
AnswerRe: order of algorithm Pin
khomeyni5-Nov-09 4:45
khomeyni5-Nov-09 4:45 
GeneralRe: order of algorithm Pin
harold aptroot5-Nov-09 5:10
harold aptroot5-Nov-09 5:10 
GeneralRe: order of algorithm Pin
khomeyni5-Nov-09 5:26
khomeyni5-Nov-09 5:26 
GeneralRe: order of algorithm Pin
harold aptroot5-Nov-09 5:30
harold aptroot5-Nov-09 5:30 
GeneralRe: order of algorithm Pin
khomeyni5-Nov-09 5:49
khomeyni5-Nov-09 5:49 
GeneralRe: order of algorithm Pin
harold aptroot5-Nov-09 6:45
harold aptroot5-Nov-09 6:45 
GeneralRe: order of algorithm Pin
khomeyni5-Nov-09 19:35
khomeyni5-Nov-09 19:35 

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.