Answer:
x =35.
Step-by-step explanation:
x / 20 = 14 / 8
Cross multiply:
8x = 20*14
8x = 280
x = 35.
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²).
-2x·-2x·(-5x·-5x+4x·4x·4x) Basically, you write out the number depending on the exponent. So if you have a power/exponent of 3, you write it out multiplied by itself 3 times. Hope this helps!
The pattern is multiplying the top by two and multiplying the bottom by 3.
16*2/81*3
32/243
64/729
128/2189
if you need more you can just use a calculator