tailieunhanh - Lecture note Theory of automata - Lecture 22

The following will be discussed in this chapter: Applications of complementing and incrementing machines, equivalent machines, moore equivalent to mealy, proof, example, mealy equivalent to moore, proof, example. | Lecture note Theory of automata - Lecture 22 Lecture 31 Theory Of Automata By Dr. MM Alam 1 Lecture 30 at a glance Using JFLAP for PDA PDA Conversion to CFG Chomsky Normal Form Conversion in JFLAP 2 What are Non-Context-Free languages All languages are not CFL. Languages which are not Context-Free are called Non-CFL. This chapter is about proving that all languages are not Context-Free We will also use the Pumping Lemma with and without JFLAP for the proof of the aforementioned fact. 3 Live Production VS Dead Production Definition A production of the form nonterminal string of two nonterminals is called a live production. A production of the form nonterminal terminal is called a dead production. 4 Live Productions Example Thanks to Daniel I Cohen. The above excerpts have been taken from his Book Automata Theory Chapter Non Context Free Languages. 5 Finite many words can be generated if a CFG is in CNF and if there is restriction to use the live production at most once each. It may be noted that every time a live production is applied during the derivation of a word it increases the number of non- terminals by one similarly dead productions are applied it decreases the number of non-terminals by one. 6 Self Embedded Nonterminal A nonterminal is said to be self-embedded if in a given derivation of a word it ever occurs as a tree descendant of itself 7 Theorem 33 Statement If a CFG is in CNF with p live and q dead productions and if w is a word generated by the CFG having more than 2p letters then any derivation tree for w has a nonterminal z which is used twice where the second z is the descended from the first z. 8 The nonterminal X is self- embedded 9 Example Grammar S AX X SA S BY Y SB S a S b S AA S BB A a B b 10 S S AX AX X SA ASA S AX AAXA X SA AASAA S AX AAAXAA X SA AAASAAA A a aAASAAA A a aaASAAA A a aaaSAAA S b aaabAAA A a aaabaAA A a aaabaaA A a aaabaaa 11 Consider the following CFG in CNF and the derivation tree of the word bbabbb S AB A BC C AB A a B b

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
8    193    0    22-05-2024
10    127    0    22-05-2024
2    118    0    22-05-2024
11    108    0    22-05-2024
15    110    0    22-05-2024
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.