pengenalan matematika komputasi dan matematika diskrit

arnoldusdanar 47 views 39 slides Sep 23, 2024
Slide 1
Slide 1 of 39
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39

About This Presentation

matematika diskrit


Slide Content

Matematika Komputasi Pertemuan II “Logika” By : Arnoldus Yansen Friska Danar Yudhistira, M.Kom [email protected]

Logika Perhatikan argumen di bawah ini: Jika anda mahasiswa Informatika maka Anda tidak sulit belajar Bahasa Java. Jika anda tidak suka begadang maka anda bukan mahasiswa Informatika. Tetapi, anda sulit belajar Bahasa Java dan anda tidak suka begadang. Jadi, Anda bukan mahasiswa Informatika. Apakah kesimpulan dari argumen di atas valid? Alat bantu untuk memahami argumen tsb adalah Logika

Logika Banyak teorema dalam ilmu Komputer/Informatika yang membutuhkan pemahaman logika Contoh : jika dan hanya jika Bahkan logika adalah jantung dari algoritma dan pemrograman Contoh : if x mod 2 = 0 then x:=x + 1 else x:=x – 1  

Logic – For What ? Logic is the basis of all mathematical reasoning, and of all automated reasoning .

Proof – For What ? It has practical applications to the design of computing machines, to the specification of systems, to artificial intelligence, to computer programming, to programming languages, and to other areas of computer science, as well as to many other fields of study.

LOGIC-PROPOSITION The following are not proposition Instruction ( Kalimat perintah) Question ( Kalimat pertanyaan) Amazement ( Kalimat keheranan) Expectancy ( Kalimat harapan)

LOGIC-PROPOSITION No.1 and 4 That is not a statement Statement True (T) False (F) Where is the capital city of Indonesia? Jakarta is the capital city of indonesia 1 + y = x 1 + 2 = 3

LOGIC-PROPOSITION We use propositional variables to refer to propositions Usually are lower case letters starting with p (i.e. p, q, r, s, etc.) A propositional variable can have one of two values: true ( T) or false (F) A proposition can be… A single variable: p An operation of multiple variables: p Λ ( q V r )

LOGIC-PROPOSITION Statement True (T) False (F) Los Angeles is the capital of the United States of America Nanga Bulik is the capital of Lamandau 1 + 1 = 2 2 + 2 = 3 √ √ √ √ Propositions 2 and 3 are true, whereas 1 and 4 are false.

LOGIC-PROPOSITION T ruth Table of Statement (Q) Statement (Q) F T T F

LOGIC-OPERATOR Many mathematical statements are constructed by combining one or more propositions. New propositions, called compound propositions (pernyataan gabungan/ pernyataan majemuk), are formed from existing propositions using logical operators. Consider the following examples: p = “Today is Sep, 11” q = “Today is my birthday”

NEGATION-PROPOSITION Negation is the opposite (negative value) of the proposition Devoted by “  ” Statement (P) P (Value)  P Ottawa is the capital of the United States of America Nanga Bulik is the capital of Lamandau 1 + 1 = 5 2 + 2 = 4 F T F T T F F T

Conjunction-Proposition Conjunction is the proposition from two or more existing proposition who has same value Devoted by “ Λ ” It has True Value when both statement is true, otherwise is false

Conjunction-Proposition - Example P Q P Λ Q F F T T F T T F F T F F

Disjunction-Proposition Disjunction is the proposition from two or more existing proposition who one of they have true value Devoted by “V”

Disjunction-Proposition P Q P V Q F F T T F T T F F T T T

Exclusive Or-Proposition Proposition that one of them is true (not both of them are true) Devoted by “ Θ ”

Exclusive Or-Proposition P Q P Q F F T T F T T F F F T T

Exclusive nor-Proposition Proposition that both of them are true Devoted by “ Θ ”

Exclusive Nor-Proposition P Q P Θ Q F F T T F T T F T T F F

Implication-Proposition Proposition that means a conditional statement Devoted by “  ” Concept : If.... (PREMISE/ANTECEDENT , Then .... (CONCLUSION)

Exclusive Nor-Proposition P Q P  Q F F T T F T T F T T T F

Joint denial-Proposition Proposition that means negation from disjunction proposition Devoted by “ ”

Joint Denial-Proposition P Q P V Q P Q F F T T F T T F F T T T T F F F

Not AND-Proposition Proposition that means negation from conjunction proposition Devoted by “  (.... Λ ...)”

Not AND-Proposition P Q P Λ Q  ( P Λ Q) F F T T F T T F F T F F T F T T

Biimplikasi-Proposition Proposition that means negation from conjunction proposition Devoted by “  ”

Biimplication-Proposition P Q P <> Q F F T T F T T F T T F F

Summary Try to understand what they meant, d0 not just memorize the table

Translating English “I have neither given nor received help on this exam” Let p = “I have given help on this exam” Let q = “I have received help on this exam” ¬ p Λ ¬q

Proposition-Law – Aljabar Proposition Logically Equivalent Proposition that logically equivalent, ex : (p Λ q)  p Λ q p Λ q pq

Proposition-Law – Aljabar Proposition

Proposition-Law – Aljabar Proposition Tautology Proposition that always have TRUE value, ex : (p Λ q)  p Λ q, pv p Kontradiksi Proposition that always have FALSE value Converse Opposite of proposition p q = qp Inverse Negative proposition p  q = p  q Kontrapositive Opposite of inverse p  q = qp

Proof P roof is collection of theorems ( true or correct mathematical statements ) Moreover, because knowing the proof of a theorem often makes it possible to modify the result to fit new situations, proofs play an essential role in the development of new ideas.

Proof proofs play essential roles when : we verify that computer programs produce the correct output for all possible input values, we show that algorithms always produce the correct result, W e establish the security of a system, and when we create artificial intelligence.

Proof Automated reasoning systems have been constructed that allow computers to construct their own proofs

Proof Logically Equivalent-Ex.

Proof Logically Equivalent-Ex.

Proposition-Law – Aljabar Proposition Example : Proof this statement are logically equivalent using aljabar proposition  ( p) dan p  ( pq) dan pv q P Λ (p v q ) dan P