SlideShare une entreprise Scribd logo
1  sur  10
What is PROPOSITION?<br />A proposition is a sentence expressing something true or false. In philosophy, particularly in logic, a proposition is identified ontologically as an idea, concept, or abstraction whose token instances are patterns of symbols, marks, sounds, or strings of words. Propositions are considered to be syntactic entities and also truthbearers.<br />The existence of propositions in the abstract sense, as well as the existence of quot;
meaningsquot;
, is disputed by some philosophers. Where the concept of a quot;
meaningquot;
 is admitted, its nature is controversial. In earlier texts writers have not always made it sufficiently clear whether they are using the term proposition in sense of the words or the quot;
meaningquot;
 expressed by the words. To avoid the controversies and ontological implications, the term sentence is often now used instead of proposition to refer to just those strings of symbols that are truthbearers, being either true or false under an interpretation. Strawson advocated the use of the term quot;
statementquot;
, and this is the current usage in mathematical logic.<br />Connectives or operations on Proposition<br />Let us define the meaning of the five connectives by showing the relationship between the truth value (i.e. true or false) of composite propositions and those of their component propositions. They are going to be shown using truth table. In the tables P and Q represent arbitrary propositions, and true and false are represented by T and F, respectively. <br />NOTP PT FF T<br />This table shows that if P is true, then ( P) is false, and that if P is false, then ( P) is true. <br />ANDP Q(P Q) F FF F TF T FF T TT <br />This table shows that (P Q) is true if both P and Q are true, and that it is false in any other case.<br />Similarly for the rest of the tables.<br />ORP Q(P Q) F FF F TT T FT T TT <br />IMPLIESP Q(P Q) F FT F TT T FF T TT <br />When P Q is always true, we express that by P Q. That is P Q is used when proposition P always implies proposition Q regardless of the value of the variables in them.Also see a note on the truth value of IMPLIES when P is False. <br />IF AND ONLY IF  P   Q   ( P Q )   F   FT   F   TF   T   FF   T   TT <br />When P Q is always true, we express that by P Q. That is is used when two propositions always take the same value regardless of the value of the variables in them.<br />What is TRUTH TABLE?<br />A truth table is a mathematical table used in logic—specifically in connection with Boolean algebra, boolean functions, and propositional calculus—to compute the functional values of logical expressions on each of their functional arguments, that is, on each combination of values taken by their logical variables (Enderton 2001). In particular, truth tables can be used to tell whether a propositional expression is true for all legitimate input values, that is, logically valid.<br />Practically, a truth table is composed of one column for each input variable (for example, A and B), and one final column for all of the possible results of the logical operation that the table is meant to represent (for example, A XOR B). Each row of the truth table therefore contains one possible configuration of the input variables (for instance, A=true B=false), and the result of the operation for those values. See the examples below for further clarification.<br />Unary operations<br />Logical identity<br />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.<br />The truth table for the logical identity operator is as follows:<br />Logical IdentityppTTFF<br />Logical negation<br />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.<br />The truth table for NOT p (also written as ¬p or ~p) is as follows:<br />Logical Negationp¬pTFFT<br />Binary operations<br />Truth table for all binary logical operators<br />Here is a truth table giving definitions of all 16 of the possible truth functions of 2 binary variables (P,Q are thus boolean variables):<br />PQ 0  1  2  3  4  5  6  7  8  9 101112131415TTFFFFFFFFTTTTTTTTTFFFFFTTTTFFFFTTTTFTFFTTFFTTFFTTFFTTFFFTFTFTFTFTFTFTFT<br />where T = true and F = false.<br />Key:<br />0, false, Contradiction<br />1, NOR, Logical NOR<br />2, Converse nonimplication<br />3, ¬p, Negation<br />4, Material nonimplication<br />5, ¬q, Negation<br />6, XOR, Exclusive disjunction<br />7, NAND, Logical NAND<br />8, AND, Logical conjunction<br />9, XNOR, If and only if, Logical biconditional<br />10, q, Identity<br />11, if/then, Logical implication<br />12, p, Identity<br />13, then/if, Converse implication<br />14, OR, Logical disjunction<br />15, true, Tautology<br />Logical operators can also be visualized using Venn diagrams.<br />Logical conjunction<br />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.<br />The truth table for p AND q (also written as p ∧ q, p & q, or p q) is as follows:<br />Logical Conjunctionpqp ∧ qTTTTFFFTFFFF<br />In ordinary language terms, if both p and q are true, then the conjunction p ∧ q is true. For all other assignments of logical values to p and to q the conjunction p ∧ q is false.<br />It can also be said that if p, then p ∧ q is q, otherwise p ∧ q is p.<br />Logical disjunction<br />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.<br />The truth table for p OR q (also written as p ∨ q, p || q, or p + q) is as follows:<br />Logical Disjunctionpqp ∨ qTTTTFTFTTFFF<br />Stated in English, if p, then p ∨ q is p, otherwise p ∨ q is q.<br />Logical implication<br />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.<br />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 follows:<br />Logical Implicationpqp -> qTTTTFFFTTFFT<br />Logical equality<br />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.<br />The truth table for p XNOR q (also written as p ↔ q ,p = q, or p ≡ q) is as follows:<br />Logical Equalitypqp ≡ qTTTTFFFTFFFT<br />So p EQ q is true if p and q have the same truth value (both true or both false), and false if they have different truth values.<br />Exclusive disjunction<br />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.<br />The truth table for p XOR q (also written as p ⊕ q, or p ≠ q) is as follows:<br />Exclusive Disjunctionpqp ⊕ qTTFTFTFTTFFF<br />For two propositions, XOR can also be written as (p = 1 ∧ q = 0)∨ (p = 0 ∧ q = 1).<br />Logical NAND<br />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.<br />The truth table for p NAND q (also written as p ↑ q or p | q) is as follows:<br />Logical NANDpqp ↑ qTTFTFTFTTFFT<br />It is frequently useful to express a logical operation as a compound operation, that is, as an operation that is built up or composed from other operations. Many such compositions are possible, depending on the operations that are taken as basic or quot;
primitivequot;
 and the operations that are taken as composite or quot;
