CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

A derivation in a context free grammar will be called _____ if the right most non terminal symbol is replaced at each step.

A
Right non-terminals
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Rightmost
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
Right look ahead
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Right claim
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B Rightmost

A derivation in a context free grammar will be called rightmost if the right most non terminal symbol is replaced at each step.

Context-free grammar(CFG) is a certain type of formal grammar: a set of production rules that describe all possible strings in a given formal language. Production rules are simple replacements.

The productions of a grammar specify the manner in which the terminals and non-terminals can be combined to form strings. Each production consists of a non-terminal called the left side of the production, an arrow, and a sequence of tokens on- terminals, called the right side of the production.


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