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
miss Akunina [59]
3 years ago
12

assume that you want to sort an array have 100000 elements which algorithm (insert sort algorithm or quick sort algorithm) is th

e best option ? why?
Computers and Technology
1 answer:
Rama09 [41]3 years ago
4 0

Answer:

Quick Sort.

Explanation:

Quick Sort will be best suited for an array having 100000 elements instead of the insertion sort algorithm because as we know the average time complexity of quick sort is O(NlogN) and for insertion sort is O(n^2).The sorting totally depends upon the pivot that is being selected in quick sort.

While insertion sort is best suited for arrays that are already sorted it takes O(n) time in those cases.

Since the array that we have is very large and so we need an algorithm that can sort the array faster than the other sorting algorithms.Quick  Sort is also inplace and does not requires extra space to do the sorting.

You might be interested in
Write an application that encodes English-language phrases into pig Latin. Pig Latin is a form of coded language. There are many
deff fn [24]

Answer:

Answer has been attached to this response as a source code file saved as "PigLatinWord.java"

Explanation:

Explanation has been added to the source code in the form of comments. Please go through the comments in the code.

Hope this helps!

Download java
3 0
4 years ago
Modify the Eggs program to create a new one named EggsInteractive that prompts the user for and accepts a number of eggs for eac
rjkz [21]

Please provide the eggs program!

7 0
3 years ago
I need help, thank you
UkoKoshka [18]

Answer:

i think i might be the 3 answer

Explanation:

4 0
3 years ago
How does the issue of cybersecurity relate to the internet of things?.
RideAnS [48]

Answer:

Due to the communication of IoTs to the internet, cybersecurity is a great concern when creating and securing that communication.

Explanation:

When connecting devices to the internet, it essentally can be accessed from anywhere. Therefore you would need cyber security to protect each device and its assets from getting into the wrong hands.

Hope this helps :)

5 0
3 years ago
Yahoo Messenger is an example of a/an __________ service on the Internet.
barxatty [35]

Answer:

Yahoo Messenger is an example of a service on the Internet.

7 0
3 years ago
Read 2 more answers
Other questions:
  • If you bury a story on digg what have you done?
    7·2 answers
  • A vehicle travels 2345 m in 315 toward the evening sun. What is its velocity
    13·1 answer
  • What can u access various sites on
    12·1 answer
  • 40 points to answer ALL
    9·2 answers
  • An image can be copied from the Internet or another location and pasted into Paint.
    13·1 answer
  • In a meeting, Juan hears someone say a product mix is "wide." What does
    13·1 answer
  • Which components can be added to a lightning app on custom object (choose 3 answers)A. Visualforce B. Standard Lightning compone
    6·1 answer
  • A particular problem is currently not able to be practically solved by using an algorithm. Which of the following statements abo
    13·2 answers
  • Question 11
    9·1 answer
  • CSS At-rules provide a way for designers to define "if this, then that" scenarios.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!