We want to implement Public Transport Guide for Android.
Inputs will be beginning and destination point. Outputs will be the directives that
tell how can be gone to the destination with using buses, subways,… e.c
This is not easy for big cities and we must have a well-designed database for quick answer. Tranport algorithm must give optimum lines to the passanger.
I wanna see your precious ideas for database and algorithm design.
Thank you very much for answers.
We want to implement Public Transport Guide for Android. Inputs will be beginning and
Share
Most likely you will need a graph there to calculate shortest path.
Your graph will be
G=(V,E)such thatV = {all possible stations}andE = {(u,v) | there is a transport connecting station u to station v}.If your graph cannot fit into memory [which is probably the case for a big city], you might want to make a function
successors(u) = { v | (u,v) in E }which will allow you to calculate the graph on the fly.In this older question there is some discussion how to efficiently find a path between two vertices in a dynamic environment similar to the one you are describing.