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

DATA STRUCTURE EXAM QUESTIONS AND ANSWERS

Puntuación
-
Vendido
-
Páginas
7
Grado
A+
Subido en
29-07-2025
Escrito en
2024/2025

DATA STRUCTURE EXAM QUESTIONS AND ANSWERS Algorithm Definition - Answer- A set of steps to accomplish a task... Algorithm according to Meriam-Webster Dictionary: a procedure for solving a mathematical problem (as of finding the greatest common divisor) in a finite number of steps that frequently involves repetition of an operation; broadly : a step-by-step procedure for solving a problem or accomplishing some end especially by a computer. What makes a good algorithm? - Answer- 1. correctness (solves a problem) 2. efficiency Asymptotic Analysis - Answer- Tells us that some algorithms are more efficient than others Merge Sort Big-O notation - Answer- (n log n) n = # of items log n= number of splits for that number of items ex. log2 8=3 8-#of items 3=number of splits for that amount of items Linear Search Big-O notation - Answer- O(n) because we must look at all n items from a[0] to a[...] wherever it ends Binary Search Description - Answer- It works by repeatedly dividing in half the portion of the list that could contain the item, until you've narrowed down the possible locations to just one. 32 teams qualified for the 2014 World Cup. If the names of the teams were arranged in sorted order (an array), how many items in the array would binary search have to examine to find the location of a particular team in the array, in the worst case? Choose 1 answer: Choose 1 answer: A At most, 32. B At most, 6. C At most, 16. D

Mostrar más Leer menos
Institución
Data Structures Dsa
Grado
Data structures dsa









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

Escuela, estudio y materia

Institución
Data structures dsa
Grado
Data structures dsa

Información del documento

Subido en
29 de julio de 2025
Número de páginas
7
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

DATA STRUCTURE EXAM
QUESTIONS AND ANSWERS
Algorithm Definition - Answer- A set of steps to accomplish a task...

Algorithm according to Meriam-Webster Dictionary: a procedure for solving a
mathematical problem (as of finding the greatest common divisor) in a finite number
of steps that frequently involves repetition of an operation; broadly : a step-by-step
procedure for solving a problem or accomplishing some end especially by a
computer.

What makes a good algorithm? - Answer- 1. correctness (solves a problem)
2. efficiency

Asymptotic Analysis - Answer- Tells us that some algorithms are more efficient than
others

Merge Sort Big-O notation - Answer- (n log n)
n = # of items
log n= number of splits for that number of items
ex. log2 8=3
8-#of items
3=number of splits for that amount of items

Linear Search Big-O notation - Answer- O(n)
because we must look at all n items from a[0] to a[...] wherever it ends

Binary Search Description - Answer- It works by repeatedly dividing in half the
portion of the list that could contain the item, until you've narrowed down the possible
locations to just one.

32 teams qualified for the 2014 World Cup. If the names of the teams were arranged
in sorted order (an array), how many items in the array would binary search have to
examine to find the location of a particular team in the array, in the worst case?
Choose 1 answer:
Choose 1 answer:

A
At most, 32.

B
At most, 6.

C
At most, 16.

D

, At most, 1. - Answer- B. at most 6

What is
lg(32)
lg(32), the base-2 logarithm of 32?
Choose 1 answer:
Choose 1 answer:

A
5

B
16

C
32

D
1 - Answer- A. 5

You have an array containing the prime numbers from 2 to 311 in sorted order: [2, 3,
5, 7, 11, 13, ..., 307, 311]. There are 64 items in the array. About how many items of
the array would binary search have to examine before concluding that 52 is not in
the array, and therefore not prime?
Choose 1 answer:
Choose 1 answer:

11

7

32

1

64

128

22 - Answer- 7

In 2013, there were 193 member states in the United Nations. If the names of these
states were sorted alphabetically in an array, about how many names would binary
search examine to locate a particular name in the array, in the worst case?
Choose 1 answer:
Choose 1 answer:

A
No more than 9.
$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.
Freshy Oxford University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
52
Miembro desde
1 año
Número de seguidores
4
Documentos
6784
Última venta
14 horas hace

3.6

10 reseñas

5
3
4
4
3
1
2
0
1
2

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