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
I need help I don't really understand this
pantera1 [17]
The perimeters of both are equal.
The side of the square is 12.
Therefore, its area equals to : 12² = 144

The rectangle base is 19.
Because it has the same perimeter as the square's, so rectangle perimeter is : 19 + 19 + side + side = 12 + 12 + 12 + 12
= 38 + 2side = 48
= 2side = 48 - 38
= side of rectangle = 5
Therefore, its area is 19 x 5 = 95

If you subtract it from the area of the square, you will get : 144 - 95 = 49.
So the answer is : the area of the square is 49 units largee than the area of the square (C)
8 0
3 years ago
A rectangular pyramid measures three feet by four feet at the base, and has a height of seven feet. Find its volume. A. 21 ft3 B
sweet-ann [11.9K]

Answer:

C. 28 ft³

Step-by-step explanation:

The general formula for the volume of a pyramid:

V = \frac{1}{3}Bh, where B = the area of the base and h = height of the pyramid

Since the base is a rectangle, we can find area using the formula:

A = l x w or A = 3 x 4 = 12 ft²

Using B = 12 and h = 7:

V = \frac{(12)(7)}{3}

V = 28 ft³

3 0
3 years ago
The correct answer is 1in= 5ft my teacher went over it.
dangina [55]
Ummmmm yes good job
8 0
3 years ago
Find the LCM and HCF of 110 and 220 by prime factorization what do you observe....pls answer this ​
ElenaW [278]

Answer: Check if numbers are prime. Composite numbers prime factorization (decomposing, breaking numbers down to prime factors). Inscribe them as a product of prime factors, in exponential notation.

8 0
3 years ago
X - 2y + 2z = -22 <br> x + 3y - z = 03 <br> x + 2y + 3z = -15
scZoUnD [109]
What is your question?
7 0
3 years ago
Other questions:
  • How do u do number 18? helppppppp
    5·1 answer
  • You have $6000 with which to build a rectangular enclosure with fencing. The fencing material costs $30 per meter. You also want
    10·1 answer
  • What is the answer.. 1+3*3-52+43×0 = ??
    8·2 answers
  • How do you do this question?
    11·1 answer
  • Which answer is probably the best guide to the condition of a house?
    15·1 answer
  • What is the greatest common factor of the terms in the polynomial 12x4 + 27x3 + 6x??<br> ЗХ
    10·1 answer
  • PLEASE HELP ME FIND THE y ASAP THANK YOUUU​
    9·1 answer
  • A rectangle has a width of 3 inches and a length of x inches. The value of the perimeter of the rectangle is equal to the value
    13·1 answer
  • What is the length of PR<br><br><br><br> MARKING BRAINLIST
    5·2 answers
  • Choose the best answer to classify the following number as Rational, Irrational, a Natural Number, or not a Real Number: 0/7
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!