Answer:
f(2n)-f(n)=log2
b.lg(lg2+lgn)-lglgn
c. f(2n)/f(n)=2
d.2nlg2+nlgn
e.f(2n)/(n)=4
f.f(2n)/f(n)=8
g. f(2n)/f(n)=2
Step-by-step explanation:
What is the effect in the time required to solve a prob- lem when you double the size of the input from n to 2n, assuming that the number of milliseconds the algorithm uses to solve the problem with input size n is each of these function? [Express your answer in the simplest form pos- sible, either as a ratio or a difference. Your answer may be a function of n or a constant.]
from a
f(n)=logn
f(2n)=lg(2n)
f(2n)-f(n)=log2n-logn
lo(2*n)=lg2+lgn-lgn
f(2n)-f(n)=lg2+lgn-lgn
f(2n)-f(n)=log2
2.f(n)=lglgn
F(2n)=lglg2n
f(2n)-f(n)=lglg2n-lglgn
lg2n=lg2+lgn
lg(lg2+lgn)-lglgn
3.f(n)=100n
f(2n)=100(2n)
f(2n)/f(n)=200n/100n
f(2n)/f(n)=2
the time will double
4.f(n)=nlgn
f(2n)=2nlg2n
f(2n)-f(n)=2nlg2n-nlgn
f(2n)-f(n)=2n(lg2+lgn)-nlgn
2nLg2+2nlgn-nlgn
2nlg2+nlgn
5.we shall look for the ratio
f(n)=n^2
f(2n)=2n^2
f(2n)/(n)=2n^2/n^2
f(2n)/(n)=4n^2/n^2
f(2n)/(n)=4
the time will be times 4 the initial tiote tat ratio are used because it will be easier to calculate and compare
6.n^3
f(n)=n^3
f(2n)=(2n)^3
f(2n)/f(n)=(2n)^3/n^3
f(2n)/f(n)=8
the ratio will be times 8 the initial
7.2n
f(n)=2n
f(2n)=2(2n)
f(2n)/f(n)=2(2n)/2n
f(2n)/f(n)=2
B. 25 Km. The measure of BC is 25 km.
The easiest way to solve this problem is using the cosine theorem c = √a²+b²-2ab*cos A.
BC = √AC²+AB²-2(AC)(AB)*cos A
BC = √(21km)²+(14km)²-2(21km)(14km)*cos 89°
BC = √441km²+196km²-588km²*(0.017)
BC =√637km²-10.26km²
BC = √636.74km²
BC = 25.03km ≅ 25
Answer:
The answer to the first question is 7.15
The answer to the second question is 1.73
Answer:
19338 kWh
Step-by-step explanation:
In Arizona, electricity cost eleven cents per kilowatt-hour.
The average home uses 66 million BTU per year i.e. 66000000 BTU per year.
Now, it is given in the question that 1 BTU is equivalent to 0.000293 kWh.
So, the average home uses (66000000 × 0.000293) = 19338 kWh per year.
Therefore, the number of kilowatt-hours used per year will be 19338. (Answer)