Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4,6 TrustPilot
logo-home
Examen

CSE373, MAT373: Analysis of Algorithms, Mock Midterm Exam 1 (Solution Hints)

Note
-
Vendu
-
Pages
6
Grade
A+
Publié le
24-09-2025
Écrit en
2025/2026

CSE373, MAT373: Analysis of Algorithms, Spring 2021 Date: March 23, 2021 Mock Midterm Exam 1 (Solution Hints) ( 6:35 PM – 7:50 PM : 75 Minutes ) • This exam will account for 20% of your overall grade. • There are five (5) questions, worth 75 points in total. Please answer all of them. • This is a closed book, closed notes exam. No cheat sheets are allowed. • You are allowed to use scratch papers for your calculations. Good Luck! Question Parts Points 1. Asymptotic Bounds (a),(b),(c) 5 + 5 + 5 = 15 2. Recurrences. (a),(b),(c) 5 + 5 + 5 = 15 3. Cutting Rod – 12 4. Insertion Sort – 18 5. Prefix Sums (a),(b) 10 + 5 = 15 Total 75 This study source was downloaded by from CourseH on :21:19 GMT -05:00 Question 1. [ 15 Points ] Asymptotic Bounds. For each of the following statements state whether it is True or False. You must justify each answer. Assume that all log’s are of base 2. (a) [ 5 Points ] 2 log n 2 = Θ n 2  (b) [ 5 Points ] n 1.2 = Ω n log2 n  (c) [ 5 Points ] 2 2n = O (3n ) Solution Hints. (a) We have, 2log n 2 = 22 log n = 2 log n 2 = n 2 = Θ n 2  Hence, the given statement is True. (b) We have, limx→∞  n 1.2 n log2 n  = limx→∞  n 0.2 log2 n  = (ln 2)2 limx→∞  n 0.2 ln2 n  {∵ log2 n = ln n ln 2 } = (ln 2)2 limx→∞  0.2n 0.2−1 2 ln n n  {L’Hopital’s rule} = 0.1(ln 2)2 limx→∞  n 0.2 ln n  = 0.1(ln 2)2 limx→∞  0.2n 0.2−1 1 n  {L’Hopital’s rule} = 0.02(ln 2)2 limx→∞ n 0.2 = ∞ ≥ c {where, c is any positive constant} So, n 1.2 = Ω n log2 n  . Hence, the given statem

Montrer plus Lire moins
Établissement
Computer Information Systems
Cours
Computer information systems









Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

École, étude et sujet

Établissement
Computer information systems
Cours
Computer information systems

Infos sur le Document

Publié le
24 septembre 2025
Nombre de pages
6
Écrit en
2025/2026
Type
Examen
Contient
Questions et réponses

Sujets

Aperçu du contenu

CSE373, MAT373: Analysis of Algorithms, Spring 2021 Date: March 23, 2021


Mock Midterm Exam 1 (Solution Hints)
( 6:35 PM – 7:50 PM : 75 Minutes )

• This exam will account for 20% of your overall grade.

• There are five (5) questions, worth 75 points in total. Please answer all of them.

• This is a closed book, closed notes exam. No cheat sheets are allowed.

• You are allowed to use scratch papers for your calculations.




Good Luck!




Question Parts Points
1. Asymptotic Bounds (a), (b), (c) 5 + 5 + 5 = 15
2. Recurrences. (a), (b), (c) 5 + 5 + 5 = 15
3. Cutting Rod – 12
4. Insertion Sort – 18
5. Prefix Sums (a), (b) 10 + 5 = 15
Total 75




This study source was downloaded by 100000899610689 from CourseHero.com on 09-24-2025 09:21:19 GMT -05:00


https://www.coursehero.com/file/106331785/midterm-sample-1-solpdf/

, Question 1. [ 15 Points ] Asymptotic Bounds. For each of the following statements state
whether it is True or False. You must justify each answer. Assume that all log’s are of base 2.

2
(a) [ 5 Points ] 2log n = Θ n2



(b) [ 5 Points ] n1.2 = Ω n log2 n



(c) [ 5 Points ] 22n = O (3n )

Solution Hints.


2 2
(a) We have, 2log n = 22 log n = 2log n = n2 = Θ n2


Hence, the given statement is True.

(b) We have,
   
n1.2 n0.2
limx→∞ n log2 n
= limx→∞ log2 n  
n0.2 ln n
= (ln 2)2 limx→∞ 2 {∵ log2 n = ln 2 }
ln n 
0.2n0.2−1
= (ln 2)2 limx→∞ 2 ln n {L’Hopital’s rule}
 n 
n0.2
= 0.1(ln 2)2 limx→∞
 ln n 0.2−1 
0.2n
= 0.1(ln 2)2 lim x→∞ 1 {L’Hopital’s rule}
n
= 0.02(ln 2)2 limx→∞ n0.2
= ∞≥c {where, c is any positive constant}
2
n1.2

So, = Ω n log n .
Hence, the given statement is True.
 
22n 4n 4 n
  
(c) We have, limx→∞ 3n = limx→∞ 3n = limx→∞ 3 = ∞.
So, 22n = ω (3n ).
Hence, the given statement is False.




1



This study source was downloaded by 100000899610689 from CourseHero.com on 09-24-2025 09:21:19 GMT -05:00


https://www.coursehero.com/file/106331785/midterm-sample-1-solpdf/
€9,75
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
Abbyy01 Exam Questions
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
91
Membre depuis
3 année
Nombre de followers
33
Documents
1119
Dernière vente
1 mois de cela

3,5

13 revues

5
5
4
2
3
3
2
1
1
2

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions