1.

Which of the following functions generates new data at each step of a method?(a) corecursive function(b) structural recursive function(c) unirecursive function(d) indirect functionThe question was asked during an internship interview.I want to ask this question from Recursion topic in section Induction and Recursion of Discrete Mathematics

Answer»

The correct option is (a) corecursive function

Easiest explanation: The generatively recursive functions or corecursive functions is defined as generation of the NEW data at each step that is successive APPROXIMATION in Regula Falsi method. In terms of loop variants, there is no such loop variant, and termination DEPENDS on error of approximation.



Discussion

No Comment Found

Related InterviewSolutions