GATE CSE
First time here? Checkout the FAQ!
x
+1 vote
208 views

Question: Six different airlines fly from New York to Denver and seven fly from Denver to San Francisco. How many different pairs of airlines can you choose on which to book a trip from New York to San Francisco via Denver, when you pick an airline for the flight to Denver and an airline for the continuation flight to San Francisco ? How many of these pairs involve more than one airline ?

 

asked in Combinatory by (421 points)  
retagged by | 208 views

1 Answer

+1 vote

I think they are asking for the following thing:

N.Y to Denver available flights                   Denver to San Francisco available flights          

-------------------------------------------------------------------

x1, x2, x3, x4, x5, x6​​​​​,                                         x1, x2, x3, x4, x5, x6​​​​​, x7

I have choosen the same airlines for Denver to San Francisco because of the last question.

 

Now, different ways in which you can reach from N.Y to San Francisco

= 6 * 7

= 42

 

Now, to find answer to last question, we apply inclusion -exclusion.

Answer

= total ways    -     #ways in which the flight taken from N.Y to Denver 

                             is also continued from Denver to San Francisco

= 42 - 6

= 36

 

answered by Veteran (15.1k points)  
But how can we assume that  Denver to San Francisco has same 6 flights as from N.Y to Denver?
Because of the last question


Top Users Jun 2017
  1. Bikram

    3704 Points

  2. Arnab Bhadra

    1502 Points

  3. Hemant Parihar

    1502 Points

  4. Niraj Singh 2

    1481 Points

  5. junaid ahmad

    1432 Points

  6. Debashish Deka

    1384 Points

  7. Rupendra Choudhary

    1220 Points

  8. rahul sharma 5

    1220 Points

  9. Arjun

    1168 Points

  10. srestha

    1010 Points

Monthly Topper: Rs. 500 gift card
Top Users 2017 Jun 26 - Jul 02
  1. Arjun

    208 Points

  2. akankshadewangan24

    152 Points

  3. Debashish Deka

    138 Points

  4. Hira Thakur

    130 Points

  5. Soumya29

    106 Points


23,399 questions
30,111 answers
67,490 comments
28,426 users