Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Algorithms from homework1, Exercises of Advanced Computational Complexity

Algorithms from hw1 which go in depth on how to solve it

Typology: Exercises

2022/2023

Uploaded on 09/24/2023

mike-wong-2
mike-wong-2 🇨🇦

1 document

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1

Partial preview of the text

Download Algorithms from homework1 and more Exercises Advanced Computational Complexity in PDF only on Docsity!

(a) When the input size is doubled, the algorithms get slower by (i) a factor of 4. (ii) a factor of 8. (iii) a factor of 4. (iv) a factor of 2, plus an additive 2n. (v) the square of the previous running time. (b) When the input size is increased by an additive one, the algorithms get slower by (i} an additive 2n + 1. (ii} an additive 3n? + 3n+ L. (iii) an additive 200n | 100. (iv) an additive log@a 11) 1 njlog(n 1 1) — logan. (v) a factor of 2. lexS61.359. 766