0% found this document useful (0 votes)
152 views7 pages

Mathematical Foundations of Computer Science: Unit-I

The document discusses the mathematical foundations of computer science. It begins by defining discrete mathematics as involving distinct values between points, unlike continuous mathematics which has an infinite number of values between points. It then discusses discrete mathematics further, explaining that it uses algebra and arithmetic and is applied in computer science. Finally, it provides definitions and examples of fundamental topics in discrete mathematics including logic, sets, functions, and algebraic structures.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
152 views7 pages

Mathematical Foundations of Computer Science: Unit-I

The document discusses the mathematical foundations of computer science. It begins by defining discrete mathematics as involving distinct values between points, unlike continuous mathematics which has an infinite number of values between points. It then discusses discrete mathematics further, explaining that it uses algebra and arithmetic and is applied in computer science. Finally, it provides definitions and examples of fundamental topics in discrete mathematics including logic, sets, functions, and algebraic structures.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Mathematical Foundations of Computer Science

UNIT- I

Mathematics can be broadly classified into two categories −


 Continuous Mathematics − It is based upon continuous number line or the real numbers. It
is characterized by the fact that between any two numbers, there are almost always an
infinite set of numbers. For example, a function in continuous mathematics can be plotted in
a smooth curve without breaks.
 Discrete Mathematics − It involves distinct values; i.e. between any two points, there are a
countable number of points. For example, if we have a finite set of objects, the function can
be defined as a list of ordered pairs having these objects, and can be presented as a
complete list of those pairs.

Discrete Mathematics

Discrete Mathematics is a branch of mathematics involving discrete elements that uses algebra and
arithmetic. It is increasingly being applied in the practical fields of mathematics and computer science.
It is a very good tool for improving reasoning and problem-solving capabilities.

Fundamentals of Logic: Basic Connectives and Truth Tables,

Truth Table
Since we need to know the truth value of a proposition in all possible scenarios, we consider all
the possible combinations of the propositions which are joined together by Logical Connectives
to form the given compound proposition. This compilation of all possible scenarios in a tabular
format is called a truth table.
Most Common Logical Connectives-

1. Negation – If   is a proposition, then the negation of   is denoted by  ,
which when translated to simple English means-
“It is not the case that  ” or simply “not  “.
The truth value of   is the opposite of the truth value of  .
The truth table of   is-
Example,
The negation of “It is raining today”, is “It is not the case that is raining today” or simply “It is
not raining today”.

2. Conjunction – For any two propositions   and  , their conjunction is denoted


by  , which means “  and  “. The conjuction   is True when
both   and   are True, otherwise False.
The truth table of   is-

Logical Equivalence, Logical Implication, Use of Quantifiers, Definitions and the Proof of Theorems.

Set Theory: Set and Subsets, Set Operations, and the Laws of Set theory, Counting and Venn
Diagrams. Properties of the Integers: The well – ordering principle, Recursive Definitions, Division
Algorithms, Fundamental theorem of Arithmetic.

UNIT-II

Relations and Functions:

Cartesian product,

Functions onto Functions,

Special Functions,

Pigeonhole Principle,
Composition and Inverse Functions.

Relations: Partial Orders, Equivalence Relations and Partitions.

Principle of Inclusion and Exclusion: Principles of Inclusion and Exclusion,

Generalization of Principle.

UNIT–III

Generating Functions: Introductory Examples, Definition And Examples, Partitions of Integers.


Recurrence Relations: First – order linear recurrence relation, second – order linear homogenous
recurrence relation with constant coefficients.

UNIT-IV

Algebraic Structures:

Algebraic System

Algebraic systems: An algebraic system, loosely speaking, is a set, together with some operations on
the set. Before formally defining what an algebraic system is, let us recall that a n -ary operation (or
operator) on a set A is a function whose domain is An and whose range is a subset of A . Here, n is a
non- negative integer. When n=0 , the operation is usually called a nullary operation, or a constant,
since one element of A is singled out to be the (sole) value of this operation. A finitary operation on
A is just an n -ary operation for some non-negative integer n .

Definition. An algebraic system is an ordered pair (A O) , where A is a set, called the underlying set of
the algebraic system, and O is a set, called the operator set, of finitary operations on A .

We usually write A , instead of (A O) , for brevity. A prototypical example of an algebraic system is a


group, which consists of the underlying set G , and a set O consisting of three operators: a constant e
called the multiplicative identity, a unary operator called the multiplicative inverse, and a binary
operator called the multiplication.

The study of algebraic systems is called the theory of universal algebra. The first important thing in
studying algebraic system is to compare systems that are of the same ``type''. Two algebras are said
to have the same type if there is a one-to-one correspondence between their operator sets such
that an n -ary operator in one algebra is mapped to an n -ary operator in the other algebra.

Examples:

Some recurring universes: N=natural numbers; Z=integers; Q=rational numbers; R=real numbers;
C=complex numbers.

N is a pointed unary system, and under addition and multiplication, is both the standard
interpretation of Peano arithmetic and a commutative semiring.
Boolean algebras are at once semigroups, lattices, and rings. They would even be abelian groups if
the identity and inverse elements were identical instead of complements.

– General Properties,

Semi Groups, Monoids,

In the previous section, we have seen several algebraic system with binary operations. Here we
consider an algebraic system consisting of a set and an associative binary operation on the set and
then the algebraic system which possess an associative property with an identity element. These
algebraic systems are called semigroups and monoids.

Semi group

Let S be a nonempty set and let * be a binary operation on S. The algebraic system (S, *) is called a
semi-group if * is associative if a * (b*c) = (a * b) * c for all a, b, c Î S.
Example The N of natural numbers is a semi-group under the operation of usual addition of
numbers.

Monoids

Let M be a nonempty set with a binary operation * defined on it. Then (M, * ) is called a monoid if

• * is associative

(i.e) a * (b * c) = (a * b) * c for all a, b, c Î M and there exists an element e in M such

that a * e = e * a = a for all a Î M e is called the identity element in (M,*).

It is easy to prove that the identity element is unique. From the definition it follows that (M,*) is a
semigroup with identity.

Example1 Let S be a nonempty set and r(S) be its power set. The algebras (r(S),U) and (r(S), Ç ) are
monoids with the identities f and S respectively.

Example2 Let N be the set of natural numbers, then (N,+), (N, X) are monoids with the identities 0
and 1 respectively.

Homomorphism of semigroups and monoids

Residue Arithmetic.

UNIT –V
Graph Theory:

Representation of Graphs:

There are two different sequential representations of a graph. They are

1 Adjacency Matrix representation


2 Path Matrix representation

Adjacency Matrix Representation

Suppose G is a simple directed graph with m nodes, and suppose the nodes of G have been ordered
and are called v1, v2, . . . , vm. Then the adjacency matrix A = (aij) of the graph G is the m x m matrix
defined as follows:

1 if vi is adjacent to Vj, that is, if there is an edge (Vi, Vj) aij =0 otherwise

Suppose G is an undirected graph. Then the adjacency matrix A of G will be a symmetric matrix, i.e.,
one in which aij = aji; for every i and j.

Drawbacks

1. It may be difficult to insert and delete nodes in G.

2 . If the number of edges is 0(m) or 0(m log2 m), then the matrix A will be sparse, hence a great
deal of space will be wasted.

Path Matrix Represenation

Let G be a simple directed graph with m nodes, v1,v2, . . . ,vm. The path matrix of G is the m-square
matrix P = (pij) defined as follows:

1 if there is a path from Vi to Vj

Pij =0 otherwise

Graphs and Multigraphs

A graph G consists of two things:


1.A set V of elements called nodes (or points or vertices)

2.A set E of edges such that each edge e in E is identified with a unique

Definitions and examples,

sub graphs,

complements and graph Isomorphism,

Vertex degree, Planar graphs,

Hamiltonian paths and Cycles.

Trees: Definitions, properties and Examples, Rooted Trees, Spanning Trees and Minimum Spanning
Trees.

You might also like