Chris Pollett > Old Classes >
CS154

( Print View )

Student Corner:
  [Grades Sec1]

  [Submit Sec1]

  [Class Sign Up Sec1]

  [
Lecture Notes]
  [Discussion Board]

Course Info:
  [Texts & Links]
  [Topics/Outcomes]
  [Outcomes Matrix]
  [Grading]
  [HW/Quiz Info]
  [Exam Info]
  [Regrades]
  [Honesty]
  [Additional Policies]
  [Announcements]

HW Assignments:
  [Hw1]  [Hw2]  [Hw3]
  [Hw4]  [Hw5]  [Quizzes]

Practice Exams:
  [Mid]  [Final]

                           












HW2 Solutions Page

For this homework, I asked the grader to send me some of the better student solutions to pick from. Of the three best homeworks he sent me I chose what I thought was the best. Each student that had their homework chosen will receive 1 bonus point after curving for having their homework selected. The only changes I made were to convert the names listed in the homework files to SJSU student. Let me comment that for the regular expression for urls, I had intended that the url could either have the scheme http or it have the scheme https. For some reason most assignments only handle the http case even though a simple union with the other case would have given you a regular expression for both cases. As I stated in class, it is legal to, after each problem, come up with a simplified variant of the prior problem to serve as a starting point. If you don't do this, bad things might happen like JFLAP grinding to a halt, black holes swallowing the Starship Enterprise, etc.

[HW2 Project-ZIP]

Return to homework page.