# Turing machine | Computer Science homework help

## No Programming, just draw the machine’s states out like in the notes and my video example for the Quiz Review

### Machine one

Construct a Turing Machine (all on paper, no programming/source code needed) that computes the function

f(n) = n mod 3

In other words, for you non-math majors: sd
It will halt successfully if the number is divisible by 3.
11 (good)
1001 (good)

It will go to a reject state with bad input.
There’s a pattern you can figure out to set up your states.

### Machine two

Construct a machine that accepts if the input string {S = x^n y^n } and rejects anything else.
In other words it accepts if there are a certain number of x’s followed by the same amount of y’s.
xxyy (good)
xxxxxyyyyy (good)
You can write other symbols if you would like, but the only accept strings are x’s followed by same amount of y’s.

(550 words)

Approximate price: \$22

## How it Works

1

It only takes a couple of minutes to fill in your details, select the type of paper you need (essay, term paper, etc.), give us all necessary information regarding your assignment.

2

Once we receive your request, one of our customer support representatives will contact you within 24 hours with more specific information about how much it'll cost for this particular project.

3

After receiving payment confirmation via PayPal or credit card – we begin working on your detailed outline, which is based on the requirements given by yourself upon ordering.

4

Once approved, your order is complete and will be emailed directly to the email address provided before payment was made!