GATE Computer ScienceVery hardGATE CS
A relation R on {1, 2, …, 8} contains exactly the pairs (1,2), (2,3), (3,1), (3,4), (5,6), (6,7), (7,5), (4,8), (8,8). How many ordered pairs does the transitive closure of R contain?
- A. 31
- B. 27
- C. 26
- D. 25
Correct answer: C. 26
The 3-cycle {1,2,3} gives all 9 pairs among its members, and each of 1, 2, 3 reaches 4 and 8: 6 more pairs; 4 reaches 8 (1 pair) and 8 reaches itself (1 pair). The 3-cycle {5,6,7} gives 9 pairs. Total 9 + 6 + 1 + 1 + 9 = 26. Note that 4 does not reach 4.
More Discrete Mathematics questions
- How many walks of length 12 are there from vertex 0 to the antipodal vertex 4 in the cycle graph C₈ (vertices 0 to 7, i adjacent to i ± 1…
- In how many permutations of 1, 2, …, 7 does no entry i + 1 immediately follow the entry i (that is, there is no adjacent pair i, i + 1 in…
- How many pairwise non-isomorphic simple graphs (not necessarily connected) have 6 vertices and exactly 7 edges?
- A necklace has 8 beads, each coloured with one of 3 colours so that adjacent beads (including the last and first) have different colours…
- What is the value of Σ{k=1}^{100} gcd(k, 100)?
- What is the size of a maximum cut of the Petersen graph (the largest number of edges between a vertex set S and its complement)?