manipulating arrays

You did such a good job working for the airport, one of the pilots has asked you to build an application that will help him navigate between the routes he constantly flies. You realize that a linear data structure isn’t appropriate for this application so you turn to the tree and graph. Evaluate the following potential routes and choose either a tree or a graph structure. This pilot flies the following routes:

•Airport A to Airport B
•Airport B to Airport C
•Sometime Airport C to Airport D
•Other times Airport C to Airport E
What is the best data structure for mapping these routes and why? Justify your decision.

How would your data structure choice change if the routes where expanded to:

•Airport A to Airport B
•Airport B to Airport C
•Sometimes Airport C to Airport D to Airport F or Airport G then back to Airport A
•Other times Airport C to Airport E to Airport B to Airport A
Further, there are three different flight paths from Airport B to Airport C.

Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.

[order_calculator]