Created: Fri 04 Feb 2011
Last modified:
Assigned: Fri 02-04-11
Due: Fri 02-11-11
Instructions
- Please review the grading policy outlined in the course information page.
- On the first page of your solution write-up, you must make explicit which problems are to be graded for "regular credit", which problems are to be graded for "extra credit", and which problems you did not attempt. Please use a table something like the following
Problem |
01 |
02 |
03 |
04 |
05 |
06 |
07 |
08 |
09 |
... |
Credit |
RC |
RC |
RC |
EC |
RC |
RC |
NA |
RC |
RC |
... |
where "RC" is "regular credit", "EC" is "extra credit", and "NA" is "not applicable" (not attempted). Failure to do so will result in an arbitrary set of problems being graded for regular credit, no problems being graded for extra credit, and a five percent penalty assessment.
- You must also write down with whom you worked on the assignment. If this changes from problem to problem, then you should write down this information separately with each problem.
Problems
Required: 5 of the following 6 problems
Points: 20 pts per problem
- Given any two sets A and B, the set difference A-B is constructed by removing the elements in B from A. For example, if A = {1, 2, 3, 4, 5} and B = {2, 4, 6, 8}, then A-B = {1, 3, 5}. In mathematical terms,
![set difference symbol](hw.04.img/set_difference.jpg)
Let R be any regular language and let N be any non-regular language. (Note: R is not the set of regular languages; it is a variable which represents any particular regular language. Similarly for N.)
For each of the following assertions, either prove that the assertion is true or demonstrate that it is false by providing a counterexample.
- R-N is always regular.
- N-R is always non-regular.
- Prove that the following languages are non-regular:
- the language defined in Exercise 1.29 part (b) and
- {w : every prefix of w has at least as many 0s as 1s}.
- Prove that the following languages are non-regular:
- the language defined in Problem 1.46 part (c) and
- {w : w contains a prime number of 0s and a prime number of 1s}.
- Problems 1.46 part (d) and 1.49 part (b).
- Prove that the following languages are non-regular:
- {0m1n0m+n : m >= 1 and n >= 1} and
- {0i1j0k : j = max{i,k}}.
- Prove that the following languages are non-regular:
- the language defined in Problem 1.35 and
- {w : w contains twice as many 0s as 1s}.
Switch to:
Harriet Fell
College of Computer Science, Northeastern University
360 Huntington Avenue #202WVH
Boston, MA 02115
Phone: (617) 373-2198 / Fax: (617) 373-5121
Last Updated:
The URL for this document is: http://www.ccs.neu.edu/home/fell/CS3800/Homeworks/hw.04.html