Write a java code that finds the following of a given number without using Math.log() or Math.pow(): (b) 𝑂(𝑙𝑜𝑔(𝑙𝑜𝑔(𝑛)))
Posted: Tue Jul 12, 2022 8:11 am
Write a java code that finds the following of a given numberwithout using Math.log() or Math.pow():
(b) 𝑂(𝑙𝑜𝑔(𝑙𝑜𝑔(𝑛)))
(c) 𝑂(𝑙𝑜𝑔(𝑛))
(d) 𝑂([𝑙𝑜𝑔(𝑛)] 4 )
(f) 𝑂(𝑛 𝑙𝑜𝑔 (𝑛))
(g) 𝑂(𝑛 2 𝑙𝑜𝑔 (𝑛))
(h) 𝑂(𝑛 4 )
(i) 𝑂(3 𝑛 )
Once again, you can not use Math.log() or Math.pow()
(b) 𝑂(𝑙𝑜𝑔(𝑙𝑜𝑔(𝑛)))
(c) 𝑂(𝑙𝑜𝑔(𝑛))
(d) 𝑂([𝑙𝑜𝑔(𝑛)] 4 )
(f) 𝑂(𝑛 𝑙𝑜𝑔 (𝑛))
(g) 𝑂(𝑛 2 𝑙𝑜𝑔 (𝑛))
(h) 𝑂(𝑛 4 )
(i) 𝑂(3 𝑛 )
Once again, you can not use Math.log() or Math.pow()