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)

Algorithm Design & Analysis Exam Questions and Answers Fully Solved Latest Version

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
03-08-2025
Written in
2025/2026

Algorithm Design & Analysis Exam Questions and Answers Fully Solved Latest Version Binary Search - AnswersAn ordered list is divided in 2 with each comparison. Complexity of the following (Fibonacci Func.): int fibRec(n){ if ( n = 1){ return n; else return fibRec(n-1) + fibRec(n-2)); - AnswersO(2^n) Name an example of O(N^3) complexity - AnswersMatrix multiplication Order the following in terms of quickest growth Linear Time : _________ Logarithmic Time : _________ Constant Time: _________ Quadratic Time : _________ - AnswersLinear Time - O(n) : 2 Logarithmic Time O(log n) : 3 Constant Time - O(1) : 4 Quadratic Time - O(n2) : 1 Order the following in terms of quickest growth: O(1) : _________ O(2^n) : _________ O(n^2) : _________ O(n) : _________ O(nlogn) : _________ O(n!) : _________ - AnswersO(1) - 6 O(2^n) - 2 O(n^2) - 3 O(n) - 5 O(nlogn) - 4 O(n!) - 1 Which of the followings is true? a)Θ(f) - At the rate of f b)O(f) - At most as fast as f c)Ω(f) - At least as fast as f d)Θ(f), O(f), Ω(f) gives us asymptotic behavior e)All of the above - Answerse)All of the above What does it mean when we say that an algorithm X is asymptotically more efficient than Y? a)X will always be a better choice for small inputs b)X will always be a better choice for large inputs c)Y will always be a better choice for small inputs d)X will always be a better choice for all inputs - Answersb)X will always be a better choice for large inputs the rate of Θ(f) - AnswersAt the rate of f the rate of O(f) - AnswersAt most as fast as f the rate of Ω(f) - AnswersAt least as fast as f What is the asymptotic complexity of n + n^2 + 2n + n^4 ? - AnswersO(n^2) What is the asymptotic complexity of 3n^2+ 10nlogn + 1000n + 4logn + 9999? - AnswersO(n^2) What is the asymptotic complexity of n^3 + n^2 + n + log n? - AnswersO(n^2) •What is the asymptotic complexity of n + 2^n + 3^n + n^4? - AnswersO(2^n) What is the asymptotic complexity of nlogn + logn + n? - AnswersO(nlogn) What is the asymptotic complexity of n! + n3 + 5n? - AnswersO(n!) How do you find the complexity of a Loop? - AnswersThe running time of a loop is at most, the running time of the statements inside the loop multiplied by the number of iterations What is the time complexity of this snippet? for (int i = 0 ; i n ; i++) print i; - AnswersTotal time: c x n = O(n) What is the time complexity of this snippet?

Show more Read less
Institution
Algorithm Design & Analysis
Course
Algorithm Design & Analysis

Content preview

Algorithm Design & Analysis Exam Questions and Answers Fully Solved Latest Version 2025-2026

Binary Search - AnswersAn ordered list is divided in 2 with each comparison.

Complexity of the following (Fibonacci Func.):

int fibRec(n){

if ( n <= 1){

return n;

else

return fibRec(n-1) + fibRec(n-2)); - AnswersO(2^n)

Name an example of O(N^3) complexity - AnswersMatrix multiplication

Order the following in terms of quickest growth

Linear Time : _________

Logarithmic Time : _________

Constant Time: _________

Quadratic Time : _________ - AnswersLinear Time - O(n) : 2

Logarithmic Time O(log n) : 3

Constant Time - O(1) : 4

Quadratic Time - O(n2) : 1

Order the following in terms of quickest growth:

O(1) : _________

O(2^n) : _________

O(n^2) : _________

O(n) : _________

O(nlogn) : _________

O(n!) : _________ - AnswersO(1) - 6

O(2^n) - 2

, O(n^2) - 3

O(n) - 5

O(nlogn) - 4

O(n!) - 1

Which of the followings is true?

a)Θ(f) - At the rate of f

b)O(f) - At most as fast as f

c)Ω(f) - At least as fast as f

d)Θ(f), O(f), Ω(f) gives us asymptotic behavior

e)All of the above - Answerse)All of the above

What does it mean when we say that an algorithm X is asymptotically more efficient than Y?

a)X will always be a better choice for small inputs

b)X will always be a better choice for large inputs

c)Y will always be a better choice for small inputs

d)X will always be a better choice for all inputs - Answersb)X will always be a better choice for large
inputs

the rate of Θ(f) - AnswersAt the rate of f

the rate of O(f) - AnswersAt most as fast as f

the rate of Ω(f) - AnswersAt least as fast as f

What is the asymptotic complexity of n + n^2 + 2n + n^4 ? - AnswersO(n^2)

What is the asymptotic complexity of 3n^2+ 10nlogn + 1000n + 4logn + 9999? - AnswersO(n^2)

What is the asymptotic complexity of n^3 + n^2 + n + log n? - AnswersO(n^2)

•What is the asymptotic complexity of n + 2^n + 3^n + n^4? - AnswersO(2^n)

What is the asymptotic complexity of nlogn + logn + n? - AnswersO(nlogn)

What is the asymptotic complexity of n! + n3 + 5n? - AnswersO(n!)

Written for

Institution
Algorithm Design & Analysis
Course
Algorithm Design & Analysis

Document information

Uploaded on
August 3, 2025
Number of pages
9
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.99
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


Also available in package deal

Thumbnail
Package deal
Algorithms Bundled Questions and Answers Fully Solved Latest Version 2025/2026
-
19 2025
$ 81.87 More info

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TutorJosh Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
467
Member since
1 year
Number of followers
16
Documents
32426
Last sold
16 hours ago
Tutor Joshua

Here You will find all Documents and Package Deals Offered By Tutor Joshua.

3.4

74 reviews

5
26
4
16
3
14
2
1
1
17

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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions