Show that the complexity classes Ī˜(log2 n) and Ī˜(log2 (n 100)) are equivalent. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 3

Show that the complexity classes Ī˜(log2 n) and Ī˜(log2 (n 100)) are equivalent.

Show that the complexity classes Ī˜(log2 n) and Ī˜(log2 (n 100)) are equivalent.

6th Sep 2019, 11:21 AM
Zhenis Otarbay
Zhenis Otarbay - avatar
3 Respostas
+ 2
It looks like you left out an operator between the n and 100 but if it was +, -, *, /, the answer would be the same anyway. log2(n * 100) produces the largest value of all the operators so I'll prove with that. Ī˜(log2 (n * 100)) = Ī˜(log2 (n) + log2(100)) // by rule 1 of logarithms from https://www.chilimath.com/wp-content/uploads/2017/02/rules-of-exponents.gif = Ī˜(max(log2 (n), log2(100))) // Because: Ī˜(x + y) = Ī˜(max(x, y)) = Ī˜(log2 (n)) // Because: max(log2(n), log2(100)) = log2(n) as n approaches positive infinity. I had trouble finding the axioms for the last 2 steps documented anywhere, unfortunately. Hopefully those steps are small enough and justified enough for your proof.
6th Sep 2019, 5:40 PM
Josh Greig
Josh Greig - avatar
+ 1
Thank Yah
7th Sep 2019, 10:20 PM
Winful Erinayo
Winful Erinayo - avatar
+ 1
Ills can u help me answer dis question
7th Sep 2019, 10:20 PM
Winful Erinayo
Winful Erinayo - avatar