Math. Reasoning and Alg. Thinking: Prince Mohammad Bin Fahd University
Math. Reasoning and Alg. Thinking: Prince Mohammad Bin Fahd University
PREREQUISITES
GEIT 1412: Computer Science II
CREDIT HOURS
3 Credit Hours
COURSE OVERVIEW
Discrete Structures, in general, is the study of objects that have discrete as opposed to continuous values including the
foundations of logic, algorithms and their complexity, mathematical reasoning, relations, graphs, trees and combinatorics.
GEIT 2331: Mathematical Reasoning and Algorithmic Thinking is a mandatory course for all students in the College of
Computer Engineering and Science and as such, its goal is to provide students with logical reasoning and other basic
mathematical skills that will help them in subsequent courses in their programs and their future careers.
LEARNING OUTCOMES
REQUIRED TEXT
A. Required Textbook
Rosen, K. H. (2019) Discrete Mathematics and Its Applications. Eighth Edition, McGraw-Hill.
ISBN 978-1-260-09199-1
B. Alternative Textbooks
Hall, C., & O’Donnell J. (2000) Discrete Mathematics Using a Computer, Springer Verlag
ISBN 1-85-233089-9
Balakrishnan, V.K. (1996). Introductory Discrete Mathematics, Dover
ISBN 0-48-669115-2
CLASS RULES
Disruptive Behavior
o Any true discussion or application of hands-on laboratory assignments involves personal exposure and thus the
taking of risks. Your ideas and application may not jibe with your neighbor's yet as long as your points are
honest and supportable; they need to be respected by all of us in the classroom. Encouragement, questions,
discussion, and laughter are a part of this class, but scoffing is never allowable, just as disruptive behavior is
grounds for dismissal.
o Use of Mobile phones, Blackberry, Ipods, etc is strictly prohibited during class.
CLASS ATTENDANCE
Class attendance is required and a class roll will be taken during each class period. Learning is an active process, and it is
simply impossible for you to participate if you aren’t here. Your participatory attendance is important to achieving the
learning outcomes. If non attendance occurs you will be responsible for materials covered during your absences, and it
is your responsibility to consult with me. Please refer to the university wide policy for class attendance in your Student
Guide handbook. According to PMU Policy a student will receive 5%, 10% and 15% warnings for number of absences.
The student will be withdrawn from the class if he/she exceeds 15% absences without excuse and 25% with or without
excuse. The excuses are submitted to the instructor and are approved or rejected by the instructor.
TARDINESS
WITHDRAWAL
It is the responsibility of the student to officially drop or withdraw from a course. Failure to officially
withdraw may result in the student receiving a grade of "F" in the course. If you decide to drop the
course, please discuss this with your instructor before taking this step. The student has the first ten
weeks of the semester to withdraw with a grade of “W” , after that it will depend on the status in the
course and the student can receive a grade of “WF” or “WP”.
ASSESSMENT
Grades shall be computed on the basis of the following:
2
Test I 20%
Test II 20%
Test III 20%
Final Exam 30%
Total 100%
Course Format
A. INSTRUCTION
Primary instruction is a lecture format, with the course meeting for three hours per week.
B. WEB SUPPLEMENT
The textbook’s Companion Website Student Edition can be accessed at
https://highered.mheducation.com/sites/0071315012/student_view0
Among other things, it contains Extra Examples, Interactive Demonstration Applets, Self Assessments and
a Web Resources Guide.
Course home page (the university’s Web tool, WebCT or Blackboard) should contain the following:
Course syllabus
Lecture material (PowerPoint slides, lecture notes, etc.). These will be placed on the site ahead of class
meeting so that students may use the material to prepare for the lecture.
Course assignments
Sample solutions to examinations (after being graded and returned)
Homeworks
1. Use propositional logic to determine if the following set of system specifications is consistent:
Whenever the system software is being upgraded, users cannot access the file system.
Users can save new files if they can access the file system. A necessary condition for users
to be able to save new files is that the system software is not being upgraded.
2. Give an example of a logical proposition containing three variables 𝑝, 𝑞, and 𝑟 which is:
a) a contradiction.
b) a tautology.
c) True, only if 𝑝 = 𝑇, 𝑞 = 𝐹, and 𝑟 = 𝑇.
3. On the island of knights and knaves, determine what A and B are, if A says “We are both knaves”
and B says nothing.
4. Prove that (𝒓 → 𝒒) → ¬𝒑 ≡ (𝒑 → 𝒓) ∧ (𝒒 → ¬𝒑) using logical equivalences.
5. Find the Principal Conjunctive Normal Form for the following proposition:
(¬𝒑 ↔ 𝒒) → (𝒒 ∧ ¬𝒓)
1. Determine the truth values of the following statements, if the domain for all variables is the set of
real numbers:
a) ∀𝑥∃𝑦(𝑥 2 = 𝑦).
b) ∀𝑥∃𝑦(𝑥 = 𝑦 2 ).
c) ∀𝑥 (𝑥 ≠ 0 → ∃𝑦(𝑥𝑦 = 1)).
d) ∃𝑥∀𝑦(𝑦 ≠ 0 → 𝑥𝑦 = 1).
e) ∃𝑥∃𝑦(𝑥 + 2𝑦 = 2 ∧ 2𝑥 + 4𝑦 = 5).
f) ∀𝑥∃𝑦(𝑥 + 𝑦 = 2 ∧ 2𝑥 − 𝑦 = 1).
𝑥+𝑦
g) ∀𝑥∀𝑦∃𝑧 (𝑧 = 2
).
2. Suppose that variable x represents students and variable y represents courses. Use the predicates
F(x): “x is a freshman”, S(x): “x is a sophomore”, A(y): “y is an advanced course”, T(xy): “student x is taking
4
course y” and any needed quantifiers and logical operators in order to translate the following
statements into logical expressions.
a) There is a course that every freshman is taking.
b) No freshman is a sophomore.
c) Some freshman is taking an advanced course.
d) Not all students who take an advanced course are sophomores.
3. For each of the following arguments determine whether the argument is correct or incorrect by
verifying if the conclusion can be obtained from the given hypotheses through valid rules of
inference.
a) All foods that are healthy to eat do not taste good. Tofu is healthy to eat. You only eat what
tastes good. Therefore, you do not eat any food.
b) All juniors left campus for the weekend. Some math majors are not juniors. Therefore, some
math majors stayed on campus for the weekend.
4. Use a proof by contradiction to show that 2𝑛 − 5 is an odd number, for any integer 𝑛.