GATE Computer ScienceVery hardGATE CS (PYQ pattern)
Eight people A, B, C, D, E, F, G, H sit around a round table (arrangements that differ by rotation are the same). In how many arrangements are C and D next to each other but A and B are NOT next to each other?
- A. 1440
- B. 840
- C. 1200
- D. 960
Correct answer: D. 960
Treat C D as one block: 2 · 6! /... circular arrangements of 7 units = 6! = 720, times 2 for the order of C, D = 1440. Of these, A and B are adjacent in 2·2·5! = 480 (glue A–B too: 6 units gives 5! = 120, times 2 × 2 = 480), so 1440 − 480 = 960.
More Discrete Mathematics questions
- How many permutations of {1, …, 6} have no increasing subsequence of length 4 and no decreasing subsequence of length 3?
- How many relations on {1, 2, 3} are reflexive and transitive (preorders) but are neither symmetric nor antisymmetric?
- A tree has 3 vertices of degree 4, 2 vertices of degree 3 and every other vertex is a leaf (degree 1). How many vertices does the tree have?
- The wheel W₉ consists of a hub joined to every vertex of a 9-cycle. What is its chromatic number?
- What is the maximum number of edges in a simple graph on 13 vertices that contains no K₄ (complete graph on 4 vertices)?
- How many Boolean functions of 4 variables are symmetric (their value depends only on how many inputs are 1)?