derivativequot;
.<br />In the case of logical NAND, it is clearly expressible as a compound of NOT and AND.<br />The negation of a conjunction: ¬(p ∧ q), and the disjunction of negations: (¬p) ∨ (¬q) can be tabulated as follows:<br />pqp ∧ q¬(p ∧ q)¬p¬q(¬p) ∨ (¬q)TTTFFFFTFFTFTTFTFTTFTFFFTTTT<br />Logical NOR<br />The logical NOR 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 false. In other words, it produces a value of false if at least one of its operands is true. ↓ is also known as the Peirce arrow after its inventor, Charles Sanders Peirce, and is a Sole sufficient operator.<br />The truth table for p NOR q (also written as p ↓ q or p ⊥ q) is as follows:<br />Logical NORpqp ↓ qTTFTFFFTFFFT<br />The negation of a disjunction ¬(p ∨ q), and the conjunction of negations (¬p) ∧ (¬q) can be tabulated as follows:<br />pqp ∨ q¬(p ∨ q)¬p¬q(¬p) ∧ (¬q)TTTFFFFTFTFFTFFTTFTFFFFFTTTT<br />Inspection of the tabular derivations for NAND and NOR, under each assignment of logical values to the functional arguments p and q, produces the identical patterns of functional values for ¬(p ∧ q) as for (¬p) ∨ (¬q), and for ¬(p ∨ q) as for (¬p) ∧ (¬q). Thus the first and second expressions in each pair are logically equivalent, and may be substituted for each other in all contexts that pertain solely to their logical values.<br />This equivalence is one of De Morgan's laws.<br />Applications<br />Truth tables can be used to prove many other logical equivalences. For example, consider the following truth table:<br />Logical Equivalence : (p -> q) = (¬p ∨ q)pq¬p¬p ∨ qp -> qTTFTTTFFFFFTTTTFFTTT<br />This demonstrates the fact that p -> q is logically equivalent to ¬p ∨ q.<br />Truth table for most commonly used logical operators<br />Here is a truth table giving definitions of the most commonly used 7 of the 16 possible truth functions of 2 binary variables (P,Q are thus boolean variables):<br />PQTTTTFTTTTTFFTTFFTFFTFTTFTFFFFFFFTTTT<br />Key:<br />T = true, F = false<br />= AND (logical conjunction)<br />= OR (logical disjunction)<br />= XOR (exclusive or)<br />= XNOR (exclusive nor)<br />= conditional quot;
if-thenquot;
<br />= conditional quot;
(then)-ifquot;
<br />biconditional or quot;
if-and-only-ifquot;
 is logically equivalent to : XNOR (exclusive nor).<br />Logical operators can also be visualized using Venn diagrams.<br />Condensed truth tables for binary operators<br />For binary operators, a condensed form of truth table is also used, where the row headings and the column headings specify the operands and the table cells specify the result. For example Boolean logic uses this condensed truth table notation:<br />∧FTFFFTFT∨FTFFTTTT<br />This notation is useful especially if the operations are commutative, although one can additionally specify that the rows are the first operand and the columns are the second operand. This condensed notation is particularly useful in discussing multi-valued extensions of logic, as it significantly cuts down on combinatoric explosion of the number of rows otherwise needed. It also provides for quickly recognizable characteristic quot;
shapequot;
 of the distribution of the values in the table which can assist the reader in grasping the rules more quickly.<br />Truth tables in digital logic<br />Truth tables are also used to specify the functionality of hardware look-up tables (LUTs) in digital logic circuitry. For an n-input LUT, the truth table will have 2^n values (or rows in the above tabular format), completely specifying a boolean function for the LUT. By representing each boolean value as a bit in a binary number, truth table values can be efficiently encoded as integer values in electronic design automation (EDA) software. For example, a 32-bit integer can encode the truth table for a LUT with up to 5 inputs.<br />When using an integer representation of a truth table, the output value of the LUT can be obtained by calculating a bit index k based on the input values of the LUT, in which case the LUT's output value is the kth bit of the integer. For example, to evaluate the output value of a LUT given an array of n boolean input values, the bit index of the truth table's output value can be computed as follows: if the ith input is true, let Vi = 1, else let Vi = 0. Then the kth bit of the binary representation of the truth table is the LUT's output value, where k = V0*2^0 + V1*2^1 + V2*2^2 + ... + Vn*2^n.<br />Truth tables are a simple and straightforward way to encode boolean functions, however given the exponential growth in size as the number of inputs increase, they are not suitable for functions with a large number of inputs. Other representations which are more memory efficient are text equations and binary decision diagrams.<br />Applications of truth tables in digital electronics<br />In digital electronics (and computer science, fields of engineering derived from applied logic and math), truth tables can be used to reduce basic boolean operations to simple correlations of inputs to outputs, without the use of logic gates or code. For example, a binary addition can be represented with the truth table:<br />A B | C R<br />1 1 | 1 0<br />1 0 | 0 1<br />0 1 | 0 1<br />0 0 | 0 0<br />where <br />A = First Operand<br />B = Second Operand<br />C = Carry  <br />R = Result<br />This truth table is read left to right:<br />Value pair (A,B) equals value pair (C,R).<br />Or for this example, A plus B equal result R, with the Carry C.<br />Note that this table does not describe the logic operations necessary to implement this operation, rather it simply specifies the function of inputs to output values.<br />In this case it can only be used for very simple inputs and outputs, such as 1's and 0's, however if the number of types of values one can have on the inputs increases, the size of the truth table will increase.<br />For instance, in an addition operation, one needs two operands, A and B. Each can have one of two values, zero or one. The number of combinations of these two values is 2x2, or four. So the result is four possible outputs of C and R. If one was to use base 3, the size would increase to 3x3, or nine possible outputs.<br />The first quot;
