Answer:
f(N) = 2+ N/2 + 6N² units of time.
Step-by-step explanation:
Assigning 0 to the variable sum takes one unit of time.
Each time you increment sum by B, you need to call the value of sum, sum it to B and assign it to sum, which takes three units of time in total. You are repeating this process for each value of B which ranges from 1 to 4n and for each value of A which ranges from 1 to n/2. Opening the FOR takes also another unit of time, so, as a result, we have
f(N) 1 + 1 (open the FOR in A)+ N/2*(1 (open the FOR in B) + 4N*3) = 2+ N/2 + 6N² units of time. It has order complexity O(N²).
Answer:
5x^2 + 12x -3 =0 ---------> solve by quadratic formula
x^2 -4x = 8 ----------> solve by completing the square
4x^2 -25 = 0 ----------> solve by square root method
x^2-5x+ 6 = 0 -----------> solve by factoring
Step-by-step explanation:
1. 5x^2 + 12x -3 =0
The best way to solve this equation is quadratic formula as all the terms in the equation have coefficients it will be convenient to solve it through quadratic formula.
2. x^2 -4x = 8
The best way to solve this equation is by completing the square as the factors cannot be made directly.
3. 4x^2 -25 = 0
the best way to solve this equation is to solve by square root method as the 25 and 4 are perfect squares.
4. x^2-5x+ 6 = 0
The best way to solve this equation is to solve by factoring as it can clearly be seen that it is convenient to make factors ..
Answer:
B. 100π
Step-by-step explanation:
The surface area of a sphere is given by
SA = 4 pi r^2
The radius is 5
SA = 4 * pi * r^2
SA = 4 * pi * 25
SA = 100 pi