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
katovenus [111]
3 years ago
13

Which sort algorithm does the following outline define? for i between 0 and number_used-1 inclusivea. sequential b. non-sequenti

al
Computers and Technology
1 answer:
Kitty [74]3 years ago
4 0

Answer:

The answer is option b. non-sequential.  

Explanation:

The right answer is selection sort algorithm.

Selection sort algorithm:

Selection sort is a simple sorting algorithm.  

This sorting algorithm is divided into two parts:

1. the sorted part at the left end  

2.the unsorted part at the right end.

initially, the sorted part is empty and the unsorted part is the entire list.

The smallest element is selected from the unsorted array and swapped with the leftmost element, and that element becomes a part of the sorted array and the process continues.

<u>Algorithm : </u>

Step 1 : Set MIN to location 0 .

Step 2 : Search the minimum element in the list.  

Step 3 : Swap with value at location MIN .

Step 4 : Increment MIN to point to next element.  

Step 5 : Repeat until list is sorted.

Sequential algorithm:

The selection sort algorithm sorts an array by repeatedly finding the minimum element from unsorted part and putting it at the beginning.

<u>Algorithm : </u>

Step 1 : selection Sort(array, size)  

Step 2 :repeat (size - 1) times  

Step 3 : set the first unsorted element as the minimum  

Step 4 : for each of the unsorted elements  

Step 5 : if element < current Minimum  

Step 6 : set element as new minimum  

Step 7 : swap minimum with first unsorted position  

end selection Sort

so, in the end the sort algorithm for I between 0 and number_used-1 inclusive is non sequential.

It is selection sort algorithm  which defines the outline  for i between 0 and number_used-1 inclusive .

You might be interested in
What is the current through R1?
patriot [66]
I = V/R. So the answer is 9/200 = 0.045A = 45mA which is B
8 0
3 years ago
How do you change between worksheets inside an Excel Workbook?
ad-work [718]

Answer:      c) Click on a different sheet tab at the bottom.

Explanation:    

To change between worksheets inside an Excel Workbook : Click on a different sheet tab at the bottom

3 0
4 years ago
What layer is responsible for routing messages through an internetwork in the tcp/ip model?
Paul [167]

Answer:

<h2>The TCP/IP model consists of four layers: application, transport, internet, and network access. Of these four layers, it is the internet layer that is responsible for routing messages.</h2>
4 0
3 years ago
Where could an identity theft access your personal information?
noname [10]
Hey there!

Here is your answer:

<u><em>The proper answer to your question is "through websites".</em></u>

Reason:

<u><em>There are many ways identity thefts make there attacks but the most common ways is using unsafe websites. These websites most likely sell cheap products that require you to give all of your personal information in order to buy the product. </em></u>

Therefore the answer is using unsafe websites.

If you need anymore help feel free to ask me!

Hope this helps!

~Nonportrit
8 0
3 years ago
Read 2 more answers
Write a C program that stores the number 123.45 in the variable alpha, 98.76 in the variable beta, and 76.67 in the variable gam
Anon25 [30]

Answer:

C

Explanation:

the answer

8 0
2 years ago
Other questions:
  • As you're helping a user configure her e-mail over the phone, she remarks that the IP address is different than it was when she
    6·1 answer
  • In your presentation you added a text box to?
    5·1 answer
  • Which of the following views would you use to see your Web page while working on it?
    15·1 answer
  • The presentation ____ determines the formatting characteristics of fonts and colors.
    11·2 answers
  • Which of the following describe a required
    7·1 answer
  • Which of the following should NOT be done to keep people from slipping on floors? A) Have the proper absorbents in an easy-to-fi
    12·2 answers
  • Why do many experts recommand longer time horizonal if you are doing high risk investment
    7·1 answer
  • Use the drop-down menu to complete the steps for using the Goal Seek feature.
    13·2 answers
  • Which quality should an experiment have to be replicable and valid? O clearly detailed results O a well-cited research paper O s
    7·1 answer
  • Write the translator of third generation language​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!