Data Structures & AlgorithmsVery hard

Why is an XOR-zero subset family structured like a vector space over the two-element field?

  1. A. XOR is multiplication over the integers.
  2. B. Every XOR-zero subset has exactly two elements.
  3. C. The family contains only the empty set.
  4. D. XOR is addition in GF(2), so subsets whose XOR is zero are the linear dependencies among the values as bit vectors.

Correct answer: D. XOR is addition in GF(2), so subsets whose XOR is zero are the linear dependencies among the values as bit vectors.

Viewing the values as vectors over GF(2) makes XOR addition, so the dependencies form a subspace whose size is a power of two. This explains why the count of XOR-zero subsets is a power of two.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic