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
Tamiku [17]
4 years ago
12

The number of operations executed by algorithms A and B is 40n2 and 2n3, respectively. Determine n0 such that A is better than B

for n ≥ n0.
Computers and Technology
1 answer:
Tom [10]4 years ago
8 0

Answer:

Given that:

A= 40n^2

B = 2n^3

By given scenario:

40n^2=2n^3

dividing both sides by 2

20n^2=n^3

dividing both sides by n^2 we get

20 = n

Now putting n=20 in algorithms A and B:

A=40n^2

= 40 (20)^2

= 40 * (400)

A= 16000

B= 2n^3

= 2 (20)^3

= 2(8000)

B= 16000

Now as A and B got same on n = 20, then as given:

n0 <20 for n =20

Let us take n0 = 19, it will prove A is better than B.

We can also match the respective graphs of algorithms of A and B to see which one leads and which one lags, before they cross at n= 20.

You might be interested in
Which one of these is not an example of common presenter mistakes?
antoniya [11.8K]
A. not having enough detail
8 0
4 years ago
Any websites online to make $50 daily?​
andreyandreev [35.5K]

Answer:

hmmm research some and find out because there are alot

7 0
3 years ago
Computers help eliminate that repetitive of manual task. How can this benefit you in in your overall career
andrezito [222]

Continuing advances in technology and automation will be eliminating repetitive work in the offices of the future.

Computer technology has had a tremendous impact upon workers. In some instances, the introduction of computers has improved member working conditions, but, in others, new technology has produced several detrimental effects.

Explanation:

  • One of the key trends to emerge was that automation, smart machines and artificial intelligence will conduct repetitive work, replacing the need for people to complete these tasks.
  • Instead of worrying about job losses, executives should be helping to reduce jobs in which AI and machine learning take over boring tasks, while humans spend more time with higher-level tasks.

Here are three ways eliminating repetitive work can boost productivity:

  1. <u> Reduce Dependency on Email and Spreadsheets  :</u> Automation tools such as mobile applications, customized portals and project management tools eliminate the time spent checking and responding to emails and updating spreadsheets to reflect work progress. With automated tools, managers and their teams can post progress or project information on an integrated mobile app.
  2.  <u>Reduce Mistakes and Injuries  </u>: The possibility of human errors, which take more time to correct, is virtually eliminated when tasks are automated. Leaving the monotonous tasks to machines reduces the chance of injuries and allows workers to keep working on more strategic tasks.
  3. <u> Free Employees Time for High-Level Skills</u>  :  Many of the employees who spend their time undertaking repetitive tasks could actually be better utilized on more complex tasks.

There are a variety of illnesses that may be caused by repetitive computer work :

  • Tendonitis : pain and swelling of tendons at the junction between the tendon and its muscle;
  • Epicondylitis: pain and swelling where the tendons and bone join around the elbow joint, etc
3 0
3 years ago
Read 2 more answers
Create an application named TurningDemo that creates instances of four classes: Page, Corner, Pancake, and Leaf. Create an inter
pickupchik [31]

Answer:

1) TurningDemo

public class TurningDemo

{   public static void main(String[] args)

 {      

    Leaf obj1 = new Leaf();

    Corner obj2= new Corner();

    Page obj3= new Page();

    Pancake obj4= new Pancake();

 } }

2) ITurnable

public interface ITurnable

{

 public void Turn();

}

3) Leaf class:

public class Leaf implements ITurnable

{

}

Page class:

public class Page implements ITurnable

{

}

Corner class:

public class Corner implements ITurnable

{

}

Pancake class:

public class Pancake implements ITurnable

{

}

Explanation:

The first is TurningDemo application which creates instance obj1, obj2, obj4 and obj4 of four classes Page, Corner, Pancake, and Leaf. new keyword is used to create new object or instance of each class.

The second is ITurnable interface. It contains a single method Turn() which is of type public.

Thirdly, classes named Page, Corner, Pancake, and Leaf implement ITurnable. implements keyword is used to implement a interface so this interface can be used by these classes.

These classes can also implement turn() of ITurnable interface as follows:

Leaf class:

public class Leaf implements ITurnable

{  public void turn()

 {

 }

}

Page class:

public class Page implements ITurnable

{

public void turn()

 {

 }

}

Corner class:

public class Corner implements ITurnable

{ public void turn()

 {

 }

}

Pancake class:

public class Pancake implements ITurnable

{   public void turn()

 {

 }

}

4 0
4 years ago
: Compute the 9 partial derivatives for the network with two inputs, two neurons in
lions [1.4K]

Using the python code we can say that it will be possible to calculate the neutrons and organize them as:

<h3>The code can be written as:</h3>

<em>def get_total_derivative(self,l_id):</em>

<em>def sigmoid(x, div = 0):</em>

<em>if div == 1: </em>

<em>return np.exp(-x) / (1. + np.exp(-x))**2.</em>

<em>if div == 2: </em>

<em>return - np.exp(x) * (np.exp(x) - 1) / (1. + np.exp(x))**3.</em>

<em>return 1. / (1. + np.exp(-x)) </em>

<em />

<em>def linear(x, div = 0):</em>

<em>if div == 1: </em>

<em>return np.full(x.shape,1)</em>

<em>if div > 2: </em>

<em>return np.zeros(x.shape)</em>

<em>return x </em>

<em />

<em />

<em />

See more about python at brainly.com/question/18502436

#SPJ1

8 0
2 years ago
Other questions:
  • When you are notified that a user’s workstation or system is acting strangely and log files indicate system compromise, what is
    5·1 answer
  • What is an example of a functional organizational structure?
    10·2 answers
  • We will pass in 2 values, X and Y. You should calculate XY XY and output only the final result. You will probably know that XY X
    13·1 answer
  • Which of the following are documents that can help you to review and assess your organization’s status and state of security? Fi
    6·1 answer
  • All systems have ___________.
    9·2 answers
  • Different network devices function at different network communication layers, depending on their purpose. Using the TCP/IP model
    7·1 answer
  • Simple geometry can compute the height of an object from the the object's shadow length and shadow angle using the formula: tan(
    12·1 answer
  • What is a non-example of job skill
    13·1 answer
  • ICT Practical Work
    12·1 answer
  • A vpn is used primarily for which purpose?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!