GATE / CS ARCHIVE

GATE CSE 2013 / QUESTION 1

Commutativity and associativity

Discrete Mathematics · Algebraic Structures · Full GATE CSE 2013 paper

GATE 2013, Q1 1 mark · MCQ
Report issue

Algebraic Structures

Question 1, GATE 2013: On the integers define x⊕y=x²+y². Which holds? A commutative but not associative; B both; C associative but not commutative; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

x⊕y=x²+y² is symmetric, so it is commutative. It is not associative: (1⊕1)⊕2=2²+2²=8, whereas 1⊕(1⊕2)=1²+5²=26. Therefore A.

Commutativity asks whether swapping the two inputs changes the output; x²+y²=y²+x² for all integers. Associativity asks whether changing parentheses changes a three-input computation. For inputs 1, 1, 2, first forming 1⊕1 gives 2 and then 2⊕2 gives 8. First forming 1⊕2 gives 5 and then 1⊕5 gives 26. One counterexample is enough to disprove associativity, whereas commutativity was established for arbitrary inputs.

Original paper, page 2 · Answer key