TAILIEUCHUNG - Lecture Theory of automata - Lecture 36

After studying this chapter you will be able to understand: Chomsky Normal Form, Theorem regarding CNF, examples of converting CFG to be in CNF, Example of an FA corresponding to Regular CFG, Left most and Right most. | Recap lecture 35 Regular grammar, null productions and examples, nullable productions and examples, unit productions and example, Chomsky Normal Form (Definition) Chomsky Normal Form Chomsky Normal Form (CNF): If a CFG has only productions of the form nonterminal string of two nonterminals or nonterminal one terminal then the CFG is said to be in Chomsky Normal Form (CNF). Note It is to be noted that any CFG can be converted to be in CNF, if the null productions and unit productions are removed. Also if a CFG contains nullable productions as well, then the corresponding new production are also to be added. Which leads the following theorem Theorem All NONNULL words of the CFL can be generated by the corresponding CFG which is in CNF . the grammar in CNF will generate the same language except the null string. Following is an example showing that a CFG in CNF generates all nonnull words of corresponding CFL. Example Consider the following CFG S aSa

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.