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
maxonik [38]
3 years ago
13

Indicate whether the first function of each of the following pairs has a smaller, same or larger order of growth (to within a co

nstant multiple) than the second function. Justify your answer
1. n(n+1) and 2000 n
2 + 34 n 2. In n and Ign
3. 2n-1 and 2n
4. 2 n² and 0.001 n3 - 2 n
Computers and Technology
1 answer:
Aloiza [94]3 years ago
5 0

Answer:

1. The first function n^2 + n has the same order of growth as the second function 2000n^2 + 34n within a constant multiple.

2. The first ln(n) \\  and the second log(n) logarithmic functions have the same order of growth within a constant multiple.

3. The first function \frac{1}{2}2^{n} has the same order of growth as the second function 2^n within a constant multiple.

4. The first function 2n^2\\ has a smaller order of growth as the second function 0.001n^3 - 2n within a constant multiple.

Explanation:

The given functions are

1. n(n +1 ) and 2000n^2 + 34n

2. ln(n) \\ and log(n)

3. 2^{n-1} and 2^n

4. 2n^2\\ and 0.001n^3 - 2n

The First pair:

n(n +1 ) and 2000n^2 + 34n

The first function can be simplified to

n(n +1 )  \\\\(n \times n) + (n\times1)\\\\n^2 + n

Therefore, the first function n^2 + n has the same order of growth as the second function 2000n^2 + 34n within a constant multiple.

The Second pair:

ln(n) \\ and log(n)

As you can notice the difference between these two functions is of logarithm base which is given by

log_a \: n = log_a \: b\: log_b \: n

Therefore, the first ln(n) \\  and the second log(n) logarithmic functions have the same order of growth within a constant multiple.

The Third pair:

2^{n-1} and 2^n

The first function can be simplified to

2^{n-1} \\\\\frac{2^{n}}{2}  \\\\\frac{1}{2}2^{n}  \\\\

Therefore, the first function \frac{1}{2}2^{n} has the same order of growth as the second function 2^n within a constant multiple.

The Fourth pair:

2n^2\\ and 0.001n^3 - 2n

As you can notice the first function is quadratic and the second function is cubic.

Therefore, the first function 2n^2\\ has a smaller order of growth as the second function 0.001n^3 - 2n within a constant multiple.

You might be interested in
a) What are the 'interrupts' in a computer system? Describe the approaches to deal with multiple interrupts in a system.b) Analy
Fynjy0 [20]

Answer:

a)

An interrupt is a signal sent to the processor which indicates an event that needs immediate attention.

  • Interrupts are usually sent to CPU by external or I/O devices.
  • This notifies the processor to a high-priority process that requires the current process to be disrupted.
  • Interrupts requests the processor to stop its ongoing operations and run appropriate part of OS.
  • If the request is acknowledged, the processor may respond by halting its current operation, saving its state. Processor then executes a function called an interrupt handler to handle the event that needs attention.
  • This interrupt is temporary, and processor continues normal activities after the interrupt operator stops, unless the interrupt shows a fatal error.
  • The CPU must inform the device that its interrupt request is acknowledged so that it stops sending interrupt signals.
  • Interrupts are usually used for multitasking purposes in real time computers.
  • There are two basic types of interrupts: hardware and software interrupts.
  • A hardware interrupt requests are generated by hardware devices, to indicate that it needs attention from the operating system.
  • Software interrupts are either requested by programs when they want  some service from the operating system or these interrupts are generated by processor itself on executing particular instructions or when certain requirements are met.

Approaches to deal with multiple interrupts:

