(Syllabus written by Martin Cenek)
Term: Winter 2010
CRN: (Section 004) 45655
Duration: 2010/01/05 - 2009/03/16
Meeting Time: Tu, Th 16:00-17:50 2010/01/05 - 2010/03/11
Meeting Location: NH (Neuberger Hall) Room 454
Labs: Unix & Linux Labs EB 88-01, Intel Labs FAB 55-17
Instructor: Bart Massey (bart AT cs DOT pdx DOT edu)
Office Hours:Fridays 4:30 PM FAB 120-18
Office Location: FAB 120-18
TA: Martin Cenek (cenek AT cs DOT pdx DOT edu)
TA Office Hours (tentative): M, W 08:00 - 09:00
TA Office Location: EB 88-06 (Tutor Area / Linux Labs)
Prerequisite: CS 250 Discrete Structures I
Everything about this syllabus is entirely tentative, and maybe be changed at the whim of the instructor without warning.
CS 251 is the second term of the two term sequence CS 250-251. The main goal of the sequence is that students obtain those skills in discrete mathematics and logic that are used in the study and practice of computer science. A second goal is that students become familiar with symbolic algebra and logic programming as tools for doing laboratory experiments in discrete mathematics and logic. Logic: propositional calculus, first-order predicate calculus. Formal reasoning: natural deduction, resolution. Applications to program correctness and automatic reasoning. Introduction to algebraic structures in computing. Logic programming is introduced and used for programming experiments
Propositional logic: propositional calculus, normal forms, formal reasoning.
First-order logic: first-order predicate calculus, equivalence, quantifier inference rules.
Applied Logic: equality, program correctness, higher-order logic.
Automatic Reasoning: clausal forms, unification, resolution.
Algebraic Structures: Boolean algebra, abstract data types, relational algebra, congruences.
Apply the properties of propositional calculus to: determine whether a wff is a tautology, a contradiction, or a contingency by truth tables and by Quine's method; construct equivalence proofs; and transform truth functions and wffs into conjunctive or disjunctive normal form.
Describe the basic inference rules and use them to write formal proofs in propositional calculus.
Apply the properties of first-order predicate calculus to: determine whether a wff is valid, invalid, satisfiable, or unsatisfiable; construct equivalence proofs; and transform first-order wffs into prenex conjunctive or disjunctive normal form.
Describe the rules of inference for quantifiers and use them along with the basic inference rules to write formal proofs in first-order predicate calculus.
Write formal proofs in first-order predicate calculus with equality.
Construct partial correctness proofs of simple imperative programs and construct termination proofs for simple loops.
Transform first-order wffs into clausal form; and unify atoms from a set of clauses.
Describe the resolution inference rule; use it to write formal proofs in first-order logic; and describe how resolution is used to execute a logic program.
Transform simple English sentences into formal logic (propositional, first-order, or higher-order).
Apply appropriate algebraic properties to: simplify Boolean expressions; simplify regular expressions; write recursive definitions for simple functions in terms of operations for abstract data types; write expressions to represent relations constructed in terms of operations for relational databases; and work with congruences.
Use the Prolog language as an experimental tool for testing properties of discrete and logical structures.
Discrete Structures, Logic, and Computability, Third Edition. James L. Hein. Jones and Bartlett, 2002.
Prolog Experiments in Discrete Mathematics, Logic, and Computability. James L. Hein. To be provided online.
To get a UNIX account in the CS Department, stop by the CS Tutors Lab at FAB 88-03. For Blackboard access, you hopefully will not need to contact the CAT or OIT.
This course requires weekly readings, homework, and lab experiments. All course-work must be completed individually. I do encourage group collaboration. This means creating study groups, online chat-rooms to discuss the approach, understand the problem, methodology is acceptable and encouraged. The write up, programming, and actual solutions must be your individual work. If you use someone's work for your own, you are committing plagiarism.
Class attendance is not required, but VERY STRONGLY recommended. You are responsible to know ALL material discussed in the class (might not be in the book). There is no substitute for attendance.
Three tests will be given: two mid-term tests and one final test.
No make up tests are given unless YOU arrange for them in advance.
I will assign HW assignments every week - both as a study guide and as a small part of your grade. Complete the HWs before next class. These assignments will be collected using Blackboard, but will be graded only for having been turned in and having made a reasonable effort; the solutions will not be carefully checked. We will go through some of the problems during the class, as a part of the learning.
Your grade will be based no the following breakdown:
Homework 15% Midterm 1 25% Midterm 2 25% Final 35%
The midterms will be in-class, comprehensive exams.
There will be no make up exams or lab homework deadlines except in a case of medical or family emergency. (The instructor reserves the right to request documentation in this case.) It is your responsibility to contact the instructor and arrange for special accommodations.
Cheating on homework or exams will result in a grade of zero on the affected material, and will be reported to your school/department. Plagiarism is a form of cheating.
Plagiarism: n 1: a piece of writing/work that has been copied from someone else and is presented as being your own work 2: the act of plagiarizing; taking someone's words or ideas as if they were your own.
If you use code, ideas, or text authored by someone else, cite them. It is OK to get help from external sources of knowledge, but citation is mandatory.
Study a little every day, you cannot learn the material in a day...
Learn language - syntax, semantics, glossary of symbols and definitions.
Do lots of problems, and then some.
Do additional problems - ones that were not assigned.
Make study groups.
Make up your own problems and try to solve them.
Start early on the assignments and the lab experiments.
Review the topics frequently - not just the increments, review entire topics.
Read the assigned chapters and lab manual before each lecture.
Don't expect immediate success. Anything worthwhile takes time and effort
(This section will cease to exist when Blackboard is fully set up.)
|1||01/05||Introduction. Elementary logic, reasoning, propositional calculus, modus-ponens, modus-tollens. Read ch. 6|
|1||01/07||Semantics, Quine, DNF, CNF, inference, axioms, proofs. HW 1 assigned.|
|2||01/12||Formal arguments, indirect proofs, formal axiom systems.|
|2||01/14||Tautologies, completeness theorem, other axioms, predicate logic, quantifiers, first order, formalism. Read ch. 7. HW 2 assigned.|
|3||01/19||WFF, hierarchy, scope, bound, free, substitution, closure, equivalence.|
|3||01/21||Prenex CNF/DNF, proofs. HW 3 assigned.|
|4||01/26||Applied logic, equality, EE, program correctness. Read ch. 8|
|5||02/02||Consequences, composition, constructs: conditions, loops, arrays, termination.|
|5||02/04||Computational logic, automatic reasoning, clausal forms, Skolem, substitution, unification. Read ch. 9.|
|6||02/09||Algorithms, resolution rule, Martelli-Montanari. HW 4 assigned.|
|6||02/11||Logic programming, query, computation trees.|
|7||02/16||Algebra, uniqueness, identity, inverse.|
|7||02/18||Resolution, SLD, operation properties, ring and field, boolean algebra, digital circuits. Read ch. 10. HW 5 assigned.|
|8||02/23||Prolog Programming. Midterm review.|
|8||02/25||Midterm 2. Introduction to Datatypes. HW 6 assigned.|
|9||03/02||Relational algebra, operations, properties, functional algebra.|
|9||03/04||Congruence, finite algebra, Fermat (theorems), RSA, subalgebras, morphism.|
|10||03/09||Overflow topics or additional topics.|
|10||03/11||Review and concluding thoughts.|
|-||03/16||Final Exam Tuesday 2010/03/16 15:30-17:20 NH 454|