search
Log In
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
0 votes
14 views
Are all recursive grammar may it direct or indirect produce infinite language?
in Compiler Design 5 points 14 views
0
No.

RL is also recursive languages, RL can be finite.

2 Answers

0 votes

@arnab2022

 

A recursive context-free grammar that contains no useless rules necessarily produces an infinite language. This property forms the basis for an algorithm that can test efficiently whether a context-free grammar produces a finite or infinite language....

 

https://www.youtube.com/watch?v=ptJ2PB_zTS8 

633 points
0 votes
633 points
...