GATE CS 2021, set 2 · Question 57 · Theory of Computation · Multiple select (MSQ) · 2 marks · no negative marks

Which of the following regular expressions represent(s) the set of all binary numbers that are divisible by three? Assume that the string ε is divisible by three.

  1. (A) (0+1(01^*0)^*1)^*
  2. (B) (0+11+10(1+00)^*01)^*
  3. (C) (0^*(1(01^*0)^*1)^*)^*
  4. (D) (0+11+11(1+00)^*00)^*
Answer

Answer (A), (B), (C)

Answer from the official GATE CS 2021 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes