GATE 2007
184 questions
MCQ 1841-mark 184
Questions 11–15 of 184
Answer: (C)
, , , .
- refines all the others, since single elements lie inside any block. It is the bottom.
- Every partition refines , since is the whole set. It is the top.
- and are not comparable. The block of is not inside or , so does not refine . The block of is not inside or , so does not refine .
So the poset is a diamond: at the bottom, and in the middle, at the top. A Hasse diagram leaves out edges that follow by transitivity, such as to .
Option A and option B put and in a chain, which needs one to refine the other. Option D shows and with no link to , but both refine .
Answer: (C)
Answer: (B)
Correct Option: B
Any finite subset of a non-regular set is regular.
A finite set is always regular.
Since is regular, every non regular language is a subset of it. So (A) is false.
Take a CFL that is not regular. Take its union with its complement. The complement is also not regular, because regular sets are closed under complement. The union gives , which is regular. So (C) is false.
Regular sets are not closed under infinite union. Example:
Let
Now take the infinite union over all . We get
, which is not regular.
So (D) is false.
Answer: (B)
Smallest: a reflexive relation must contain all the diagonal pairs , which are pairs. The relation with only these pairs is also symmetric and transitive. So the smallest equivalence relation has ordered pairs.
Largest: a relation on cannot have more than all the pairs of , which is . is itself reflexive, symmetric and transitive, so it is an equivalence relation. So the largest has ordered pairs.
Answer: (B)
Answer: (A)
Every finite abelian group is a direct product of cyclic groups whose orders are prime powers. For order , the number of non-isomorphic abelian groups equals the number of partitions of .
Here , so . The partitions of 2 are and .
gives , and gives . These are not isomorphic, since has an element of order 4 and does not. So there are 2 groups.
Answer: (A)
Answer: (D)
For an edge in a DAG, always finishes before . When DFS explores the edge from , there are three cases:
- is not yet visited: it becomes a descendant of , so it finishes before .
- is already finished: then directly.
- is still being explored: this would be a back edge, which means a cycle, and a DAG has none.
So always holds.
The other options fail on the graph in the figure with edges . Start DFS at first, then call DFS on , which visits . The times are:
.
For the edge :
- is false, since is false.
- is false, since is false.
- is false, since is false.
Answer: (D)