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
Ivenika [448]
3 years ago
14

Show the steps of a Selection Sort for the numbers ( 5 3 9 5 ).

Computers and Technology
1 answer:
Sedbober [7]3 years ago
3 0

Answer:

Sorted array will be:-

3 5 5 9

Explanation:

In Selection Sort algorithm it sorts the array by repeatedly finds the minimum in the array form the array that is unsorted and swaps it with the value at the first position.

The unsorted array:- 5 3 9 5

In first iteration

minimum is 3.

3 will be swapped with 5.

Now the array is 3 5 9 5

sorted array 3

In second iteration

unsorted array is 5 9 5

sorted array 3 5

and the minimum from it is 5

No swapping will occur.

In third iteration

unsorted array is 9 5

minimum is 5

sorted array 3 5 5

swap it with 9.

Now the array is sorted.

3 5 5 9

You might be interested in
The ____ tool allows a user to connect to the active registry database and make changes that are effective immediately. editreg.
kenny6666 [7]
Regedit is the Answer
3 0
3 years ago
Arnie is planning an action shot and wants the camera to move smoothly alongside his running characters. He is working on a tigh
cricket20 [7]
Camera and wagon are answer
4 0
2 years ago
If user reading a document on computer, it allows you to navigate on any part of the document called?
VashaNatasha [74]
I Think Its either  B or C
6 0
2 years ago
Technician A says that the purpose of the electrolyte is to allow the escape of hydrogen gas from the battery. Technician B says
kifflom [539]

Answer:

D. Neither Technician A nor B.

Explanation:

D. Neither Technician A nor B.

The electrolyte is a chemical medium that allows the flow of electrical charge between the cathode and anode. When a device is connected to a battery — a light bulb or an electric circuit — chemical reactions occur on the electrodes that create a flow of electrical energy to the device.  

7 0
3 years ago
What is the value of vals[4][1]? double[][] vals = {{1.1, 1.3, 1.5}, {3.1, 3.3, 3.5}, {5.1, 5.3, 5.5}, {7.1, 7.3, 7.5}};
neonofarm [45]

Answer:

When the user concludes the value of "vals[4][1]", then it will give an exception of "ArrayIndexOutOfBoundsException".

Explanation:

  • It is because the size of the above array is [4*3] which takes the starting index at [0][0] and ending index at [3][2]. It is because the array index value starts from 0 and ends in (s-1).
  • When the double dimension array size is [5][5], then it will conclude the value of [4][1].
  • The above array have following index which value can be calculated :-- [0][0],[0][1],[0][2],[1][0], [1][1],[1][2], [2][0], [2][1], [2][2],[3][0],[3][1] and [3][2].
4 0
3 years ago
Other questions:
  • What is the other name for repetitive strain injury
    12·2 answers
  • Which type of operating system is usually used in personal computers?
    11·1 answer
  • Difference between entropy and enthalpy is
    9·1 answer
  • Which tab provides commands for the most commonly used elements in Word software?
    15·1 answer
  • What is the definition of a digital signal?
    14·1 answer
  • I need to know thr full number of pie
    8·1 answer
  • How can officers in the armed services receive college educations? Select the best answer choice. A. All of the answers are corr
    11·1 answer
  • ___signs tell you what you can or can't do, and what you must do ?
    5·2 answers
  • Question 1
    10·1 answer
  • Choose the missing words in the code below.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!