COMP 2211 Sorting Algorithm

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Is heap sort stable and/or in place?

Not Stable and In Place

Is quick sort sort stable and/or in place?

Not Stable and In Place

Is selection sort stable and/or in place?

Not Stable and In Place.

Is bubble sort stable and/or in place?

Stable and In Place.

Is insertion sort stable and/or in place?

Stable and In Place.

Is merge sort stable and/or in place?

Stable and Not In Place

Is radix sort stable and/or in place?

Stable and Not In Place

What does it mean for an algorithm to be stable?

A sorting algorithm is said to be stable if two objects with equal keys appear in the same order in sorted output as they appear in the input unsorted array.

What does it mean for an algorithm to be in place?

This describes an sorting algorithm which transforms input using no additional data structure and constant O(1) space.


Ensembles d'études connexes

WHAP Final, WHAP Review Part 4, WHAP Review Part 3, WHAP Final Review Part 2, WHAP Unit 8 Test, WHAP Test 07, WHAP Study Guide, Unit 6, WHAP EXAM

View Set

AAMC Bundle Practice Exam 1 - Questions I missed/to review

View Set

Sloveso + prepozice s akuzativem

View Set

ATI Care of Children Online Practice 2019 A with NGN

View Set

Chapter 13 Accounting Concept Assessments

View Set

Art I: The Elements and Principles of Art U2L15

View Set