...
Programming
November 14, 2023
GATE 1998
November 14, 2023
Programming
November 14, 2023
GATE 1998
November 14, 2023

Question 10010 – Algorithms

(a) Solve the following recurrence relation:

  xn = 2xn-1 - 1, n>1
  x1 = 2 

(b) Consider the grammar

  S →  Aa | b
  A → Ac | Sd | ε 

Construct an equivalent grammar with no left recursion and with minimum number of production rules.

Correct Answer: A

A
Theory Explanation.

Leave a Reply

Your email address will not be published. Required fields are marked *