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:
y=3x-5
Step-by-step explanation:
slope intercept form: y=mx+b
-2y=-6x+10
2y=6x-10
y=3x-5
Answer:
there is no solution to this problem?
Step-by-step explanation:
wdym?
Answer:
I had x to be 2
Step-by-step explanation:
a square has all it side to be equal
so 10x=6x+8
you will group like terms 10x-6x=8
4x=8 you divide both side by the coefficient of x which is four so X=2