Skip to content

Instantly share code, notes, and snippets.

@linnet8989
Last active May 31, 2017 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linnet8989/df6869c81129323c13769b67419ac361 to your computer and use it in GitHub Desktop.
Save linnet8989/df6869c81129323c13769b67419ac361 to your computer and use it in GitHub Desktop.

1.3.1

C: 1, 3, 6
C++: 1, 3, 4, 6
Cobol: 
Fortran: 
Java: 1, 3, 4, 6
Lisp:
ML:
Perl:
Python: 1, 3, 4, 5, 6, 8
VB:

2.2.1

1)

1.因为a是S,由xxx可知aa+是SS+

2.因为aa+是SS+,由xxx可知aa+是S

3.因为aa+是S,且a是S,由xxx可知aa+a*是SS*

4.因为aa+a*是SS*,由xxx可知aa+a*是S

3)

用归纳法可得出,L1 = { a(a+)n(a*)m | n,m=>1 }

2.2.2 (unfinished)

S=>0S1=>00S11=>0...01...1(n个0,n个1,n=>1)

S=>+SS=>+S(+SS)

S=>

S=>aSbS=>abSaSbS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment