CS 330: Formal Methods and Models
George Mason University Department of Computer Science
Section 003: 1:30-2:45pm Mon/Wed - Sandbridge Hall 107 (SNDBGE 107)
Section 004: 1:30-2:45pm Tue/Thu - Horizon Hall 2014 (HORIZN 2014)

Professor: Ahmed Bin Zaman
Email: azaman6@gmu.edu
Office Hours: Mondays 3:30-5:30pm
Phone: (703) 993-6642
Office: Engineering Building 4455 (ENGR 4455)

Prerequisites: CS211 and MATH125 (C or better in both)
Textbook: Hamburger and Richards, Logic and Language Models for Computer Science, Fourth Edition

Other requirements:

Course resources:
Piazza for announcements, questions, and discussions. Please note that while Piazza requests donations, it is due to Piazza's business model independent from any input from the university; students should not feel obligated to provide donations.
Blackboard to view grades and course materials.
GradeScope for quizzes and homework assignments turn-in and grades.

Schedule: see below for schedule; subject to change.

Description

This course is an introduction to two kinds of formal systems - languages and logics - with important applications to computer science. The study of formal languages underlies important aspects of compilers and other language processing systems, as well as the theory of computation. Various systems of logic and automatic reasoning are put to use in artificial intelligence, database theory and software engineering. The entire course will give you practice in precise thinking and proof methods that play a role in the analysis of algorithms. The programming assignments provide practical experience with some theoretical topics.

Outcomes

  1. Students will understand the concepts and relevance of logic, formal languages and automata theory, and computability.
  2. Students will be able to do mechanical formal proofs, program correctness proofs and solve problems in first-order logic.
  3. Students will be able to solve problems in elementary machine models: designing finite-state, pushdown and turing machines.
  4. Students will be able to solve problems in formal languages: writing regular expressions, regular grammars, and context-free grammars.
Topics

Grades

Grading Scale

A+AA- B+BB- C+CC- DF
>= 98.0%>= 92.0%>= 90.0% >= 88.0%>= 82.0%>= 80.0% >= 78.0%>= 72.0%>= 70.0% >= 60.0%< 60.0%

Advising Requirement

It is a departmental requirement that all undergraduate Computer Science students taking CS330 must speak with their faculty advisor during the semester and submit an advising form (found here) documenting their visit.

Honor Code

All graded work in this class is individual. Any direct contribution on an exam, quiz, or assignment will be treated as a violation of George Mason's Honor Code and the CS Department Honor Code, and will typically result in failing the class.

The use of AI tools (including but not limited to ChatGPT) to aid in the completion of graded assignments/quizzes/exam, and the use of solutions which are derived directly or indirectly from AI prompts, is considered unauthorized assistance and is prohibited under the honor code.

Some kinds of participation in third-party online study sites violate the GMU Honor code: these include accessing questions for this class which have been uploaded by others; accessing exam or assignment answers for this class; uploading of any of the instructor's materials or exams; and uploading any of your own answers or finished work. It is your resposibility to protect your work, including protecting your computer with a password and avoiding sites which make your work publicly visible. Always consult with the professor before using these sites.

Please respect the importance of upholding the Honor Code, since it affects the meaningfulness of your degree and the degrees of other students. As a practical matter, an understanding of the material presented in this course has a potential to positively impact your ability to acquire computing skills and perform computing skill which will be used in your future careers; you put yourself in the best position to gain that understanding when you rely on your own work.

Privacy statment

All course materials posted to Blackboard or other course site are private to this class; by federal law, any materials that identify specific students (via their name, voice, or image) must not be shared with anyone not enrolled in this class. In the event that any class meetings need to be held synchronously online, those classes will be recorded to provide necessary information for students in this class. Recordings will be stored on Blackboard and will only be accessible to students taking this course during this semester.

Disability accomodations

Disability Services at George Mason University is committed to providing equitable access to learning opportunities for all students by upholding the laws that ensure equal treatment of people with disabilities. Students seeking accommodations for this class, please first visit Disability Services (ods@gmu.edu; 703-993-2474) for detailed information about the Disability Services registration process. Then please discuss the approved accommodations with the instructor. The Disability Services office can be found in Student Union Building I (SUB I), Suite 2500.

Diversity and inclusion

George Mason University promotes a diverse, inclusive, and anti-racist environment, under the belief that a just and equitable learning environment is a strong learning environment. Students are valued as individuals, irrespective of differences in race, ethnicity, national origin, first language, economic status, gender, gender expression and identity, sexual orientation, religion, disability, or age. As an important member of the GMU community, the Department of Computer Science is integral to the goal of cultivating an environemnt which is committed to inclusion and anti-racism.

Students who prefer to be addressed by a specific name or gender pronouns should share this information with the instructor (he/him). Additionally, name and pronouns can be changed in the GMU records.

Title IX

