This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Train Scheduling problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Train Scheduling problem" Watch "Train Scheduling problem" New topic
Author

Train Scheduling problem

Thisaraa Amarananda
Greenhorn

Joined: Sep 19, 2007
Posts: 1
Hi'
I am doing train scheduling system for my final year project. i am using NetBeans IDE. I am mainly focus on addressing Train crossing and overtaking problems. have to consider single line and double line both. please help me in algorithms. What are the algorithms i can use and easy to implement in java.

Thank you
thisaraa@gmail.com
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Hi, welcome to the Ranch!

A quick Google for "train scheduling algorithm" got the usual million plus hits. Have you tried any of those? I'm pretty sure the math is going to go over my head in a hurry, so I hope you're in a better position to pick one.

Once you get into design & coding activities, post your "work in progress." The Ranch works best at helping you when you've made a good attempt and gotten stuck. Then we know exactly what is troubling you.

Keep it fun and let us know how things go!


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4422
    
    2

Originally posted by Stan James:

Keep it fun and let us know how things go!


Yes, I'd love to watch.

Did your professor say if train scheduling is NP-Hard? Which doesn't mean you can't solve it, just that you have to keep N small.

Once you get some code up, I'll share my theory that World War 1 was caused by train schedules.
Nicholas Jordan
Ranch Hand

Joined: Sep 17, 2006
Posts: 1282
I'll share my theory that World War 1 was caused by train schedules.

Little does the poster know.

I have a copy of Kenneth C. Louden's COMPILER CONSTRUCTION Principles and Practice - I made a small attempt at getting started on one today when I got tired of trying to match brackets in Notepad and decided my skills were up to using a LineNumberReader. Sadly, I ran out of time straightening out the BufferedByteArrayWriter from last night's start and the futility of the hung thread on legacy 16-bit cli code.

Can, will you give us a formal - nonStuffy definition of what exactly the "N-P Complete" problem is: The historical and thought basis of the problem. Known solutions and approaches to the problem or general classes of approach. What approaches would you suggest for our original poster ?

What does one do to establish Time, as an element of the system ? By the use of a simple integral numeric as a counter ?

How does one account for travel time in a traversal of Node(n) to Node(n+1)? Or, bettter yet, allow for indeterminate small scale variations in time without distrubing the overall robustness of the process in the face of a page demand algorithm written by proprietary vendors who will not release the sources, nor allow keen observation of their work - such as in the BlackBox paradigm ?

Allow for some resonable first solution to lookahead that avoids crosslock and it's consequent deadlock on the coffin of the coffee house ?

Would you suggest float/double values for the general case to to avoid the problematic loss of convexity in the application of decomposition methods to integral modeling of deterministic dynamic programming ? I.O.W. ~ suggest whether the fp approach taken by greenfoot dot org leads to unforseen weakness elsewhere such as the arrival of two transports on the same level and node being not well modeled by a floating numeric.


[ September 21, 2007: Message edited by: Nicholas Jordan ]

"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Train Scheduling problem
 
Similar Threads
Just got a mail (Ticket Please)
Thread synchronization + static variables + volatile variables
Thread2
jvm alogorithms
Train Scheduling problem