Theory of ComputationTU Board 2079
Define Turing machine and its roles.
5Answer
A Turing machine (TM) is a mathematical model of computation that has a finite control, an infinite tape divided into cells, and a read/write head that can move left or right. Formally it is a 7-tuple:
M = (Q, Σ, Γ, δ, q₀, B, F)
- Q: finite set of states
- Σ: input alphabet (not containing the blank)
- Γ: tape alphabet, with Σ ⊂ Γ
- δ: transition function, Q × Γ → Q × Γ × {L, R}
- q₀: start state
- B: blank symbol, B ∈ Γ
- F: set of final (accepting) states
In one move, the TM reads the symbol under the head, writes a symbol, moves the head one cell left or right, and changes state. It accepts if it enters a final state.
Roles of a Turing machine
- Language recogniser: it accepts the recursively enumerable languages, the largest class in the Chomsky hierarchy (type-0), which is more than finite automata or pushdown automata can recognise.
- Computing functions: it can compute any function that is computable by an algorithm, for example addition, multiplication and copying strings. By the Church–Turing thesis, anything a real computer can compute, a TM can compute.
- Language generator / enumerator: a TM can list all strings of a language.
- Model of a general-purpose computer: a universal Turing machine takes another TM's description and input and simulates it, like a stored-program computer.
- Studying the limits of computation: TMs are used to prove that some problems are undecidable, such as the halting problem, and to define complexity classes such as P and NP.
Discussion
Loading…
More Theory of Computation questions
Show that, For any NFA N=(Q, ∑, δ, q0, F) accepting language L=∑, There is a DFA D= (Q', ∑', q0′, δ', F') accepting the same language L.TU Board 207910State and prove the Pumping Lemma for regular languages. How can you show with example that pumping lemma is used to prove that a given language is not a…TU Board 207910Given the following expression grammar for simple arithematic expression with operator + and . E→ E+T T T → T+F F F → (E) a Remove the left recursion from…TU Board 207910Explain the ε closure of states on an ε NFA with suitable examples.TU Board 20795Convert the following regular expression into equivalent Finite Automata a) (0+1) 10(1+0) b) 1 0(0+1) 1TU Board 20795Define the term: Parse Tree, left most and right most derivation, sentential form and ambiguity with example.TU Board 20795