GATE / CS ARCHIVE

GATE CSE 2003 / QUESTION 7

Strings under concatenation

Discrete Mathematics · Algebraic Structures · Full GATE CSE 2003 paper

GATE 2003, Q7 1 mark · MCQ
Report issue

Algebraic Structures

Question 7, GATE 2003: For Σ={0,1}, consider Σ* under string concatenation. Which statement holds? A. It does not form a group; B. It forms a noncommutative group; C. It has no right identity; D. Removing the empty string makes it a group.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. A group must have an identity and an inverse for every element. The empty string is a two-sided identity. If s is nonempty, however, |st|=|s|+|t|>0 for every t, so st can never be the empty identity. Associativity alone is insufficient for group structure.

2. Concatenation is associative and ε is an identity, but a nonempty string cannot have a concatenative inverse because lengths add. Therefore Σ* is a monoid, not a group, A. Removing ε also removes the identity and does not fix the missing inverses.

Original paper, page 1