



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




(Approved by AICTE, New Delhi – Affiliated to Anna University, Chennai) (Accredited by NAAC with ‘A’ Grade and All UG Engineering Programmes are Accredited by NBA) Department of Computer Science and Engineering CS6503-THEORY OF COMPUTATION UNIT-1 TWO MARKS
The components of FA model are Input tape, Read control and finite control. (a) The input tape is divided into number of cells. Each cell can hold one i/p symbol. (b) The read head reads one symbol at a time and moves ahead. (c) Finite control acts like a CPU. Depending on the current state and input symbol read from the input tape it changes state.
For eg identifier can be expressed as a regular expression as: (letter)(letter +digit)* If anything in the source language matches with this reg exp then it is recognized as an identifier.The letter is{A,B,C,………..Z,a,b,c….z} and digit is {0,1,…9}.Thus reg exp identifies token in a language. Text editors: These are programs used for UNIX text editors uses the reg exp for processing the text. For example substituting the strings such as: S/bbb*/b/ Gives the substitute a single blank for the first string of two or more blanks in a given line. In UNIX text editors any reg exp is converted to an NFA with Є -transitions, this NFA can be then simulated directly.
24.Define Theory of computation Theory of computation describes the basic ideas and models underlying computing.It suggests various abstract models of computation,represented mathematically.
25.what are the rules for pumping lemma. Pumping lemma is used to check if a language is regular or not. A. Assume that the language(L) is regular. B. Select a constant n. C. Select a string (z) in L,such that |z|>n. D. Split the word z into u,v,w such that |uv|<=n and |v|>=1. E. Achieve a contradiction to pumping lemma that there exists an I such that uvw,w is not in L.then L is not a regular language.
26.what are the three methods of conversion of DFA to RE? A. Regular expression equation method or transitive closure method B. Arden’s method C. State elimination method.