The language of balanced paranthesis is

Nguyên Lê

New member
The language of balanced paranthesis is
A. regular
B. non regular
C. may be regular
D. none of the mentioned
 
Answer: B
Explanation: Given n, there is a string of balanced parentheses that begins with more than p left parentheses, so that y will contain entirely of left parentheses. By repeating y, we can produce a string that does not contain the same number of left and right parentheses, and so they cannot be balanced.
 

Tìm kiếm

Back
Top