100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

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

Puntuación
-
Vendido
-
Páginas
28
Grado
A+
Subido en
28-05-2025
Escrito 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.











Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Información del documento

Subido en
28 de mayo de 2025
Número de páginas
28
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

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
$16.49
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
MedGrad Walden University
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
29
Miembro desde
2 año
Número de seguidores
10
Documentos
3344
Última venta
1 semana hace

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!

Lee mas Leer menos
2.6

5 reseñas

5
0
4
0
3
3
2
2
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes