GATE 2003
107 questions
MCQ 1071-mark 107
Questions 21–25 of 107
Answer: (D)
The monotonicity property tells us directly that
The probability of at least one event is the probability of the union of the events, that is,
Here, . It cannot be more than . If at least one of the events has probability (here, ), then the union of both must be
So,
Now,
Hence, the option is .
NOTE :- if at least one of the two events has probability 1, then both events should be independent, but the reverse is not true.
Derive clause(P Q) from clauses (P R),(Q R)
Which of the following statements related to this rule is FALSE?
Answer: (B)
The rule says that from and we get . Check each option.
(A) Is valid?
It is a tautology, so (A) is true.
(B) Is valid? Take . Then , but , so the right side is false. The implication is false, so (B) is not valid. So (B) is the false statement.
(C) Both and are satisfiable (for example, makes both true). So the "if and only if" is true.
(D) is the same as . It holds always only when can never be true, that is, when both P and Q are unsatisfiable. So (D) is true.
Answer: (B)Which of the following first order sentences is equivalent to P?
Answer: (A)
Rule: means . The variable y is not in , so this equals .
Headless clause: says is false for every x, i.e. .
Joining the two with gives , which is (A).
(B) and (D) use in front of the body, which is wrong because y is only in the body. (D) also drops the .
(C) uses . It would hold whenever no B(x,x) exists, even if the rule is broken, so it is weaker than P.
Answer: (A)
Let A be an n x n array initialized as follows.
Consider the following algorithm
for i = 1 to n
for j = 1 to n
for k = 1 to n
A [j , k] = max (A[j, k], A[j, i] + A [i, k]); Which of the following statements is necessarily true for all j and k after termination of the above algorithm?Answer: (D)
Why (D) holds: take a simple path from to with intermediate vertices from . If is not on it, the path is covered by the earlier rounds. If is on it, split it at into two simple paths, and , with intermediates in . By induction and are at least their edge counts, so is at least the edge count of the whole path. So after the loop, every simple path from to has at most edges.
Why the others fail (use ):
(A) Edges and give the final = . Here .
(B) Only edge gives . So , yet the graph has no Hamiltonian cycle.
(C) In the same graph the longest path from 1 to 2 has 1 edge, but .
Answer: (D)
If all permutation are equally likely, what is the expected number of inversions in a randomly chosen permutation of 1.....n?
Answer: (B)
Take integers. They give us possible pairs.
The integers are distinct and the order is random. So any pair is equally likely to be inverted or not inverted. This means the probability of inversion
We have pairs, and each pair is inverted with probability . So the expected number of inversions is:
Correct Option: B.