Undergrad Dijkstra's algorithm - Shortest Path Query

  • Thread starter Thread starter binbagsss
  • Start date Start date
  • Tags Tags
    Algorithm Path
Click For Summary
When faced with a choice between two nodes of equal minimal value in Dijkstra's algorithm, it is acceptable to select either node as the current node for the next step. The unselected node can then be evaluated in the subsequent cycle. This approach allows for efficient processing without needing to explore both options simultaneously. The algorithm inherently supports this method, simplifying the decision-making process. Thus, one can confidently proceed with either node, knowing the other will be considered later.
binbagsss
Messages
1,291
Reaction score
12
Hi,

I am just wondering what you should do in the case that you have a choice between two nodes to include for the next step, i..e both are equal to the minimal value of the set under consideration

Do you need to follow through both cases and then see which way is the shortest, or is there a way of knowing beforehand?

Many thanks.
 
Physics news on Phys.org
You pick one of them as the current node. The other will be the current node in the next cycle.
 
  • Like
Likes binbagsss
Orodruin said:
You pick one of them as the current node. The other will be the current node in the next cycle.
ahh makes sense ! thank you :)
 
The standard _A " operator" maps a Null Hypothesis Ho into a decision set { Do not reject:=1 and reject :=0}. In this sense ( HA)_A , makes no sense. Since H0, HA aren't exhaustive, can we find an alternative operator, _A' , so that ( H_A)_A' makes sense? Isn't Pearson Neyman related to this? Hope I'm making sense. Edit: I was motivated by a superficial similarity of the idea with double transposition of matrices M, with ## (M^{T})^{T}=M##, and just wanted to see if it made sense to talk...

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
6K