📜  门| GATE-CS-2015(Set 3)|第65章

📅  最后修改于: 2021-07-02 15:59:52             🧑  作者: Mango

新成立的政府首脑希望从六个选定的成员P,Q,R,S,T和U中任命五个,分别担任房屋,电力,国防,电信和金融领域的投资组合。如果S获得五个投资组合之一,则U不需要任何投资组合。 R想要房屋或金融,或者不想要投资组合。 Q说如果S获得电信权,则她必须获得另一权。如果P得到一个,T就会坚持一个投资组合。投资组合的有效分配是什么?
(A) P-Home,Q-Power,R-Defence,S-Telecom,T-Finance
(B) R-Home,S-Power,P-Defence,Q-Telecom,T-Finance
(C) P-Home,Q-Power,T-Defence,S-Telecom,U-Finance
(D) Q-Home,U-Power,T-Defence,R-Telecom,P-Finance答案: (B)
解释:

Six selected members are P, Q, R, S, T and U

Portfolios are Home, Power, Defence, Telecom, and Finance. 

U does not want any portfolio if S gets one of the five. 

R wants either Home or Finance or no portfolio. 

Q says that if S gets either Power of telecom, then she must 
get the other one.

T insists on a portfolio if P gets one Which is the valid 
distribution of portfolios?

A) P-Home, Q-Power, R-Defence, S-Telecom, T-Finance
Not valid as R doesn't get home or finance here

R-Home, S-Power, P-Defence, Q-Telecom, T-Finance
Is valid and satisfies all conditions.

C) P-Home, Q-Power, T-Defence, S-Telecom, U-Finance
Not valid as U is not satisfied. Condition for U is, S should not
get any portfolio.

D) Q-Home, U-Power, T-Defence, R-Telecom, P-Finance
Like A, not valid as R doesn't get home or finance here

这个问题的测验