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
How can a cell phone tower help people​
Sveta_85 [38]

Answer:

Whenever you use your mobile phone to make a call, it emits electromagnetic radio waves also known as radio frequency or RF energy. Once the radio waves are emitted, the antenna from the nearest cell phone tower will receive them. The antennas of a cell tower can both transmit and receive signals from mobile phones.

6 0
4 years ago
Read 2 more answers
To give text an outline, you can use which command?
Sindrei [870]

Answer:

To show all text in an outline. Position the cursor the and then press

Alt + Shift + A

Explanation:

8 0
4 years ago
A pizza cutter is a compound machine made up of what simple machines?
levacccp [35]
The correct answer is option A): "A wedge and a wheel and axle" . A compound machine is a machine composed of two or more simple machines.
4 0
4 years ago
Match the metric units with these measurements
zavuch27 [327]
Force:newtons
distance:meters
work:joules
power:either watts or horsepower
energy:joules
time:kiloseconds and milliseconds
6 0
3 years ago
To add the word "confidential" to the background of a page, users would need to _____.
KengaRu [80]
I beleive you need to insert a watermark
3 0
3 years ago
Other questions:
  • If there is no index.html file in the root folder nothing will be displayed when you navigate to the site address
    14·1 answer
  • Ideation includes all of the following EXCEPT
    5·1 answer
  • What output is produced by the following program segment? Why? (Recall that name.charAt(i) is the i-th character in the string,
    11·1 answer
  • Unicode is a world standard to represent _________________
    10·1 answer
  • Which model represents any process in general?
    6·1 answer
  • Mention five of the format tools use to edit a picture in a word document<br>​
    13·1 answer
  • What connections do you see between variables and the Input-Output-Store-Process model of a computer?
    5·1 answer
  • What is a banner grab?
    12·1 answer
  • Trademarks _____.
    12·2 answers
  • What are some industries of aerodynamics and hydrodynamics? explain each one in detail.
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!