Question: 7.Consider the following algorithm: void Myfn (n) { if (n>1) { print (A); Myfn(n/2); Myfn(n/2);} } a.What does it perfom? b.What is the design
7.Consider the following algorithm: void Myfn (n) { if (n>1) { print ("A"); Myfn(n/2); Myfn(n/2);} } a.What does it perfom? b.What is the design method ? c. What is the complexity ?
Step by Step Solution
There are 3 Steps involved in it
Answer a Functionality The algorithm defines a function Myfn that takes an integer n as i... View full answer
Get step-by-step solutions from verified subject matter experts
