Question

1. Introduce a Turing machine to decide the languages to follow. You must algorithmic description, but...

1. Introduce a Turing machine to decide the languages to follow. You must
algorithmic description, but with a sufficient level of detail.
You can use the variants of the original model of the Turing machine.

a) A = {0^k 1^i0^j| k = i × j}.

b) B = {w w^R w | where w is a word formed by 0's and 1's}

c) C = {w ∈ {a, b}∗| w is a palindrome and has the same number of a's and b's}.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Desscription

1. Go to the right most and turn right on a blank symbol
2. Turn one 0 as a blank symbol if it is not there go to step 4
3. Move left on all 0s
   i) Change 1 as x and move to the left most, turn right on a blank
   ii) Change 0 as a blank and move right till you encounter an x and turn left
   iii) repeat step i) if there is a 1, else go right and change all x's to 1s and go to step 1
4. Move left on all 1s and if a blank comes up, accept

Example run: 00000011100
00000011100
0000001110
0000011x0
00001xx0
000xxx0
0001110
000111
0011x
01xx
xxx
111
ACCEPT

--------------------------------------
Multiple questions are posted. Answered one. Please post one at a time. Policy of Chegg.

Add a comment
Know the answer?
Add Answer to:
1. Introduce a Turing machine to decide the languages to follow. You must algorithmic description, but...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Introduce a Turing machine to decide the languages to follow. You must Algorithmic description, but with...

    Introduce a Turing machine to decide the languages to follow. You must Algorithmic description, but with a sufficient level of detail. You can use the variants of the original model of the Turing machine. {w w^R w | where w is a word formed by 0's and 1's} {w ∈ {a, b}∗| w is a palindrome and has the same number of a's and b's}. Please describe which variant of Turing whether it is with a tape or multi tape....

  • Give context-free grammars that generate the following languages (E = {a,b}). (a) (1 point) L1 =...

    Give context-free grammars that generate the following languages (E = {a,b}). (a) (1 point) L1 = {w | W contains at least two b's} (b) (1 point) L2 = {w/w = wf, w is a palindrome} (c) (1 point) L3 = {w w contains less a's than b's}. (d) (1 point) LA = {w w = ayn+1, n > 2} (e) (1 points) Ls = {w w = a";2(m+n)cm, m, n >0}; (S = {a,b,c}).

  • (a) Give a high level description of a single-tape deterministic Turing machine that decides the language...

    (a) Give a high level description of a single-tape deterministic Turing machine that decides the language L = {w#x#y | w ∈ {0, 1} ∗ , x ∈ {0, 1} ∗ , y ∈ {0, 1} ∗ , and |w| > |x| > |y|}, where the input alphabet is Σ = {0, 1}. (b) What is the running time (order notation) of your Turing machine? Justify your answer.

  • Construct context-free grammars that generate each of these languages: A. tw E 10, 1 l w...

    Construct context-free grammars that generate each of these languages: A. tw E 10, 1 l w contains at least three 1s B. Hw E 10, 1 the length of w is odd and the middle symbol is 0 C. f0, 1 L fx l x xR (x is not a palindrome) m n. F. w E ta, b)* w has twice as many b's as a s G. a b ch 1, J, k20, and 1 or i k

  • For each of the following problems, decide whether the set A is regular. If the set is regular, g...

    For each of the following problems, decide whether the set A is regular. If the set is regular, give a FSM that recognizes it; if the set is not regular, prove it using the pumping lemma. 1. A={s11s | s∈{0}∗} Thus the strings 00011000 and 000001100000 are elements of A, but 00100 and 001100000 are not. 2. A={r11s | r,s∈{0}∗} Thus the strings 001100 and 0110000 are elements of A, but 00111100 and 000010 are not. 3. A={w∈{a,b}∗ | w...

  • s S s 1 S S 2. (10 Points) We wish to construct a Turing Machine...

    s S s 1 S S 2. (10 Points) We wish to construct a Turing Machine M (Q,E,F, 8, 8, qaccept, Greject) that decides the language L = {W € {0,1}* ||w| > 2 and w ends in 00 or in 01}. We choose Q = {s, 41, 42, Gaccept, Greject}, { = {0,1}*, T = EU{-} and the transitions: 0 0 R 1 R 91 L 0 L 42 L 91 Greject R 42 0 Paccept 0 R 92...

  • Use the following information to answer questions 9 and 10. You must decide between the following...

    Use the following information to answer questions 9 and 10. You must decide between the following two potential altermatives using Rate of Return Analysis. MARK-12%, Alternative #1 25,000 Alternative W 40,000 Initial C Benefits O&M Costs Salvage Life (in years) $11,000 per year $10,000 per year $3,000 per year S2,000 per year $5,000 5,000 16.27% 9. The ROR for Alternative w2 is closest to... a) 13.25% b) 32.5% C) 1 1.81% d)20% e) 25% 012.47% g) 6.34% h) 18.77% i)...

  • Question 2 (30%) Matching the following statement with the BEST accounting term: Description (1) A detailed...

    Question 2 (30%) Matching the following statement with the BEST accounting term: Description (1) A detailed inventory record is maintained, recording each purchase and sale during the accounting period. (2) Systematic allocation of the cost of an asset to expense during the period of its useful life. (3) An increase in equity resulting from profitable operation. 4) A liability account used to record the obligation to provide future services when cash has been received before revenues have been earned. Term...

  • Item 1 In the case below, the original source material is given along with a sample...

    Item 1 In the case below, the original source material is given along with a sample of student work. Determine the type of plagiarism by clicking the appropriate radio button. Original Source Material Student Version Suppose you study a group of successful companies and you find that they emphasize customer focus, or quality improvement, or empowerment; how do you know that you haven't merely discovered the management practice equivalent of having buildings? How do you know that you've discovered something...

  • 1 Overview and Background Many of the assignments in this course will introduce you to topics in ...

    1 Overview and Background Many of the assignments in this course will introduce you to topics in computational biology. You do not need to know anything about biology to do these assignments other than what is contained in the description itself. The objective of each assignment is for you to acquire certain particular skills or knowledge, and the choice of topic is independent of that objective. Sometimes the topics will be related to computational problems in biology, chemistry, or physics,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT