CS
Homework7

# Homework7 - Homework 7 CS 321 Due Date 2 PM Note The...

• Notes
• 1

This preview shows page 1. Sign up to view the full content.

Homework 7 CS 321 Due Date: 12/3/10, 2 PM Note: The homeworks should be your own work. You can discuss the homeworks orally with your peers, however. You should not use any web sources for this assignment. Please see the TA and the instructor during the office hours to get more help. ¡b¿ Important: ¡/b¿ It is important to summarize how the Turing Machines work in English comments because otherwise it is difficult to understand them. It is a good idea to start with an algorithm description in English. 1. Construct a Turing Machine (TM) that will accept the following languages.
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: L = a n b m a n + m : n ≥ ,m ≥ 1 (b) [9.1.8] L = { ww : w ∈ { a,b } + } . 2. [9.1.11(b)] Construct a Turing Machine (TM) that computes the following function where x and y are represented in unary. f ( x,y ) = x-y if x > y and 0 otherwise. 3. Based on [9.2.3.d] Give pseudocode for a Turing machine that computes f ( n ) = n !, where n is represented in unary. 4. Show that the following two problems on Turing Machines are undecidable. (a) [12.2.2.(a)] L ( M ) contains any string of length ﬁve. (b) [12.2.2.(b)] L ( M ) is regular. 1...
View Full Document

• Fall '08
• Staff
• Halting problem, Turing Machines

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern