I am trying to choose what design pattern to use on my project.
it is similar to a bus business.
I would have many bus with different routes, different bus stops, different schedules, different duration, etc. And my goal was to have a design pattern for what would be the best route possible using the connections/schedules/durations between the different bus routes.
For example:
Going from A to J i can take many different bus, but i would want to make an itinerary that is efficient in time, so i would use the connections between the different bus routes so i could get from A to J faster.
Bus 1: Route: A B C D E H I J
Bus 2: Route: C E H I
Bus 3: Route: H J
Optimal way would be go into Bus 1 at A, then get out at C and go into Bus 2 get out at H and go into Bus 3 until J, this assuming that between every stop it takes the same time to simplify.
Aucun commentaire:
Enregistrer un commentaire