1. Design a Turing machine which recognizes the language consisting of all strings of Os whose...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Design a Turing machine which recognizes the language consisting of all strings of Os whose length is a power of 2. i.e., it decides the language L = {0²" | n ≥0}. Turing machine which recognizes the language 2. Design a Turing L = {w#w|wE {0,1}*}. 3. Design a Turing machine L = {a'b'ck |ix j = k and i, j, k ≥ 1}. which recognizes the language 4. Design a deterministic Turing machine (DTM) to accept the language L = {a'b'c' |iz0}. 5. Define a DTMs to accept the following languages. Specify the 5-tuple in each. (Use multi-tape machine if necessary). (a) {xxx {0,1}} (b) {xx(0,1) and x = x^} 6. Design DTMs to compute the following functions. (Input number can be in unary, i.e., n is encoded as 1"). (a) Successor function: f:N→ N where f(n) = n +1. (b) f: Nx N N such that f(a, b) = [a/b] (c) f:N → N such that f(n) = [log, n]. 7. Define Nondeterministic Turing machines to accept the following languages. (a) {xx x= {0,1}} (b) (xx(0,1) and x = x²} 8. Define a multiheaded Turing machine, a model in which each tape can have k tape heads. Prove that a Deterministic Turing Machine (DTM) with one work tape can simulate a two-headed Turing machine. 9. Design a Turing machine which computes the function f(n,n₂) = min(n₁, n₂) for all non-negative integers n, and n₂. 10. Design a Turing machine which computes the function f(n) = 3 if n ≥ 5 and f(n) = 0 if n =0, 1, 2, 3 or 4. 11. Construct a Turing machine which computes the function f(n) = n mod 5. 12. Design a Turing machine which recognizes the set (0"1"2" In ≥0). 13. Design a TM that recognizes the set of all bit strings that contain an even number of 15. 14. Construct a TM that recognizes the set of all bit strings which end with a 0. 15. Design a Turing machine with tape symbols 0, 1 and B that given a bit string as input, replaces all but the leftmost 1 on the tape with Os and does not change any of the other symbols on the tape. 16. Design a TM with tape symbols 0, 1 and B that replaces the first 0 with a 1 and does not change any of the other symbols on the tape. 17. Design a TM that recognizes the set (02"1" |nz0}. 18. Show that the recursiveness problem of Type-0 grammars is unsolvable. 19. Show that the problem of determining whether or not a TM over {0,1} will print ever the symbol 1, with a given tape configuration is unsolvable. 20. Show that there exists a TM for which the halting problem is unsolvable. 1. Design a Turing machine which recognizes the language consisting of all strings of Os whose length is a power of 2. i.e., it decides the language L = {0²" | n ≥0}. Turing machine which recognizes the language 2. Design a Turing L = {w#w|wE {0,1}*}. 3. Design a Turing machine L = {a'b'ck |ix j = k and i, j, k ≥ 1}. which recognizes the language 4. Design a deterministic Turing machine (DTM) to accept the language L = {a'b'c' |iz0}. 5. Define a DTMs to accept the following languages. Specify the 5-tuple in each. (Use multi-tape machine if necessary). (a) {xxx {0,1}} (b) {xx(0,1) and x = x^} 6. Design DTMs to compute the following functions. (Input number can be in unary, i.e., n is encoded as 1"). (a) Successor function: f:N→ N where f(n) = n +1. (b) f: Nx N N such that f(a, b) = [a/b] (c) f:N → N such that f(n) = [log, n]. 7. Define Nondeterministic Turing machines to accept the following languages. (a) {xx x= {0,1}} (b) (xx(0,1) and x = x²} 8. Define a multiheaded Turing machine, a model in which each tape can have k tape heads. Prove that a Deterministic Turing Machine (DTM) with one work tape can simulate a two-headed Turing machine. 9. Design a Turing machine which computes the function f(n,n₂) = min(n₁, n₂) for all non-negative integers n, and n₂. 10. Design a Turing machine which computes the function f(n) = 3 if n ≥ 5 and f(n) = 0 if n =0, 1, 2, 3 or 4. 11. Construct a Turing machine which computes the function f(n) = n mod 5. 12. Design a Turing machine which recognizes the set (0"1"2" In ≥0). 13. Design a TM that recognizes the set of all bit strings that contain an even number of 15. 14. Construct a TM that recognizes the set of all bit strings which end with a 0. 15. Design a Turing machine with tape symbols 0, 1 and B that given a bit string as input, replaces all but the leftmost 1 on the tape with Os and does not change any of the other symbols on the tape. 16. Design a TM with tape symbols 0, 1 and B that replaces the first 0 with a 1 and does not change any of the other symbols on the tape. 17. Design a TM that recognizes the set (02"1" |nz0}. 18. Show that the recursiveness problem of Type-0 grammars is unsolvable. 19. Show that the problem of determining whether or not a TM over {0,1} will print ever the symbol 1, with a given tape configuration is unsolvable. 20. Show that there exists a TM for which the halting problem is unsolvable.
Expert Answer:
Answer rating: 100% (QA)
1 Design for a Turing machine that recognizes the language L 0 n 0 The tape alphabet is 0 1 where 0 represents a blank symbol and 1 represents the input symbol The initial state is q0 and the only acc... View the full answer
Related Book For
Posted Date:
Students also viewed these organizational behavior questions
-
Consider the language consisting of all strings of properly balanced parentheses and brackets. (a) Give LL(1) and SLR(1) grammars for this language. (b) Give the corresponding LL(1) and SLR(1)...
-
Use Exercise 29 to show that the language consisting of all bit strings that are palindromes (that is, strings that equal their own reversals) is not regular.
-
Write a grammar for the language consisting of strings built only of the letters a and b. The strings may have any number of these letters, but the letter combinations bab must be in each string...
-
Trang had a rental home that received a notice of noncompliance because of her failure to maintain repairs. She received the notice on September 1, 2022 and did not complete any of the repairs until...
-
JLB Corporation is attempting to determine whether to lease or purchase research equipment. The firm is in the 40% tax bracket, and its after tax cost of debt is currently 8%. The terms of the lease...
-
In Problem, find f(x) and simplify. f(x) = (5x2 - 3)6
-
Continuation of P10-35B: cash budgets (Learning Objective 3) Refer to P10-35B. Go Sports' sales are \(50 \%\) cash and \(50 \%\) credit (use sales on the last two lines of P10-35B). Credit sales are...
-
Terence Breezeway, the CEO of Prairie Home Stores, wondered what retirement would be like. It was almost 20 years to the day since his uncle Jacob Breezeway, Prairie Home's founder, had asked him to...
-
please show the calculations the following The following information was extracted from the financial statements of Thabo CC for the financial year ended 2 8 February 2 0 1 0 : Statement of profit or...
-
1. a. How much did the materials cost per unit change between June and July? b. How much did the conversion cost per unit change between June and July? 2. Which is the optimal choice of material and...
-
Amortization You have just taken out a $24,000 car loan with a 8% APR, compounded monthly. The loan is for five years. When you make your first payment in one month, how much of the payment will go...
-
How News Liftsor SinksShares around the WorldThe growth of computerized trading has closely connected the stock markets in all the developed nations and many developing nations. Traders react quickly...
-
A company began January with 9,000 units of its principal product. The cost of each unit is $4. Inventory transactions for the month of January are as follows: Date of Purchase Units January 10 6,000...
-
Mary carries on business as a sole proprietor that generated $100,000 in net accounting income. Included in this amount are: $7,000 of amortization expense; $4,000 for bad debt expense; $112,000 cost...
-
describe strengths and opportunities about "strategies for competing in international markets" and "ethics, corporate social responsibility, environmental sustainability and strategy" in terms of...
-
XYZ, Inc. reported $20 million in operating current assets, $25 million in net fixed assets, and $6 million in operating current liabilities. What are the inventories and fixed assets for XYZ, Inc.,...
-
2 Suppose that a linear system has fewer equations than variables What can you determine about the solution set of the system
-
Draw the major product for each of the following reactions: (a) (b) (c) 1) 9-BBN 2) H2O2, NaOH 1) Disiamylborane 2) H20, NaOH
-
In Example 8.52 we noted that reference counts can be used to reclaim tombstones, failing only when the programmer neglects to manually delete the object to which a tombstone refers. Explain how to...
-
In the previous exercise you may have noticed that the dining philosophers are prone to deadlock. One has to worry about the possibility that all five of them will pick up their right-hand forks...
-
In all three of our case studies, stack-based arguments were placed into the argument build area in reverse order, with the lowest-numbered argument at the top. Explain why this is important.
-
Estimation of mean by sampling Jupiter Corporation collects daily information on the number of differential assemblies produced by its employees. The following data have been collected during the...
-
Sample size and estimation error The management of Carelli Farms has taken a random sample of the number of bushels of corn meal used weekly in its cattle feed lot. The sample of 30 items has a mean...
-
Sample size needed to estimate mean Refer to the data in Problem 22-12 for Jupiter Corporation's production of differential assemblies. Management wants to estimate the mean of the population by...
Study smarter with the SolutionInn App