additionquot;
 example above is called a half-adder. A full-adder is when the carry from the previous operation is provided as input to the next adder. Thus, a truth table of eight rows would be needed to describe a full adder's logic:<br />A B C* | C R <br />0 0 0  | 0 0 <br />0 1 0  | 0 1<br />1 0 0  | 0 1<br />1 1 0  | 1 0<br />0 0 1  | 0 1<br />0 1 1  | 1 0<br />1 0 1  | 1 0<br />1 1 1  | 1 1<br />Same as previous, but.. <br />C* = Carry from previous adder<br />By:<br />Honey Joy A. Macabasco<br />                                                                                                                                                            AIT 2-2                  <br />
Dicrete structure
Dicrete structure
Dicrete structure
Dicrete structure
Dicrete structure
Dicrete structure
Dicrete structure
Dicrete structure
Dicrete structure

Contenu connexe

Tendances

Propositional logic
Propositional logicPropositional logic
Propositional logicMamta Pandey
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logicankush_kumar
 
Computational logic First Order Logic_part2
Computational logic First Order Logic_part2Computational logic First Order Logic_part2
Computational logic First Order Logic_part2banujahir1
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1blaircomp2003
 
Computational logic Propositional Calculus proof system
Computational logic Propositional Calculus proof system Computational logic Propositional Calculus proof system
Computational logic Propositional Calculus proof system banujahir1
 
Computational logic First Order Logic
Computational logic First Order LogicComputational logic First Order Logic
Computational logic First Order Logicbanujahir1
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDr. Khaled Bakro
 
Logic (PROPOSITIONS)
Logic (PROPOSITIONS)Logic (PROPOSITIONS)
Logic (PROPOSITIONS)D Nayanathara
 
Linear Temporal Logic LTL
Linear Temporal Logic LTLLinear Temporal Logic LTL
Linear Temporal Logic LTLAnit Thapaliya
 
Discrete Structures lecture 2
 Discrete Structures lecture 2 Discrete Structures lecture 2
Discrete Structures lecture 2Ali Usman
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicIT Engineering Department
 
Non Standard Logics & Modal Logics
Non Standard Logics & Modal LogicsNon Standard Logics & Modal Logics
Non Standard Logics & Modal LogicsSerge Garlatti
 
Du Calcul des prédicats vers Prolog
Du Calcul des prédicats vers PrologDu Calcul des prédicats vers Prolog
Du Calcul des prédicats vers PrologSerge Garlatti
 
Mathematical Logic Part 2
Mathematical Logic Part 2Mathematical Logic Part 2
Mathematical Logic Part 2blaircomp2003
 

Tendances (20)

Propositional logic
Propositional logicPropositional logic
Propositional logic
 
03 propsem
03 propsem03 propsem
03 propsem
 
Propositional Logic and Pridicate logic
Propositional Logic and Pridicate logicPropositional Logic and Pridicate logic
Propositional Logic and Pridicate logic
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logic
 
Computational logic First Order Logic_part2
Computational logic First Order Logic_part2Computational logic First Order Logic_part2
Computational logic First Order Logic_part2
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
 
Computational logic Propositional Calculus proof system
Computational logic Propositional Calculus proof system Computational logic Propositional Calculus proof system
Computational logic Propositional Calculus proof system
 
Computational logic First Order Logic
Computational logic First Order LogicComputational logic First Order Logic
Computational logic First Order Logic
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
 
Logic (PROPOSITIONS)
Logic (PROPOSITIONS)Logic (PROPOSITIONS)
Logic (PROPOSITIONS)
 
Linear Temporal Logic LTL
Linear Temporal Logic LTLLinear Temporal Logic LTL
Linear Temporal Logic LTL
 
Discrete Structures lecture 2
 Discrete Structures lecture 2 Discrete Structures lecture 2
Discrete Structures lecture 2
 
1. linear model, inference, prediction
1. linear model, inference, prediction1. linear model, inference, prediction
1. linear model, inference, prediction
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional Logic
 
Modal Logic
Modal LogicModal Logic
Modal Logic
 
Non Standard Logics & Modal Logics
Non Standard Logics & Modal LogicsNon Standard Logics & Modal Logics
Non Standard Logics & Modal Logics
 
Du Calcul des prédicats vers Prolog
Du Calcul des prédicats vers PrologDu Calcul des prédicats vers Prolog
Du Calcul des prédicats vers Prolog
 
Predicate Calculus
Predicate CalculusPredicate Calculus
Predicate Calculus
 
Mathematical Logic Part 2
Mathematical Logic Part 2Mathematical Logic Part 2
Mathematical Logic Part 2
 
APAL2032
APAL2032APAL2032
APAL2032
 

En vedette

Logic
LogicLogic
LogicH K
 
Categorical propositions
Categorical propositions Categorical propositions
Categorical propositions anandhjose
 
Categorical syllogism
Categorical syllogismCategorical syllogism
Categorical syllogism3842
 
Categorical Propositions- Logic
Categorical Propositions- LogicCategorical Propositions- Logic
Categorical Propositions- LogicKent Sunglao
 
Logic - Three mental operations
Logic - Three mental operationsLogic - Three mental operations
Logic - Three mental operationsKarisse Ramoso
 
Judgment and proposition or logical statement
Judgment and proposition or logical statementJudgment and proposition or logical statement
Judgment and proposition or logical statementling selanoba
 
CATEGORICAL SYLLOGISM
CATEGORICAL SYLLOGISMCATEGORICAL SYLLOGISM
CATEGORICAL SYLLOGISMashelle14
 

En vedette (15)

Logic
LogicLogic
Logic
 
Logic parti
Logic partiLogic parti
Logic parti
 
Prpositional2
Prpositional2Prpositional2
Prpositional2
 
Logic hand outs#4
Logic hand outs#4Logic hand outs#4
Logic hand outs#4
 
Categorical propositions
Categorical propositions Categorical propositions
Categorical propositions
 
Categorical propositions
Categorical propositionsCategorical propositions
Categorical propositions
 
Categorical syllogism
Categorical syllogismCategorical syllogism
Categorical syllogism
 
Categorical Propositions- Logic
Categorical Propositions- LogicCategorical Propositions- Logic
Categorical Propositions- Logic
 
judgment(proposition)
judgment(proposition)judgment(proposition)
judgment(proposition)
 
Logic - Three mental operations
Logic - Three mental operationsLogic - Three mental operations
Logic - Three mental operations
 
Judgment and proposition or logical statement
Judgment and proposition or logical statementJudgment and proposition or logical statement
Judgment and proposition or logical statement
 
CATEGORICAL SYLLOGISM
CATEGORICAL SYLLOGISMCATEGORICAL SYLLOGISM
CATEGORICAL SYLLOGISM
 
LOGIC: Ideas & Terms
LOGIC: Ideas & TermsLOGIC: Ideas & Terms
LOGIC: Ideas & Terms
 
Logic.ppt.
Logic.ppt.Logic.ppt.
Logic.ppt.
 
Logic Ppt
Logic PptLogic Ppt
Logic Ppt
 

Similaire à Dicrete structure

20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptxssuser92109d
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdfrAjyarAjanItjJa
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1taimoor iftikhar
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer scienceBindhuBhargaviTalasi
 
Logic and proof
Logic and proofLogic and proof
Logic and proofSuresh Ram
 
UGC NET Computer Science & Application book.pdf [Sample]
UGC NET Computer Science & Application book.pdf  [Sample]UGC NET Computer Science & Application book.pdf  [Sample]
UGC NET Computer Science & Application book.pdf [Sample]DIwakar Rajput
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdfPradeeshSAI
 
UNIT-III-PPT.pptx
UNIT-III-PPT.pptxUNIT-III-PPT.pptx
UNIT-III-PPT.pptxDakshBaveja
 
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and ProofsChapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and ProofsProfSHananeel
 
Lecture-3-and-4.pdf
Lecture-3-and-4.pdfLecture-3-and-4.pdf
Lecture-3-and-4.pdfssuserc478ac
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptsamalaramesh4
 

Similaire à Dicrete structure (20)

Logic - Logical Propositions
Logic - Logical Propositions Logic - Logical Propositions
Logic - Logical Propositions
 
Truth table
Truth tableTruth table
Truth table
 
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
 
Discrete math Truth Table
Discrete math Truth TableDiscrete math Truth Table
Discrete math Truth Table
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer science
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
 
UGC NET Computer Science & Application book.pdf [Sample]
UGC NET Computer Science & Application book.pdf  [Sample]UGC NET Computer Science & Application book.pdf  [Sample]
UGC NET Computer Science & Application book.pdf [Sample]
 
Per3 logika&amp;pembuktian
Per3 logika&amp;pembuktianPer3 logika&amp;pembuktian
Per3 logika&amp;pembuktian
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
 
Logic
LogicLogic
Logic
 
UNIT-III-PPT.pptx
UNIT-III-PPT.pptxUNIT-III-PPT.pptx
UNIT-III-PPT.pptx
 
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and ProofsChapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
 
Truth table
Truth tableTruth table
Truth table
 
Lecture-3-and-4.pdf
Lecture-3-and-4.pdfLecture-3-and-4.pdf
Lecture-3-and-4.pdf
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.ppt
 
DM(1).pptx
DM(1).pptxDM(1).pptx
DM(1).pptx
 
2.pdf
2.pdf2.pdf
2.pdf
 
DMS UNIT-1 ppt.pptx
DMS UNIT-1 ppt.pptxDMS UNIT-1 ppt.pptx
DMS UNIT-1 ppt.pptx
 

Dernier

"The Magnificent Surah Rahman: PDF Version"
"The Magnificent Surah Rahman: PDF Version""The Magnificent Surah Rahman: PDF Version"
"The Magnificent Surah Rahman: PDF Version"aijazuddin14
 
Top No 1 Amil baba in Islamabad Famous Amil baba in Pakistan Amil baba Contac...
Top No 1 Amil baba in Islamabad Famous Amil baba in Pakistan Amil baba Contac...Top No 1 Amil baba in Islamabad Famous Amil baba in Pakistan Amil baba Contac...
Top No 1 Amil baba in Islamabad Famous Amil baba in Pakistan Amil baba Contac...Amil Baba Naveed Bangali
 
Jude: The Acts of the Apostates (Jude vv.1-4).pptx
Jude: The Acts of the Apostates (Jude vv.1-4).pptxJude: The Acts of the Apostates (Jude vv.1-4).pptx
Jude: The Acts of the Apostates (Jude vv.1-4).pptxStephen Palm
 
Study of the Psalms Chapter 1 verse 3 - wanderean
Study of the Psalms Chapter 1 verse 3 - wandereanStudy of the Psalms Chapter 1 verse 3 - wanderean
Study of the Psalms Chapter 1 verse 3 - wandereanmaricelcanoynuay
 
The Revelation Chapter 4 Working Copy.docx
The Revelation Chapter 4 Working Copy.docxThe Revelation Chapter 4 Working Copy.docx
The Revelation Chapter 4 Working Copy.docxFred Gosnell
 
Flores de Mayo-history and origin we need to understand
Flores de Mayo-history and origin we need to understandFlores de Mayo-history and origin we need to understand
Flores de Mayo-history and origin we need to understandvillamilcecil909
 
Legends of the Light v2.pdf xxxxxxxxxxxxx
Legends of the Light v2.pdf xxxxxxxxxxxxxLegends of the Light v2.pdf xxxxxxxxxxxxx
Legends of the Light v2.pdf xxxxxxxxxxxxxssuser83613b
 
Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...
Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...
Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...baharayali
 
VADODARA CALL GIRL AVAILABLE 7568201473 call me
VADODARA CALL GIRL AVAILABLE 7568201473 call meVADODARA CALL GIRL AVAILABLE 7568201473 call me
VADODARA CALL GIRL AVAILABLE 7568201473 call meshivanisharma5244
 
St. John's Church Parish Magazine - May 2024
St. John's Church Parish Magazine - May 2024St. John's Church Parish Magazine - May 2024
St. John's Church Parish Magazine - May 2024Chris Lyne
 
Elite Class ➥8448380779▻ Call Girls In Mehrauli Gurgaon Road Delhi NCR
Elite Class ➥8448380779▻ Call Girls In Mehrauli Gurgaon Road Delhi NCRElite Class ➥8448380779▻ Call Girls In Mehrauli Gurgaon Road Delhi NCR
Elite Class ➥8448380779▻ Call Girls In Mehrauli Gurgaon Road Delhi NCRDelhi Call girls
 
Elite Class ➥8448380779▻ Call Girls In Naraina Delhi NCR
Elite Class ➥8448380779▻ Call Girls In Naraina Delhi NCRElite Class ➥8448380779▻ Call Girls In Naraina Delhi NCR
Elite Class ➥8448380779▻ Call Girls In Naraina Delhi NCRDelhi Call girls
 
Verified Amil baba in Pakistan Amil baba in Islamabad Famous Amil baba in Ger...
Verified Amil baba in Pakistan Amil baba in Islamabad Famous Amil baba in Ger...Verified Amil baba in Pakistan Amil baba in Islamabad Famous Amil baba in Ger...
Verified Amil baba in Pakistan Amil baba in Islamabad Famous Amil baba in Ger...Amil Baba Naveed Bangali
 
Hire Best Next Js Developer For Your Project
Hire Best Next Js Developer For Your ProjectHire Best Next Js Developer For Your Project
Hire Best Next Js Developer For Your ProjectCyanic lab
 
NoHo First Good News online newsletter May 2024
NoHo First Good News online newsletter May 2024NoHo First Good News online newsletter May 2024
NoHo First Good News online newsletter May 2024NoHo FUMC
 
St John's Church Parish Diary for May 2024
St John's Church Parish Diary for May 2024St John's Church Parish Diary for May 2024
St John's Church Parish Diary for May 2024Chris Lyne
 
May 2024 Calendar of Events for Hope Lutheran Church
May 2024 Calendar of Events for Hope Lutheran ChurchMay 2024 Calendar of Events for Hope Lutheran Church
May 2024 Calendar of Events for Hope Lutheran ChurchFloodwoodvern
 

Dernier (20)

"The Magnificent Surah Rahman: PDF Version"
"The Magnificent Surah Rahman: PDF Version""The Magnificent Surah Rahman: PDF Version"
"The Magnificent Surah Rahman: PDF Version"
 
Top No 1 Amil baba in Islamabad Famous Amil baba in Pakistan Amil baba Contac...
Top No 1 Amil baba in Islamabad Famous Amil baba in Pakistan Amil baba Contac...Top No 1 Amil baba in Islamabad Famous Amil baba in Pakistan Amil baba Contac...
Top No 1 Amil baba in Islamabad Famous Amil baba in Pakistan Amil baba Contac...
 
Jude: The Acts of the Apostates (Jude vv.1-4).pptx
Jude: The Acts of the Apostates (Jude vv.1-4).pptxJude: The Acts of the Apostates (Jude vv.1-4).pptx
Jude: The Acts of the Apostates (Jude vv.1-4).pptx
 
Study of the Psalms Chapter 1 verse 3 - wanderean
Study of the Psalms Chapter 1 verse 3 - wandereanStudy of the Psalms Chapter 1 verse 3 - wanderean
Study of the Psalms Chapter 1 verse 3 - wanderean
 
