Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

There are two airlines with connecting ights from city A to city D. Each connec- tion has a half hour layover. Each airline has connecting

There are two airlines with connecting ights from city A to city D. Each connec- tion has a half hour layover. Each airline has connecting ights so that if you miss one connection there are later options. Airline One has a set of ights that leaves at 8:00 and arrives in city D at 20:30, if all goes well. Airline Two has a set of ights that leaves at 8:00 and arrives in City D at 20:00, if all goes well, so Airline Two appears to be the better option. However, you study the airlines and discover that Airline One might be more liable to arrive on time at the intermediate cities, and that it may be more likely to arrive at D on time since the standard deviation is smaller. Flight times are normally distributed.

A(8:00, image text in transcribed 4, image text in transcribed 0.25) -> B(12:30, image text in transcribed 4, image text in transcribed 0.25) -> C(17:00, image text in transcribed 3.5, image text in transcribed 0.25) -> D

B(13:00, image text in transcribed 4, image text in transcribed 0.25) -> C(17:30, image text in transcribed 3.5, image text in transcribed 0.25) -> D

C(18:00, image text in transcribed 3.5, image text in transcribed 0.25) -> D

A(8:00, image text in transcribed 3.5, image text in transcribed 0.5) -> E(12:00, image text in transcribed 4, image text in transcribed 0.5) -> F(16:30, image text in transcribed 3.5, image text in transcribed 0.5) -> D

E(12:30, image text in transcribed 4, image text in transcribed 0.5) -> F(17:00, image text in transcribed 3.5, image text in transcribed 0.5) -> D

F(17:30, image text in transcribed 3.5, image text in transcribed 0.5) -> D

Airline Two Flights

Write a program to simulate the journey from A to D, for each airline, using the data above. Generate a large number of trials for each airline (maybe 10,000 would be enough), compute the arrival time for the rst ight at B or E, and decide which second ight you will be able to take. Compute the arrival time at C or F, decide which third ight you will be able to take, and compute the average arrival time at D for both options. If you arrive at B or E too late to take the second ight, count the trip as having been stranded, and the same for arriving at C or F too late for the third connecting ight. Compare arrival times at city D for the two options. For each option, Airline One and Airline Two, display average arrival time and probability of being stranded. You may assume departing ights are at gates next to arrivals, so that if a ight arrives within one minute of departure for the next time, the second ight may be used. Assume a minimum ight time of image text in transcribed - 3image text in transcribed, and a maximum time of image text in transcribed+ 4image text in transcribed. If ight times fall out side these limits, change them to the max or min.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 3 Lnai 6323

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

3642159389, 978-3642159381

More Books

Students also viewed these Databases questions