Find the length of Robin's route

  • Context: Comp Sci 
  • Thread starter Thread starter chwala
  • Start date Start date
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
8 replies · 2K views
chwala
Gold Member
Messages
2,843
Reaction score
428
Homework Statement
Find the length of Robin's route. (See attached)
Relevant Equations
network models
1743287800581.png


I am self-studying this. My interest is on part b. Part A i found that to be easy.

Firstly, i note that nodes ##A## and ##J## are odd. Suggesting an Eulerian circuit. I also need to read about this chinese postman approach. If i can be directed on the key difference, then that's also fine.

Therefore we have the these paths to consider the pairing involving ##ACEJ## ,Robin starts at C and ends at E. Therefore, the possible combinations are ##3;[ AC + EJ, AE + CJ, AJ + CE]##.

From these three the shortest one is ##AC + EJ = (13+8) + (6+2+23)=52##miles.

The other two will each give ##82## miles. Therefore, the length of Robin's route is ##315 + 52= 367## miles. I also need to understand what they mean by total weight of network, but as far as the math-related part is concerned, I am conversant!

Blessings!!
 
Last edited:
Physics news on Phys.org
The purpose of the assignment is to use the algorithm. Not to find the answer with your own methods.
"Weight" refers to the attribute of a path that is to be minimized. So, it this case, it is the lengths.
 
Reply
  • Like
Likes   Reactions: chwala
.Scott said:
The purpose of the assignment is to use the algorithm. Not to find the answer with your own methods.
"Weight" refers to the attribute of a path that is to be minimized. So, it this case, it is the lengths.
@Scott A, I found the algorithm bit understandable as well. It's not difficult; I just posted the highlights, specifically the reasoning behind the question. If you have more insights, that's what I'm looking for, prompting this post.
 
.Scott said:
Are you writing code? If so, which language?
I meant on the nodes, I did not write a code, you could enlighten me on that.
 
chwala said:
Firstly, i note that nodes ##A## and ##J## are odd. Suggesting an Eulerian circuit.

Can an Eulerian circuit exist in a network with odd nodes?

chwala said:
I also need to read about this chinese postman approach. If i can be directed on the key difference, then that's also fine.

The term "Chinese postman problem" refers to a problem like this where an Eulerian circuit does not exist. The approach to solving it is to add paths (of minimal length) to create an Eulerian circuit, which is what you have done.

chwala said:
I also need to understand what they mean by total weight of network

This is the figure 315 you have used.
 
Reply
  • Informative
Likes   Reactions: chwala
chwala said:
Homework Statement: Find the length of Robin's route. (See attached)
Relevant Equations: network models

View attachment 359195

I am self-studying this. My interest is on part b. Part A i found that to be easy.

Firstly, i note that nodes ##A## and ##J## are odd. Suggesting an Eulerian circuit. I also need to read about this chinese postman approach. If i can be directed on the key difference, then that's also fine.

Therefore we have the these paths to consider the pairing involving ##ACEJ## ,Robin starts at C and ends at E. Therefore, the possible combinations are ##3;[ AC + EJ, AE + CJ, AJ + CE]##.

From these three the shortest one is ##AC + EJ = (13+8) + (6+2+23)=52##miles.

The other two will each give ##82## miles. Therefore, the length of Robin's route is ##315 + 52= 367## miles. I also need to understand what they mean by total weight of network, but as far as the math-related part is concerned, I am conversant!

Blessings!!
Total weight of an undirected network is the sum of the weights on all edges. It may differ for directed networks.
 
Reply
  • Like
Likes   Reactions: chwala