wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

The correct hierarchical relationship among context-free, right-linear, and context-sensitive language is given by ____________________________.

A
context-free < right-linear < context-sensitive
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
context-free- < context-sensitive < right-linear
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
context-sensitive < right-linear < context-free
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
right-linear < context-free < context-sensitive
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D right-linear < context-free < context-sensitive

The correct hierarchical relationship among context-free, right-linear, and context-sensitive language is right-linear < context-free < context-sensitive.

Context-sensitive language:-

Context-sensitive languageis a language that can be defined by a context-sensitive grammar. Context-sensitive is one of the four types of grammars in the Chomsky hierarchy.

Context-free language:-

Context-free language (CFL) is a language generated by a context-free grammar (CFG). Context-free languages have many applications in programming languages; in particular, most arithmetic expressions are generated by context-free grammars.

Right-linear language:-

A linear grammar is a context-free grammar that has at most one non-terminal in the right hand side of each of its productions. A linear language is a language generated by some linear grammar.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Ogive
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon