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
Schach [20]
4 years ago
10

Which of the following sorting algorithms is described by this text? "Take the item at index 1 and see if it is in order compare

d to the item at index 0. If it is not, then swap the two items. Next, take the item at index 2 and compare it to the items at the lower indexes. Move items in the lower indexes to a higher one until you find the proper location to place the value so that it is in the correct order. Continue this process with all remaining indexes."
a. insertion sort
b. selection sort
c. merge sort
d. quick sort
e. binary sort
An array of integers is to be sorted from smallest to biggest using a selection sort. Assume the array originally contains the following elements:
11 17 30 8 20 25
What will it look like after the third pass through the for loop?
a. 8 11 17 20 25 30
b. 8 11 17 30 20 25
c. 8 17 30 11 20 25
d. 8 11 17 20 30 25
e. 8 11 30 17 20 25
Computers and Technology
1 answer:
trasher [3.6K]4 years ago
7 0

Answer:

b. selection sort

b. 8 11 17 30 20 25

Explanation:

The options above are the correct answers to the given questions.

Selection sort is a simple comparison-based sorting algorithm.

selection sort. (algorithm) Definition: A sort algorithm that repeatedly searches remaining items to find the least one and moves it to its final location. The run time is Θ(n²), where n is the number of elements. The number of swaps is O(n).

It is this sorting algorithm that will best ne suitable in the given event.

You might be interested in
What would be the most efficient way for the chain's
Aleks [24]

Answer: The answer is D)

Explanation:

Just got it correct!

8 0
4 years ago
Pls help its not school work i just need this fixed
Bingel [31]

Answer:

This just means that you have no file in your computer named 'Requirments' hence it is not able to retrieve any data from there.

6 0
3 years ago
Several disaster relief nonprofits want to create a centralized application and repository of information so that they can effic
vichka [17]

Answer: Community cloud

Explanation:

A community cloud is a collaborative effort whereby infrastructure is shared among different organizations from a particular community that has common concerns such as compliance, security etc.

Since several disaster relief nonprofits want to create a centralized application

in order to efficiently share and distribute resources related to various disasters that they may respond to together, then the community cloud will be useful in this regard.

6 0
3 years ago
Big Bob's Construction has many construction sites where computers are located. At the remote sites, Internet connectivity can b
Sergio039 [100]

Answer:

WAN or wide area network using satellite

Explanation:

A WAN or wide area network is a network of local area networks that could span beyond a geographical region.

For a network administrator to manage the remote construction site, a stable network connection should be established using a wireless medium like a satellite to connect the site's network to the office network.

8 0
3 years ago
Write the pseudocode for the following: A function called fahrenheitToCelsius that accepts a Real Fahrenheit temperature, perfor
V125BC [204]

Explanation:

import java.util.Scanner;

public class Main{

    public  static float CtoF(float celsius)

    {

        return 9 * (celsius / 5) + 32;

    }

public  static float FtoC(float fahrenheit)

{

   return (fahrenheit - 32) * 5 / 9;

}

    public static void main(String []args){

       System.out.println("Hello World");

       float temperature;

       Scanner in = new Scanner(System.in);

   System.out.println("Enter temperature in Fahrenheit");

   temperature = in.nextFloat();

   System.out.println("Fahrenheit value = " + FtoC(temperature));

   System.out.println("Enter temperature in Fahrenheit");

   temperature = in.nextFloat();

   System.out.println("Celcius value = " + CtoF(temperature));

    }

}

In this program we get input through the scanner object and it needs "java.util.Scanner" header file. We are getting the relevant input and that input is passed on the relevant function which has the ability to convert to Celsius and Fahrenheit.

Formula:

To Fahrenheit: 9 * (celsius / 5) + 32;

To celcius: (fahrenheit - 32) * 5 / 9;

8 0
3 years ago
Other questions:
  • What of the following can a cell contain? A number a word a function of these
    5·1 answer
  • .How does kinetic energy affect the stopping distance of a vehicle traveling at 30 mph compared to the same vehicle traveling at
    13·1 answer
  • Given an char variable last that has been initialized to a lowercase letter, write a loop that displays all possible combination
    10·1 answer
  • Suppose an application generates chunks of 20 bytes of data every 20 msec, and each chunk gets encapsulated in a TCP segment and
    14·1 answer
  • What is the target audience of an ad?
    11·1 answer
  • Write multiple if statements: If carYear is before 1967, print "Probably has few safety features." (without quotes). If after 19
    11·1 answer
  • Select the correct answer.
    7·1 answer
  • 54 points!!! Cyber security
    14·1 answer
  • Kelly has always used "P4ssw0rd” as her password on her online accounts. Why should she change this? Check all that apply.
    8·2 answers
  • One of the earliest computer networks was the ARPANET, developed in the early 1960s. The purpose of this network was to:
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!