Download presentation
Presentation is loading. Please wait.
Published byJemimah Heath Modified over 8 years ago
1
Lecture 2 Discrete Mathematics 9/3/2015 1
2
Introduction What is Discrete Mathematics? Discrete Mathematics concerns processes that consist of a sequence of individual steps. LOGIC: Logic is the study of the principles and methods that distinguish between a valid and an invalid argument. SIMPLE STATEMENT: A statement is a declarative sentence that is either true or false but not both. A statement is also referred to as a proposition 9/3/2015 2
3
1 Logic Concepts The logic imitate our intuitions feelings by setting down explaining ideas that behave analogously The logic furnishes statements that describe the surrounding world that can be true/false. Used in numerous applications: circuit design, programs, verification of correctness of programs, artificial intelligence, etc. 9/3/2015 3
4
Propositional Logic Is a declarative statement that is either true or false, but not both. It is not an Opinion, a Command, or a Question. Such as: – Washington, D.C., is the capital of USA – California is adjacent to New York – 1+1=2 – 2+2=5 Not declarative – What time is it? Question – Read this carefully Command It is a nice day opinion 9/3/2015 4
5
Propositional Logic Elementary/Simple statement is atomic, with a verb, subject and object but no connectives (NOT, OR, AND, If…Then, Iff) Construct correct mathematical arguments. Give precise meaning to mathematical statements Focuses on the relationships among statements. Rules are used to distinguish between valid (True) and invalid (False) arguments/statement. Hence logic assures us for any combination/connection of these statements as being True/False. 9/3/2015 5
6
Examples Propositions 1) Grass is green. 2) 4 + 2 = 6 3) 4 + 2 = 7 4) There are four fingers in a hand. Not Propositions 1) Close the door. 2) x is greater than 2. 3) He is very rich 9/3/2015 6
7
Examples Rule: If the sentence is preceded by other sentences that make the pronoun or variable reference clear, then the sentence is a statement. 9/3/2015 7
8
UNDERSTANDING STATEMENTS 1) x + 2 is positive. Not a statement 2) May I come in? Not a statement 3) Logic is interesting. A statement 4) It is hot today. A statement 5) -1 > 0 A statement 6) x + y = 12 Not a statement 9/3/2015 8
9
False, True, Statements Axiom : False is the opposite to Truth. A statement/declaration/declarative-statement is a description of something (sentence), which Is Not an Opinion, a Command, or Question. A statement Is A Sentence That Is Either True Or False, but not both simultaneously. 9/3/2015 9
10
Examples Examples of statements: – I’m 35 years old. – I have 100 children. – I always tell the truth. – I’m lying to you. Q’s: Which statements are: True? False? Both? Neither? 9/3/2015 10
11
EXAMPLES: a. 2+2 = 4, b. It is Sunday today If a proposition is true, we say that it has a truth value of "true”. If a proposition is false, its truth value is "false". The truth values “true” and “false” are, respectively, denoted by the letters T and F. 9/3/2015 11
12
Logical connectives 9/3/2015 12 EXAMPLES: 1. “3 + 2 = 5” and “Makka is a city in KSA” 2. “The grass is green” or “ It is hot today” 3. “Discrete Mathematics is not difficult to me”. AND, OR, NOT are called LOGICAL CONNECTIVES. SYMBOLIC REPRESENTATION Statements are symbolically represented by letters such as p, q, r,... EXAMPLES: p = “Riyadh is the capital of KSA” q = “17 is divisible by 3”
13
Symbolic logic 9/3/2015 13 In symbolic logic, we use lower case letters such as p, q, r, and s to represent statements. Here are two examples: p: Riyadh is the capital of KSA. q: Abin Al-Haythim is one of the greatest muslim scientists. Hence: The letter p represents the 1 st statement. The letter q represents the 2 nd statement.
14
Logical operators /connevtives 9/3/2015 14 If you're wealthy or well educated, then you'll be happy. We can break this statement down into three basic sentences: You're wealthy, You're well educated, You'll be happy. These sentences are called simple statements because each one conveys/takes/sends/carries/transfers/delivers one idea with no connecting words. Statements formed by combining two or more simple statements are called compound statements. Logical connectives are used to join simple statements to form a compound statement. These Connectives include the words AND, OR, IF... THEN, and IF AND ONLY IF.
15
Compound statements 9/3/2015 15 Compound statements appear throughout written and spoken language. We need to be able to understand the logic of such statements to analyze information objectively. we will concentrate our analysis on four kinds of compound statements.
16
TABLE 9/3/2015 16 CONNECTIVEMEANINGSYMBOLECALLED NegationNot ¬ Tilde ConjunctionAnd ∧ Hat DisjunctionOr ∨ Vel ConditionalIf …..then …. → Arrow BiconditionalIf and only if ↔ Double arrow
17
Exercise sets determine whether or not each sentence is a Statement. Specify which is True and which is False. 1. George W. Bush was the Democratic candidate for president in 2004. 2. John Kerry was the Republican candidate for president in 2004. 3. Take the most interesting classes you can find. 4. Don't try to study on a Friday night in the dorms. 5. The average human brain contains 100 billion neurons. 9/3/2015 17
18
Exercise 6. There are 2.500.000 rivets in the Eiffel Tower. 7. Is the unexamined life worth living? 8. Is this the best of all possible worlds? 9. Some Catholic countries have legalized same-sex marriage. l0. Some U.S. presidents were assassinated. 11. 9 + 6 = 16 12. 9 x 6 = 64 9/3/2015 18
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.