Visit Ignou4u.blogspot.

com for more Ignou Solved Assignments
Visit Ignou4u.blogspot.com for more Ignou Solved Assignments
Visit Ignou4u.blogspot.com for more Ignou Solved Assignments
Visit Ignou4u.blogspot.com for more Ignou Solved Assignments
s
Visit Ignou4u.blogspot.com for more Ignou Solved Assignments
Visit Ignou4u.blogspot.com for more Ignou Solved Assignments
Visit Ignou4u.blogspot.com for more Ignou Solved Assignments

Hint:
s
Shortest path is = abdf
Question 3.
a) A palindrome is a word that reads the same whether read from right to left
or from the left to right, the word ROTOR, for example. Let
n
a be the number of
words of length n, not necessarily meaningful, which are palindromes. We consider
a single letter as a palindrome.
i) What are
1
a and
2
a ?
ii) Set up a recurrence for
n
a .
iii) Check that
( )
¹
¹
¹
'
¹
¹
¹
¹
;
¹

,
_

¸
¸

− +

,
_

¸
¸
+
·
2
26 1
) 1 (
2
26 1
26
n
n
n
a
Is the solution to the recurrence? (10 Marks)
Visit Ignou4u.blogspot.com for more Ignou Solved Assignments
b) Show that a tree has at least 2 vertices of degree 1. (5
Marks)
Visit Ignou4u.blogspot.com for more Ignou Solved Assignments
Case 2: v!= ui, for any i
v f u0,u1,….un a path of length (n+1)
There for T is not the longest path a contradiction.
There for our assumption d(u0) > 1 is wrong
There fore d(u0) = 1
Hence we have more vertex of degree 1
So, T has at least two vertex of degree 1.
c) Raghu goes to a grocery shop and purchases grocery for Rs. 23. He has 3 five rupee coins, 4 two rupee
coins and 6 one rupee coins. In how many ways can he pay the shop keeper? Find a solution using
generating functions.
(5 Marks)
Hint:
there are three 5 Rs coin = 15 Rs.
4 two rupee coins = 8 Rs.
6 one rupee coins = 6 Rs.
Total 11 coins and worth Rs. 29.00
The general function is [ x10 + x15 ] ( x2 + x4 + x6 + x8 )( x + x2 + x3 + x4 + x5 + x6)the coefficient of x23 in the above
equation will give the solution
X10 .x8 . x5. = x23
X 15 .x8 = x23
X15 .x4 . x4 = x23
X15 .x2 .x6 = x23
X15 .x6. x2 = x23
There for ther are five way to pay Rs. 23

com for more Ignou Solved Assignments .blogspot.Visit Ignou4u.

com for more Ignou Solved Assignments .blogspot.Visit Ignou4u.

Visit Ignou4u.blogspot.com for more Ignou Solved Assignments s .

com for more Ignou Solved Assignments .Visit Ignou4u.blogspot.

Visit Ignou4u.com for more Ignou Solved Assignments .blogspot.

a) A palindrome is a word that reads the same whether read from right to left or from the left to right. What are a1 and a 2 ? Set up a recurrence for Check that i) ii) iii) an .Visit Ignou4u. We consider a single letter as a palindrome. an = (  1 − 26  n  1 + 26    + (−1) n   26   2   2        ) Is the solution to the recurrence? (10 Marks) . Let a n be the number of words of length n. the word ROTOR.blogspot. for example. not necessarily meaningful.com for more Ignou Solved Assignments Hint: s Shortest path is = abdf Question 3. which are palindromes.

Marks) (5 .com for more Ignou Solved Assignments b) Show that a tree has at least 2 vertices of degree 1.blogspot.Visit Ignou4u.

x6. T has at least two vertex of degree 1. In how many ways can he pay the shop keeper? Find a solution using generating functions.x8 = x23 X15 .00 The general function is [ x10 + x15 ] ( x2 + x4 + x6 + x8 )( x + x2 + x3 + x4 + x5 + x6)the coefficient of x23 in the above equation will give the solution X10 . He has 3 five rupee coins.u1. 6 one rupee coins = 6 Rs. 23 . 4 two rupee coins and 6 one rupee coins. Total 11 coins and worth Rs.x2 .x6 = x23 X15 .…. for any i v f u0.x8 .com for more Ignou Solved Assignments Case 2: v!= ui.un a path of length (n+1) There for T is not the longest path a contradiction. There for our assumption d(u0) > 1 is wrong There fore d(u0) = 1 Hence we have more vertex of degree 1 So. x5. 29.blogspot. (5 Marks) Hint: there are three 5 Rs coin = 15 Rs. x2 = x23 There for ther are five way to pay Rs.Visit Ignou4u.x4 . 23. x4 = x23 X15 . = x23 X 15 . 4 two rupee coins = 8 Rs. c) Raghu goes to a grocery shop and purchases grocery for Rs.

Master your semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master your semester with Scribd & The New York Times

Cancel anytime.