As a faculty member and designated "Responsible Employee," I am required to report all disclosures of sexual assault, interpersonal violence, and stalking to Mason's Title IX Coordinator, per university policy 1412.

Students who wish to speak with someone confidentially should contact the Student Support and Advocacy Center (ssac@gmu.edu; 703-993-3686) or Counseling and Psychological Services (caps@gmu.edu; 703-993-2380). Assistance may also be sought from GMU's Title IX Coordinator (titleix@gmu.edu; 703-993-8730).

COVID-19

This class is in person during the current semester. For information regarding the virus and current university policy regarding the virus, consult the Safe Return to Campus page.

Schedule

Week Date Topic Assignments/Notes
week 1 Jan 16-21 Introduction; Mathematical Preliminaries, Sections 1.1-1.6
 
 
week 2 Jan 22-Jan 28 Propositional Logic, Sections 2.1-2.7 Practice HW 2.4, 2.7a, 2.8, 2.9, 2.11
Jan 26 Turn-in HW 1 assigned
Jan 26-28 Quiz 1 (Intro/Prop Logic)
week 3 Jan 29-Feb 4 Proofs by Deduction, Sections 3.1-3.9; Practice HW 3.10 (1st-4th), Prove Contrapositive rule, 3.8
Feb 2 Turn-in HW 1 due; Turn-in HW 2 assigned
Feb 2-4 Quiz 2 (Deduction)
week 4 Feb 5-11 Predicate Logic, Sections 4.1-4.5 Practice HW 4.1, 4.3, 4.7, 4.10a,b
Feb 9 Turn-in HW 2 due; Turn-in HW 3 assigned
Feb 9-11 Quiz 3 (Pred Logic)
week 5 Feb 12-18 Mathematical Induction, Sections 5.1-5.5 Practice HW 5.2-5.4, 5.9
Feb 16 Turn-in HW 3 due; Turn-in HW 4 assigned
Feb 16-18 Quiz 4 (Induction/Quantifiers)
week 6 Feb 19-Feb 25 Program Verification, Sections 6.1-6.4 Practice HW 6.2-6.4, 6.6, 6.7
Feb 23 Turn-in HW 4 due; Turn-in HW 5 assigned
Feb 23-25 Quiz 5 (Prog Verif)
week 7 Feb 26-Mar 3 Midterm Exam warm-up Midterm covers material from chapters 1-6
Feb 28 Midterm Exam Section 003
Feb 29 Midterm Exam Section 004
Mar 1 Turn-in HW 5 due
week 8 Mar 4-10 No class Spring Break
 
 
week 9 Mar 11-17 Language Basics; Regular Languages, Chapter 7 + Sections 8.1-8.2 Practice HW 7.4, 7.5, 7.12, 7.15, 8.2, 8.3, 8.5, 8.6
Mar 15 Turn-in HW 6 assigned
Mar 15-17 Quiz 6 (Langs)
week 10 Mar 18-24 Regular Expressions; Regular Grammars, Sections 8.2-8.5 Practice HW 8.8, 8.11, 8.12
Mar 22 Turn-in HW 6 due; Turn-in HW 7 assigned
Mar 22-24 Quiz 7 (REs/RGs)
week 11 Mar 25-31 Regular Grammar Conversions, Sections 8.5,8.6 Practice HW 8.14, 8.15
Mar 29 Turn-in HW 7 due; Turn-in HW 8 assigned
Mar 29-31 Quiz 8 (RG Conv)
week 12 Apr 1-7 Finite Automata, Sections 9.1-9.4,9.8 Practice HW 9.7, 9.5, 9.16a, 9.17a
Apr 5 Turn-in HW 8 due; Turn-in HW 9 assigned
Apr 5-7 Quiz 9 (DFAs)
week 13 Apr 8-14 Nondeterministic Finite Automata; Properties of Regular Languages, Sections 9.5-9.7 Practice HW 9.8, 9.9, 9.25
Apr 12 Turn-in HW 9 due; Turn-in HW 10 assigned
Apr 12-14 Quiz 10 (NFAs/Prop RLs)
week 14 Apr 15-21 Context-Free Grammars, Sections 10.1-10.3 Practice HW 10.1, 10.2, 10.8
Apr 19 Turn-in HW 10 due; Turn-in HW 11 assigned
Apr 19-21 Quiz 11 (CFGs)
week 15 Apr 22-28 Pushdown Automata, Turing Machines, Sections 11.1,11.2, 12.2; Final Exam warm-up (section 004) Practice HW 11.1, 11.4, 11.6, 11.9a (with NPDA)
  Final covers material from chapters 7-12
Apr 26 Turn-in HW 11 due
Apr 26-28 Quiz 12 (PDAs)
week 16 Apr 29 Final Exam warm-up (section 003) Last day of classes. No classes for section 004 this week
 
 
final exam week May 1-8
May 1 (Wed) Final Exam Section 003 1:30-4:15pm
May 7 (Tue) Final Exam Section 004 1:30-4:15pm