Given the following recurrence relation (M).
an = −4an−1 + 5an−2, a0 = 2, a1 = 8
The solution of (M) is:
a. an = 3 − (−5)
n
b. an = 3 + (5)
n
c. an = (3)
n − 5
d. None of these
Using the method of telescopic sums, solve
the recurrence relation : (n+1)xn-nxn-1-n/2,x0=10,n≥1
Find the number of distinct integer
solutions of the equation : x1+x2+ ......+x5=24
xi≥i and 1≤i≤5
State the Dijkstra’s algorithm for a directed weighted graph with all non-negative edge weights.
2. Find the shortest path spanning tree for the weighted directed graph with vertices A, B, C, D, and
E given using Dijkstra’s algorithm.