The Revelation Chapter 4 Working Copy.docx
The Revelation Chapter 4 Working Copy.docxThe Revelation Chapter 4 Working Copy.docx
The Revelation Chapter 4 Working Copy.docx
 
English - The Forgotten Books of Eden.pdf
English - The Forgotten Books of Eden.pdfEnglish - The Forgotten Books of Eden.pdf
English - The Forgotten Books of Eden.pdf
 
Flores de Mayo-history and origin we need to understand
Flores de Mayo-history and origin we need to understandFlores de Mayo-history and origin we need to understand
Flores de Mayo-history and origin we need to understand
 
Legends of the Light v2.pdf xxxxxxxxxxxxx
Legends of the Light v2.pdf xxxxxxxxxxxxxLegends of the Light v2.pdf xxxxxxxxxxxxx
Legends of the Light v2.pdf xxxxxxxxxxxxx
 
Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...
Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...
Famous Kala Jadu, Black magic specialist in Lahore and Kala ilam expert in ka...
 
VADODARA CALL GIRL AVAILABLE 7568201473 call me
VADODARA CALL GIRL AVAILABLE 7568201473 call meVADODARA CALL GIRL AVAILABLE 7568201473 call me
VADODARA CALL GIRL AVAILABLE 7568201473 call me
 
St. John's Church Parish Magazine - May 2024
St. John's Church Parish Magazine - May 2024St. John's Church Parish Magazine - May 2024
St. John's Church Parish Magazine - May 2024
 
Elite Class ➥8448380779▻ Call Girls In Mehrauli Gurgaon Road Delhi NCR
Elite Class ➥8448380779▻ Call Girls In Mehrauli Gurgaon Road Delhi NCRElite Class ➥8448380779▻ Call Girls In Mehrauli Gurgaon Road Delhi NCR
Elite Class ➥8448380779▻ Call Girls In Mehrauli Gurgaon Road Delhi NCR
 
Elite Class ➥8448380779▻ Call Girls In Naraina Delhi NCR
Elite Class ➥8448380779▻ Call Girls In Naraina Delhi NCRElite Class ➥8448380779▻ Call Girls In Naraina Delhi NCR
Elite Class ➥8448380779▻ Call Girls In Naraina Delhi NCR
 
Verified Amil baba in Pakistan Amil baba in Islamabad Famous Amil baba in Ger...
Verified Amil baba in Pakistan Amil baba in Islamabad Famous Amil baba in Ger...Verified Amil baba in Pakistan Amil baba in Islamabad Famous Amil baba in Ger...
Verified Amil baba in Pakistan Amil baba in Islamabad Famous Amil baba in Ger...
 
English - The Story of Ahikar, Grand Vizier of Assyria.pdf
English - The Story of Ahikar, Grand Vizier of Assyria.pdfEnglish - The Story of Ahikar, Grand Vizier of Assyria.pdf
English - The Story of Ahikar, Grand Vizier of Assyria.pdf
 
Hire Best Next Js Developer For Your Project
Hire Best Next Js Developer For Your ProjectHire Best Next Js Developer For Your Project
Hire Best Next Js Developer For Your Project
 
NoHo First Good News online newsletter May 2024
NoHo First Good News online newsletter May 2024NoHo First Good News online newsletter May 2024
NoHo First Good News online newsletter May 2024
 
St John's Church Parish Diary for May 2024
St John's Church Parish Diary for May 2024St John's Church Parish Diary for May 2024
St John's Church Parish Diary for May 2024
 
St. Louise de Marillac and Care of the Sick Poor
St. Louise de Marillac and Care of the Sick PoorSt. Louise de Marillac and Care of the Sick Poor
St. Louise de Marillac and Care of the Sick Poor
 
May 2024 Calendar of Events for Hope Lutheran Church
May 2024 Calendar of Events for Hope Lutheran ChurchMay 2024 Calendar of Events for Hope Lutheran Church
May 2024 Calendar of Events for Hope Lutheran Church
 

