100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

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

Beoordeling
-
Verkocht
-
Pagina's
6
Cijfer
A+
Geüpload op
24-09-2025
Geschreven in
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

Meer zien Lees minder
Instelling
Computer Information Systems
Vak
Computer information systems









Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
Computer information systems
Vak
Computer information systems

Documentinformatie

Geüpload op
24 september 2025
Aantal pagina's
6
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

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/

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Abbyy01 Exam Questions
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
91
Lid sinds
3 jaar
Aantal volgers
33
Documenten
1119
Laatst verkocht
1 maand geleden

3,5

13 beoordelingen

5
5
4
2
3
3
2
1
1
2

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen