سؤال

I need help creating a Context Free Grammar which starts and ends with 00.

The language to be used will be {0,1}

هل كانت مفيدة؟

المحلول

S -> AA | AAA | AABAA
A -> 0
B -> eps | 0B | 1B
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top