GATE / CS ARCHIVE

GATE CSE 2004 / QUESTION 26

Counting symmetric binary matrices

Discrete Mathematics · Combinatorics & Counting · Full GATE CSE 2004 paper

GATE 2004, Q26 1 mark · MCQ
Report issue

Combinatorics & Counting

Question 26, GATE 2004: How many n×n symmetric matrices have every entry either 0 or 1? Option C follows GFG; GateForum has malformed parentheses around its exponent.
Options:
(A) 2^n
(B) 2^(n²)
(C) 2^((n²+n)/2)
(D) 2^((n²−n)/2)
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Choose the n diagonal bits and the n(n−1)/2 bits above the diagonal freely; symmetry then determines the lower triangle. There are n(n+1)/2 independent bits and therefore 2^((n²+n)/2) matrices, C.

2. This is a finite counting problem.

3. Teaching check: For n=2, the matrix is [[a,b],[b,c]], with three independent bits and eight possibilities. This small case distinguishes 2^((n²+n)/2) from formulas that omit diagonal freedom or count the mirrored off-diagonal bits twice.

Original paper, page 4