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

CMSC132 Final Exam review(All solved)

Puntuación
-
Vendido
-
Páginas
5
Grado
A+
Subido en
29-05-2024
Escrito en
2023/2024

What is the main reason software projects fail? correct answers Complexity of projects What is the program life-cycle? correct answers Problem Specification, Program Design, Algorithms and Data Structures, Coding and Debugging, Testing and Verification, Deployment, Documentation and Support, Maintenance and Upgrades True/False: Compared to program verification, empirical testing... correct answers a) Handles larger programs (True) b) Always catches more errors (False) c) Ensures code is correct (False) d) Can be applied without examining code (False, but maybe True?) True/False: According to the unified model... correct answers a) Design all algorithms before coding (False) b) Write test cases before coding (False) c) Use a prototype implementation to refine design (True) True/False: According to the Waterfall model... correct answers a) Design all algorithms before coding (True) b) Write test cases before coding (False) c) Use prototype implementation to refine design (False) What is the key property of a binary search tree? correct answers Has 0-2 children per node On average, what is the (algorithmic) complexity of doing an insertion in a binary tree? correct answers O(log(n)) On average, what is the (algorithmic) complexity of doing a find in a binary tree? correct answers O(log(n)) What is the worst case complexity of doing a find in a Binary Search Tree? correct answers O(h), where h is the height of the tree What can cause worst-case behavior in a binary tree? correct answers Degenerative trees. Meaning that, the data being entered into the tree is already in order, leading to a sorted Linked List. Inserting 10,20,30,40,50,... will lead to a single "column" ? tree that leads to a very large tree height What is a tree traversal correct answers The process of finding all the nodes in a Tree, and determining ther relationship What is the difference between a depth-first and breadth-first traversal? correct answers Breadth-first visit closer nodes first.

Mostrar más Leer menos
Institución
CMSC 132
Grado
CMSC 132









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

Escuela, estudio y materia

Institución
CMSC 132
Grado
CMSC 132

Información del documento

Subido en
29 de mayo de 2024
Número de páginas
5
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

CMSC132 Final Exam review(All solved)
What is the main reason software projects fail? correct answers Complexity of projects
What is the program life-cycle? correct answers Problem Specification, Program Design, Algorithms and Data Structures, Coding and Debugging, Testing and Verification, Deployment, Documentation and Support, Maintenance and Upgrades
True/False: Compared to program verification, empirical testing... correct answers a) Handles larger programs (True)
b) Always catches more errors (False)
c) Ensures code is correct (False)
d) Can be applied without examining code (False, but maybe True?)
True/False: According to the unified model... correct answers a) Design all algorithms before coding (False)
b) Write test cases before coding (False)
c) Use a prototype implementation to refine design (True)
True/False: According to the Waterfall model... correct answers a) Design all algorithms before coding (True)
b) Write test cases before coding (False)
c) Use prototype implementation to refine design (False)
What is the key property of a binary search tree? correct answers Has 0-2 children per node
On average, what is the (algorithmic) complexity of doing an insertion in a binary tree? correct answers O(log(n))
On average, what is the (algorithmic) complexity of doing a find in a binary tree? correct answers O(log(n))
What is the worst case complexity of doing a find in a Binary Search Tree? correct answers O(h), where h is the height of the tree
What can cause worst-case behavior in a binary tree? correct answers Degenerative trees. Meaning that, the data being entered into the tree is already in order, leading to a sorted Linked List. Inserting 10,20,30,40,50,... will lead to a single "column" ? tree that leads to a very large
tree height
What is a tree traversal correct answers The process of finding all the nodes in a Tree, and determining ther relationship
What is the difference between a depth-first and breadth-first traversal? correct answers
Breadth-first visit closer nodes first. Depth-first has three modes:
Preorder - parent > left child > right child
Inorder - left child > parent > right child
Postorder - left child > right child > parent
Pre-order traversals are faster than post-order traversals, T or F correct answers F
Preorder, Inorder and Postorder are all O(n)
What are the two key properties of a heap ? correct answers Complete (Balanced) Binary Tree, Value at Node
What operation(s) supported by binary search trees are not supported by heaps? correct answers Find any value. For BSTs it's either O(log(n)) for balanced trees or O(n)
for degenerate trees.
Heaps can only readily provide Min or Max values
On average, what is the complexity of doing an insertion in a heap ? correct answers O(log(n))
On average, what is the complexity of doing a find in a heap? correct answers O(log(n))
What is algorithmic complexity? correct answers Amount of resources required by algorithm with respect to problem size
List a reason benchmarking is better that analyzing complexity correct answers Precise information for given configuration
Implementation, hardware, inputs details
What is the difference between best case, worst case, and average case ? correct answers Best case: Smallest number of steps required
Worst case: Largest number of steps required
Average case: typical number of steps required
What does big O notation represent? correct answers Big O notation is a mathematical notation that describes the limiting behavior of a function when the argument tends towards a particular value or infinity.
Describe the difference between a directed and undirected graph correct answers An Undirected graph is a graph in which the veritcies are connected bidirectionally. A Directed graph is a graph in which the vertices are connected unidirectionally
Describe the difference between a path and a cycle correct answers A cycle is a closed path, starts and ends at the same vertex.
A path starts and ends at different vertices
$10.99
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


Documento también disponible en un lote

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.
Insightfulsh3rry NURSING, ECONOMICS, MATHEMATICS, BIOLOGY, AND HISTORY MATERIALS BEST TUTORING, HOMEWORK HELP, EXAMS, TESTS, AND STUDY GUIDE MATERIALS WITH GUARANTEED A+ I am a dedicated medical practitioner with diverse knowledge in matters
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
19
Miembro desde
2 año
Número de seguidores
6
Documentos
3804
Última venta
3 días hace
Insightful Academy.

On this page,we offer a wide selection of revised study materials that guarantee success in your studies and different courses,latest exam updates,assignments,questions and solved answers you will find them all here. For more inquiries dont hesitate to contact us for assistance! Leave us a review after purchase so we can understand our clients . Wishing you all the best in your studies.

3.5

2 reseñas

5
0
4
1
3
1
2
0
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