Programming Algorithms Question:

Explain the function SUB in algorithmic notation?

Programming Algorithms Interview Question
Programming Algorithms Interview Question

Answer:

In the algorithmic notation rather than using special marker symbols, generally people use the cursor position plus a substring length to isolate a substring. The name of the function is SUB.
SUB returns a value the sub string of SUBJECT that is specified by the parameters i and j and an assumed value of j.


Previous QuestionNext Question
What are the arguments present in pattern matching algorithms?In Algorithmic context how would you define book keeping operations?