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
Vinvika [58]
2 years ago
7

1,2,3,4,5,6,7,8,9,10 – Best case - Sorted in ascending order

Computers and Technology
1 answer:
Pepsi [2]2 years ago
5 0

Using the knowledge in computational language in python it is possible to write a code that from a random number draw creates an order of increasing numbers

<h3>Writting the code in python:</h3>

<em>def shellSort(array, n):</em>

<em>    # Rearrange elements at each n/2, n/4, n/8, ... intervals</em>

<em>    interval = n // 2</em>

<em>    while interval > 0:</em>

<em>        for i in range(interval, n):</em>

<em>            temp = array[i]</em>

<em>            j = i</em>

<em>            while j >= interval and array[j - interval] > temp:</em>

<em>                array[j] = array[j - interval]</em>

<em>                j -= interval</em>

<em>            array[j] = temp</em>

<em>        interval //= 2</em>

<em>data = [10,9,8,7,6,5,4,3,2,1]</em>

<em>size = len(data)</em>

<em>shellSort(data, size)</em>

<em>print('Sorted Array in Ascending Order:')</em>

<em>print(data)</em>

See more about python at brainly.com/question/18502436

#SPJ1

You might be interested in
The ArrayList class ____ method returns the current ArrayList size.
timurjin [86]

Answer:

b. size

Explanation:

We can use the size() method of java.util.ArrayList to determine the size of an  ArrayList in Java. The size() method of the ArrayList class returns an integer which is equal to the number of elements present in the ArrayList.

Below is an example code to illustrate the use of the size() method of the ArrayList:-

     ArrayList<Integer> aList = new ArrayList<Integer>(5);

      aList.add(25);

     aList.add(2);

     aList.add(5);

     aList.add(22);

     System.out.println("Size of the array list: " + aList.size());

This will print the size of the array list as 4 since we've added four numbers into the array list.

3 0
3 years ago
Where do you go to view and access important info about your document all in one location
kumpel [21]
The place you go to view and access important info about your document would be in the menu bar.
6 0
3 years ago
Assume that you want to send your Mom a picture file, continuously as one large message, over a link that has a rate of 1Mbps. Y
Mandarinka [93]

Answer: you should listen in your classroom

Explanation: of you listened you would not be asking this qustion now would you

4 0
3 years ago
What are the correct steps to enabling the Clutter feature?
lisov135 [29]

Answer:  Hello!

Sign in to Outlook on the web. For help, see Sign in to Outlook on the web.  In the upper-left corner of the page, choose the App launcher. > Outlook.  On the navigation bar, go to Settings. > Options > Mail > Automatic processing > Clutter.  Choose Separate items identified as Clutter > Save .

Explanation:

Mark me brainest please. Hope I helped! Hope you make an 100%

-Anna♥

8 0
3 years ago
Subtract B8 from the sum of cells<br> C1 through C10
alina1380 [7]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

To subtract B8 from the sum of cells  C1 through C10, you need to perform the following steps.

  • click on empty cell or C11.
  • In C11 write the formula, <em>=sum(C1:C10) </em>this formula calculates the sum of cells  C1 through C10, and store result in C11.
  • Now click on cell C12.      
  • Write formula  in C12 i.e. <u>=C11-B8 </u><em><u> </u></em>this formula subtract B8 from the sum of cells  C1 through C10 and store result in C12

4 0
3 years ago
Other questions:
  • What is the quick key to highlighting a column?
    14·1 answer
  • A data set has 60 observations with minimum value equal to 30 and a maximum value equal to 72. The estimated class width using t
    11·1 answer
  • Send answer below, Thank you
    8·1 answer
  • Teachers can organize the classroom environment to facilitate activities and to prevent problems. True Or False
    15·1 answer
  • Which one of the following items is an example of software?
    5·1 answer
  • What is extraction, transformation, and loading? Group of answer choices It is a process of entering data, tracking data, and lo
    5·1 answer
  • Why computer is known as versatile and diligent device? Explain​
    7·1 answer
  • Mention three types of pipeline hazards​
    6·2 answers
  • HELP MEEE PLEASE!!!
    11·1 answer
  • HELP!!!!!
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!