answer.
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
notka56 [123]
2 years ago
11

Suppose that you have two different algorithms for solving a problem. to solve a problem of size n, the first algorithm uses exa

ctly n(log(n)) operations and the second algorithm uses exactly n3=2 operations. as n grows, which algorithm uses fewer operations? justify your answer using definitional proof.
Mathematics
1 answer:
ale4655 [162]2 years ago
5 0
<span>So we have two expressions n(log(n)) and 3n = 2. The second expression involves less operation. From the second expression we have n = 2/3. If the RHS and LHS will be balanced, then the value of n cannot exceed 2/3. Sowe have no operation at that point. On the other hand when n = 10 we have 10(log(10)) = 1. When n is increased to 100. We have 100(log(100)) = 200 and when n = 300 we have 300(log(300)) = 300 *2.47 = 743.1 As n increase, the logarithmic function also increases, there's no end in sight; on the other hand as n increase in the first operation, once it reaches 2/3, it stops. So the second has fewer operations.</span>
You might be interested in
A particle moves on the circle x2+y2=25 in the xy-plane for time t≥0. At the time when the particle is at the point (3,4), dx/dt
yaroslaw [1]

Answer:

\displaystyle y'=-\frac{9}{2}

Step-by-step explanation:

<u>Differentiation</u>

We have a relationship between x and y as follows:

x^2+y^2=25

Both variables depend on time t for t≥0.

Differentiating with respect to time:

(x^2)'+(y^2)'=(25)'

Applying the derivative of a power function:

2xx'+2yy'=0

Recall the derivative of a constant is 0.

Dividing by 2:

xx'+yy'=0

Solving for y':

\displaystyle y'=-\frac{xx'}{y}

At some specific time, we have:

x=3, y=4, dx/dt = x' = 6. Substituting:

\displaystyle y'=-\frac{3\cdot 6}{4}

Operating:

\displaystyle y'=-\frac{18}{4}

Simplifying:

\mathbf{\displaystyle y'=-\frac{9}{2}}

8 0
2 years ago
A pencil has density of .875 g/ml and a mass of 3.5 grams what is the volume?
SSSSS [86.1K]

Answer:

4 ml

Step-by-step explanation:

m = D/ v  where m is mass and D is density and V is volume

.875 = 3.5 / V

Multiply each side by V

.875 V = 3.5

Divide each side by .875

V = 3.5/.875

V =4

8 0
2 years ago
Read 2 more answers
A repair bill for a car is $648.45. The parts cost $265.95. The labor cost is $85 per hour. Write and solve an equation to find
zysi [14]

Answer:

( t - p ) /  85x =  h

( t - 265.95 ) /  85x  = h

648.45 - 265.95 / 85x = 3.32h

h = 3.32

Therefore ( t - p ) /  85x =  3.32

Step-by-step explanation:

648.45 - 265.95

282.50 /85

= 3.32 hrs

Finding equation to find hours can be shown as

( t - p ) /  85x =  3.32

How we found equation to find total

Parts = 19 x 14 - 5/100 = 266- 0.05

648.45 - 265.95 = 282.5

282.5/85 = 3.323  near to 3,233529

Labour = 85x  = 17 (5 + x)

Equation = 17(5+ x) + 14(19) - 5/100 = 648.45 where x = 85

Equation = ( 85x x 3  1/3) + 265 - 19/20 = t

3 0
1 year ago
Three friends fill bags with trash at a neighborhood cleanup. Randall's bag weighs
BabaBlast [244]

Answer:

Randall picks up 68 pounds

Seth picks up 40 pounds

Joanna picks up 52 pounds

Step-by-step explanation:

Let us make an equation in x to find it

∵ Randall's bag weighs  3x - 7 pounds

∵ Joanna's bag weighs  2x + 2 pounds

∵ Seth's bag weighs 2x - 10 pounds

∵ Randall's and Joanna's bags weigh 3 times as much as  Seth's bag

- That means add Randall's bag and Joanna's bag and equate

    the sum by 3 times Seth's bag

∵ Randall's bag + Joanna's bag = 3(Seth's bag)

∴ (3x - 7) + (2x + 2) = 3(2x - 10)

- Simplify the two sides

∴ (3x + 2x) + (-7 + 2) = 3(2x) - 3(10)

∴ 5x + (-5) = 6x - 30

∴ 5x - 5 = 6x - 30

- Add 5 to both sides

∴ 5x = 6x - 25

- Subtract 6x from both sides

∴ -x = -25

- Divide both sides by -1

∴ x = 25

Substitute x by 25 in the weight of each bag

∵ Randall's bag weighs = 3(25) - 7 = 75 - 7

∴ Randall's bag weighs = 68 pounds

∵ Seth's bag weighs = 2(25) - 10 = 50 - 10

∴ Seth's bag weighs = 40 pounds

∵ Joanna's bag weighs  = 2(25) + 2 = 50 + 2

∴ Joanna's bag weighs  = 52 pounds

7 0
2 years ago
Read 2 more answers
Andre has a bowl of chocolates where 70% of them are milk chocolate and the remaining 30% are
mylen [45]

Answer:

4) 7.9%

Step-by-step explanation:

Given:

% of milk chocolate = 70%

% of white chocolate = 30%

Total number of chocolate = 20

Number of milk chocolate:

\frac{70}{100} * 20 = 14

Number of white chocolate:

\frac{30}{100} * 20 = 6

From the calculations, we now know there are 14 milk chocolates and 6 white chocolates.

2 white chocolates are picked at random without replacement.

Probability first chocolate picked was white: \frac{6}{20} = 0.3

Probability second chocolate picked was white: \frac{5}{19} = 0.2632

To find probability that both of them are white chocolates, multiply probability of the first and second.

0.3 * 0.2632 = 0.07896

≈ 0.079

Convert to percentage by multiplying by 100.

0.079 * 100 = 7.9%

The probability that they are both

white chocolate is 7.9%

4 0
2 years ago
Other questions:
  • Tim Has M Dollars. Rebecca has $6 less than 1/10 Times The Number Of Dollars That Tim Has. Which Expression represents the total
    10·2 answers
  • The coordinates of the endpoints of and are A(x1, y1), B(x2, y2), C(x3, y3), and D(x4, y4). Which condition proves that ?
    13·3 answers
  • Chaucer explores the idea that appearances can be deceiving through the character of the old woman. how does this theme relate t
    10·1 answer
  • (PLEASE HELP URGENT!)
    8·1 answer
  • Chi loves to read. He can speed-read 40 pages in 3 minutes. How long should it take him to read "The Scarlet Letter," a 265- pag
    9·1 answer
  • When the equation a – bx = cx + d is solved for x, the result is x = StartFraction a minus d Over b plus c EndFraction..
    13·2 answers
  • A hiker travels 3 km due east then 2 km on a bearing of 110°. Find: a) how far south the hiker is from the starting point Hint:
    9·1 answer
  • The band leader is recording the number of students in the seventh and eighth grades who play flute and clarinet. Which describe
    7·2 answers
  • Find the area of this quadrilateral. Explain or show your strategy.
    14·1 answer
  • Dennis is numbering the pages of his book. Page 1 is right hand,page 2 a left hand page and faces 3,a right hand page. Which two
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!