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 are the constraints of mine shaft head gear​
Serhud [2]

Answer:

Mine headgear constructions support wheel mechanisms for suspending winding cables that transport workers and ore up and down deep level shafts. These strange anthropomorphic structures have become the iconic symbol for mining.

4 0
3 years ago
What kind of animation is used in the powerpuff girls show??
konstantin123 [22]
Calarts? Cartoon I don’t really know but that’s all the information that I have
8 0
3 years ago
Un comerciante de régimen código para comprar mercancías gravadas a un comerciante de régimen simplificado precio de venta al pú
Genrish500 [490]

Answer:

El valor sin impuestos de las mercancías era de $1.512.605.

Explanation:

Dado que un comerciante de régimen código para comprar mercancías gravadas a un comerciante de régimen simplificado pagó un precio de venta al público 1.800.000 incluido el IVA tarifa general (19%), para determinar el valor de las mercancías sin el impuesto incluido se debe realizar el siguiente cálculo:

1.19 = 1.800.000

1 = X

1.800.000 / 1.19 = X

1.512.605 = X

Por lo tanto, el valor sin impuestos de las mercancías era de $1.512.605.

5 0
3 years ago
Use a web browser to find three examples of static webpages and three examples of dynamic webpages, and note the URLs for each p
shepuryov [24]

Answer:

Static web pages are sent as it is at web server without being processed additionally.

Dynamic web pages content may change, and server hosting dynamic web pages return content after processing trough a program.

Examples of dynamic and static web pages are below

Explanation:

<em><u>dynamic websites</u></em>

f o o t y r o o m  (.co) It is a football website. Displays latest highlights and football stats. It is dynamic because it gives live match scores, as the scores change, content change as well.

a c c u w e a t h e r (.com) It shows weather information. It is dynamic because when requested, displays current weather information.

x e (.com)   It is a currency website. Dynamic because it shows live exchange rates.

<em><u>static websites</u></em>

s c i p y - l e c t u r e s (.org) It is a website about scientific python environment. It is static because it gives same content whenever requested.

d o g a c a n d u . b l o g s p o t (.com) it is a blog. Static because the requested content doesn't change unless the blogger adds a new story.  

z t a b l e (.net) It is a website about z-score values and includes z-tables. It is static because its displayed as it is.

5 0
3 years ago
Aside from the smart cell phones used by a billion people, list and describe four
Pie
Gaming Computers- High processing speed and designed to be used for gaming.
Handheld Computers- The things that are being used by Billions of people. Firstly designed as an Internet Browser, now can be used in gaming and office purposes
Mainframe Computers- The large boxes (computers) that you see in server rooms. Designed to be used on processing large quantities of data on the same time.
Office Computers- The things you see in your office. Cheap computers that is undercut in processing speed, and designed to run Office applications.
that's​all I know. have a good day :)
5 0
3 years ago
Other questions:
  • A(n)…………is the interface used toconnect external devices to the computer.
    5·1 answer
  • For the following code, how many times would the for loop execute? String str = ("Ben and Jerry's ice cream is great."); String[
    7·1 answer
  • The sequence of folders to a file or folder is called a(n) ________
    8·1 answer
  • A nursing informatics specialist is preparing an in-service program for staff on healthcare informatics and information technolo
    13·1 answer
  • .When one component modifies an internal data item in anothercomponent we call this:
    7·1 answer
  • Impact of computer in society, using relevant examples​
    13·1 answer
  • How to post a answer
    7·1 answer
  • Describe how a black and white image could be represented in binary
    11·2 answers
  • What is the best way of transmitting data safely
    9·1 answer
  • In this assignment, you will implement an online banking system. Users can sign-up with the system, log in to the system, change
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!