B tech. Discrete mathematics (I. T & Comp. Science Engg.) Syllabus



Download 472,94 Kb.
bet34/50
Sana11.01.2022
Hajmi472,94 Kb.
#343705
1   ...   30   31   32   33   34   35   36   37   ...   50
Bog'liq
Independent.deskret

Example : Fibonacci sequence is also an example of a linear homogeneous recurrence relation of degree 2.

Example: The recurrence relation an an-1 not linear (due to an-

square term), whereas the relation Hn = 2Hn–1 + 1 is not homogeneous (due to constant 1).



The basic approach for solving a linear homogeneous recurrence relation to look for the solution of the form an = rn, where r is constant. Note that, rn is a solution to the linear homogeneous recurrence relation of

degree k, if and only if;



rn c1

rn 1

c2 rn 2 ck
rnk . When both the sides of the

equation are

divided by rnk and right side is subtracted from the left side, we

obtain an equation, known as characteristic equation of the recurrence relation as

follows:





1 2 k 1 k
r k c r k1c rk2 … c r c

 0 .


The solutions of the equation are called as characteristic roots of the recurrence relation.

In this subsection, we shall focus on solving linear homogeneous recurrence relation of degree 2 that is: an = c1an–1 + c2an–2.

The characteristic equation of this relation is r2c1r c2 = 0. This is a quadratic equation and has two roots. Two cases arise.




  1. Roots are distinct, say s1 and s2. Then, it can be shown that

a usn vsn is a solution to the recurrence relation, with

n 1 2

a us vs and a us 2vs 2 .

1 1 2 2 1 2




  1. n
    Roots are equal, say s. Then it can be shown that an solution to the

recurrence relation is an= (u vn)sn

We shall use above results to solve some problems


Example : Solve the recurrence relation bn + 3bn–1 + 2bn–2 = 0, with b1 = –2 and

b2 = 4.
Solution: The characteristic equation to the given recurrence relation is x2

+ 3x + 2 = 0. Roots of this equation are s1 = – 2 and s2 = – 1. Hence the solution to the relation is:


.
bn = u(–1)n + v(–2)n b1 = –2 = –u –2v and b2 = 4 = u + 4v. Solving these two equations simultaneously, we get, u = 0 and v = 1. Thus, explicit solution to the given recurrence relation is bn = (–2)n

Method for solving linear non-homogeneous recurrence relations with constant coefficients:
The method is similar to the solution differential equation by method of undermined co-efficient.

GENERATING FUNCTION:

Let a0 , a1 ,...an be a sequence, and then the corresponding generating function is given by:

A(x) = a0 x a x  ...  a x


1


n

0 1 n

For Example, if 1, 1, 1,…. be a sequence then the corresponding generating function is given by:

A(x) = 1 x x2  1/(1 x)


From a given sequence we can find the corresponding generating function and vice versa.
Unit II

INTRODUCTION TO RELATIONS AND GRAPH THEORY
OBJECTIVES:
After going through this unit, you will be able to know:

  • Definition of Relation.

  • Representation of Relations

  • Types of Relations

  • Equivalence of relations

  • Relations and Partition

  • Definition and examples of partial order relation

  • Representation of posets using Hasse diagram

  • Closure of relations.

  • Introduction to graphs

  • Graph terminology

  • Graph isomorphism

  • Connectivity

  • Euler and Hamilton paths

  • Planar graphs

  • Graph colouring

  • Introduction to trees


INTRODUCTION :

Relationships between elements of sets occur in many contexts. We deal with many relationships such as student’s name and roll no., teacher and her specialization, a person and a relative (brother – sister, mother – child etc.). In this section, we will discuss mathematical approach to the relation. These have wide applications in Computer science (e.g. relational algebra)



RELATIONS:
Relationship between elements of sets is represented using a mathematical structure called relation. The most intuitive way to describe the relationship is to represent in the form of ordered pair. In this section, we study the basic terminology and diagrammatic representation of relation.

Definition :

Let A and B be two sets. A binary relation from A to B is a subset of A B.


Note : If A, B and C are three sets, then a subset of ABC is known as ternary relation. Continuing this way a subset of A1A2...An is known as n – ary relation.

Note: Unless or otherwise specified in this chapter a relation is a binary relation.

Let A and B be two sets. Suppose R is a relation from A to B (i.e. R is a subset of A B). Then, R is a set of ordered pairs where each first element comes from A and each second element from B. Thus, we denote it with an ordered pair (a, b), where a A and b B. We also denote the relationship with a R b, which is read as a related to b. The domain of R is the set of all first elements in the ordered pair and the range of R is the set of all second elements in the ordered pair.
Example 1: Let A = { 1, 2, 3, 4 } and B = { x, y, z }. Let R = {(1, x), (2, x), (3, y), (3, z)}.

Then R is a relation from A to B.


Example 2: Suppose we say that two countries are adjacent if they have some part of their boundaries common. Then, “is adjacent to”, is a relation R on the countries on the earth. Thus, we have, (India, Nepal)  R, but (Japan, Sri Lanka)  R.

Example 3: A familiar relation on the set Z of integers is “m divides n”. Thus, we have, (6, 30)  R, but (5, 18)  R.


Example 4: Let A be any set. Then A A and  are subsets of A A and hence they are relations from A to A. These are known as universal relation and empty relation, respectively.

Note : As relation is a set, it follows all the algebraic operations on relations that we have discussed earlier.

Definition : Let R be any relation from a set A to set B. The inverse of R, denoted by R–1, is the relation from B to A which consists of those ordered pairs, when reversed, belong to R. That is:

R–1 = {(b, a) : (a, b)  R}
Example 5:

Inverse relation of the relation in example 1 is, R–1 = {(x,), (x, 2), (y, 3), (z, 3)}.




Download 472,94 Kb.

Do'stlaringiz bilan baham:
1   ...   30   31   32   33   34   35   36   37   ...   50




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish