Question

I need help on this exercise. It is for a theoretical computer science class, so the proof has to be punctual and precise, following a mathematical rigour. Let's denote by M = (Q, Sigma , Gamma , delta , ⊢, , s, a, r) a generic Turing machine. For each language in the following list, determine whether it is decidable or undecidable, providing an appropriate demonstration. A = {M : M has at least 1234 states} B = {M : M executes at least 1234 steps given the input 0} C = {M : M executes at least 1234 steps for some input x} D = {M : M executes at least 1234 steps for every input x} E = {M : there exists an input for which M moves 1234 cells to the right of the start cell of the tape ⊢} F = {M : M accepts the empty string (i.e., accepts if the tape contains only )} G = {M : M accepts some string} H = {M : M accepts a finite set of inputs} I = {M : M accepts exactly the set of prime numbers} J = {M : there exists an input for which M prints a certain symbol gamma in Gamma } K = {M : there exists an input for which M enters a certain state q in Q} Pie = {k : in the decimal expansion of pi there are at least k consecutive zeros}"

          I need help on this exercise. It is for a theoretical computer science class, so the proof has to be punctual and precise, following a mathematical rigour. Let's denote by M = (Q, Sigma , Gamma , delta , ⊢, , s, a, r) a generic Turing machine. For each language in the following list, determine whether it is decidable or undecidable, providing an appropriate demonstration.
A = {M : M has at least 1234 states}
B = {M : M executes at least 1234 steps given the input 0}
C = {M : M executes at least 1234 steps for some input x}
D = {M : M executes at least 1234 steps for every input x}
E = {M : there exists an input for which M moves 1234 cells to the right of the start cell of the tape ⊢}
F = {M : M accepts the empty string (i.e., accepts if the tape contains only )}
G = {M : M accepts some string}
H = {M : M accepts a finite set of inputs}
I = {M : M accepts exactly the set of prime numbers}
J = {M : there exists an input for which M prints a certain symbol gamma   in  Gamma }
K = {M : there exists an input for which M enters a certain state q  in  Q}
Pie = {k : in the decimal expansion of pi  there are at least k consecutive zeros}"
        
Show more…

Added by Julie G.

Computer Science and Information Technology
Computer Science and Information Technology
Trishna Knowledge Systems 2018 Edition
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
I need help on this exercise. It is for a theoretical computer science class, so the proof has to be punctual and precise, following a mathematical rigour. Let's denote by M = (Q, Sigma , Gamma , delta , ⊢, , s, a, r) a generic Turing machine. For each language in the following list, determine whether it is decidable or undecidable, providing an appropriate demonstration. A = {M : M has at least 1234 states} B = {M : M executes at least 1234 steps given the input 0} C = {M : M executes at least 1234 steps for some input x} D = {M : M executes at least 1234 steps for every input x} E = {M : there exists an input for which M moves 1234 cells to the right of the start cell of the tape ⊢} F = {M : M accepts the empty string (i.e., accepts if the tape contains only )} G = {M : M accepts some string} H = {M : M accepts a finite set of inputs} I = {M : M accepts exactly the set of prime numbers} J = {M : there exists an input for which M prints a certain symbol gamma in Gamma } K = {M : there exists an input for which M enters a certain state q in Q} Pie = {k : in the decimal expansion of pi there are at least k consecutive zeros}"
Close icon
Play audio
Feedback
Powered by NumerAI
David Collins Jennifer Stoner
Ivan Kochetkov verified

Chris Trentman and 88 other subject AP CS educators are ready to help you.

Ask a new question

*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Key Concept
Premium Feature
Explore the core concept behind this problem.
Play button
Key Concept
Premium Feature
Explore the core concept behind this problem.
Your browser does not support the video tag.

*

Recommended Videos

-
in-exercises-58-62-we-introduce-a-technique-for-constructing-a-deterministic-finite-state-machine--4

In Exercises $58-62$ we introduce a technique for constructing a deterministic finite-state machine equivalent to a given deterministic finite-state machine with the least number of states possible. Suppose that $M=\left(S, I, f, s_{0}, F\right)$ is a finite-state automaton and that $k$ is a non negative integer. Let $R_{k}$ be the relation on the set $S$ of states of $M$ such that $s R_{k} t$ if and only if for every input string $x$ with $l(x) \leq k$ [where $l(x)$ is the length of $x,$ as usual $], f(s, x)$ and $f(t, x)$ are both final states or both not final states. Furthermore, let $R_{*}$ be the relation on the set of states of $M$ such that $s R_{*} t$ if and only if for every input string $x,$ regardless of length, $f(s, x)$ and $f(t, x)$ are both final states or both not final states. a) Show that if $M$ is a finite-state automaton, then the quotient automaton $\overline{M}$ recognizes the same language as $M .$ b) Show that if $M$ is a finite-state automaton with the property that for every state $s$ of $M$ there is a string $x \in I^{*}$ such that $f\left(s_{0}, x\right)=s,$ then the quotient automaton $\overline{M}$ has the minimum number of states of any finite-state automaton equivalent to $M .$

Discrete Mathematics and its Applications

Modeling Computation

Finite-State Machines with No Output

problem-3-busy-beaver-turing-machines-in-this-problem-we-consider-a-class-of-turing-machines-with-n-states-whose-sole-objective-is-to-write-as-many1s-onto-an-empty-all-0-tape-as-possible-and-94473

