Académique Documents
Professionnel Documents
Culture Documents
PRESENTATION
( S Y M B O L I C L O G I C , P R O B A B I L I T Y, C O M B I N AT I O N ,
P E R M U TAT I O N )
SYMBOLIC
LOGIC
Symbolic logic is a way to represent logical
expressions by using symbols and variables in place
of natural language, such as English, in order to
remove vagueness. Logical expressions are
statements that have a truth value. They are
either true or false.
LOGICAL OPERATORS
CONJUNCTION ()
DISJUNCTION ()
NEGATION ()
CONDITIONAL
* Implies ( )
BICONDITIONAL
* If and only if ( )
CONJUNCTION (AND STATEMENT)
A conjunction is a compound statement formed by
combining two statements using the word and . In
symbolic logic, the conjunction of pp and qq is
written pqpq .
A conjunction is true only if both the statements in it are
true. The following truth table gives the truth value
of pqpq depending on the truth values of pp and qq .
Conjunction Truth table
DISJUNCTION (OR STATEMENT)
A disjunction is a compound statement formed by
combining two statements using the word and . In
symbolic logic, the disjunction of pp and qq is written
pqpq .
1.
2.
IMPLICATION
THE FOLLOWING FOUR PHRASES ARE EQUIVALENT TO:
p implies q
If p, then q
q if p
p only if q
CONDITIONAL PHRASES
p: she gets good grades.
q: she will passed.
EXAMPLE:
(p q)
She gets good grades and she will passed.
( p q )
if she gets bad grades then she will not passed.
PROBABILIT Y
PROBABILITY
Probability is simply how likely something
is to happen.
Whenever were unsure about the
outcome of an event, we can talk about
the probabilities of certain outcomes
how likely they are. The analysis of events
governed by probability is called statistics.
Tossing a Coin
When a coin is tossed, there are two
possible outcomes:
heads (H) or
tails (T)
We say that the probability of the coin
landing H is
And the probability of the coin
landing T is
Throwing Dice
When a single die is thrown,
there are six possible
outcomes: 1, 2, 3, 4, 5, 6.
The probability of any one of
them is 16
IN GENERAL
For example, there are 2!=21=2 permutations of {1,2}, namely {1,2} and
{2,1}, and 3!=321=6 permutations of {1,2,3}, namely {1,2,3}, {1,3,2},
{2,1,3}, {2,3,1}, {3,1,2}, and {3,2,1}. The permutations of a list can be
found in the Wolfram Language using the command Permutations[list].
A list of length n can be tested to see if it is a permutation of 1, ..., n in
the Wolfram Language using the command PermutationListQ
Sedgewick (1977) summarizes a number of algorithms for
generating permutations, and identifies the minimum
change permutation algorithm of Heap (1963) to be
generally the fastest (Skiena 1990, p. 10). Another method
of enumerating permutations was given by Johnson (1963;
Sroul 2000, pp. 213-218).
The number of ways of obtaining an ordered subset of k elements
from a set of n elements is given by
EXAMPLE
1. ORDER OF 3 OUT OF 16 POOL BALLS
20,922,789,88
16! 16!
= = 8,000 = 3,360
(16-3)! 13! 6,227,020,800