Programming Algorithms Question:
Download Questions PDF

Given a system of N equations whose coefficient matrix A is triangular and is stored in a vector R and the right hand side vector B, this algorithm obtains the solution vector X. Sum is a temporary variable. I am M are integer variables. How to follow the algorithm?

Answer:

The algorithm is easy to follow. X1 is first computed from the first equation and then substituted in the second to obtain X2 and so on.
Another common application is one in which most of the elements of a large matrix are zeros. In such a case, only the non zero elements need to be stored along with their row and column sub scripts.

Download Programming Algorithms Interview Questions And Answers PDF

Previous QuestionNext Question
In Algorithmic context how would you define book keeping operations?Define and describe an iterative process with general steps of flow chart?