Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

COS212 EO3 with Answers

Rating
-
Sold
-
Pages
11
Grade
A
Uploaded on
07-06-2022
Written in
2020/2021

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

Institution
Course

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:

Written for

Institution
Course

Document information

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

Subjects

$12.08
Get access to the full document:

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

Get to know the seller
Seller avatar
beeveetutoring

Also available in package deal

Get to know the seller

Seller avatar
beeveetutoring University of Pretoria
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
0
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

Recently viewed by you

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

Frequently asked questions