GATE 2017 (Session 2)
65 questions
MCQ 45 · NAT 201-mark 30 · 2-mark 35
Questions 31–35 of 65
Consider the set X={a, b,c,d,e} under the partial ordering
R={(a,a),(a,b),(a,c),(a,d),(a,e),(b,b),(b,c),(b,e),(c,c),(c,e),(d,d),(d,e),(e,e)}.
The Hasse diagram of the partial order (X, R) is shown below.
The minimum number of ordered pairs that need to be added to R to make (X, R) a lattice is _____.
The Hasse diagram of the partial order (X, R) is shown below.
The minimum number of ordered pairs that need to be added to R to make (X, R) a lattice is _____.
Answer: -0.01 to 0.01
Look at the Hasse diagram: a is the bottom and e is the top. The chains are a b c e and a d e. Each pair of elements has a least upper bound and a greatest lower bound (for example, join(c, d) = e and meet(c, d) = a). So it is already a lattice, and 0 pairs are needed.
Answer: 0
Answer: 0
Let and be two matrices.
Then the rank of P +Q is _____________.
Answer: 2
Expand the determinant along the first row:
So the rank is less than 3.
The minor from rows 1, 2 and columns 1, 2 is , so the rank is at least 2.
So .
Answer: 2
G is undirected graph with n vertices and 25 edges such that each vertex of G has degree at least 3. Then the maximum possible value of n is ___________.
Answer: 16
The degrees add up to . Each vertex has degree at least 3, so , which gives . As is a whole number, .
16 can be reached: take a cycle on 16 vertices and join vertex to vertex for . This has edges and every degree is 3. Add one edge between two non-adjacent vertices, such as 0 and 2. Now there are 25 edges, 14 vertices of degree 3 and 2 of degree 4 (sum ).
Answer: 16
16 can be reached: take a cycle on 16 vertices and join vertex to vertex for . This has edges and every degree is 3. Add one edge between two non-adjacent vertices, such as 0 and 2. Now there are 25 edges, 14 vertices of degree 3 and 2 of degree 4 (sum ).
Answer: 16
Consider a quadratic equation with coefficients in a base b. The solutions of this equation in the same base b are x = 5 and x = 6. Then b = ___________.
Answer: 8
Write the coefficients in base b: 13 = b + 3 and 36 = 3b + 6. The sum of the roots is 5 + 6 = 11, and this equals b + 3. So b = 8. Now check the product of the roots: 30 = 3 8 + 6. This is True.
Answer: 8
Answer: 8
The minimum possible number of states of a deterministic automaton that accepts the regular language is ____
Answer: 8
A string is in L when its 3rd symbol is a (this is the a after , with ) and at least 3 more symbols follow it. So L is the set of strings of length at least 6 whose 3rd symbol is a.
The DFA needs these states:
- q0, q1, q2: 0, 1, 2 symbols read (any symbols)
- q3: the 3rd symbol was a. If it is b, the DFA goes to a dead state.
- q4, q5, q6: counting 1, 2, 3 more symbols. q6 is accepting and loops on a and b.
- the dead state
That is 7 + 1 = 8 states.
All 8 are distinguishable. From q0, q1, ..., q6 the shortest accepted string has length 6, 5, 4, 3, 2, 1, 0, all different, so a string of the shorter length separates any two of them. The dead state accepts nothing, so it differs from all the others.
Answer: 8
The DFA needs these states:
- q0, q1, q2: 0, 1, 2 symbols read (any symbols)
- q3: the 3rd symbol was a. If it is b, the DFA goes to a dead state.
- q4, q5, q6: counting 1, 2, 3 more symbols. q6 is accepting and loops on a and b.
- the dead state
That is 7 + 1 = 8 states.
All 8 are distinguishable. From q0, q1, ..., q6 the shortest accepted string has length 6, 5, 4, 3, 2, 1, 0, all different, so a string of the shorter length separates any two of them. The dead state accepts nothing, so it differs from all the others.
Answer: 8