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
A fraction with a numerator that is greater than or equal to the denominator is known as an improper fraction.
Answer:
I disagree
Step-by-step explanation:
This is not true because when you multiply a number by one. It will give you its number. It may be a larger number than 1 but it is not bigger than both numbers. Also if you multiply 0 by a number. It will eventually give you the answer 0 .It will be smaller than the number you started with. eg 100x0 = 0
Answer:
x = 4 sqrt(5)
Step-by-step explanation:
Since this is a right triangle, we can use the Pythagorean theorem
a^2 + b^2 = c^2 where a and b are the legs and c is the hypotenuse
8^2 + x^2 = 12^2
64+ x^2 =144
Subtract 64 from each side
x^2 = 144-64
x^2 =80
Take the square root of each side
sqrt(x^2) = sqrt(80)
x = sqrt(16*5)
x = 4 sqrt(5)
Answer:
13 gallons
Step-by-step explanation:
42 / 3.19 = 13.166144200626959,
which can be rounded down to 13 whole gallons.