subject
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;}

ansver
Answers: 1

Another question on Chemistry

question
Chemistry, 22.06.2019 09:30
What is the mass of 0.46 mol of mgcl2
Answers: 3
question
Chemistry, 22.06.2019 11:00
The human eye contains a molecule called 11-cis-retinal that changes shape when struck with light of sufficient energy. the change in shape triggers a series of events that results in an electrical signal being sent to the brain that results in vision. the minimum energy required to change the conformation of 11-cis-retinal within the eye is about 164 kj/mol.
Answers: 2
question
Chemistry, 22.06.2019 14:30
What type(s) of intermolecular forces are expected between ch3ch2cooh molecules? dipole forces, induced dipole forces, hydrogen bonding
Answers: 1
question
Chemistry, 22.06.2019 17:00
What is the approximate vapor pressure when the gas condenses at 70 degrees celsius
Answers: 2
You know the right answer?
Written(Submit as an pdf file, or hand-in in class.)1. Order following function by growth rate: N, √...
Questions
question
Mathematics, 08.04.2021 19:00
question
History, 08.04.2021 19:00
question
Health, 08.04.2021 19:00
Questions on the website: 13722367