Question

In: Computer Science

Computer Science: Please be sure to make sure answer is legible if answer is written. :)...

Computer Science:
Please be sure to make sure answer is legible if answer is written. :)

Prove that a complement of any finite set of binary strings F has a decidable membership. Will such F always be recursive?

Solutions

Expert Solution

To prove, that the membership in the complement of a finite set of binary string F is decidable, argue as follows.

Consider the set of finite strings F. A Turing machine that decides F can be constructed as follows. The set of finite strings can be hardcoded in the states of the Turing machine. In fact, the set of finite strings can be encoded even into a Finite automaton. On each string, the machine will take a unique sequence of states, and end up at a state corresponding to that string. Note that the number of strings to "remember" is finite, hence there will be a finite number of states.

In this way, a halting Turing machine can be constructed which accepts exactly the set of strings in F. Now this can be complemented as follows. Exchange the final states with the non-final states. Then a word in the new machine will be accepted if and only if it was rejected in the previous machine. Therefore this machine will now accept the complement of F.

This proves that the complement of F has decidable membership. Note that the construction above already constructs a halting Turing machine for F. Therefore it already proves that F is recursive.

Comment in case of any doubts.

EDIT: Adding mathematical notation as asked. Let the words in F be . The machine has a starting state .  For the word , create the states . Add the transitions and . Add the state to the set of final states. Do this for each word . All the missing transitions go to the "reject" state. The machine thus created will accept the language which is exactly F.

This machine can be inverted as follows. Let the set of states be and the set of final states be . Create a new machine with the same transitions, the same set of states, and keep as the final states in the machine. If the old machine accepts F, then the new machine will accept as desired.


Related Solutions

Computer Science: Please be sure to make sure answer is legible if answer is written. :)...
Computer Science: Please be sure to make sure answer is legible if answer is written. :) Prove that for any positive integer k, the open line segment (1/2k+1, 1/2k) contains uncountably many real numbers. You must apply Cantor’s diagonalization directly, i.e., you cannot base your proof on the fact that the line segment (0, 1) contains uncountably many reals (hint: think in binary).
Computer Science: Please be sure to make sure answer is legible if answer is written. :)...
Computer Science: Please be sure to make sure answer is legible if answer is written. :) Is the set of total Boolean-valued functions, i.e., those whose range is T or F, countable? Prove your answer.
Please, make sure the answer is correct, well written, and no grammar mistakes. Looking for a...
Please, make sure the answer is correct, well written, and no grammar mistakes. Looking for a quality answer. Thanks in advance. Why do you think developing fair software for sentencing criminals is less risky than developing safe software for self-driving cars? Why would you be more comfortable working on and developing fair software for sentencing criminals? Explain?
Please, make sure the answer is correct, well written, and no grammar mistakes. Looking for a...
Please, make sure the answer is correct, well written, and no grammar mistakes. Looking for a quality answer. Thanks in advance. Why do you think developing fair software for sentencing criminals is less risky than developing safe software for self-driving cars? Why would you be more comfortable working on and developing fair software for sentencing criminals? Explain?
Important: If you're going to write make sure your writing is neat, legible, and easy to...
Important: If you're going to write make sure your writing is neat, legible, and easy to read. Please write in print. Please do not write in cursive. Thank you Important:I have the answers to the questions. I'll provide them bellow the questions. However, I don't understand why it's the correct answer. Bellow the answers I'll ask the questions I have about the answer given. Thank you QUESTION: How will a decrease in output during a recession affect (explain) a)business fixed...
Please circle the answer and please make sure that it is true answer. 1-)A physical pendulum...
Please circle the answer and please make sure that it is true answer. 1-)A physical pendulum consists of a meter stick that is pivoted at a small hole drilled through the stick a distance d from the 50 cm mark. The period of oscillation is 2.24 s. Find d (in cm's).
Please circle the answers and please make sure that it is true answer. Thank you. A...
Please circle the answers and please make sure that it is true answer. Thank you. A particle executes linear SHM with frequency 0.11 Hz about the point x = 0. At t = 0, it has displacement x = 0.33 cm and zero velocity. For the motion, determine the (a) displacement at t = 2.2 s, and (b) velocity at t = 2.2 s.
THIS IS EXAM REVIEW, so please make sure to show the work and make sure the...
THIS IS EXAM REVIEW, so please make sure to show the work and make sure the work is correct. In all tests of hypothesis use the 5% level of significance unless told otherwise. In all confidence interval problems use 95% confidence unless told otherwise. SHOW YOUR WORK. 2. Test scores for a mathematics course have a normal distribution with a mean of 76 and a standard deviation of 12. a.What proportion of scores will be between 70 and 90? b....
ASSIGNMENT Discuss the concept of "proof" as it relates to science. Make sure to provide at...
ASSIGNMENT Discuss the concept of "proof" as it relates to science. Make sure to provide at least one example in your discussion to facilitate the concept of proof.
can someone please answer for me that quaestions. please make sure that i understand your work...
can someone please answer for me that quaestions. please make sure that i understand your work and handwriting. thank you _____________________________________________________ 1. We will sketch some quadrics, but in order to make sure our graphs have some accuracy, we will project the surfaces onto the 3 coordinate planes. For each equation, draw four separate graphs for the surface S: i. the projection of S onto the xy-plane, ii. the projection of S onto the xz-plane, iii. the projection of S...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT