Click here to Skip to main content
15,921,606 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: algorithmic approach to calculating number of full moon since a certain date ? Pin
Luc Pattyn2-Jul-12 22:02
sitebuilderLuc Pattyn2-Jul-12 22:02 
QuestionShortest Path on Unweighted Edges Pin
maxx231024-Jun-12 17:25
maxx231024-Jun-12 17:25 
AnswerRe: Shortest Path on Unweighted Edges Pin
Luc Pattyn24-Jun-12 18:07
sitebuilderLuc Pattyn24-Jun-12 18:07 
GeneralRe: Shortest Path on Unweighted Edges Pin
maxx231024-Jun-12 18:33
maxx231024-Jun-12 18:33 
AnswerRe: Shortest Path on Unweighted Edges Pin
Luc Pattyn24-Jun-12 19:04
sitebuilderLuc Pattyn24-Jun-12 19:04 
AnswerRe: Shortest Path on Unweighted Edges Pin
BupeChombaDerrick25-Jun-12 11:48
BupeChombaDerrick25-Jun-12 11:48 
AnswerRe: Shortest Path on Unweighted Edges Pin
Luc Pattyn25-Jun-12 11:56
sitebuilderLuc Pattyn25-Jun-12 11:56 
GeneralRe: Shortest Path on Unweighted Edges Pin
BupeChombaDerrick25-Jun-12 14:56
BupeChombaDerrick25-Jun-12 14:56 
Luc Pattyn wrote:
when all the edge costs are equal, the first solution found is bound to be the cheapest, no need to continue and investigate all the remaining routes.


The best way might be to implement a generalized algorithm like Dijkstra's algorithm, you never know what might come up Laugh | :laugh: .But for the sake of simplicity it is good to use Breadth First Search (BFS) in such a case as you outlined in your answer. However, in a game application the graph might not always contain edges of equal cost, anyways since the OP wants a specific algorithm for a graph with edges of equal cost then BFS suffices.
“Be at war with your vices, at peace with your neighbors, and let every new year find you a better man or woman.”

GeneralRe: Shortest Path on Unweighted Edges Pin
Tadeusz Westawic9-Jul-12 5:00
Tadeusz Westawic9-Jul-12 5:00 
QuestionColor mixing algorithm Pin
Kobi_Z14-Jun-12 5:03
Kobi_Z14-Jun-12 5:03 
AnswerRe: Color mixing algorithm - Repost Pin
Richard MacCutchan14-Jun-12 5:38
mveRichard MacCutchan14-Jun-12 5:38 
GeneralRe: Color mixing algorithm - Repost Pin
Kobi_Z14-Jun-12 7:09
Kobi_Z14-Jun-12 7:09 
QuestionRe: Color mixing algorithm Pin
BupeChombaDerrick16-Jun-12 13:14
BupeChombaDerrick16-Jun-12 13:14 
AnswerRe: Color mixing algorithm Pin
Kobi_Z17-Jun-12 7:41
Kobi_Z17-Jun-12 7:41 
GeneralRe: Color mixing algorithm Pin
BupeChombaDerrick17-Jun-12 13:50
BupeChombaDerrick17-Jun-12 13:50 
GeneralRe: Color mixing algorithm Pin
Kobi_Z12-Jul-12 21:14
Kobi_Z12-Jul-12 21:14 
GeneralRe: Color mixing algorithm Pin
BupeChombaDerrick17-Jun-12 14:22
BupeChombaDerrick17-Jun-12 14:22 
GeneralRe: Color mixing algorithm Pin
Kobi_Z12-Jul-12 21:15
Kobi_Z12-Jul-12 21:15 
AnswerRe: Color mixing algorithm Pin
Luc Pattyn17-Jun-12 8:05
sitebuilderLuc Pattyn17-Jun-12 8:05 
GeneralRe: Color mixing algorithm Pin
Kobi_Z17-Jun-12 9:05
Kobi_Z17-Jun-12 9:05 
GeneralRe: Color mixing algorithm Pin
Luc Pattyn17-Jun-12 9:10
sitebuilderLuc Pattyn17-Jun-12 9:10 
GeneralRe: Color mixing algorithm Pin
BupeChombaDerrick17-Jun-12 13:43
BupeChombaDerrick17-Jun-12 13:43 
GeneralRe: Color mixing algorithm Pin
Kobi_Z26-Jun-12 7:12
Kobi_Z26-Jun-12 7:12 
GeneralRe: Color mixing algorithm Pin
BupeChombaDerrick26-Jun-12 14:22
BupeChombaDerrick26-Jun-12 14:22 
AnswerRe: Color mixing algorithm Pin
YvesDaoust18-Jun-12 20:50
YvesDaoust18-Jun-12 20:50 

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.