Question: Imagine we have started from number S , so N - 1 digits are left to be dialed. Starting from S , we can only

Imagine we have started from number S, so N-1 digits are left to be dialed. Starting from S,
we can only dial an allowed set of numbers, {j|ASj=1}. Therefore, (S,N) can be calculated
recursively by adding (k,N-1) values for kin{j|ASj=1}.
(S,N)=kin{j|ASj=1}?(k,N-1)
a) Show that the above equation can be written in the form of a matrix such that (S,N) is
Sth element of a 101 matrix N :
(N)=A(N-1)
Once (N) is calculated, (S,N) can be found by reading Sth element of (N) matrix,
(S,N)=(N)S. For instance, 0th element of (2) is (0,2)=1.
Note that (1) corresponds to the starting point before we move to the second digit of the num-
ber. So, It is a 101 matrix with all the elements equal to 1.
(1)=([1],[1],[1],[1],[1],[1],[1],[1],[1],[1])
b) Show that (N) can be found recursively using the following equation:
(N)=AdotsAA(1)=AN-1(1)
Imagine we have started from number S , so N - 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!