tailieunhanh - Lecture note Theory of automata - Lecture 19

The following will be discussed in this chapter: NFA corresponding to closure of FA, examples, memory required to recognize a language, example, distinguishing one string from another, example, theorem, proof. | Lecture note Theory of automata - Lecture 19 Lecture 28 Theory Of Automata By Dr. MM Alam 1 Lecture 27 recap Chomsky Normal Form conversion in JFLAP Push Down Automata Definition PDA Symbols 2 Adding A Pushdown Stack A PUSHDOWN STACK is a place where input letters can be stored until we want to refer to them again. It holds the letters it has been fed in a long line. The operation PUSH adds a new letter to the line. The new letter is placed on top of the STACK and all the other letters are pushed back or down accordingly. Before the machine begins to process an input string the STACK is presumed to be empty which means 3 that every storage location in it initially contains a Adding A Pushdown Stack If the STACK is then fed the letters a b c d by this sequence of instructions PUSH a PUSH b PUSH c PUSH d Then top letter in the STACK is d the second is c the third is b and the fourth is a. If we now execute the instruction PUSH b the letter b will be added to the STACK on the top. The d will be pushed down to 4position 2 Adding A Pushdown Stack One pictorial representation of a STACK with these letters in it is shown below. Beneath the bottom a we presume that the rest of the STACK which like the INPUT TAPE has infinitely many storage locations holds only blanks. b d c b a Δ 5 Adding A Pushdown Stack How the following PDA is working a b 6 Adding A Pushdown Stack Its operation on the input string aaabbb. We begin by assuming that this string has been put on the TAPE. STACK Δ TAPE a a a b b b Δ 7 Adding A Pushdown Stack Its operation on the input string aaabbb. We begin by assuming that this string has been put on the TAPE. STACK a Δ TAPE a a a b b b Δ 8 Adding A Pushdown Stack We now read another a and proceed as before along the a edge to push it into the STACK. Again we are returned to the READ box. STACK Again we read an a our third and again this a is pushed onto the a TAPE a a a b b b Δ a Δ 9 Adding A Pushdown Stack After the third PUSH a we are routed .

TỪ KHÓA LIÊN QUAN
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.