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²).
Okay here's an example so if we have 2, 3/2*1/2 we convert the mixed numbers to improper fractions. So in order to solve a mixed number you add the denominator, numerator and whole to get 7/2*1.2
So Multiple
7/2*1/2
Refine the fractions
7/2*2
Multiple the numbers 2*2=4 to get
7/4
and that equals 1, 3/4
Answer:
(x-3)^2+(y+2)^2=16
Step-by-step explanation:
center (h,k) radius r
(x-h)^2+(y-k)^2=r^2