1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
coldgirl [10]
3 years ago
12

Give a big-o estimate for the number of operations (where an operation is an addition or a multiplication) used in this segment

of an algorithm. t := 0 for i := 1to3 for j := 1to4 t := t + ij
Mathematics
1 answer:
Marianna [84]3 years ago
6 0
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.
You might be interested in
A BULLET SHOT FROM A PISTOL CAN BE ANALYZED THROUGH:
Nataliya [291]

Answer:

. A LINEAR REGRESSION is your answer

8 0
2 years ago
Read 2 more answers
Sarah started 3 miles below the rim of the canyon and hiked until she was 8 miles above the rim. Her brother Sam said she hiked
larisa86 [58]

Answer:

D

Step-by-step explanation:

We can assume that the rim of the canyon is 0. Sarah started 3 miles <u>below</u>, so -3, BUT distance can never be negative, so it's considered 3 miles. Then, she went 8 miles <u>above</u> zero. So the 3 miles she went <em>before</em> reaching the rim plus the 8 miles she went <em>after</em> reaching the rim equals 11 miles.

So now we know that Sarah is right, but how do we know which equation is correct? Well, if we look at option C:

|-3+8|=11

When solving absolute value, we solve everything within the absolute value before applying the absolute value. This means that we add -3+8 first, which equals 5, and then apply absolute value, which still equals 5. This equation is not correct.

I hope this helps!

3 0
3 years ago
Read 2 more answers
HELPPPPP put myself in a bad spot PLEASE ANSWER QUICK FOR ME and please put the work also
julia-pushkina [17]

Answer:

A

Step-by-step explanation:

4 0
3 years ago
Read 2 more answers
Josh works h hours in a week. To find his weekly pay he multiplies his hours by his pay of $30 per hour and adds $5 for his sale
OleMash [197]
Shsshxuesnxhfrndnfbfb isk
3 0
3 years ago
I WILL MARK YOU BRAINLIEST!PLEASE SOLVE FOR X
polet [3.4K]

Answer and Step-by-step explanation:

We see that the bottom two lines are parallel, which makes angle x and angle 5 "same-side corresponding angles". By definition, same-side corresponding angles are congruent. That means angle x = angle 5.

Note that you didn't provide any measures, so it is impossible to actually figure out an exact degree. However, angle x is the same degree as angle 5.

Hope this helps!

4 0
3 years ago
Read 2 more answers
Other questions:
  • All in the picture write at least 20 characters to get a great answer.
    13·1 answer
  • 50 POINTS
    12·2 answers
  • A cone has a base area of 8^2cm and a height of 3.6cm what is the volume of the cone
    14·1 answer
  • 3/8 plus 1/4 simplest form
    11·2 answers
  • Find the arithmetic means in the given sequence. 145, , , , 205
    9·1 answer
  • Which pair of points represents the solution set of this system of equations? y = x2 − 6x + 8 2y + x = 4
    9·1 answer
  • What is five plus (-12)
    14·2 answers
  • If 50% of a number is 150 and 30% of the same number is 90, find 80% of that number.
    13·2 answers
  • Please show work 2. Which equation represents the line whose slope is 6 and whose y-intercept is 2?
    12·1 answer
  • Can someone help me please
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!