|     Final Exam (Fri., May 7, 9:30-11:20)     |     25%     |
|     1st Segment Test (Mon., Feb. 9)     |     15%     |
|     2nd Segment Test (Wed., Mar. 10)     |     15%     |
|     3nd Segment Test (Fri., Apr. 23)     |     15%     |
|     Projects, HW, quizzes, participation     |     30%     |
|     Chapter 0     |     Exercises 0.1 to 0.11     |     Due: 1/23     |
|     Chapter 1     |     Exercises 1.1 to 1.8, 1.10, 1.12-1.15     |     Due: 2/4     |
|     Chapter 1     |     Exercises 1.13 to 1.17     |     Due: 3/3     |
|     Chapter 2     |     Exercises 1, 3, 4, 6, 8, 9     |     Due: 3/10     |
|     Chapter 3     |     Exercises 1, 2, 3, 5, 7, 8     |     Due: 4/7     |
|     Chapter 4     |     Exercises 1, 2, 3, 4, 5     |     Due: 4/14     |
|     Chapter 7     |     Exercises 1, 6, 7, 8, 9, 10, 11     |     Not collected    |
{ w#x | wR is a substring of x, and x is in {0,1}* } .
Notice that the set of terminal symbols is
{0,1,#}.
Here is a possible solution:
S ---> T | T0 | T1
T ---> U | 0T0 | 1T1
U ---> # | U0 | U1
(Note: I got tired of coloring coding from here.)
First notice what you can derive from U: all strings of the form #(0|1)*.
Then notice what you can derive from T: all strings of the form
w#(0|1)*wR ,
where w is of the form (0|1)*, i.e. w is in the set {0,1}*.
Finally, notice what you can derive from S: all strings of the form
w#(0|1)*wR(0|1)*. This is what we want.
S ---> T | U
T ---> X | Tc
X ---> epsilon | aXb
U ---> Y | aU
Y ---> epsilon | bYc
Yes, it is ambiguous. I can easily find two deifferent left-derivations
of the string abc.
String[][] regExp == new String[n][n];
string **regExp = new string*[n];
for (i = 0; i < n; i++) regExp[i] = new string[n];
3 2 3 8
1 2 1
1 2 2
2 1 0
2 3 2
2 3 3
3 1 1
3 1 0
3 2 1
You don't need to implement saveRegExpr and
restoreRegExpr if they don't help. However, do implement
displayRegExpr. Also, turn in a printout that shows what
happens when you take the above example, and eliminate the states
one at a time and call displayRegExpr before any eliminations
and after each elimination.
DRAKE UNIVERSITY CONFERENCE ON UNDERGRADUATE RESEARCH IN THE SCIENCES Drake University science and mathematics students and their faculty mentors are making significant contributions in many different fields of scientific inquiry. To celebrate this, a conference showcasing the results of scientific research at Drake will be held on Friday April 9 in Olmsted Parents Hall on the Drake University Campus. The conference will allow students and faculty to communicate their results to other researchers in the Drake community. This is part of a broader effort to develop a culture of research that will foster opportunities for students and faculty to engage in new and more ambitious projects. The conference will feature student oral presentations (15 minutes each) and student and faculty poster presentations on current research projects. There will also be a chance for students to show off their knowledge of science and mathematics in the form of a quiz-bowl style competition. A schedule for the meeting is given below: 8:00 - 8:30 Poster Set-up 8:15 - 8:45 Registration 8:45 Welcome 8:55 Dean John Burney, Arts and Sciences 9:15 Oral Presentation: Luke Freml 9:30 Oral Presentation: Drew Fustin 9:45 Oral Presentation: Brian Rinner 10:00 Oral Presentation: Andy Windsperger 10:15-11:30 Poster Session 1* 11:30-12:15 Lunch (provided for authors) 12:15-1:00 Poster Session 2* 1:00 Oral Presentation: Eric Gorman 1:15 Oral Presentation: Kavitha Pundi 1:30 Oral Presentation: Elizabeth Carr 1:45 Oral Presentation: Nathan Walters 2:00 - 2:15 Break 2:15 - 2:45 Science/Math Quiz Bowl 2:45 - 2:55 Awards and Closing Remarks
We let L = { < M,s > | M accepts s }
where M is a T.M. and s is an input string for M, and where
< M,s > is the string that encodes the pair (M,s). We want to
show that the complement of L is NOT Turing recognizable.
Suppose it were. Let M1 be a T.M. whose language is L.
When this gets a string, it checks it to see if it is the
encoding of a suitable pair (M,s) (i.e. is "syntactically correct").
If it isn't then M1 will accept its input.
But if it is the encoding of such a pair, then M1
will accept this input if and only if M does NOT accept s.
(Don't really need the M2 I introduced, so I'll skip it.)
Now construct M3 as follows. Given any input string,
M3 checks the input to see if it is the encoding < M >
of some T.M. M. If so, then it simulates the behavior of
M1 with < M , < M > > as input. If M1
would accept this input, then so will M3. Otherwise,
M3 does not accept its input (but it might not reject
it either).
What happens if you let M3 execute using < M3 >
as the input string? It will simulate M1 executing with
input string < M3 , < M3 > >. This will
accept if and only if M3 does not accept the string
< M3 >. We end up concluding that M3
accepts < M3 > if and only if M3
does not accept < M3 >.
This is a contradiction. So the complement of L is not Turing
recognizable. So L is not Turing decidable.