DMS 2nd Sem BCA
DMS 2nd Sem BCA
Example of Sets
A Set is a well-defined collection of objects. The objects inside a set
are called members of the set. Some examples of sets are mentioned
below:
Set of Natural Numbers: N = {1, 2, 3, 4….}
Set of Even Numbers: E = {2, 4, 6, 8…}
Set of Prime Numbers: P = {2, 3, 5, 7,….}
Set of Integers: I = {…, -4, -3, -2, -1, 0, 1, 2,….}
Some Standard Sets used in Set Theory
Set of Natural Numbers is denoted by N
Set of Whole Numbers is denoted by W
Set of Integers is denoted by Z
Set of Rational Numbers is denoted by Q
Set of Irrational Numbers is denoted by T
Set of Real Numbers is denoted by R
Representation of Sets
Sets are primarily represented in two forms
Roster Form
Set Builder Form
Roster Form
In the Roster Form of the set, the elements are placed inside braces
{} and are separated by commas. Let’s say we have a set of the first
five prime numbers then it will be represented by P = {2, 3, 5, 7,
11}. Here the set P is an example of a finite set as the number of
elements is finite, however, we can come across a set that has
infinite elements then in that case the roster form is represented in
the manner that some elements are placed followed by dots to
represent infinity inside the braces. Let’s say we have to represent a
set of Natural Numbers in Roster Form then its Roster Form is given
as N = {1, 2, 3, 4…..}.
Set Builder Form
In Set Builder Form, a rule or a statement describing the common
characteristics of all the elements is written instead of writing the
elements directly inside the braces. For Example, a set of all the
prime numbers less than or equal to 10 is given as
VISHNU K .M, LECTURER 9844485894
3
Equal Sets
If the number of elements and also the elements of two sets are the
same irrespective of the order then the two sets are called equal sets.
For Example, if set A = {2, 4, 6, 8} and B ={8, 4, 6, 2} then we see
that number of elements in both sets A and B is 4 i.e. same and the
elements are also the same although the order is different. Hence, A
and B are Equal Sets. Equal Sets are represented as A = B.
Unequal Sets
If at least any one element of one set differs from the elements of
another set then the two sets are said to be unequal sets. For
Example, if set A = {2, 4, 6, 8} and B = {4, 6, 8, 10} then set A and
B are unequal sets as 2 is present in set A but not in B and 10 is
present in set B but not in A. Hence, one element differs between
them thus making them unequal. However, the cardinal number is
the same therefore they are equivalent sets.`
Overlapping Sets
If at least any one element of the two sets are the same then the two
sets are said to be overlapping sets. For Example, if set A = {1, 2, 3}
and set B = {3, 4, 5} then we see that 3 is the common element
between set A and set B hence, set A and set B are Overlapping Sets.
Disjoint Sets
If none of the elements between two sets are common then they are
called the Disjoint Sets i.e., for two sets A and B if A. For Example,
set A = {1, 2, 3} and set B = {4, 5, 6} then we observe that there is
no common element between set A and set B hence, set A and B are
Disjoint Sets.
Apart from the above-mentioned sets, there are other sets called,
Subsets, Supersets, Universal Sets, and Power Sets. We will learn
them below in detail.
Subsets
If A and B are two sets such that every element of set A is present in
set B then A is called the subset of B. It is represented as A ⊆ B and
read as ‘A is a subset of B’. Mathematically it is expressed as
A ⊆ B iff
a∈A⇒a∈B
If A is not a subset of B we write it as A ⊄ B.
For Example, if A = {1, 2} and B = {1, 2, 3} then we see that all the
elements of A are present in B, hence A ⊆ B. There are two kinds of
subset Proper Subset and Improper Subset.
Proper Subset
If a subset doesn’t contain all the elements of the set or has fewer
elements than the original set then it is called the proper subset. For
example, in set A = {1, 2} and B = {1, 2, 3}, the subset A doesn’t
contain all the elements of the original set B, hence A is a proper
subset of B. It is represented as A ⊂ B. Empty set is a proper subset
of a given set as it has no elements.
Improper Subset
If a subset contains all the elements that are present in the original
set then it is called an Improper Subset. For Example, if set A = {1,
2, 3, 4} and set B = {1, 2, 3, 4} then A is the improper subset of set
B. It is mathematically expressed as A ⊆ B. Thus we deduce that two
sets are equal iff A ⊆ B and B ⊆ A. It should be noted that an empty
set is an improper subset of itself.
Some Important Results on Subset
Every set is a subset of itself
An empty Set is a subset of every set.
The number of possible subsets for a given finite set with ‘n’
number of elements is equal to 2n.
N ⊂ W ⊂ Z ⊂ Q ⊂ R and T ⊂ R where N is a set of Natural
Numbers, W is a set of Whole Numbers, Z is a set of integers, Q
is a set of Rational Numbers, T is a set of irrational numbers and
R is set of real numbers.
Superset
If all the elements of set A are present in set B then set B is called
the Superset of set A. It is represented as B ⊇ A. Let’s say if A = {2,
3, 4} and B = {1, 2, 3, 4} then we see that all elements of set A are
present in set B, hence B ⊇ A. If a superset has more elements than
its subset then it is called a proper or strict superset. A Proper
Superset is represented as B ⊃ A. Some of the Properties of
Supersets are mentioned below:
Every set is a superset of itself.
Every set is a superset of an empty set.
{} Set
Φ Empty Set
Symbol Explanation
A ⊆ B A is a subset of B
A ⊈ B A is not a subset of B
B ⊇ A B is the superset of A
B ⊃ A B is a proper superset of A
B ⊉ A B is not a superset of A
A ∪ B A union B
A ∩ B A intersection B
A’ Complement of Set A
Sets Operation
The sets undergo various operation which includes their union of
sets, the intersection of sets, the difference of sets, the complement
of sets, and the Cartesian Product of Sets. We will learn them briefly
below:
Union of Sets
Union of Sets basically refers to uniting two sets and writing their
elements in a single set without repeating elements if common
elements are present. The union of sets is given by A ∪ B.
For Example if Set A = {2, 4} and Set B = {4, 6} then A ∪ B = {2,
4} ∪ {4, 6} = {2, 4, 6}
Intersection of Sets
Intersection of sets refers to finding the common elements between
two sets. It is given by A ∩ B. For Example if set A = {2, 4} and B =
{4, 6} then A ∩ B = {2, 4} ∩ {4, 6} = {6}.
Difference of Sets
Difference of Sets refers to the deletion of common elements of two
sets and writing down the remaining elements of two sets. It is
represented as A – B. For Example if et A = {2, 4} and B = {4, 6}
then A – B = {2, 6}
Complement of Set
Compliment of Set refers to the set of elements from the universal set
excluding the elements of the set of which we are finding the
compliment. It is given by A’. For Example, if we have to find out
the complement of the set of Natural Numbers then it will include all
the numbers in the set from the Real Numbers except the Natural
Numbers. Here Real Number is the Universal set of Natural
Numbers.
Cartesian product of Sets
Cartesian Product of Sets refers to the product between the elements
of two sets in ordered pair. It is given as A ✕ B. For Example if set
A = {2, 4} and B = {4, 6} then A ✕ B = {(2,4), (2,6), (4,4), (4,6)}.
(A ∩ B) Φ
n(A – B) n(A)
Properties of Sets
The various properties followed by sets are tabulated below:
Property Expression
Commutative Property A ∪ B = B ∪ A
A∩B=B∩A
Associative Property (A ∩ B) ∩ C = A ∩ (B ∩ C)
(A ∪ B) ∪ C = A ∪ (B ∪ C)
Distributive Property A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
Property Expression
Complement Property A ∪ A’ = A
Idempotent Property A ∪ A = AA ∩ A = A
De Morgan’s Law
De Morgan’s Law is applicable in relating the union and intersection
of two sets via their complements. There are two laws under De
Morgan’s Law. Let’s learn them briefly
De Morgan’s Law of Union
De Morgan’s Law of Union states that the complement of the union
of two sets is equal to the intersection of the complement of
individual sets. Mathematically it can be expressed as
(A ∪ B)’ = A’ ∩ B’
Venn Diagram
Venn Diagram is a technique for representing the relation between
two sets with the help of circles, generally intersecting. For Example,
two circles intersecting with each other with the common area
merged into them represent the union of sets, and two intersecting
circles with a common area highlighted represents the intersection of
sets while two circles separated from each other represents the two
disjoint sets. A rectangular box surrounding the circle represents the
universal set. The Venn diagrams for various operations of sets are
listed below:
Operations on Sets
Intersection and Union of Sets
Intersection
The intersection of two sets A and B is a set that contains all the
elements that are common to both A and B. Formally it is written as
Example:
If A = {2, 3, 5, 7} and B = {1, 2, 3, 4, 5}
then the intersection of set A and B is the set A ∩ B = {2, 3, 5}
In this example 2, 3, and 5 are the only elements that belong to both
sets A and B.
Union
Union of two sets A and B is a set that contains all the elements that
are in A or in B or in both A and B. Formally it is written as
In the following image, the shaded area is the union of sets A and B.
Example:
If A = {2, 4, 8} and B = {2, 6, 8}
then the union of A and B is the set A ∪ B = {2, 4, 6, 8}
In this example, 2, 4, 6, and 8 are the elements that are found in set
A or in set B or in both sets A and B
Example:
If A = {2, 4} and B = {1, 2, 3, 4, 5, 6, 7, 8}
then A is a subset of B
In this example, A is a subset of B, because all the elements in A are
also in B
Notes:
1. An empty set (or null set) is a subset of every set.
Example:
∅ is a subset of the set {1, 2, 3, 4}
2. For a set A, the number of possible subsets is 2|A|.
Where |A| = number of elements in A.
Example:
For the set C = {1, 2, 3}, there are 23 = 8 possible subsets
they are ∅, {1}, {2}, {3}, {1, 2}, {2, 3}, {1, 3}, {1, 2, 3}
Example:
For a set B = {1, 2, 3},
∅, {1}, {2}, {3}, {1, 2}, {2, 3}, {1, 3} are all proper subsets of B
Note that {1, 2, 3} is not a proper subset of B, because they are equal
Examples:
If A = {2, 4} and B = {1, 2, 3, 4, 5, 6, 7, 8}
then B is the superset of A, because A is a subset of B
If A = {11, 12} and B = {11, 12 } then B is the super set of A
Proper superset (also called strict superset)
For two sets A and B, if A is a subset of B and A is not equal to B,
then B is the proper superset of A. Formally it is written as
Examples:
If A = {1, 2, 3} and B = {0, 1, 2, 3, 4, 5}then B is a proper
superset of A, because A is a subset of B and A ≠ B
Proof:
We can write
|A ∪ B| = |A – B| + |A ∩ B| + |B – A| —- by the sum of
disjoint sets, refer to the Venn diagram above
|A ∪ B| = (|A| – |A ∩ B|) + |A ∩ B| + |B – A| —- Substitute |A –
B| = |A| – |A ∩ B|
|A ∪ B| = |A| + |B – A| —- Simplify
|A ∪ B| = |A| + |B| – |A ∩ B| —- Substitute |B –
A| = |B| – |A ∩ B|)
Practical Problems on Union and Intersection of Two sets
Problem 1: There are 100 students in a class, 45 students said that
they liked apples, and 30 of the students said that they liked both
apples and oranges. Every student has to choose at least one of the
two fruits. Find how many students like oranges.
Solution:
Let U = set of all students in the class
A = set of students that like apples
B = set of students that like oranges
Given:
|A| = 45
|A ∩ B| = 30
|U| = |A ∪ B| = 100 (because every student has to choose)
We need to find how many like oranges. i.e., |B|
The formula to be used is,
|A ∪ B| = |A| + |B| – |A ∩ B| —-(i)
Subtract |A| – |A ∩ B| from both sides in (i) to get
|A ∪ B| – (|A| – |A ∩ B|) = |B|
or |B| = |A ∪ B| – (|A| – |A ∩ B|)
Substitute the given values and simplify,
|B| = |A ∪ B| – (|A| – |A ∩ B|)
= 100 – ( 45 -30 )
= 85
Thus the number of students that like oranges is 85.
Thus the number of students who study mathematics but not science
is 60
ii) Finding the number of students that study science but not
mathematics. In the following image, the shaded area represents the
set of students that study science but not mathematics
This yields the string 01 0101 0101, which corresponds to the set
{2, 4, 6, 8, 10}.
To obtain the bit string for the union and intersection of two sets we
perform bitwise Boolean Operations on the bit strings
representing the two sets.
Example 3: The bit strings for the sets {1, 2, 3, 4, 5} and
{1, 3, 5, 7, 9} are 11 1110 0000 and 10 1010 1010.
The bit string for the union of these sets is 11 1110 0000 ∨ 10 1010
1010 = 11 1110 1010, Which corresponds to the set
{1, 2, 3, 4, 5, 7, 9}.If either of the bits in the ith position in the two
strings is 1 (or both are 1), the bit in the ith position of the bit string
of the union is 1. When both bits are 0, is 0. Hence, the bit string for
union is the bitwise OR of the bit strings for the two sets.
The bit string for the intersection of these sets is11 1110 0000 ∧ 10
1010 1010 = 10 1010 0000, which corresponds to the set {1, 3, 5}.
When the bits in the corresponding position in the two strings are
both 1, the bit in the ith position of the bit string of the intersection is
1. When either of the two bits is 0 (or both are 0), is 0. Hence, the bit
string for the intersection is the bitwise AND of the bit strings for the
two sets.
MULTISETS
We recall that a set is a collection of distinct objects. There are many
occasions, however, when we encounter collections of nondistinct
objects. For example, consider the names of the students in a class.
We might have two or more students who have the same name, and
we might wish to talk about the collection of the names of the
students. We define a multiset to be a collection of objects that are
not necessarily distinct. Thus, {a, a, a, b, b, c}, {a, a, a, a}, {a,
b, c}, and { } are examples of multisets. The multiplicity of an
element in a multiset is defined to be the number of times the
element appears in the multiset. Thus, the multiplicity of the element
a in the multiset {a, a, a, c, d, d} is 3. The multiplicity of the
element b is 0, the multiplicity if element c is 1, and the multiplicity
of the element d is 2. Not that sets are merely special instances of
multisets in which the multiplicity of an element is either 0 or 1.
FUNCTIONS
Functions are an important part of discrete mathematics. This article
is all about functions, their types, and other details of functions. A
function assigns exactly one element of a set to each element of the
other set. Functions are the rules that assign one input to one output.
The function can be represented as f: A ⇢ B. A is called the domain
of the function and B is called the codomain function.
Functions:
Types of function:
One-One function ( or Injective Function):
A function in which one element of the domain is connected to one
element of the codomain.
A function f: A ⇢ B is said to be a one-one (injective) function if
different elements of A have different images in B.
f: A ⇢ B is one-one
⇒ a ≠ b ⇒ f(a) ≠ f(b) for all a, b ∈ A
⇒ f(a) = f(b) ⇒ a = b for all a, b ∈ A
ONE-ONE FUNCTION
Many-One function:
A function f: A ⇢ B is said to be a many-one function if two or more
elements of set A have the same image in B.
A function f: A ⇢ B is a many-one function if it is not a one-one
function.
f: A ⇢ B is many-one
⇒ a ≠ b but f(a) = f(b) for all a, b ∈ A
MANY-ONE FUNCTION
ONTO FUNCTION
Into Function:
A function f: A ⇢ B is said to be an into a function if there exists an
element in B with no pre-image in A.
A function f: A⇢ B is into function when it is not onto.
INTO FUNCTION
Inverse of a function:
Let f: A ⇢ B be a bijection then, a function g: B ⇢ A which
associates each element b ∈ B to a different element a ∈ A such that
f(a) = b is called the inverse of f.
f(a) = b ↔︎ g(b) = a
Composition of functions :-
Let f: A ⇢ B and g: B ⇢ C be two functions then, a function gof:
A ⇢ C is defined by (gof)(x) = g(f(x)), for all x ∈ A
is called the composition of f and g.
Note:
Let X and Y be two sets with m and n elements and a function is
defined as f : X->Y then,
m
Total number of functions = n
n
Total number of one-one function = Pm
Total number of onto functions = n – C1(n-1) + C2(n-2) –
m n m n m
………….. + (-1)n-1nCn-11m if m ≥ n.
For the composition of functions f and g be two functions :
fog ≠ gof
If f and g both are one-one function then fog is also one-one.
If f and g both are onto function then fog is also onto.
If f and fog both are one-one function then g is also one-one.
If f and fog both are onto function then it is not necessary that g is
also onto.
(fog)-1 = g-1o f-1
f-1o f = f-1(f(a)) = f-1(b) = a
fof-1 = f(f-1(b)) = f(a) = b
problem :Let f and g be the functions from the set of integers to
the set of integers defined by
f (x) = 2x + 3 and g(x) = 3x + 2. What is the composition of f and
g? What is the compositionof g and f ?
Solution: Both the compositions f ◦g and g◦f are defined.
Moreover,
VISHNU K .M, LECTURER 9844485894
33
Sample Questions:
Graph of function
We can associate a set of pairs in A × B to each function from
A to B. This set of pairs is called the graph of the function and is
often displayed pictorially to aid in understanding the behaviour of
the function.
Let f be a function from the set A to the set B. The graph of the
function f is the set of ordered pairs {(a, b) ∣ a ∈ A and f (a)=b}.
Case 2: ε ≥ .1/2
2x= 2n + 2ε = (2n + 1) +(2ε − 1) and ⌊2x⌋ =2n + 1, since
0 ≤ 2 ε - 1< 1.
⌊x + 1/2⌋ = ⌊ n + (1/2 + ε)⌋ = ⌊ n + 1 + (ε – 1/2)⌋ = n + 1 since 0 ≤ ε–
1/2< 1.
Hence, ⌊2x⌋ = 2n + 1 and ⌊x⌋ + ⌊x + 1/2⌋ = n + (n + 1) = 2n + 1.
Factorial function
Definition: f: N → Z+ , denoted by f(n) = n! is the product of the
first n positive integers when n is a nonnegative integer.
f(n) = 1 · 2 ··· (n – 1) · n, f(0) = 0! = 1
Examples:
f(1) = 1! = 1
f(2) = 2! = 1 · 2 = 2
f(6) = 6! = 1 · 2 · 3· 4· 5 · 6 = 720
f(20) = 2,432,902,008,176,640,000.
Stirling’s Formula
n! ∼√2𝜋n(n∕e)n
f (n) ∼ g(n)= limn→∞ f (n)∕g(n) = 1
PARTIAL FUNCTION
Definition: A partial function f from a set A to a set B is an
assignment to each element a in a subset of A, called the
domain of definition of f, of a unique element b in B.
The sets A and B are called the domain and codomain of f,
respectively. We day that f is undefined for elements in A that are
not inthe domain of definition of f. !When the domain of definition
of f equals A, we say that f isa total function.
Example: f: N → R where f(n) = √n is a partial function from
Z to R where the domain of definition is the set of
nonnegative integers. Note that f is undefined for negative
integers.
GEOMETRIC PROGRESSION
Definition: A geometric progression is a sequence of the form
:where the initial term a and the common ratio r are real
Numbers
Examples:
Let a = 1 and r = −1. Then:
{bn}={b1,b2,b3,b4…….}={-1,1,-1,1…….}
Let a = 2 and r = 5. Then:
{Cn}={c0,c1,c2,c3,c4…….}={-1,1,-1,1…….}
Let a = 6 and r = 1/3. Then:
{dn}={d1,d2,d3,d4…….}={6,2,2/3,2/9.2/27…….}
Arithmetic progression
Strings
Definition: A string is a finite sequence of characters
from a finite set (an alphabet).!
● Sequences of characters or bits are important in
computer science.
● The empty string is represented by λ.
● The string abcde has length 5.
Recurrence Relations
Definition: A recurrence relation for the sequence {an} is an
equation that expresses an in terms of one or more of the
previous terms of the sequence, namely, a0, a1, …, an-1, for
all integers n with n ≥ n0, where n0 is a nonnegative integer.
● A sequence is called a solution of a recurrence relation if its
terms satisfy the recurrence relation.
● The initial conditions for a sequence specify the terms that
precede the first term where the recurrence relation takes
effect.
Questions on Recurrence
Relations
Example 1: Let {an} be a sequence that satisfies the recurrence
relation an = an-1 + 3 for n = 1,2,3,4,…. and suppose that
a0 =2.
What are a1 , a2 and a3
[Here a0 = 2 is the initial condition.]
Solution: We see from the recurrence relation that
a1 = a0 + 3 = 2 + 3 = 5
a2 = 5 + 3 = 8
a3 = 8 + 3 = 11
Fibonacci Sequence
Definition: Define the Fibonacci sequence, f0 ,f1 ,f2,…, by:
● Initial Conditions: f0 = 0, f1 = 1
● Recurrence Relation: fn = fn-1 + fn-2
Example: Find f2 ,f3 ,f4 , f5 and f6 .
Answer:
f2 = f1 + f0 = 1 + 0 = 1,
f3 = f2 + f1 = 1 + 1 = 2,
f4 = f3 + f2 = 2 + 1 = 3,
f5 = f4 + f3 = 3 + 2 = 5
f6 = f5 + f4 = 5 + 3 = 8.
Financial Application
Example: Suppose that a person deposits $10,000.00 in
a savings account at a bank yielding 11% per year
with interest compounded annually. How much will
be in the account after 30 years?
Let Pn denote the amount in the account after 30
years. Pn satisfies the following recurrence relation:
Pn = Pn-1 + 0.11Pn-1 = (1.11) Pn-1
with the initial condition P0 = 10,000
Pn = Pn-1 + 0.11Pn-1 = (1.11) Pn-1
with the initial condition P0 = 10,000
Solution: Forward Substitution
P1 = (1.11)P0
P2 = (1.11)P1 = (1.11)2P0
P3 = (1.11)P2 = (1.11)3P0
Pn = (1.11)Pn-1 = (1.11)nP0 = (1.11)n 10,000
Pn = (1.11)n 10,000
P30 = (1.11)30 10,000 = $228,992.97
Special Integer Sequences (opt)
● Given a few terms of a sequence, try to identify the
sequence.Conjecture a formula, recurrence relation, or some other
rule.
● Some questions to ask?
● Are there repeated terms of the same value?
● Can you obtain a term from the previous term by adding an
amount or multiplying by an amount?
● Can you obtain a term by combining the previous terms insome
way?!
● Are they cycles among the terms?
● Do the terms match those of a well known sequence
Questions on Special Integer
Sequences (opt)
Example 1: Find formulae for the sequences with the following
first five terms: 1, ., ., 1/8, 1/16
Solution: Note that the denominators are powers of 2. The sequence
with an = 1/2n is a possible match. This is a geometric progression
VISHNU K .M, LECTURER 9844485894
44
SUMMATIONS
Sum of the terms from the sequence
The notation
Product notation
Geometric progression
MATRICES
Introduction
Matrices are used throughout discrete mathematics to express
relationships between elements in sets. In subsequent chapters we
will use matrices in a wide variety of models. For instance,
matrices will be used in models of communications networks and
transportation systems. Many algorithms will be developed that use
these matrix models. This section reviews matrix arithmetic that
will be used in these algorithms.
Matrix Arithmetic
The basic operations of matrix arithmetic will now be
discussed, beginning with a definition of matrix addition.
Definition 3 Let A = [aij] and B = [bij] be m × n matrices. The
sum of A and B, denoted by A + B, is the m × n matrix that has aij
+ bij as it’s (i, j) th element. In other words, A + B = [aij + bij].
Matrix multiplication
Let A be an m × k matrix and B be a k × n matrix. The product of
A and B, denoted by AB, is the m × n matrix with its (i, j)th entry
equal to the sum of the products of the corresponding elements
from the ith row of A and the jth column of B. In other words, if
AB = [cij], then
In fact, itmay be that only one of these two products is defined. For
instance, if A is 2 × 3 and B is 3 × 4, then AB is defined and is 2 ×
4; however, BA is not defined, because it is impossible to multiply
3 × 4 matrix and a 2 × 3 matrix.
Transpose of matrix
Transpose of a matrix is a matrix that is obtained by swapping the
rows and columns of the given matrix or vice versa, i.e., for the given
matrix the elements in rows are interchanged with the elements in
columns. For any given matrix A its transpose is denoted as At, or AT.
Let, A is a matrix of order m × n then At be the transpose of matrix A
with order n × m,
A = [a(ij)]m × n
At = [a(ji)]n × m
here i, j present the position of a matrix element, row- and column-
wise, respectively, such that,1 ≤ i ≤ m and 1 ≤ j ≤ n.
If At = [bij], then bij = aji for i =1,2,…,n
Matrices that do not change when their rows and columns are
interchanged are often important
Power matrix
Definition: The identity matrix of order n is the m n
matrix In = [δij], where δij = 1 if i = j and δij = 0 if i≠j.
ZERO-ONE MATRICES
Definition: A matrix all of whose entries are either 0or 1 is called a
zero-one matrix
Algorithms operating on discrete structures represented by zero-one
matrices are based on Boolean arithmetic defined by the following
Boolean Operations ∧ and ∨, which operate on pairs of bits, defined
by