



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A collection of exam questions from a university course on algorithms and abstract data types. The questions cover various topics such as time complexity analysis, recurrence equations, sorting algorithms, and red-black trees. Students are expected to answer multiple-choice questions based on the provided information.
Typology: Exams
1 / 5
This page cannot be seen from the preview
Don't miss anything!




References:
Scoring: Each question will have four choices for the answer, ( a )–( d ). You will earn two (2) points for each correct answer. A blank answer counts zero; a wrong answer counts –1. You will have one–two “grace” questions that you can leave blank and still earn a perfect score. The example problems here are indicative of the topics and format for the exam. The actual questions will be variations with slightly different problem instances, numbers, and mathematical expressions. However, the concepts that are tested by these questions will not change on the exam.
Problems:
n ) includes the functions: (a) (^12)
n and 0: 001 n. (b) 2
n log n and 2
n. (c) (^12)
n log n and (^12)
n. (d) 2
n and 10 log n.
n
k = 1
k log 2 ( k ) is in: (a) Θ( n log( n )). (b) Θ( k log 2 ( k )). (c) Θ( n^2 log( n )). (d) Θ( k^2 log 2 ( k )).
n
i = 0
i^2 is in: (a) Θ( n^4 ). (b) Θ( n^3 ). (c) Θ( n^2 log n ). (d) Θ( n^2 ).
K
j = 1
3 j^ is in
(a) Θ( 14 K^4 ) (b) Θ( 12 K^2 )
n ) includes the functions: (a) 2
n and 10 log n.
(d) (^12)
n and 0: 001 n.
2 n
i = 2
i is in: (a) Θ( n ). (b) Θ( n^2 ). (c) Θ( n^2 log n ). (d) Θ( n^3 ).
2log 2 ( n )
j = 1
2 j^ is in (a) Θ( 2 j^ ) (b) Θ( 2 n ) (c) Θ( n^2 ) (d) Θ((log 2 ( n ))^3 )
The following questions are based on the Red-Black tree shown below, using the standard Red-Black tree insertion algorithm and the standard binary search tree deletion algorithm.
23
11
7
6 9 14
17 25
27
black
red
red
red
black
black
red red
black
The following questions are based on the binary search tree tree shown below, using the standard binary search tree deletion algorithm. 23
11
7
6 9 14
17 25
27
occur in the tree?