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]
4 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]4 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
What is larger 2.044 or 2.04
Rudik [331]
2.044 by just 0.004 units
4 0
3 years ago
Read 2 more answers
Jose is 40 years old and has had a retirement portfolio for 15 years. He still has about 27 years to go before retirement. Which
larisa [96]
Remember: higher risk means you wait less time to get more money.
So I would go with A
5 0
4 years ago
Read 2 more answers
Identify the variable expression that is not a polynomial. A. 23 B. + 2 C. y + 1 D. x12
myrzilka [38]
A polynomial consists of several terms so A.23
4 0
3 years ago
A spotlight is mounted on the eaves of a house 30 feet above the ground. A flower bed runs between the house and the​ sidewalk,
never [62]

Answer:

The ladder should be 34 feet long.

Step-by-step explanation:

The height of the spotlight above ground = 30 feet

The base of the ladder will be = 16 feet from the base of house

We can easily assume this to be a right triangle with perpendicular as 30 feet and base as 16 feet and we have to find the hypotenuse.

Lets say the length of the ladder or hypotenuse is = x

We will apply Pythagoras theorem here.

30^{2} +16^{2} =x^{2}

=> 900+256 =x^{2}

=> 1156 =x^{2}

=> x=\sqrt{1156}

So, x = 34

Hence, the ladder should be 34 feet long.

5 0
3 years ago
Which equations have infinitely many solutions? MORE THAN ONE
yarga [219]

Answer:

B and D

Step-by-step explanation:

ummmmm...... I too lazy. Mental math.

6 0
3 years ago
Read 2 more answers
Other questions:
  • Three questions on a quiz have answer choices A,B,and C.if cottontail guesses each answer at random on all three questions, what
    6·2 answers
  • If x equals 3, calculate the value of x times x subtracted by x
    9·2 answers
  • The pounds of produce purchased at a grocery store on Friday between 1:00 p.m. and 6:00 p.m. is
    6·1 answer
  • Colin drew the floor plan of his bedroom shown below. What is the area of his bedroom in square feet?
    12·1 answer
  • Sam and Bethan share £54 in the ratio of 5:4. Work out how much each person gets
    6·1 answer
  • 1. - x + 5y =-23 4x - y = 16​
    11·2 answers
  • I hate math please help
    5·2 answers
  • Which graph represents the function y = -2cos(21x)?
    13·1 answer
  • Draw a pair of adjacent angles with the given description
    11·1 answer
  • 5. A video game console at Games Galore
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!