Questions

Homework assignments must be done individually. Collaboration on homework assignments is not allowed.

Question 1:

Draw a deterministic finite-state machine that accepts the language of usernames defined as follows:

A username

Label the edges of your FSM with the characters _ and . (or use the word dot) and the words letter and digit.

Question 2:

Write a regular expression for the language of identifiers defined as follows:

An identifier

You may use letter to mean any letter.

Handing in

Homework may be submitted electronically or on paper.

To hand in your homework electronically, follow the handin procedure to submit by 2:30 on Tuesday, September 16th, a file containing your answers in one of the following formats:

To hand in your homework on paper,

Your paper submission can be turned in at lecture or put in Dillon Skeehan's mailbox on the 5th floor by 2:30pm on Tuesday, September 16th.