Answer:
f(0)=4
Step-by-step explanation:
f(0)=4*9^0=4*1=4
5=27
N=5
Explanation=there’s a difference between each number of 5
Eg:12-7=5
17-12=5
22-17=5
So that means 22+5=27 and n=5 since it is the number difference
(I hope this helps you out)
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:
1 is c
2 is d
3 is a
Step-by-step explanation:
Sorry it took a bit not pretty good at these but i used an app called desmos and it basically gives the answer