Diễn Đàn MathScope

Diễn Đàn MathScope (http://forum.mathscope.org/index.php)
-   Logic, Tập Hợp, Toán Rời Rạc (http://forum.mathscope.org/forumdisplay.php?f=132)
-   -   Generating Grammar (http://forum.mathscope.org/showthread.php?t=44051)

HuongNhat 11-07-2013 02:10 PM

Generating Grammar
 
Trong cuốn sách toán rời rạc Discrete Mathematics and It's Application 6e có bài example 7, chapter 12.1 như sau:
The language ${0^n1^n2^n: n\ge 0}$ is generated by the Grammar $G={V,T,S,P}$.
$V={S,A,B,0,1,2}, T={0,1,2}$
$P={S\rightarrow 0SAB, S\rightarrow \lambda,BA\rightarrow AB,0A\rightarrow 01, 1A\rightarrow 11, 1B\rightarrow 12, 2B\rightarrow 22}$
Có thể kiểm tra được grammar này sinh ra language có chứa tập ban đầu nhưng mình chưa chứng minh được grammar này sinh ra language đúng bằng tập ban đầu.
Ai giúp mình với.


Múi giờ GMT. Hiện tại là 10:32 PM.

Powered by: vBulletin Copyright ©2000-2024, Jelsoft Enterprises Ltd.

[page compression: 2.98 k/3.16 k (5.80%)]