• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 9 páginas
Examen

Algorithm Design & Analysis Questions With Answers

Document preview thumbnail
Vista previa 2 fuera de 9 páginas

Algorithm Design & Analysis Questions With Answers. Complete set of exam questions with correct answers for Algorithm Design and Analysis exam preparation and revision. Ideal for reviewing key concepts and practicing before your test.

Vista previa del contenido

Algorithm Design & Analysis Questions With
Answers
Question 1.
Binary Search
Correct Answer: An ordered list is divided in 2 with each comparison.

Question 2.
Complexity of the following (Fibonacci Func.): int fibRec(n){
if ( n <= 1){
return n;
else
return fibRec(n-1) + fibRec(n-2));
Correct Answer: O(2^n)

Question 3.
Name an example of O(N^3) complexity
Correct Answer: Matrix multiplication

Question 4.
Order the following in terms of quickest growth Linear Time : _________
Logarithmic Time : _________
Constant Time: _________
Quadratic Time : _________
Correct Answer: Linear Time - O(n) : 2 Logarithmic Time O(log n) : 3
Constant Time - O(1) : 4 Quadratic Time - O(n2) : 1

Question 5.
Order the following in terms of quickest growth: O(1) : _________
O(2^n) : _________
O(n^2) : _________
O(n) : _________
O(nlogn) : _________
O(n!) : _________
Correct Answer: O(1) - 6 O(2^n) - 2 O(n^2) - 3 O(n) - 5 O(nlogn) - 4 O(n!) - 1

Question 6.
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
Correct Answer: e)All of the above

,Question 7.
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
Correct Answer: b)X will always be a better choice for large inputs

Question 8.
the rate of Θ(f)
Correct Answer: At the rate of f

Question 9.
the rate of O(f)
Correct Answer: At most as fast as f

Question 10.
the rate of Ω(f)
Correct Answer: At least as fast as f

Question 11.
What is the asymptotic complexity of n + n^2 + 2n + n^4 ?
Correct Answer: O(n^2)

Question 12.
What is the asymptotic complexity of 3n^2+ 10nlogn + 1000n + 4logn + 9999?
Correct Answer: O(n^2)

Question 13.
What is the asymptotic complexity of n^3 + n^2 + n + log n?
Correct Answer: O(n^2)

Question 14.
•What is the asymptotic complexity of n + 2^n + 3^n + n^4?
Correct Answer: O(2^n)

Question 15.
What is the asymptotic complexity of nlogn + logn + n?
Correct Answer: O(nlogn)

Question 16.
What is the asymptotic complexity of n! + n3 + 5n?
Correct Answer: O(n!)

Información del documento

Subido en
2 de diciembre de 2026
Número de páginas
9
Escrito en
2026/2027
Tipo
Examen
Contiene
Preguntas y respuestas
$14.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

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.
Favorgrades
3.8
(200)
Vendido
863
Seguidores
376
Artículos
62409
Última venta
5 horas hace



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