Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 A Star Search Algorithm
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
aJack7




PostPosted: Tue Oct 21, 2008 1:13 pm   Post subject: A Star Search Algorithm

Hi, I cannot find this answer anywhere, When vertices are added to a queue upon searching, are they added FIFO or FILO (IE. added to beginning or end of queue) when a star search technique is implemented.
Sponsor
Sponsor
Sponsor
sponsor
Saad




PostPosted: Tue Oct 21, 2008 2:18 pm   Post subject: RE:A Star Search Algorithm

A vertex should be inserted into sorted order. Binary heaps are useful in this case by holding a min or max property which allows to find the vertex with the minimum or maximum score depending on how you code it in constant time.
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: