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²).
2.6 would be the proper answer to this question
Answer:
-31/6
Step-by-step explanation:
77+2(3x-5)=8-3(2x+1)
77+6x-10=8-6x-3
77-10+6x=8-3-6x
67+6x=5-6x
67+6x-(-6x)=5
67+6x+6x=5
67+12x=5
12x=5-67
12x=-62
x=-62/12
simplify
x=-31/6
Answer:
The answer to your proble I'm slow intercept from is y=-2x+8
Step-by-step explanation:
Answer:
x = -8 and BDC is 68 degrees.
Step-by-step explanation:
Combine -7x+12 and -8x+48 to get -15x+60. Since BDA is a straight angle put the above equation to get -15x+60=180. Subtract 60 from both sides to get -15x=120. Divide -15 both sides to get -8 as your x value. Plug in -8 to BDC, since both negatives are being multiplied, it would turn to a positive number which is 56, add 12 to get 68 as your final result for BDC.