Click here to Skip to main content

Algorithms

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
GeneralRe: How to Generate Unique Serial Number.. Pinmembersupercat99:04 8 Dec '09  
QuestionWhats the fastest way to search through a binary heap? PinmemberCaptainSeeSharp19:08 18 Nov '09  
AnswerRe: Whats the fastest way to search through a binary heap? Pinmemberharold aptroot0:06 19 Nov '09  
GeneralRe: Whats the fastest way to search through a binary heap? PinmemberCaptainSeeSharp6:43 19 Nov '09  
GeneralRe: Whats the fastest way to search through a binary heap? Pinmemberharold aptroot7:00 19 Nov '09  
GeneralRe: Whats the fastest way to search through a binary heap? PinmemberCaptainSeeSharp7:07 19 Nov '09  
GeneralRe: Whats the fastest way to search through a binary heap? Pinmemberharold aptroot7:25 19 Nov '09  
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? PinmemberCaptainSeeSharp8:17 19 Nov '09  
QuestionCrowd detection (people), how to? PinmemberGamma_ace16:53 12 Nov '09  
AnswerRe: Crowd detection (people), how to? Pinmemberkaushik_acharya21:03 5 Nov '11  
QuestionAlgorithm to C# [modified] PinmemberVS newbie8:05 11 Nov '09  
AnswerRe: Algorithm to C# PinmemberRichardM112:29 11 Nov '09  
QuestionCollision Detection with a Quad tree PinmemberSK Genius17:22 5 Nov '09  
AnswerRe: Collision Detection with a Quad tree PinmvpLuc Pattyn17:40 5 Nov '09  
AnswerRe: Collision Detection with a Quad tree Pinmemberely_bob13:05 18 Nov '09  
Questionorder of algorithm Pinmemberkhomeyni21:30 4 Nov '09  
QuestionRe: order of algorithm Pinmemberharold aptroot2:32 5 Nov '09  
AnswerRe: order of algorithm Pinmemberkhomeyni5:45 5 Nov '09  
GeneralRe: order of algorithm Pinmemberharold aptroot6:10 5 Nov '09  
GeneralRe: order of algorithm Pinmemberkhomeyni6:26 5 Nov '09  
GeneralRe: order of algorithm Pinmemberharold aptroot6:30 5 Nov '09  
GeneralRe: order of algorithm Pinmemberkhomeyni6:49 5 Nov '09  
GeneralRe: order of algorithm Pinmemberharold aptroot7:45 5 Nov '09  
GeneralRe: order of algorithm Pinmemberkhomeyni20:35 5 Nov '09  
GeneralRe: order of algorithm Pinmemberharold aptroot2:00 6 Nov '09  

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

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


Advertise | Privacy | Mobile
Web04 | 2.5.120210.1 | Last Updated 14 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid