Question: The booking limits for four fare classes are given as b = ( b 1 , b 2 , b 3 , b 4 )

The booking limits for four fare classes are given as b=(b1,b2,b3,b4)=(20,15,5,2).
Suppose that no bookings are made at the moment. The following parts are dependent.
a) Can we accept a request for 5 bookings for class 3?
What is the current (cumulative) booking vector B after processing this request?
b) Can we accept a request for 1 booking for class 3?
What is the current (cumulative) booking vector B after processing this request?
c) Can we process a cancellation of 4 bookings for class 3?
What is the current (cumulative) booking vector B after processing this request?
d) Can we accept a request for 2 bookings for class 4?
What is the current (cumulative) booking vector B after processing this request?
The booking limits for four fare classes are

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!