• ¿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 5 páginas
Examen

Cmsc132 Final Exam Review 100- Problems Solved.

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

CMSC132 FINAL EXAM REVIEW 100- PROBLEMS SOLVED.

Vista previa del contenido

CMSC132 FINAL EXAM
REVIEW 100%
PROBLEMS SOLVED




What Bis Bthe Bmain Breason Bsoftware Bprojects Bfail? B- B Bcorrect Banswer-Complexity
Bof Bprojects


What Bis Bthe Bprogram Blife-cycle? B- B Bcorrect Banswer-Problem BSpecification,
BProgram BDesign, BAlgorithms Band BData BStructures, BCoding Band BDebugging,
BTesting Band BVerification, BDeployment, BDocumentation Band BSupport,
BMaintenance Band BUpgrades


True/False: BCompared Bto Bprogram Bverification, Bempirical Btesting... B- B Bcorrect
Banswer-a) BHandles Blarger Bprograms B(True)
b) BAlways Bcatches Bmore Berrors B(False)
c) BEnsures Bcode Bis Bcorrect B(False)
d) BCan Bbe Bapplied Bwithout Bexamining Bcode B(False, Bbut Bmaybe BTrue?)

True/False: BAccording Bto Bthe Bunified Bmodel... B- B Bcorrect Banswer-a) BDesign Ball
Balgorithms Bbefore Bcoding B(False)
b) BWrite Btest Bcases Bbefore Bcoding B(False)

, c) BUse Ba Bprototype Bimplementation Bto Brefine Bdesign B(True)

True/False: BAccording Bto Bthe BWaterfall Bmodel... B- B Bcorrect Banswer-a) BDesign
Ball Balgorithms Bbefore Bcoding B(True)
b) BWrite Btest Bcases Bbefore Bcoding B(False)
c) BUse Bprototype Bimplementation Bto Brefine Bdesign B(False)

What Bis Bthe Bkey Bproperty Bof Ba Bbinary Bsearch Btree? B- B Bcorrect Banswer-Has B0-
2 Bchildren Bper Bnode

On Baverage, Bwhat Bis Bthe B(algorithmic) Bcomplexity Bof Bdoing Ban Binsertion Bin Ba
Bbinary Btree? B- B Bcorrect Banswer-O(log(n))


On Baverage, Bwhat Bis Bthe B(algorithmic) Bcomplexity Bof Bdoing Ba Bfind Bin Ba Bbinary
Btree? B- B Bcorrect Banswer-O(log(n))


What Bis Bthe Bworst Bcase Bcomplexity Bof Bdoing Ba Bfind Bin Ba BBinary BSearch
BTree? B- B Bcorrect Banswer-O(h), Bwhere Bh Bis Bthe Bheight Bof Bthe Btree


What Bcan Bcause Bworst-case Bbehavior Bin Ba Bbinary Btree? B- B Bcorrect Banswer-
Degenerative Btrees. BMeaning Bthat, Bthe Bdata Bbeing Bentered Binto Bthe Btree Bis
Balready Bin Border, Bleading Bto Ba Bsorted BLinked BList. B
Inserting B10,20,30,40,50,... Bwill Blead Bto Ba Bsingle B"column" B? Btree Bthat Bleads Bto
Ba Bvery Blarge Btree Bheight


What Bis Ba Btree Btraversal B- B Bcorrect Banswer-The Bprocess Bof Bfinding Ball Bthe
Bnodes Bin Ba BTree, Band Bdetermining Bther Brelationship


What Bis Bthe Bdifference Bbetween Ba Bdepth-first Band Bbreadth-first Btraversal? B- B
Bcorrect Banswer-Breadth-first Bvisit Bcloser Bnodes Bfirst.


Depth-first Bhas Bthree Bmodes:
Preorder B- Bparent B> Bleft Bchild B> Bright Bchild
Inorder B- Bleft Bchild B> Bparent B> Bright Bchild
Postorder B- Bleft Bchild B> Bright Bchild B> Bparent

Pre-order Btraversals Bare Bfaster Bthan Bpost-order Btraversals, BT Bor BF B- B Bcorrect
Banswer-F
Preorder, BInorder Band BPostorder Bare Ball BO(n)

What Bare Bthe Btwo Bkey Bproperties Bof Ba Bheap B? B- B Bcorrect Banswer-Complete
B(Balanced) BBinary BTree, BValue Bat BNode


What Boperation(s) Bsupported Bby Bbinary Bsearch Btrees Bare Bnot Bsupported Bby
Bheaps? B- B Bcorrect Banswer-Find Bany Bvalue. BFor BBSTs Bit's Beither BO(log(n)) Bfor
Bbalanced Btrees Bor BO(n) Bfor Bdegenerate Btrees.
Heaps Bcan Bonly Breadily Bprovide BMin Bor BMax Bvalues

On Baverage, Bwhat Bis Bthe Bcomplexity Bof Bdoing Ban Binsertion Bin Ba Bheap B? B- B
Bcorrect Banswer-O(log(n))

Información del documento

Subido en
18 de octubre de 2024
Número de páginas
5
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$14.49

¿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.
Edufiles
4.8
(218)
Vendido
149
Seguidores
10
Artículos
7460
Última venta
1 semana 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