Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
College aantekeningen

discrete maths

Beoordeling
-
Verkocht
-
Pagina's
80
Geüpload op
20-02-2025
Geschreven in
2024/2025

best discrete maths notes

Instelling
Vak

Voorbeeld van de inhoud

A predicate name followed by a list of variables such as P(x, y), where P is
predicate name, and x and y are variables, is called an atomic formula.




A well formed formula of predicate calculus is obtained by using the following rules.
1. An atomic formula is a wff.
2. If A is a wff, then ¬A is also a wff.
3. If A and B are wffs, then (A V B), (A ٨ B), (A → B) and (A ¤ B) are wffs.


4. If A is a wff and x is any variable, then (x)A and ($x)A are wffs.
5. Only those formulas obtained by using (1) to (4) are wffs.


Wffs are constructed using the following rules:

1. True and False are wffs.

2. Each propositional constant (i.e. specific proposition), and each propositional
variable (i.e. a variable representing propositions) are wffs.
3. Each atomic formula (i.e. a specific predicate with variables) is a wff.
4. If A, B, and C are wffs, then so are A, (A B), (A B), (A B), and (A B).

5. If x is a variable (representing objects of the universe of discourse), and A is a
wff, then so are x A and x A .

For example, "The capital of Virginia is Richmond." is a specific proposition. Hence it is
a wff by Rule 2.

Let B be a predicate name representing "being blue" and let x be a variable. Then B(x) is
an atomic formula meaning "x is blue". Thus it is a wff by Rule 3. above.

By applying Rule 5. to B(x), xB(x) is a wff and so is xB(x).

Then by applying Rule 4. to them x B(x) x B(x) is seen to be a wff. Similarly if R
is a predicate name representing "being round". Then R(x) is an atomic formula. Hence it
is a wff.

By applying Rule 4 to B(x) and R(x), a wff B(x) R(x) is obtained.

To express the fact that Tom is taller than John, we can use the atomic formula
taller(Tom, John), which is a wff. This wff can also be part of some compound statement
such as taller(Tom, John) taller(John, Tom), which is also a wff. If x is a variable
representing people in the world, then taller(x,Tom), x taller(x,Tom), x
taller(x,Tom), x y taller(x,y) are all wffs among others. However, taller( x,John)
and taller(Tom Mary, Jim), for example, are NOT wffs.

DM 2

, Truth Tables:

Logical identity
Logical identity is an operation on one logical value, typically the value of a
proposition that produces a value of true if its operand is true and a value of false if
its operand is false.

The truth table for the logical identity operator is as follows:


Logical Identity

p p

T T

F F

Logical negation
Logical negation is an operation on one logical value, typically the value of a
proposition that produces a value of true if its operand is false and a value of false
if its operand is true.
The truth table for NOT p (also written as ¬p or ~p) is as follows:


Logical Negation

p ¬p

T F

F T

Logical conjunction:
Logical conjunction is an operation on two logical values, typically the values of two
propositions, that produces a value of true if both of its operands are true.
The truth table for p AND q (also written as p K q, p & q, or p q) is as follows:

If both p and q are true, then the conjunction p K q is true. For all other assignments
of logical values to p and to q the conjunction p K q is false. It can also be said that
if p, then p K q is q, otherwise p K q is p.



DM 3

, Logical Conjunction

P q pKq


T T T

T F F

F T F

F F F
Logical disjunction:
Logical disjunction is an operation on two logical values, typically the values of two
propositions, that produces a value of true if at least one of its operands is true.The truth
table for p OR q (also written as p V q, p || q, or p + q) is as follows:


Logical Disjunction

p q pVq

T T T

T F T

F T T

F F F

Logical implication:

Logical implication and the material conditional are both associated with an operation on
two logical values, typically the values of two propositions, that produces a value of false
just in the singular case the first operand is true and the second operand is false.

Logical Implication

p q p→q

T T T

T F F

F T T

DM 4

, F F T


The truth table associated with the material conditional if p then q (symbolized as p → q)
and the logical implication p implies q (symbolized as p ‹ q) is as shown above.


Logical equality:
Logical equality (also known as biconditional) is an operation on two logical values,
typically the values of two propositions, that produces a value of true if both operands are
false or both operands are true.The truth table for p XNOR q (also written as p ↔ q ,p =
q, or p ≡ q) is as follows:


Logical Equality

p q p≡q

T T T

T F F

F T F

F F T

Exclusive disjunction:

Exclusive disjunction is an operation on two logical values, typically the values of
two propositions, that produces a value of true if one but not both of its operands is
true.The truth table for p XOR q (also written as p Ⓧq, or p ≠ q) is as follows:

Exclusive Disjunction
p q pⓍ q

T T F

T F T

F T T

F F F


Logical NAND:
The logical NAND is an operation on two logical values, typically the values of two
propositions, that produces a value of false if both of its operands are true. In other words,
it produces a value of true if at least one of its operands is false.The truth table for p
NAND q (also written as p ↑ q or p | q) is as follows:

DM 5

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
20 februari 2025
Aantal pagina's
80
Geschreven in
2024/2025
Type
College aantekeningen
Docent(en)
K
Bevat
Alle colleges

Onderwerpen

$10.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
karanrathore

Maak kennis met de verkoper

Seller avatar
karanrathore nit
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
1 jaar
Aantal volgers
0
Documenten
8
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen