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
CaHeK987 [17]
3 years ago
14

The _________ sort usually performs fewer exchanges than the ________ sort.

Computers and Technology
1 answer:
Makovka662 [10]3 years ago
3 0
The two words that complete the sentence are: selection and bubble.

The complete sentence is: The selection sort usually performs fewer exchanges than the bubble sort.

Both, selection and bubble are sorting algorithms used in computer programs. This is they are procedures to arrange data.

Bubble is the most simple algorithm but it is too slow and impractical, so selecting sort, still simple, performs better than bubble sort.

Selection sort divides the list of data into two parts: one contains the data already sorted and the other has the part of data pending to be sorted.

Bubble sort goes through every pair of elements, compares the two data and moves them if necessary.
You might be interested in
Within MethodsPractice.java, write a method public static int planParty2(int f, int c, int p) that performs the same calculation
Vesna [10]

Answer:

// class definition of MethodPractice

public class MethodPractice {

   // main method that begin program execution

   public static void main(String args[]) {

       // call to the planParty2 method is done using some parameter

       // and the return value is displayed

     System.out.println("The number of p-packs needed is: " + planParty2(9, 14, 6));

     System.out.println("The number of p-packs needed is: " + planParty2(4, 6, 3));

     System.out.println("The number of p-packs needed is: " + planParty2(4, 6, 4));

   }

   

   // planParty2 method with 3 parameters and it return an integer

   // the calculation needed to get the required pack is done here

   public static int planParty2(int f, int c, int p){

       // the party owner is added to list of friend

       // and the value is assigned to totalPeople

       int totalPeople = f + 1;

       // the totalPeople times the can drink

       // is assigned to totalDrinkNeeded

       int totalDrinkNeeded = totalPeople * c;

       // number of packs required is declared

       int numberOfPacks;

       // if the totalDrinkNeeded contains exact multiple of a pack

       // we return the numberOfPack by dividing totalDrinkNeeded with p

       if (totalDrinkNeeded % p == 0){

           return numberOfPacks = totalDrinkNeeded / p;

       }

       // else we compute if the totalDrinkNeeded is not a multiple of a pack

       //  first we get the remainder when the totalDrinkNeeded is divided with p

       // then the needed can is computed by subtracting remainder from p

       // the neededCan is added to totalDrinkNeeded, then divided with p

       // and assigned to numberOfPacks

       // numberOfPacks is returned.

       else {

           int remainder = totalDrinkNeeded % p;

           int neededCan = p - remainder;

           numberOfPacks = (totalDrinkNeeded + neededCan) / p;

           return numberOfPacks;

       }

   }

}

Explanation:

Image showing the detailed question is attached.

The program is written in Java and is well commented. A sample image of program output when it is executed is attached.

3 0
3 years ago
Is it always best for a company to make decisions based on data, or are there some situations where they should not focus on dat
Serhud [2]

Answer:

data-driven decision

Explanation:

While 91% of companies say that data-driven decision-making is important to the growth of their business, only 57% of companies said that they base their business decisions on their data. Data-driven decision-making is a great way to gain a competitive advantage, increase profits and reduce costs!

6 0
3 years ago
You have just started a new job as the administrator of the eastsim domain. The manager of the accounting department has overhea
Luda [366]

Explanation:

To implement the desired password policy, you have to carry out these steps

1. An organizational unit, OU has to be created for these employees in east-sim.com

2. Since there is an organizational unit created for the accounting employees, you have to put the employees user objects in this Organizational unit.

3. Then as the administrator the next step that i would take is the configuration of the password policy, then i would link this to the already created organizational unit for these employees

3 0
3 years ago
What would you call 2-1-1 for?
kogti [31]

Answer:

B.

Explanation:

211 # is for Essential Community Services. In many states, dialing “211” provides individuals and families in need with a shortcut to health and human services.

8 0
3 years ago
Read 2 more answers
Consider two different implementations, M1 and M2, of the same instruction set. There are five classes of instructions (A, B, C,
r-ruslan [8.4K]

Answer:

Kindly check explanation

Explanation:

Given the table :

Class___M1____M2____frequency

A______1______2______60%

B______2______3______30%

C______4______4______10%

A) Average CPI for each machine M1 and M2:

Frequency * cycles :

For M1:

(60% × 1) + (30% × 2) + (10% × 4)

0.6 + 0.6 + 0.4 = 1.6

For M2:

(60% × 2) + (30% × 3) + (10% × 4)

1.2 + 0.9 + 0.4 = 2.5

Calculate the average MIPS ratings for each machine, M1 and M2.

MIPS = clockrate / average CPI × 10^6

Clock rate for M1 isnt given

However, clock rate for M2 = 3,300

For M2 = (3300/2.5 ×10^6 = 0.00132

7 0
3 years ago
Other questions:
  • You just got a shipment of 10 network-attached laser printers. You want these printers to always have the same address but you w
    14·1 answer
  • Todd, a travel agent, lost his job due to no need for his skill. This is an example of what type of unemployment?
    12·1 answer
  • Python
    14·1 answer
  • What is the voltage drop across R4 in the diagram shown above?
    13·1 answer
  • The keyboard usually has six rows of keys. Which of the following is not one of the key group categories?
    7·2 answers
  • Your essay is due tomorrow and you don't have time to write it. You decide to buy an essay online. You've paid for it, so it can
    8·1 answer
  • How do you remove a key cap without a kaycap remover (keyboard keycap) ​
    11·1 answer
  • In your own words, what is Cryptocurrency?
    15·2 answers
  • A. In I/O interation between OS and devices, describe how hybrid mechanism works?
    6·1 answer
  • Ginny just enrolled in a C-SNP that uses the post-enrollment verification method. When will the plan send her a termination noti
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!