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
The lemonade stand at the county fair sells the lemonade at a price of two cups for $3.60. Complete the table at right to find w
kakasveta [241]
$3.60 for 2 cups would be $1.80 for one cup.

$3.60 for 2

$5.40 for 3

$7.20 for 4

$9 for 5

$10.80 for 6

$12.60 for 7

$14.40 for 8



4 0
3 years ago
Which number is opposite of -5 in both its value and direction it lies on a number line?
ASHA 777 [7]

Answer:

The opposite of - 5 would be 5

Step-by-step explanation:

Because opposite number only means a number with an oposite sign

6 0
3 years ago
What is equivalent to 48x-6+3y/3
DIA [1.3K]

Answer:

Step-by-step explanation:

We can divide 3 out of all three given terms:

3(16x - 2 + y/3)

is one possibility.  Where are the answer choices that you were given?

Note:  48x-6+3y/3 is an expression in x and y, but is not an equation.  Is that what  you intended?

6 0
3 years ago
Talib is trying to find the inverse of the function to the right. His work appears beneath it. Is his work correct? Explain your
ololo11 [35]
No, they forgot to switch variable labels after solving for the independent variable...

y=-8x+4

y-4=-8x

(y-4)/-8=x 

Now that you have solved for the independent variable x, you switch the variable labels...

y=(x-4)/-8

f^-1(x)=(x-4)/-8     which should really be rewritten as:

f^-1(x)=(4-x)/8  :P
3 0
3 years ago
Read 2 more answers
<img src="https://tex.z-dn.net/?f=7y%20%5Ctimes%204x%20-%205x%20%7B%3F%7D%5E%7B2%7D%20" id="TexFormula1" title="7y \times 4x - 5
lapo4ka [179]
The answer is i don’t know or I don’t care and what are we trying to find
5 0
3 years ago
Other questions:
  • Which of the following equations have exactly one solution? Choose all answers that apply: A:58x+52=78x−78 B:−78x+52=−52x−78 C:5
    8·2 answers
  • The quotient of a secret number and 4 is 9
    7·1 answer
  • 5x = –25 + 5y <br><br> 10y = 42 + 2x
    8·1 answer
  • Find the missing value.
    6·2 answers
  • Lots of points and brainliest!!!
    5·2 answers
  • HELP ME PLEASE I ONLY HAVE 5 MIN
    15·1 answer
  • 25 POINTS!
    13·2 answers
  • If the lengths of the legs of a right triangle are 3 and 5, what is the length of the hypotenuse?
    7·1 answer
  • Suppose you run 4 miles from your house to a friends house at the speed of 7 miles per hour. When the time comes to return home,
    11·1 answer
  • Determine whether each function is linear or quadratic. Identify the quadratic, linear, and constant terms. g(x)=-2 x²-3(x-2)
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!