100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Algorithms Final Exam Questions and Answers Fully Solved Latest Version

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

Algorithms Final Exam Questions and Answers Fully Solved Latest Version We use Python 3 in this course this semester. - AnswersTrue Python is a compiled language like C++. - AnswersFalse Python 3 is very broadly used in the real world. - AnswersTrue Python is hard to learn. - AnswersFalse Python uses indentation spaces to specify code blocks. - AnswersTrue Elements in a Python list must be in the same type. - AnswersFalse Set is a built-in datatype in Python. - AnswersTrue There is not a built-in datatype available for relations in Python. - AnswersFalse Linearly searching an element in an n-element array is O(n). - AnswersTrue Binary searching an element in a sorted n-element array is O(log n). - AnswersTrue Locating the value of the 100th element in an n-element array (n is at least 100) is O(1). - AnswersTrue In analyzing the asymptotic complexity of f(n) in Big-Oh, we only need to consier the highest term of f(n). - AnswersTrue n^(1/5) = O(logn) - AnswersFalse In analyzing the asymptotic complexity of f(n), we should replace all constant factors with 1. - AnswersTrue The time complexity of a double loop is O(n^2) always. - AnswersFalse If f = O(g), then g = O(f) cannot be true. - AnswersFalse The code segment below finds the greatest number from a, an array of 500 integers. Its time complexity is O(n). greatest = a[0] for i from 1 to 499: if greatest < a[i]: greatest = a[i] - AnswersFalse The eighth Fibonacci number is 13. - AnswersTrue The recursive implementation of finding the n-th Fibonacci number is mathematically correct. Therefore, we can apply it in practice even when n is big. - AnswersFalse There is a linear algorithm to find the n-th Fibonacci number. - AnswersTrue Any computational problem can be expressed as a True/False decision problem. - AnswersTrue All decidable problems are tractable. - AnswersFalse All computational problems are decidable if provide unlimited computational resources. - AnswersFalse A non-deterministic decision problem contains a guess step and a verification step. - AnswersTrue A problem is NP-hard if it at least NP-complete. - AnswersTrue Both 3SAT and set cover problems are NP-complete. - AnswersTrue

Show more Read less
Institution
Algorithms
Course
Algorithms









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Algorithms
Course
Algorithms

Document information

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

Subjects

Content preview

Algorithms Final Exam Questions and Answers Fully Solved Latest Version 2025-2026

We use Python 3 in this course this semester. - AnswersTrue

Python is a compiled language like C++. - AnswersFalse

Python 3 is very broadly used in the real world. - AnswersTrue

Python is hard to learn. - AnswersFalse

Python uses indentation spaces to specify code blocks. - AnswersTrue

Elements in a Python list must be in the same type. - AnswersFalse

Set is a built-in datatype in Python. - AnswersTrue

There is not a built-in datatype available for relations in Python. - AnswersFalse

Linearly searching an element in an n-element array is O(n). - AnswersTrue

Binary searching an element in a sorted n-element array is O(log n). - AnswersTrue

Locating the value of the 100th element in an n-element array (n is at least 100) is O(1). - AnswersTrue

In analyzing the asymptotic complexity of f(n) in Big-Oh, we only need to consier the highest term of f(n).
- AnswersTrue

n^(1/5) = O(logn) - AnswersFalse

In analyzing the asymptotic complexity of f(n), we should replace all constant factors with 1. -
AnswersTrue

The time complexity of a double loop is O(n^2) always. - AnswersFalse

If f = O(g), then g = O(f) cannot be true. - AnswersFalse

The code segment below finds the greatest number from a, an array of 500 integers. Its time complexity
is O(n).

greatest = a[0]

for i from 1 to 499:

if greatest < a[i]:

greatest = a[i] - AnswersFalse

The eighth Fibonacci number is 13. - AnswersTrue

, The recursive implementation of finding the n-th Fibonacci number is mathematically correct. Therefore,
we can apply it in practice even when n is big. - AnswersFalse

There is a linear algorithm to find the n-th Fibonacci number. - AnswersTrue

Any computational problem can be expressed as a True/False decision problem. - AnswersTrue

All decidable problems are tractable. - AnswersFalse

All computational problems are decidable if provide unlimited computational resources. - AnswersFalse

A non-deterministic decision problem contains a guess step and a verification step. - AnswersTrue

A problem is NP-hard if it at least NP-complete. - AnswersTrue

Both 3SAT and set cover problems are NP-complete. - AnswersTrue

In NP-completeness, the "NP" means non-polynomial. - AnswersFalse

If one NP-complete problem is tractable, then all NP-complete problems are tractable. - AnswersTrue

One should not try to solve any NP-hard problems because they are rarely appear in real world
applications. - AnswersFalse

One may apply both greedy and dynamic programming to tackle NP-hard problems for approximated
solutions. - AnswersTrue

There are definitely no polynomial algorithms to solve any NP-hard problem. - AnswersFalse

To prove a problem is NP-hard, one only need to show it is at least NP-complete. - AnswersTrue

Nothing needs to be agreed in a symmetric cryptosystem. - AnswersFalse

An encrypt function should be a bijection. - AnswersTrue

The multiplicative inverse of 7 in Z subscript 11 is 5. - AnswersFalse

Alice and Bob may establish a secure communication even they have never known each other before. -
AnswersTrue

Alice must have both public and private keys for her to send a message to Bob. - AnswersFalse

The security of RSA relies on the fact: it is computationally hard to factor a large integer. - AnswersTrue

Proposition:, then has a multiplicative inverse. Question 7, quiz 1 - AnswersTrue

Proposition:, then has a multiplicative inverse. Question 8, quiz 1 - AnswersFalse

The integer pair (77, 5) can be a public key in RSA. - AnswersFalse

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
332
Member since
1 year
Number of followers
16
Documents
28211
Last sold
1 day ago
Tutor Joshua

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

3.6

53 reviews

5
18
4
14
3
12
2
0
1
9

Recently viewed by you

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

Frequently asked questions