• ¿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 1 fuera de 3 páginas
Examen

Data Structures and Algorithms

Document preview thumbnail
Vista previa 1 fuera de 3 páginas

Data Structures and Algorithms

Vista previa del contenido

Data Structures and Algorithms Part 2

A __________ (with no duplicate elements) has the property that for every node in the tree the
value of any node in its left subtree is less than the value of the node and the value of any node
in its right subtree is greater than the value of the node. - Correct Answers-binary search tree

The _______ of a nonempty tree is the length of the path from the root node to its furthest leaf
+ 1. - Correct Answers-height

The time complexity for searching an element in a binary search tree is _______. - Correct
Answers-O(n)

The time complexity for inserting an element into a binary search tree is _______. - Correct
Answers-O(n)

The time complexity for deleing an element into a binary search tree is _______. - Correct
Answers-O(n)

The _________ of a node is the height of its right subtree minus the height of its left subtree. -
Correct Answers-balance factor

The balance factor of every node in an AVL tree may be _________. - Correct Answers-0
1
-1

The time complexity for insertion, deletion, and search is O(logn) for a ___________. - Correct
Answers-AVL tree

In a ________, the element just inserted is always at the leaf. - Correct Answers-binary search
tree

The average time-complexity for insertion, deletion, and search in a ________ is O(logn). -
Correct Answers-AVL tree

A collision occurs _____________. - Correct Answers-when two or more keys are mapped to
the same hash value.

Every object has the hashCode() method. - Correct Answers-True

Información del documento

Subido en
13 de junio de 2025
Número de páginas
3
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$12.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

Vendido
0
Seguidores
0
Artículos
222
Última venta
-




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