Question & Answer: 3. Recursive Program (30 points) Consider the following recursive function for n1 Algorithm 1 in…..

3. Recursive Program (30 points) Consider the following recursive function for n1 Algorithm 1 int recurseFunc(int n) If n == 0, return 1 If n == 1, return 1 while i < n do while j< n do print(hi) end while ii+1 end while int α = recurseFune(n/9) int b recurseFune(n/9) int c- recurseFunc(n/9); return a +b+e
media%2Fe26%2Fe26557ef-6764-4b62-b491-f1

3. Recursive Program (30 points) Consider the following recursive function for n1 Algorithm 1 int recurseFunc(int n) If n == 0, return 1 If n == 1, return 1 while i

Expert Answer

 

Answer for the given queston:

As per given code the runtime complexcity of a given is

each recursive code will run O(n^2) so total three run times will run

total = O(n^2) + O(n^2) + O(n^2) = 3O(n^2) = O(n^2)

Still stressed from student homework?
Get quality assistance from academic writers!