Algorithm A(n)                                                

{

            if (n = 2)  return 1;

            else

            return (A(√ n)) ;

}

The time complexity of the above algorithm

1
O(log n)
2
O(log log n)
3
O(\({n^2}^{}\) log n)
4
O(n log n)

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation