Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

50 points Save Answer A QUESTION 8 Match the algorithm to its description Bubble Sort Insertion Sort Selection Sort Shell Sort Merge Sort Quick Sort

image text in transcribed
50 points Save Answer A QUESTION 8 Match the algorithm to its description Bubble Sort Insertion Sort Selection Sort Shell Sort Merge Sort Quick Sort Heap Sort US Easy to implement, but REALLY slow. O (2) B Based on a binary search tree with a special property C. Works pretty well in most cases. Doesn't require an extra array or other structure to sort. Partition the array on a pivot point, based on whether elements are greater than or less than the pivot value. Repeat recursively until sorted. Can fun in O in login}) time D. Search the entire unsorted list for the first element, and put it at the front of the sorted list Search the remaining unsorted list for the second element, and put it in the second spot in the sorted Still pretty slow, On) E. An intuitive sorting method, comparable to sorting a stack of bills. Put the fist two items from the unsorted list in order and put it in the ordered group. then pull the third one from the unordered list, and put it in the correct place in the ordered group, etc. Pretty slow, Ona). F. Breaks the listinto disjoint sublists so that each element in a sublist is a fixed number of positions apart. It breaks the sublists down until they are as small as possible, and then sorted via insertion sort. The sublists are then sorted with other Sublists to make larger and larger lists until the entire list is sorted. It can run in o (n 1.5 time, faster than the exchange sort algorithms. G. A cousin of Shell Sort. Conceptually simple, but tricky to implement. Recursively breaks the listinto sublists, then uses a simple merge function to stich them together into larger sorted lists. Can run in Oin log(n) time

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Management Systems

Authors: Patricia Ward, George A Dafoulas

1st Edition

ISBN: 1844804526, 978-1844804528

More Books

Students also viewed these Databases questions