Question

a.    Briefly but clearly describe any valid method to prove that decision problem X is decidable....

a.    Briefly but clearly describe any valid method to prove that decision problem X is decidable.

b. Briefly but clearly describe any valid method to prove that decision problem X is acceptable/recognizable.

c. Briefly but clearly describe any valid method to prove that decision problem X is undecidable.

d. . Briefly but clearly describe any valid method to prove that decision problem X is not Turing-acceptable.

Homework Answers

Answer #1

a) By definition, a language is decidable if there exists a Turing machine that accepts it, that is, halts on all inputs, and answers "Yes" on words in the language, "No" on words not in the language. Therefore one way of showing that a language is decidable is by describing a Turing machine that accepts it.

b) Turing-decidable language
Answer: A language A that is decided by a Turing machine; i.e., there is a Turing machine
M such that M halts and accepts on any input w ∈ A, and M halts and rejects on input
input w not ∈ A; i.e., looping cannot happen.
Turing-recognizable language
Answer: A language A that is recognized by a Turing machine; i.e., there is a Turing
machine M such that M halts and accepts on any input w ∈ A, and M rejects or loops on
any input w not ∈ A.

c)

Undecidability

Definition: A decision problem is a problem that requires a yes or no answer.

Definition: A decision problem that admits no algorithmic solution is said to be undecidable.

  • No undecidable problem can ever be solved by a computer or computer program of any kind. In particular, there is no Turing machine to solve an undecidable problem.

    We have not said that undecidable means we don't know of a solution today but might find one tomorrow. It means we can never find an algorithm for the problem.

  • It is not obvious how to show no solution can exist.We can do so by constructing a logical paradox.nce we've seen one problem that is undecidable, it is often easy to show that other similar problems must also be undecidable.

The Halting Problem is Undecidable: Proof

Proof by contradiction: Assume we have a procedure HALTS that takes as input a program P and input data D and answers yes if P halts on input D and no otherwise.

  • Of course we can't just have HALTS simulate P on input D, since if P doesn't halt, we'll never know exactly when to quit the simulation and answer no.

Since there are no assumptions about the type of inputs we expect, the input D to a program P could itself be a program.

  • Compilers and editors both take programs as inputs.
  • Given a Pascal compiler written in Pascal, we might want to know if the compiler halts when given itself as input.

Given the program HALTS, we can construct a new (more limited) program that tests whether a program P halts when the input data is a copy of P.

      procedure NEWHALTS(P);
        if HALTS(P,P) then writeln('Yes');
        else writeln('No');
      

Proof Continued

Given NEWHALTS, we can construct another program that does just the opposite of NEWHALTS:

      procedure OPP(P);
        if NEWHALTS(P) outputs 'Yes' then
            loop forever
        else halt;
      

What happens when we call OPP(OPP)?

  • Inside OPP, we call NEWHALTS(OPP), which calls HALTS(OPP,OPP). If OPP halts when fed OPP as input then the call OPP(OPP)loops forever.
  • If OPP doesn't halt when fed OPP as input, then the call OPP(OPP) halts.
  • OPP(OPP) can neither halt nor loop forever.

This is a contradiction! Since our only assumption was the existence of HALTS, procedure HALTS cannot exist

D) .Given a program P and a language L, we say P accepts L, if L = L(P). A language L is Turing
acceptable if there exists a program P such that P accepts L, i.e., L = L(P). A language L is
Turing decidable if there exists a program that accepts L, and P always halts.
If L is Turing acceptable, then there exists a program P such that: for any string x, if x ∈ L,
then P accepts x. If x /∈ L, then there are two possibilities: 1)P may halt and does not output
“ACCEPT”, or 2)P may run forever.
If L is Turing decidable, then there exists a program P such that: for any string x, if x ∈ L,
then P accepts x, else P rejects x.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
slove in any valid method: x^2y''-8xy'+20y=3x^2, im trying to solve via variation of parameters but im...
slove in any valid method: x^2y''-8xy'+20y=3x^2, im trying to solve via variation of parameters but im not to sure how to set up the auxiliary equation to get yc because of the x^2 the rest i know how to do. help with that would be appreciated, thanks
the decision rule for the profitability index is that any project with______is an acceptable project. a....
the decision rule for the profitability index is that any project with______is an acceptable project. a. a ratio less than one b. a ratio greater than one c. a ratio greater than zero d. a ratio less than zero
f(x)   Write a formula or describe a method for identifying each of these characteristics of f(x). a)...
f(x)   Write a formula or describe a method for identifying each of these characteristics of f(x). a) x-intercepts b) y-intercepts c) vertical asymptotes d) horizontal asymptotes e) holes in the graph f) intervals where f(x) is positive or negative g) Describe f(x) if the horizontal asymptote is y  0.
Discreet Math: Prove or disprove each statement a) For any real number x, the floor of...
Discreet Math: Prove or disprove each statement a) For any real number x, the floor of 2x = 2 the floor of x b) For any real number x, the floor of the ceiling of x = the ceiling of x c) For any real numbers x and y, the ceiling of x and the ceiling of y = the ceiling of xy
Long-term investment decision, payback method Personal Finance Problem Bill Williams has the opportunity to invest in...
Long-term investment decision, payback method Personal Finance Problem Bill Williams has the opportunity to invest in project A that costs $7,700 today and promises to pay $2,100 , $2,600 , $2,600 , $1,900 and $1,800 over the next 5 years. Or, Bill can invest $7,700 in project B that promises to pay $1,500 , $1,500 , $1,500 , $3,500 and $4,100 over the next 5 years. ( Hint: For mixed stream cash inflows, calculate cumulative cash inflows on a year-to-year...
​Long-term investment​ decision, payback method Personal Finance Problem: Bill Williams has the opportunity to invest in...
​Long-term investment​ decision, payback method Personal Finance Problem: Bill Williams has the opportunity to invest in project A that costs $6,800 today and promises to pay $2,300​, $2,600​, $2,600​, $1,900 and $1,800 over the next 5 years. ​ Or, Bill can invest $6,800 in project B that promises to pay $1,300​, $1,300​, $1,300​, $3,600 and $4,000 over the next 5 years. (​Hint: For mixed stream cash​ inflows, calculate cumulative cash inflows on a​ year-to-year basis until the initial investment is...
​Long-term investment​ decision, payback method (Personal Finance Problem) - Bill Williams has the opportunity to invest...
​Long-term investment​ decision, payback method (Personal Finance Problem) - Bill Williams has the opportunity to invest in project A that costs $8,500 today and promises to pay $2,100, $2,400, $2,400, $2,100, and $1,700 over the next 5 years. Or, Bill can invest $8,500 on project B that promises to pay $1,500, $1,500, $1,500, $3,700, and $3,900 over the next 5 years. (​Hint: For mixed stream cash​ inflows, calculate cumulative cash inflows on a​ year-to-year basis until the initial investment is...
Long-term investment? decision, payback method Personal Finance Problem??? Bill Williams has the opportunity to invest in...
Long-term investment? decision, payback method Personal Finance Problem??? Bill Williams has the opportunity to invest in project A that costs $7,400 today and promises to pay annual cash flows of $2,200?, 2,400?, $2,400?, $2,000 and $1,800 over the next 5 years. ? Or, Bill can invest $7,400 in project B that promises to pay annual cash flows of $1,400?, $1,400?, $1,400?, $3,500 and $4,100 over the next 5 years.?? (?Hint: For mixed stream cash? inflows, calculate cumulative cash inflows on...
1. Use the roster method to describe the elements of the following set. x∈ℤ||x−3|<12 and x...
1. Use the roster method to describe the elements of the following set. x∈ℤ||x−3|<12 and x is a multiple of 3 2. Use the roster method to describe the elements of the following set. {n∈ℕ∣∣∣1n+6⩾6272 and n is a multiple of 5} 3. Determine the cardinality of the following sets. {x∈ℤ|−4⩽x⩽3}: {x∈ℕ|−4⩽x⩽3}: 4. Evaluate the following expressions. [Hint: start by factoring the polynomial.] ∣∣{x∈ℚ∣∣18x3+69x2+56x=0}∣∣= ∣∣{x∈(0,∞)∣∣18x3+69x2+56x=0}∣∣= ∣∣{x∈ℤ∣∣18x3+69x2+56x=0}∣∣= 5.  Evaluate the following expressions. [Hint: start by factoring the polynomial.] ∣∣{x∈ℝ∣∣x4+11x2+28=0}∣∣= ∣∣{x∈ℚ∣∣x4+11x2+28=0}∣∣= ∣∣{x∈ℕ∣∣x4+11x2+28=0}∣∣= 6....
Long-term investment decision, payback method Personal Finance Problem Bill Williams has the opportunity to invest in...
Long-term investment decision, payback method Personal Finance Problem Bill Williams has the opportunity to invest in project A that costs $ 6 comma 300$6,300 today and promises to pay $ 2 comma 300$2,300 , $ 2 comma 500$2,500 , $ 2 comma 500$2,500 , $ 2 comma 000$2,000 and $ 1 comma 800$1,800 over the next 5 years. Or, Bill can invest $ 6 comma 300$6,300 in project B that promises to pay $ 1 comma 300$1,300 , $ 1...