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
Paladinen [302]
3 years ago
5

Identify the correct shell sort algorithm for the given interleaved sorting. InsertionSortInterleaved(numbers, numbersSize, star

tIndex, gap) {
i = 0
j = 0
temp = 0 // Temporary variable for swap
for (i = startIndex + gap; i < numbersSize; i = i + gap) {
j = i
while (j - gap >= startIndex && numbers[j] < numbers[j - gap]) {
temp = numbers[j]
numbers[j] = numbers[j - gap]
numbers[j - gap] = temp
j = j - gap
}
}
}
ShellSortistOfGames, listSize, gapValues) {
for each gapValue in gapValues)
for (i = gapValue; i > 0; i--) {
Insertion Sortinterleaved listOfGames, listSize, 1. gapValue)
O }
}
}
ShellSortlist, listSize, gapValues) (
for each (gapValue in gapValue)
for (i = 1; i < gapValue; ++) {
InsertionSortinterleaved listofGames, listSize, i, gapValue)
O }
}
}
ShellSortinumbers, numbers Size, gapValues) {
for each (gapValue in gapValues) {
for (i = 0; i InsertionSortinterleaved numbers, numbersSize, igapValue)
O }
}
}
ShollSortistOfGames, listSize, gapValues) (
for each (gapValue in gapValues) {
Insertion SortinterleavedlistOfGames, listSize)
O }
}
}
Computers and Technology
1 answer:
Sergio039 [100]3 years ago
8 0
Sinturda Okayama 314 magnolia
You might be interested in
Personal Area Network (PAN--
Allushta [10]

Answer:

All of given terms are Categories of Wireless networks.

Explanation:

Wireless networks as obvious from name are the networks having no means of physical medium such as cords, wires or cables. This gives the advantage of mobility and extension of the applications to different parts of building, block and even anywhere in word. Wireless network can be divided into four basic categories in order to differentiate between there quality and range:

                     <u>Category                                                           Coverage</u>

  • Wireless Personal Area Network (WPAN)          |   Within One person
  • Wireless Local Area Networks (WLAN)               |    Within a building
  • Wireless Metropolitan Area Networks (WMAN)  |   Within a city
  • Wireless Wide Area Networks (WWAN)              |     Worldwide

     

i hope it will help you!

4 0
3 years ago
Brent recently received funding for his fast-food chain in Michigan. As a result, he hires Angela to set up a top-level domain s
Elena-2011 [213]

The option among the top level domain names that Angela should opt for under such requirements is .biz.

<h3>What's a domain name? </h3>

Domain names are known to be formed to create IP addresses very easy so that one can easily remember.

Note that the domain name of biz is better for Angela to use as it is suitable for her business and as such, The option among the top level domain names that Angela should opt for under such requirements is .biz.

Learn more about domain name from

brainly.com/question/17062016

#SPJ1

5 0
2 years ago
Write the definition of a void function that takes as input two integer values, say n and m. The function returns the sum and av
hodyreva [135]

Answer:

void mn(int m, int n){

   int sum = 0;

int count = 0;

   if(m<n){

       for(int i = m;i<=n;i++){

           sum+=i;

       }

   }

   else{

       for(int i = n;i<=m;i++){

           sum+=i;

       }

   }

count = abs(m - n)+1;

   cout<<"Sum: "<<sum<<endl;

   cout<<"Average: "<<(float)sum/count;

}

Explanation:

This line defines the method

void mn(int m, int n){

This initializes sum and count to 0

   int sum = 0;

int count = 0;

This checks if m is less than n

   if(m<n){

This iterates from m to n and calculates the sum of numbers between this interval

<em>   for(int i = m;i<=n;i++){</em>

<em>            sum+=i;</em>

<em>        }</em>

<em>    }</em>

If otherwise,

   else{

This iterates from n to m and calculates the sum of numbers between this interval

<em>        for(int i = n;i<=m;i++){</em>

<em>            sum+=i;</em>

<em>        }</em>

<em>    }</em>

This calculates the range from m to n using absolute function

count = abs(m - n)+1;

This prints the calculated sum

   cout<<"Sum: "<<sum<<endl;

This calculates and prints the average

   cout<<"Average: "<<(float)sum/count;

}

<em>See attachment for complete program that includes the main (in c++)</em>

Download cpp
7 0
3 years ago
Tanya wants to create an sql query to fetch records from a table. which is the first word she has to type to write the query?
kogti [31]

Answer:

SELECT

Explanation:

Here's an example where you would fetch all records from table1

SELECT * FROM table1

7 0
4 years ago
Implementing HTML best practices and writing code to match the original intentions of each element is known as __________ HTML.
erica [24]

Answer:

semantic

Explanation:

The description provided is describing the practice known as semantic HTML. This is basically code that provides both the user and the developer a description on what the code was originally supposed to do. For example, a method that calculates the total cost of a set of prices could be called calculateTotal(). By doing so you are describing the intention of the method clearly so that the individual using the method does not need to look at anything else to know what it does.

6 0
3 years ago
Other questions:
  • write a function that counts the number of times the value of y occurs in the first n values in array x. y is an integer variabl
    15·1 answer
  • Which describes the purpose of the continue statement in Java?
    5·1 answer
  • Should i change my profile pic<br> dont delete
    15·2 answers
  • A researcher wants to do a web-based survey of college students to collect information about their sexual behavior and drug use.
    7·1 answer
  • You are consulting for a trucking company that does a large amount ofbusiness shipping packages between New York and Boston. The
    5·1 answer
  • Write a program that declares constants to represent the number of inches, feet, and yards in a mile. Name the constants INCHES_
    6·1 answer
  • A small network used for communication between personal computing devices is known as?
    8·1 answer
  • Correct single error in this. Try to appear relaxed, but not to relaxed​
    13·1 answer
  • You're expecting visitors who will be demanding Mamet access Before they arrive, you can activate a Guest network that has its o
    11·1 answer
  • Vocational counselors group career and occupation specialties into <br> career clusters.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!