There are two approaches to handle multiple interrupts.

  1. One approach is to disable interrupts while an interrupt is being processed. A disabled interrupt means that processor will ignore that interrupt request. If during this phase an interrupt happens, it usually remains pending and will be reviewed by the processor after the interrupts has been enabled by the processor. So, when a program is being executed and an interrupt happens, interrupts are disabled immediately.Upon completion of the interrupt handler procedure, interrupts are allowed before the user program resumes, and the processor checks if other interrupts have occurred. This is a simple technique which deals with the interrupts sequentially. But it does not deal with priority requirements.
  2. Second approach is to define interrupt priorities to enable a higher priority interrupt to cause disruption of a lower-priority interrupt handler. For example take a system with 3 I/O devices: printer, disk and communication line with priorities 3,5, and 7. Lets say when a program starts a printer interrupt happens. The execution continues at printer ISR. At some time interval communication interrupt happens whilst this ISR is still executing. Due to the higher priority of the communication line than the printer, the interrupt is accepted and printer routine is interrupted. Its state is placed on stack and now execution resumes at communication line ISR. Now at some time interval the disk interrupt happens while communication routine is still executing. As the priority of disk interrupt is lower so this is held and communication isr execute completely. Suppose communication ISR finishes, then the previous state is resumed which is printer's ISR execution. But as the disk has higher priority than printer, the processor continues execution in disk ISR. After the completion of disk routine execution, the printer ISR is resumed. After the printer ISR execution is completed the control goes back to the user program.

b) Benefits of using multiple bus architecture compared to single bus architecture are as follows:

  • In a multiple bus architecture each pathway is tailored to deal with a specific type of information. This enhances performance as compared to single bus architecture which is used by simple computers to transfer data onto single bus. Performance enhancement is an important reason for having multiple buses for a computer system.
  • Multiple bus architecture allows multiple devices to work at the same time. This reduces waiting time and enhances the speed of the computer as compared to single bus architecture in which all the components share a common bus. Sharing a common bus causes bus contention which results in slowing down the computer and waiting time increases.
  • Having several different buses available allows to have multiple choices for connecting devices to computer system.
  • Bus designs changes, with the introduction of new types and forms from time to time. Multiple bus architecture with several buses can support equipment from different time periods and helps to retain obsolete equipment such as printers and old hard drives, and also add new ones. This is the compatibility benefit of using multiple bus architecture.
  • CPU places heavy load on bus which carries data from memory and peripheral traffic. So nowadays computers take on multi core model with multiple buses required. So multiple bus architecture is a good option for such systems as it carries more amounts of data through the processor with minimum wait time.

3 0
3 years ago
What is the role of the ieee in computer networking and wireless communications?
steposvetlana [31]
<span>An organization that sets standards for computer networking and wireless communications.</span>
8 0
3 years ago
____ is (are) the abuse of e-mail systems to send unsolicited e-mail to large numbers of people.
Volgvan
Pretty sure answer is <span>E-mail spam</span>
4 0
3 years ago
Which pillar in the cisco iot system describes embedded networks that include compact form factor switch and router cards runnin
kolezko [41]
<span>The network connectivity pillar in the Cisco IoT system describes embedded networks that include compact form factor switch and router cards running Cisco IOS software to provide secure data, voice, and video communications.
</span>The network connectivity is one of the six pillars <span>supporting Cisco's IoT system. It </span>includes purpose-built routing, switching and wireless products;
8 0
3 years ago
Disadvantage do you think one can have if he or she does use electronic media
Dima020 [189]
- discontinuity
- dependence on the electric power
and more
6 0
3 years ago
Other questions:
  • "what is the name of the ipsec configuration file"
    9·1 answer
  • must understand both art and engineering. a. industrial designer b. environmental designer c. interior designer d. graphic desig
    14·1 answer
  • Consider the following partial class definitions: public class A1 { public int x; private int y; protected int z; ... } public c
    12·1 answer
  • According to the video, some workers who work for themselves, such as Actors, Musicians, or Writers, may have what sort of worke
    7·1 answer
  • Which PlayStation was the first to allow connection between it and computer network
    12·1 answer
  • The user cannot use a computer system without.................... software<br><br>​
    13·2 answers
  • In Scheme, the form (symbol-length? 'James) will return: Group of answer choices 0 5 6 error message
    11·1 answer
  • Which influence on spending deals with the motivation to<br> purchase a product?
    12·1 answer
  • What is the binary conversion of 179.187.223.21?
    11·2 answers
  • Q1). Write a python program to pass a list to a function and double the odd values and half even values of a list and display li
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!