Find the length of Robin's route

  • Context: Comp Sci 
  • Thread starter Thread starter chwala
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around finding the length of Robin's route using concepts from graph theory, specifically focusing on Eulerian circuits and the Chinese postman problem. Participants explore the application of algorithms, mathematical reasoning, and coding related to network models.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related
  • Mathematical reasoning

Main Points Raised

  • One participant notes that nodes A and J are odd, suggesting the possibility of an Eulerian circuit and expresses interest in the Chinese postman approach.
  • Another participant emphasizes that the assignment's purpose is to use a specific algorithm rather than personal methods, clarifying that "weight" refers to the lengths of paths to be minimized.
  • There is a question about whether an Eulerian circuit can exist in a network with odd nodes, with a later reply explaining that the Chinese postman problem addresses situations where an Eulerian circuit does not exist by adding minimal length paths.
  • Several participants inquire about coding related to the algorithm, discussing the use of programming languages like Python and JavaScript to implement Dijkstra's algorithm.
  • One participant expresses a need for clarification on the term "total weight of network," which is described as the sum of weights on all edges, noting that it may differ for directed networks.

Areas of Agreement / Disagreement

Participants generally agree on the concepts of Eulerian circuits and the Chinese postman problem, but there are multiple competing views regarding the necessity of coding and the interpretation of the assignment's requirements. The discussion remains unresolved on some technical aspects.

Contextual Notes

Some participants express uncertainty about the coding requirements for the assignment and the implications of using different algorithms. The discussion includes various interpretations of the terms used in the context of network models.

chwala
Gold Member
Messages
2,828
Reaction score
425
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.
 
  • 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.
 
Are you writing code? If so, which language?
 
.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.
 
.Scott said:
The wiki article on Dijkstr's algorithm uses pseudo code, but if you coded it using Python, JavaScript, C, etc., your computer come up with an answer.
This question from a Decision Maths paper raises doubts about whether students are required to use coding.
 
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.
 
  • 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.
 
  • Like
Likes   Reactions: chwala

Similar threads

  • · Replies 14 ·
Replies
14
Views
4K
Replies
4
Views
3K