Programming
November 14, 2023Compiler-Design
November 14, 2023Question 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
Theory Explanation.
Subscribe
Login
0 Comments