Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
So, I am trying to create an Application where you enter your starting and ending destination. The program then displays which are the trains you should take and/or which station do you get off to switch to another line.

What I have tried:

I don't even know where to begin with, I have tried looking up ON google, and there was A* Algorithm which looks so alien to me.
Posted
Updated 20-Dec-18 10:40am
Comments
vaibhav1800 20-Dec-18 11:10am    
Buddy You need to clear your question.. Please add more details so that we can help you
[no name] 20-Dec-18 15:43pm    
Where to begin? How about some "train schedules": stops, times, distances, etc.

Familiarize yourself with the "problem domain".

Start with some form of database that lists all stations, the distance between them, and whether they are on single or multiple lines. If you draw a simplified metro on a piece of paper you can start thinking about how you would calculate the optimum routes.
 
Share this answer
 
Quote:
How do I find the best possible route for metro stations

First of all, you need to define what makes a route the 'best'.
Then practice at finding the best route between stations, see what information you need to find the answer.
Get familiar with the 'A* Algorithm'.
Then you deduce how to apply to 'A* Algorithm'.
 
Share this answer
 
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think! A* will probably work, or you might want to look at a modification of the Traveling Salesman algorithm.

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
 
Share this answer
 
Comments
vaibhav1800 20-Dec-18 11:11am    
Looks like "We dont do your Homework" is your pet dialogue and you use it on each of my post and other post as well so that you can get counts and points...... BIG LOL
W Balboos, GHB 21-Dec-18 7:41am    
One problem with your reply . . . it doesn't change the fact that you're trying to get through school on other peoples brains. The quality of development I've seen coming out of India only goes to confirm my assertion.

I suggest you retrain for work in a call center.
OriginalGriff 21-Dec-18 7:51am    
Fast food is more "Him" I think.
vaibhav1800 13-Jan-19 6:27am    
I dont know where you are from but you should never bring someone's country between the conversation.
W Balboos, GHB 14-Jan-19 6:27am    
Now, I didn't mention a country - so you clearly have one in mind.

However,

I've seen and used software made in "The Land of the Call Center" and it reeks of the quality of how the programmer-curricula are designed to turn out huge numbers of incompetent fools. Sad, indeed, because some excellent programmers will be lost in the vast crowd of substandard drones.

Upon reflection - even the standards for the call centers have gone down.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900