Problem 3: Busy Beaver Turing Machines In this problem we consider a class of Turing Machines with n-states whose sole objective is to write as many '1's onto an empty, all '0', tape as possible and then halt. The machine that writes the highest number of '1's is called the n-state "Busy Beaver". Each Busy-beaver Turing machine has n-states labeled {S1, S2, ... Sn, H}, it machine begins in state S1 and halts by transitioning to the special state H. Each cell of the Turing machine's tape contains either a '1' or a '0', and each move of the Turing machine is its current state and the value of the tape cell under the tape head. A move consists of first modifying the contents of the current tape cell under the head of the Turing machine, moving the tape either left, L, or right, R, followed by a transition to the next state. The following truth table specifies the behavior of a 3-state Busy Beaver. Current State | Tape Value | Write Tape | Move Tape | Next State S1 | 0 | 1 | L | S3 S1 | 1 | 1 | R | S2 S2 | 0 | 1 | R | S3 S2 | 1 | 1 | R | H S3 | 0 | 1 | R | S1 S3 | 1 | 1 | L | S3 A. How large of a ROM is required to implement an n-state Busy Beaver that adheres to the given specification (give the number of words and the bits-per-word)? Ignoring the possibility of equivalent machines, in general how many n-state Turing machines are there? B. What will the 3-state Busy Beaver given above leave on the tape when it halts? Show the result of each step by indicating the current state and the contents of the tape with the head position indicated by square brackets as shown below for the first two states. S1: ... 0 0 0 0 0 0 0 0 0 0[0]0 0 0 0 0 0 0 0 0 0 ... S3: ... 0 0 0 0 0 0 0 0 0[0]1 0 0 0 0 0 0 0 0 0 0 ... C. Design a 2-state Turing Machine that writes as many "1"s as possible onto an all zero (in both directions) tape and then halts. Hint: you can write at most four "1"s. Current State | Tape Value | Write Tape | Move Tape | Next State S1 | 0 | S1 | 1 | S2 | 0 | S2 | 1 | D. Suppose that we choose to ignore the value of the cell under the read head, thus turning our Turing machine into a finite-state machine. In this case, how many "1"s can we write with an FSM that has n states?

Akash M.

solve-this-np-completeness-problem-with-proof-consider-the-following-problem-called-time-limited-scheduling-tls-the-input-is-a-list-of-n-events-each-event-i-has-an-earliest-start-time-s-a-la-18243

Consider the following problem, called Time-Limited Scheduling (TLS). The input is a list of n events. Each event i has an earliest start time si, a latest finishing time fi, and a length ℓi. Each event must run entirely between si and fi, and no two events may overlap. The problem is to determine whether or not it is possible to schedule all n events while respecting the time constraints of each. (a) (10 points) Professor Wriothesley has given the following reduction from the (known NP-complete) PARTITION problem to show that TLS is NP-hard. Recall from recitation that the input to PARTITION is a set X = {x1 . . . xn} of non-negative integers, and we wish to know whether X can be divided into subsets S and X − S such that ∑x∈S x = ∑x∈X−S x. Given an input X to PARTITION, let B = ∑ni=1 xi. Create a list of n + 1 events as follows. For all events 1 ≤ i ≤ n + 1, set si = 0 and fi = B + 1. For 1 ≤ i ≤ n, set ℓi = xi; finally, set ℓn+1 = 1. The idea here is that, if X can be partitioned, then TLS can schedule events 1 . . . n in two groups of equal size, separated by event n + 1. What is wrong with the professor’s reduction? (b) (40 points) Prove that TLS is not just NP-hard but is in fact NP-complete. Give a corrected NP-hardness proof as part of your answer.

Akash M.


*

Recommended Textbooks

-
Computer Science and Information Technology

Computer Science and Information Technology

Trishna Knowledge Systems 2018 Edition
achievement 1,492 solutions
Introduction to Programming Using Python

Introduction to Programming Using Python

Y. Daniel Liang 1st Edition
achievement 1,133 solutions
Computer Science - An Overview

Computer Science - An Overview

Glenn Brookshear, Dennis Brylow 12th Edition
achievement 1,732 solutions

*

Transcript

-
00:04 We're asked to prove that m and m bar accept the same language in part a.
00:14 So, first, let x be a string accepted by the machine m, and let sx be the state where the string ends in x.
01:06 The string x ends in machine m.
01:11 Now, we know that x is accepted by m, so it follows that sx is a final state of m.
01:26 And by the construction of m bar, it follows that x will end at the state s x, the equivalence class containing s x, so it's the r star equivalence class containing s x in m bar.
02:15 And we have that the r star equivalence class of s x is a final state since all states in the r star equivalence class of s x are final states now this is because s x which is in the equivalence class r star containing x is a final state so it follows all the other states in r star of s x by previous problem are all final or non -final states so it follows that the r -star equivalence class containing sx is a final state in m -bar.
03:56 This implies that m and m -bar accept the same language.
04:30 Now in part b, we're asked to prove that if the machine m has the property f of s 0 x equals s for all states s and some string in i -star, then m -bar, the machine has the minimum number of states of all finite state automaton equivalent to m.
05:00 So to prove this statement, suppose that m has the property f of s not x equals s for all states s in m, and sum string x in i star.
06:38 I'm sorry, this should be written as m as the property that for all states s and s, in m, there is an x in i star such that this statement, f of s not x equals s, is true...
Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Join the community

18,000,000+

Students on Numerade


Trusted by students at 8,000+ universities

Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever