Chemistry
Chemistry, 16.10.2020 06:01, abigailjackson

Written(Submit as an pdf file, or hand-in in class.)1. Order following function by growth rate: N, √N, N1.5, Nlog(N), log (log (N)), log (N)log (N), N2, 2N, 200, NN2. Give a useful Θ(big Theta) estimation for each of following functiont(n). a. t(n) = 122*212
b. t(n) = 2log2(n2) + log4(n)+(log2n)2+ (log2(202))2
c. t(n) = 3t(n/2) + n
d. t(n) = 3t(n/2) + (n+1)(n-1)
e. t(n) = 4t(n/2) + (n2+ n-1)
f. t(n)is the runtime of following function, public static int f1(int n){intmid = n/2;for (int i = mid; i >= 0; i--) System. out. println(i);for (int i = mid + 1; i <= n; i++) System. out. println(i);return mid;}
g. t(n)is the runtime of following function, public static int f2(int n){if (n < 1) return 1; //update from originalintmid = n/2;mid = f2(mid);for (int i = 30; i >0; i /=3){System. out. println(i );}return mid;}

answer
Answers: 1

Other questions on the subject: Chemistry

image
Chemistry, 22.06.2019 01:40, georgehall3027
C3h8o3 - glycerol major species present when dissolved in water
Answers: 2
image
Chemistry, 22.06.2019 15:50, savthespice
Which terms are used to identify pure substances
Answers: 3
image
Chemistry, 22.06.2019 18:00, sandeebassett3
Mercury turns to vapor at 629.88 k how much heat is lost 175 g of mercury vapor at 650 current condenses to a liquid at 297 ca mercury turns to weber at 629.88 kelvin how much he is lost 175 g of mercury vapor and 650 coming condensers to liquidate 297 kevin
Answers: 2
image
Chemistry, 23.06.2019 05:00, kaybaby23
Scientists discovered fossils in several layers of the earth you see here. they found fossils of algae, snails, and clams in layer d. given that information, where do you think they found fossil evidence of simple land plants and amphibians?
Answers: 1
Do you know the correct answer?
Written(Submit as an pdf file, or hand-in in class.)1. Order following function by growth rate: N, √...

Questions in other subjects:

Konu
Mathematics, 01.04.2021 16:40
Konu
English, 01.04.2021 16:40
Konu
Biology, 01.04.2021 16:40