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:
Follow my insatagram onlypiccolo for answerStep-by-step explanation:
Answer:
The slope of y=x is 1
Step-by-step explanation:
Slope = 1
Answer:
- 60 percent of a number subtracted from 25
- 4 more than 2/3 of a number
Step-by-step explanation:
"60 percent of a number subtracted from 25" is a phrase that translates into 0.6 for 60% and "of a number" as 0.6x. Take this number and its subtracted from 25: 25-0.6x.
"4 more than two thirds of a number" is a phrase that translates into addition for "4 more" and multiplication with "two thirds of a number". This means 4 + 2/3y.
<u>Ratio of two angles are 6:13.</u>
So, let the one angle be and another be
As we know that,
Sum of all interior angles of a quadrilateral =
So let's sum up the given angles,
Hence,
So, First angle
Second angle
_________________________________
Hope it helps you:)