If N people use secret-key encryption for privacy and every pair must be able…

2016

If N people use secret-key encryption for privacy and every pair must be able to communicate privately, which expression gives the number of distinct secret keys required?

Answer: C. N(N − 1)/2ConceptWhen one unique resource is assigned to each unordered pair chosen from N distinct entities, the total is the combination C(N, 2). Counting ordered…

  1. A.

    N

  2. B.

    N − 1

  3. C.

    N(N − 1)/2

  4. D.

    N(N + 1)/2

Attempted by 471 students.

Show answer & explanation

Correct answer: C

Concept

When one unique resource is assigned to each unordered pair chosen from N distinct entities, the total is the combination C(N, 2). Counting ordered selections gives N(N − 1), but each unordered pair appears twice, so C(N, 2) = N(N − 1)/2.

Application

  1. Each person must share one secret key with every other person, so begin with N choices for the first person and N − 1 choices for the partner.

  2. The product N(N − 1) counts every pair twice: once as person A with person B and once as person B with person A.

  3. Divide by 2 to remove this double counting, giving N(N − 1)/2 distinct shared keys.

Cross-check

For N = 4, the pairs are AB, AC, AD, BC, BD, and CD: 6 pairs. The formula gives 4(4 − 1)/2 = 6, so the count agrees with direct enumeration.

Therefore, the required number of secret keys is N(N − 1)/2.

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…