• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 11 pages
Exam (elaborations)

COS212 EO3 with Answers

Document preview thumbnail
Preview 2 out of 11 pages

They repeat questions in EOs. Don't be caught off guard! Get your question and answers now.

Content preview

Consider the following array of integers:


6 2784351
Sort the array into ascending order (smallest value to the left, largest value to the right)
using the shell sort algorithm. Fill in the values below to reflect the state of the array at
the end of each pass for a particular gap size. Use insertion sort to sort sub-arrays, and
the following gap sizes for each pass:
Pass 1234
Gap
size
5321
En
d
of
pa
ss
1:

En
d
of
pa
ss
2:

En
d
of
pa
ss
3:

En
d
of
pa
ss
4:

, Consider the following array of integers:
32 442 20 300
9 4
0 9 0 2
Sort the array into ascending order (smallest value to the left, largest value to the right)
using the radix sort algorithm for decimal values. Fill in the values below to reflect the
state of the array after all values have been re-inserted into the array. Be sure to enter
all values in their padded form:
End
of
pass
1:

End
of
pass
2:

End
of
pass
3:

End
of
pass
4:

Document information

Uploaded on
June 7, 2022
Number of pages
11
Written in
2020/2021
Type
Exam (elaborations)
Contains
Questions & answers
$12.39

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
0
Last sold
-




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions