Professional Documents
Culture Documents
Chap 11
Chap 11
형식언어와 오토메타의
Hierarchy
학습목표
M: TM determining membership in L
M̂ : TM generating all strings in in proper order
w1 , w2 , M
Mˆ tape if in L
" for r.e L
w j not in L ? r.e language 를 위해서는
순서 다르게 열거하는 방법에 좀 신경을
Mˆ
w1
M one move 써야…
w2
p. 277 처럼 M 이 생성된 스트링을 한 스텝씩만 처리
Halt 하지 않는 스트링 때문에 진전되지 않는 문제해결
• 결론 : enumeration procedure 가 존재하는 언어는 recursively enumerable
실제 보이기 어려운 개념적인 언어이므로
수학의 힘을 빌려 개념적으로 이해합니다
실제 예들
① Recursively enumerable 하지 않은 언어의 존재여부
s
Thm S : infinite countable set → 2 : not countable
pf) t1 1
t2 1 diagonalization
. t3
..
0 (fewer TM than lang.
0 r.e. 하지 않은 언어가 존재 )
Thm for Σ . ∃ lang. not r. e.
*
pf) lang.: subset of * 2
not countable
② Recursive enumerable 하지 않은 언어의 예
Thm ∃ a r.e. L whose complement is not r.e.
Unrestricted Grammars
• Def G (V , T , S , P ) : unrestricted if
uv 아무런 제약이 없는 문법
(V T ) (V T )*
( no )
U.G.
R.E.L.
□→λ
예) L(aa*)
q0 aa├ aq0 a├ aaq0 □├ aq1a□
S SV□□ TV□□ TVaaV□□ Va 0 aVaaV□□
① 번 규칙을 사용하여 초기 스트링 q0aa□ 를 생성
Va 0 aVaaV□□ VaaVa 0 aV□□ VaaVaaV□0□ VaaVa1aV□□
Vaa aV□□ Vaa a□ aa□ aa
② 번 규칙을 사용하여 TM 을 흉내내고 ③번 규칙으로
원래 w 를 출력 변수들의 첫 index 는 초기 w 를 기억 !
Unrestricted Grammars : 총정리
Thm recursively enumerable language L
unrestricted grammar G L L(G )
pf x├ y e( x) e( y )
show by induction
*
e(q0 w) e( y ) iff q0 w├ y
- 1 : 답도 있고 하니 잘 ~ 풀어볼 것 .
Context-Sensitive G & L
Def. G (V , T , S , P) : Context - sensitive if productions are
x y
whe re x, y (V T ) and | x | | y |
• properties
– noncontracting
– why context-sensitive ?
xAy → xvy
A
a
a
bc c
B
– LBA is nondeterministic
올바른 production 을 늘 guess 할 수 있다
Thm 11.6 의 과정을 초기 w 의 길이만큼만 사용해서 할 수
있다
LBA 로 할 수 있다 !
Thm. L : accepted by LBA M CSG generate L
Recursive 언어와 CSL 의 관계
Thm. Every CSL L is recursive
LBA 가 TM 보다 덜 강력하다 !
Homework : Exercises 11.3
Chomsky Hierarchy
LRE (Type 0)
LREC
LCS (Type 1)
LCF
LCF (Type 2)
LDCF