Question

In: Computer Science

i) Show that there is no algorithm for deciding if any two Turing machines M1 and...

i) Show that there is no algorithm for deciding if any two Turing machines M1 and M2 accept the same language.

ii) How is the conclusion of ii affected if M2 is a finite automaton?

Solutions

Expert Solution

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

i) Let us consider an algorithm A which decides L(M1) = L(M2) when it is input M1 and M2

Consider a Turing machine  M2 which rejects every string of the language ,hence L(M) =

Example : we can construct M2 by taking the start state to be the rejecting state.

Feed M and M2 to algorithm A. If L(M) = L(M2), concludes that M accepts the empty language. If L(M) L(M2).concludes that language that the language accepted by M is not empty.

Another explanation: If two Turing machines are given, they can be easily converted to C programs. The C programs can store a variable that will give the state of the Turing machine, an array that represents the tape of the Turing machine and an integer that gives the position of the head on the tape.

If it is possible to decide if two C programs do the same task, then it is possible to say that two Turing machine accepts the same language. But it is impossible to decide using an algorithm if two Turing machines accept the same language. So it is impossible to decide if two C programs do the same task.

ii) If M2 is a finite automaton, then also the above statement holds good because finite automaton accepts the regular language, and it will not contradict with the above statement.


Related Solutions

Show that Turing-decidable languages are closed under the following operations: union concatenation star Show that Turing-recognizable...
Show that Turing-decidable languages are closed under the following operations: union concatenation star Show that Turing-recognizable languages are closed under the following operations: union concatenation star Each answer needs only be a short informal description of a Turing Machine (but it must still be sufficiently precise so someone could reconstruct a formal machine if needed).
Show that the following problem i undecidable: Input: A Turing machine M. Output: Yes if M...
Show that the following problem i undecidable: Input: A Turing machine M. Output: Yes if M eventually halts when started on a blank tape, no otherwise Input: A Turing machine M and a tape symbol a. Output: Yes if M eventually writes a when started on an blank tape, no otherwise. Input: A Turing machine M. Output: Yes if M ever writes a nonblank symbol when started on a blank tape, No otherwise. Input: A Turing machine M and a...
What are finite automata? What are pushdown automata? What are the Turing machines?
What are finite automata? What are pushdown automata? What are the Turing machines?
Turing Machine and Closure Operations Show that Turing-recognizable languages are closed under the following operations: union...
Turing Machine and Closure Operations Show that Turing-recognizable languages are closed under the following operations: union concatenation star Each answer needs only be a short informal description of a Turing Machine (but it must still be sufficiently precise so someone could reconstruct a formal machine if needed). Also, be careful with non-termination (when appropriate)!
Turing Machine and Closure Operations Show that Turing-decidable languages are closed under the following operations: union...
Turing Machine and Closure Operations Show that Turing-decidable languages are closed under the following operations: union concatenation star
A.) A firm is deciding between two different sewing machines. Technology A has fixed costs of...
A.) A firm is deciding between two different sewing machines. Technology A has fixed costs of $500 and average variable costs of $50 whereas Technology B has fixed costs of $250 and marginal costs of $100. The quantity of output at which the firm  is indifferent between the two technologies is ______ B.) A firm is deciding between two different sewing machines. Technology A has fixed costs of $500 and average variable costs of $50 whereas Technology B has fixed costs...
Give turing Machine for L= a*i b*2j a*i b*2j where i,j>=0. Also provide the logic, show...
Give turing Machine for L= a*i b*2j a*i b*2j where i,j>=0. Also provide the logic, show 1 or 2 strings for accept, reject .
prove or disprove A Turing machine with two tapes is no more powerful than a Turing...
prove or disprove A Turing machine with two tapes is no more powerful than a Turing machine with one tape. (That is, both types of machines can compute the same set of functions.) The cardinality of the set of irrational numbers is greater than the cardinality of the set of all rational numbers. The cardinality of the set of all algebraic numbers is exactly the same as the cardinality of all real numbers.
Please show work You are evaluating two different silicon wafer milling machines. The Techron I costs...
Please show work You are evaluating two different silicon wafer milling machines. The Techron I costs $291,000, has a 3-year life, and has pretax operating costs of $80,000 per year. The Techron II costs $505,000, has a 5-year life, and has pretax operating costs of $47,000 per year. For both milling machines, use straight-line depreciation to zero over the project’s life and assume a salvage value of $57,000. If your tax rate is 21 percent and your discount rate is...
ABC Inc., a wedge manufacturer, is deciding between two machines used for making wedges. Machine A...
ABC Inc., a wedge manufacturer, is deciding between two machines used for making wedges. Machine A will cost $70,000 and Machine B will cost $120,000. The annual before-tax operating costs for Machine A and B are $7,500 and $6,000, respectively. Machine A will last for 2 years before it has to be replaced, whereas Machine B will last for 3 years before it must be replaced. The machines are subject to CCA rate of 30%, and the company's marginal tax...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT