We have a "rectangular" double loop, meaning that both loops go to completion.
So there are 3*4=12 executions of t:=t+ij.
Assuming two operatiions per execution of the innermost loop, (i.e. ignoring the implied additions in increment of subscripts), we have 12*2=24 operations in all.
Here the number of operations (+ or *) is exactly known (=24).
Big-O estimates are used for cases with a varying scale of operations, governed by a variable (usually n) to indicate the sensitivity of the number of operations relative to a change in the size of n.
Here we do not have a scale, nor n is defined. The number of operations is constant and known at 24. So a variable is required to find the big-O estimate.
Wow… how is this a question? .-.
Assuming you want to choose 4 people from the class of 20;
Begin by using the combinations formula;
20C4=4845 possibilities
Hope I helped :)
412/84 = 4 R 76 <- you will have a remainder
Answer:
The estimate is less than the actual length of the CD.
Step-by-step explanation:
Consider the provided information.
Maurice's new CD has 12 songs. Each song lasts between 3 and 4 minutes.
That means the minimum length of the CD should be: 12×3=36 minutes.
The maximum length of the CD should be: 12×4=48 minutes
He estimates that the whole CD is about 30 minutes long.
30 minutes is less than 36 minutes.
That means, the estimate is less than the actual length of the CD.
Hence, the correct statement is: The estimate is less than the actual length of the CD.