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

PRG 211 Algorithms & Logic - Finals Mock Exam Review - UOPX 2025.

Note
-
Vendu
-
Pages
28
Grade
A+
Publié le
28-05-2025
Écrit en
2024/2025

PRG 211 Algorithms & Logic - Finals Mock Exam Review - UOPX 2025.PRG 211 Algorithms & Logic - Finals Mock Exam Review - UOPX 2025.PRG 211 Algorithms & Logic - Finals Mock Exam Review - UOPX 2025.

Établissement
Cours










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

École, étude et sujet

Établissement
Cours

Infos sur le Document

Publié le
28 mai 2025
Nombre de pages
28
Écrit en
2024/2025
Type
Examen
Contient
Questions et réponses

Sujets

Aperçu du contenu

PRG 211 Algorithms & Logic for
Computer Programming

Finals Mock Exam Review

(Questions & Solutions)

2025




©2025

, Question 1:
Consider an algorithm with the following recurrence:
T(n) = 3T(n/2) + n.
Using the Master Theorem, what is the time complexity of the algorithm?
- A. Θ(n)
- B. Θ(n log n)
- C. Θ(n^log_2(3))
- D. Θ(n^2)

ANS: C. Θ(n^log_2(3))
Rationale: Here, a = 3 and b = 2. We compute exponent log_b(a) =
log_2(3) ≈ 1.585. Since f(n) = n is O(n^(log_2(3)-ε)) (for ε ≈ 0.585), by
Master Theorem (Case 1) the time complexity is Θ(n^log_2(3)).

---

Question 2:
Which algorithmic paradigm is best described by solving a problem
recursively by breaking it into two or more independent subproblems
and then combining their solutions?
- A. Greedy algorithms
- B. Dynamic programming
- C. Divide-and-conquer
- D. Backtracking

ANS: C. Divide-and-conquer
Rationale: Divide‐and‐conquer splits the problem into independent
subproblems, solves each recursively, and merges the solutions. It is
distinct from dynamic programming, where overlapping subproblems are
stored to avoid re-computation.

---
©2025

, Question 3:
A Turing machine is considered the gold standard for a computational
model because it can simulate any algorithm. This concept is captured by
which property?
- A. Turing Completeness
- B. Decidability
- C. Determinism
- D. Finite state operation

ANS: A. Turing Completeness
Rationale: Turing completeness means that a computational model
(like a Turing machine) can simulate any other Turing complete system. It
is the benchmark for what is computable.

---

Question 4:
The Boolean Satisfiability Problem (SAT) is important in computational
complexity because it was the first problem to be proven NP-complete.
Which theorem established this result?
- A. Cook’s Theorem
- B. Gödel’s Incompleteness Theorem
- C. Rice’s Theorem
- D. Bellman’s Principle

ANS: A. Cook’s Theorem
Rationale: Cook’s Theorem (1971) established that SAT is NP-complete,
meaning that any problem in NP can be reduced to SAT in polynomial
time, forming the basis of NP-completeness.

---

Question 5:
Which complexity class contains decision problems that can be solved in
©2025
€14,48
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.
MedGrad Walden University
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
29
Membre depuis
2 année
Nombre de followers
10
Documents
3344
Dernière vente
1 semaine de cela

Hi there! I'm a former nursing student who loves to share my knowledge and help others succeed. On this account, you'll find my past study notes and papers for nursing and other programs that I've taken or reviewed. They are high-quality, well-organized and easy to understand. Whether you need a quick refresher, a detailed explanation or a sample essay, I've got you covered. Follow me and get access to the best resources for your studies. Trust me, you won't regret it!

Lire la suite Lire moins
2,6

5 revues

5
0
4
0
3
3
2
2
1
0

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