/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Free solutions & answers for Discrete Mathematics and its Applications Chapter 13 - (Page 2) [step by step] | 91Ó°ÊÓ

91Ó°ÊÓ

Problem 9

Construct 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 0s and does not change any of the other symbols on the tape.

Problem 10

Construct a Turing machine with tape symbols 0, 1, and B that, given a bit string as input, replaces the first two consecutive 1s on the tape with 0s and does not change any of the other symbols on the tape.

Problem 11

Construct a Turing machine that recognizes the set of all bit strings that end with a 0.

Problem 13

Construct a Turing machine that recognizes the set of all bit strings that end with a 0.

Problem 14

Construct a finite-state machine for entering a security code into an automatic teller machine (ATM) that implements these rules: A user enters a string of four digits, one digit at a time. If the user enters the correct four digits of the password, the ATM displays a welcome screen. When the user enters an incorrect string of four digits, the ATM displays a screen that informs the user that an incorrect password was entered. If a user enters the incorrect password three times, the account is locked.

Problem 19

Construct a finite-state machine that determines whether the word computer has been read as the last eight characters in the input read so far, where the input can be any string of English letters.

Problem 19

Construct a Turing machine that computes the function \(f(n)=n-3\) if \(n \geq 3\) and \(f(n)=0\) for \(n=0,1,2\) for all nonnegative integers \(n .\)

Problem 20

Construct a Turing machine that computes the function \(f(n)=n\) mod 3 for every nonnegative integer \(n .\)

Problem 20

A palindrome is a string that reads the same backward as it does forward, that is, a string \(w,\) where \(w=w^{R}\) , where \(w^{R}\) is the reversal of the string \(w\) . Find a context-free grammar that generates the set of all palindromes over the alphabet \(\\{0,1\\}\) .

Problem 20

Show that every nondeterministic finite-state automaton is equivalent to another such automaton that has the property that its starting state is never revisited.

Access millions of textbook solutions in one place

  • Access over 3 million high quality textbook solutions
  • Access our popular flashcard, quiz, mock-exam and notes features
  • Access our smart AI features to upgrade your learning
Access millions of textbook solutions in one place

Recommended explanations on Math Textbooks