in Combinatory
353 views
0 votes
0 votes
Give a big-O estimate for the function $f$ in question $10$ if $f$ is an increasing function.
in Combinatory
by
353 views

1 Answer

0 votes
0 votes
By substituting we get  f(2) = 2 ;

f(4) = 3 ;

f(8) = 4 ;

and so on

therefore  f(2^k ) = k+1 ;

and f(n) = log n + 1

hence function complexity = O(log n )

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true