Dicrete structure

  • 1. What is PROPOSITION?<br />A proposition is a sentence expressing something true or false. In philosophy, particularly in logic, a proposition is identified ontologically as an idea, concept, or abstraction whose token instances are patterns of symbols, marks, sounds, or strings of words. Propositions are considered to be syntactic entities and also truthbearers.<br />The existence of propositions in the abstract sense, as well as the existence of quot; meaningsquot; , is disputed by some philosophers. Where the concept of a quot; meaningquot; is admitted, its nature is controversial. In earlier texts writers have not always made it sufficiently clear whether they are using the term proposition in sense of the words or the quot; meaningquot; expressed by the words. To avoid the controversies and ontological implications, the term sentence is often now used instead of proposition to refer to just those strings of symbols that are truthbearers, being either true or false under an interpretation. Strawson advocated the use of the term quot; statementquot; , and this is the current usage in mathematical logic.<br />Connectives or operations on Proposition<br />Let us define the meaning of the five connectives by showing the relationship between the truth value (i.e. true or false) of composite propositions and those of their component propositions. They are going to be shown using truth table. In the tables P and Q represent arbitrary propositions, and true and false are represented by T and F, respectively. <br />NOTP PT FF T<br />This table shows that if P is true, then ( P) is false, and that if P is false, then ( P) is true. <br />ANDP Q(P Q) F FF F TF T FF T TT <br />This table shows that (P Q) is true if both P and Q are true, and that it is false in any other case.<br />Similarly for the rest of the tables.<br />ORP Q(P Q) F FF F TT T FT T TT <br />IMPLIESP Q(P Q) F FT F TT T FF T TT <br />When P Q is always true, we express that by P Q. That is P Q is used when proposition P always implies proposition Q regardless of the value of the variables in them.Also see a note on the truth value of IMPLIES when P is False. <br />IF AND ONLY IF  P   Q   ( P Q )   F   FT   F   TF   T   FF   T   TT <br />When P Q is always true, we express that by P Q. That is is used when two propositions always take the same value regardless of the value of the variables in them.<br />What is TRUTH TABLE?<br />A truth table is a mathematical table used in logic—specifically in connection with Boolean algebra, boolean functions, and propositional calculus—to compute the functional values of logical expressions on each of their functional arguments, that is, on each combination of values taken by their logical variables (Enderton 2001). In particular, truth tables can be used to tell whether a propositional expression is true for all legitimate input values, that is, logically valid.<br />Practically, a truth table is composed of one column for each input variable (for example, A and B), and one final column for all of the possible results of the logical operation that the table is meant to represent (for example, A XOR B). Each row of the truth table therefore contains one possible configuration of the input variables (for instance, A=true B=false), and the result of the operation for those values. See the examples below for further clarification.<br />Unary operations<br />Logical identity<br />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.<br />The truth table for the logical identity operator is as follows:<br />Logical IdentityppTTFF<br />Logical negation<br />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.<br />The truth table for NOT p (also written as ¬p or ~p) is as follows:<br />Logical Negationp¬pTFFT<br />Binary operations<br />Truth table for all binary logical operators<br />Here is a truth table giving definitions of all 16 of the possible truth functions of 2 binary variables (P,Q are thus boolean variables):<br />PQ 0  1  2  3  4  5  6  7  8  9 101112131415TTFFFFFFFFTTTTTTTTTFFFFFTTTTFFFFTTTTFTFFTTFFTTFFTTFFTTFFFTFTFTFTFTFTFTFT<br />where T = true and F = false.<br />Key:<br />0, false, Contradiction<br />1, NOR, Logical NOR<br />2, Converse nonimplication<br />3, ¬p, Negation<br />4, Material nonimplication<br />5, ¬q, Negation<br />6, XOR, Exclusive disjunction<br />7, NAND, Logical NAND<br />8, AND, Logical conjunction<br />9, XNOR, If and only if, Logical biconditional<br />10, q, Identity<br />11, if/then, Logical implication<br />12, p, Identity<br />13, then/if, Converse implication<br />14, OR, Logical disjunction<br />15, true, Tautology<br />Logical operators can also be visualized using Venn diagrams.<br />Logical conjunction<br />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.<br />The truth table for p AND q (also written as p ∧ q, p & q, or p q) is as follows:<br />Logical Conjunctionpqp ∧ qTTTTFFFTFFFF<br />In ordinary language terms, if both p and q are true, then the conjunction p ∧ q is true. For all other assignments of logical values to p and to q the conjunction p ∧ q is false.<br />It can also be said that if p, then p ∧ q is q, otherwise p ∧ q is p.<br />Logical disjunction<br />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.<br />The truth table for p OR q (also written as p ∨ q, p || q, or p + q) is as follows:<br />Logical Disjunctionpqp ∨ qTTTTFTFTTFFF<br />Stated in English, if p, then p ∨ q is p, otherwise p ∨ q is q.<br />Logical implication<br />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.<br />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 follows:<br />Logical Implicationpqp -> qTTTTFFFTTFFT<br />Logical equality<br />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.<br />The truth table for p XNOR q (also written as p ↔ q ,p = q, or p ≡ q) is as follows:<br />Logical Equalitypqp ≡ qTTTTFFFTFFFT<br />So p EQ q is true if p and q have the same truth value (both true or both false), and false if they have different truth values.<br />Exclusive disjunction<br />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.<br />The truth table for p XOR q (also written as p ⊕ q, or p ≠ q) is as follows:<br />Exclusive Disjunctionpqp ⊕ qTTFTFTFTTFFF<br />For two propositions, XOR can also be written as (p = 1 ∧ q = 0)∨ (p = 0 ∧ q = 1).<br />Logical NAND<br />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.<br />The truth table for p NAND q (also written as p ↑ q or p | q) is as follows:<br />Logical NANDpqp ↑ qTTFTFTFTTFFT<br />It is frequently useful to express a logical operation as a compound operation, that is, as an operation that is built up or composed from other operations. Many such compositions are possible, depending on the operations that are taken as basic or quot; primitivequot; and the operations that are taken as composite or quot; derivativequot; .<br />In the case of logical NAND, it is clearly expressible as a compound of NOT and AND.<br />The negation of a conjunction: ¬(p ∧ q), and the disjunction of negations: (¬p) ∨ (¬q) can be tabulated as follows:<br />pqp ∧ q¬(p ∧ q)¬p¬q(¬p) ∨ (¬q)TTTFFFFTFFTFTTFTFTTFTFFFTTTT<br />Logical NOR<br />The logical NOR 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 false. In other words, it produces a value of false if at least one of its operands is true. ↓ is also known as the Peirce arrow after its inventor, Charles Sanders Peirce, and is a Sole sufficient operator.<br />The truth table for p NOR q (also written as p ↓ q or p ⊥ q) is as follows:<br />Logical NORpqp ↓ qTTFTFFFTFFFT<br />The negation of a disjunction ¬(p ∨ q), and the conjunction of negations (¬p) ∧ (¬q) can be tabulated as follows:<br />pqp ∨ q¬(p ∨ q)¬p¬q(¬p) ∧ (¬q)TTTFFFFTFTFFTFFTTFTFFFFFTTTT<br />Inspection of the tabular derivations for NAND and NOR, under each assignment of logical values to the functional arguments p and q, produces the identical patterns of functional values for ¬(p ∧ q) as for (¬p) ∨ (¬q), and for ¬(p ∨ q) as for (¬p) ∧ (¬q). Thus the first and second expressions in each pair are logically equivalent, and may be substituted for each other in all contexts that pertain solely to their logical values.<br />This equivalence is one of De Morgan's laws.<br />Applications<br />Truth tables can be used to prove many other logical equivalences. For example, consider the following truth table:<br />Logical Equivalence : (p -> q) = (¬p ∨ q)pq¬p¬p ∨ qp -> qTTFTTTFFFFFTTTTFFTTT<br />This demonstrates the fact that p -> q is logically equivalent to ¬p ∨ q.<br />Truth table for most commonly used logical operators<br />Here is a truth table giving definitions of the most commonly used 7 of the 16 possible truth functions of 2 binary variables (P,Q are thus boolean variables):<br />PQTTTTFTTTTTFFTTFFTFFTFTTFTFFFFFFFTTTT<br />Key:<br />T = true, F = false<br />= AND (logical conjunction)<br />= OR (logical disjunction)<br />= XOR (exclusive or)<br />= XNOR (exclusive nor)<br />= conditional quot; if-thenquot; <br />= conditional quot; (then)-ifquot; <br />biconditional or quot; if-and-only-ifquot; is logically equivalent to : XNOR (exclusive nor).<br />Logical operators can also be visualized using Venn diagrams.<br />Condensed truth tables for binary operators<br />For binary operators, a condensed form of truth table is also used, where the row headings and the column headings specify the operands and the table cells specify the result. For example Boolean logic uses this condensed truth table notation:<br />∧FTFFFTFT∨FTFFTTTT<br />This notation is useful especially if the operations are commutative, although one can additionally specify that the rows are the first operand and the columns are the second operand. This condensed notation is particularly useful in discussing multi-valued extensions of logic, as it significantly cuts down on combinatoric explosion of the number of rows otherwise needed. It also provides for quickly recognizable characteristic quot; shapequot; of the distribution of the values in the table which can assist the reader in grasping the rules more quickly.<br />Truth tables in digital logic<br />Truth tables are also used to specify the functionality of hardware look-up tables (LUTs) in digital logic circuitry. For an n-input LUT, the truth table will have 2^n values (or rows in the above tabular format), completely specifying a boolean function for the LUT. By representing each boolean value as a bit in a binary number, truth table values can be efficiently encoded as integer values in electronic design automation (EDA) software. For example, a 32-bit integer can encode the truth table for a LUT with up to 5 inputs.<br />When using an integer representation of a truth table, the output value of the LUT can be obtained by calculating a bit index k based on the input values of the LUT, in which case the LUT's output value is the kth bit of the integer. For example, to evaluate the output value of a LUT given an array of n boolean input values, the bit index of the truth table's output value can be computed as follows: if the ith input is true, let Vi = 1, else let Vi = 0. Then the kth bit of the binary representation of the truth table is the LUT's output value, where k = V0*2^0 + V1*2^1 + V2*2^2 + ... + Vn*2^n.<br />Truth tables are a simple and straightforward way to encode boolean functions, however given the exponential growth in size as the number of inputs increase, they are not suitable for functions with a large number of inputs. Other representations which are more memory efficient are text equations and binary decision diagrams.<br />Applications of truth tables in digital electronics<br />In digital electronics (and computer science, fields of engineering derived from applied logic and math), truth tables can be used to reduce basic boolean operations to simple correlations of inputs to outputs, without the use of logic gates or code. For example, a binary addition can be represented with the truth table:<br />A B | C R<br />1 1 | 1 0<br />1 0 | 0 1<br />0 1 | 0 1<br />0 0 | 0 0<br />where <br />A = First Operand<br />B = Second Operand<br />C = Carry <br />R = Result<br />This truth table is read left to right:<br />Value pair (A,B) equals value pair (C,R).<br />Or for this example, A plus B equal result R, with the Carry C.<br />Note that this table does not describe the logic operations necessary to implement this operation, rather it simply specifies the function of inputs to output values.<br />In this case it can only be used for very simple inputs and outputs, such as 1's and 0's, however if the number of types of values one can have on the inputs increases, the size of the truth table will increase.<br />For instance, in an addition operation, one needs two operands, A and B. Each can have one of two values, zero or one. The number of combinations of these two values is 2x2, or four. So the result is four possible outputs of C and R. If one was to use base 3, the size would increase to 3x3, or nine possible outputs.<br />The first quot; additionquot; example above is called a half-adder. A full-adder is when the carry from the previous operation is provided as input to the next adder. Thus, a truth table of eight rows would be needed to describe a full adder's logic:<br />A B C* | C R <br />0 0 0 | 0 0 <br />0 1 0 | 0 1<br />1 0 0 | 0 1<br />1 1 0 | 1 0<br />0 0 1 | 0 1<br />0 1 1 | 1 0<br />1 0 1 | 1 0<br />1 1 1 | 1 1<br />Same as previous, but.. <br />C* = Carry from previous adder<br />By:<br />Honey Joy A. Macabasco<br /> AIT 2-2 <br />