Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4,6 TrustPilot
logo-home
Examen

CSE 310 EXAM QUESTIONS AND ANSWERS 100% PASS

Note
-
Vendu
-
Pages
16
Grade
A+
Publié le
09-01-2026
Écrit en
2025/2026

CSE 310 EXAM QUESTIONS AND ANSWERS 100% PASS

Établissement
CSE 310
Cours
CSE 310










Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

École, étude et sujet

Établissement
CSE 310
Cours
CSE 310

Infos sur le Document

Publié le
9 janvier 2026
Nombre de pages
16
Écrit en
2025/2026
Type
Examen
Contient
Questions et réponses

Sujets

Aperçu du contenu

CSE 310 EXAM QUESTIONS AND
ANSWERS 100% PASS




What is the height of any binary search tree with n nodes? - ANS O(log n)



Consider the hashing function h(k) = k mod m.

What is a good value for m? - ANS A prime number.



Which of the following statements are true regarding direct address tables?



Statement 1: If the universe U is large, storing a table of size |U| may be impractical.



Statement 2: Often, most of the space allocated to table T is wasted as the set K of keys actually
stored is small. - ANS Both of the statements are true.



Storing a large table is impractical because one will be allocating a large table, where here may
be collisions or often times, unused space.



If for example, the set is [1 8 10 12 20], one may allocate memory of size 20 and store each at
value - 1, there will be 20 spaces allocated for only 5 elements, leaving 15 spaces unused.




1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.

,What is a hash table? - ANS A generalization of an ordinary array where a function of key is
used as the index instead of using key as index directly.



Keys 5, 4, 6, 1, 2 are mapped to a hash table of size 3 with hash function h(k) = k mod 3. If
collisions are resolved by separate chaining, what are the values of a, b, c, d, e respectively as
shown below?



T

0 -> a -> /

1 -> b -> c -> /

2 -> d -> e -> / - ANS 6, 4, 1, 5, 2



Insert keys 7, 10, 25, 12, 17, 34 into a hash table of size 7 using open addressing, with the hash
function h(k, i) = (k + i) mod 7 and linear probing to resolve collisions. What does the final array
look like? - ANS [7, 34, EMPTY, 10, 25, 12, 17]



What is true about hash tables? - ANS Collisions can happen even when |K| <= m where K is
the number of keys and m is the size of hash table.



Deleting a key from hash table is O(1) if collisions are resolved by chaining and if the lists are
doubly linked.



Which of the following statements are true?



Statement 1: With a different interpretation, hash functions can be used even when the keys are
strings.




2 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.

, Statement 2: Hash functions should be fast, i.e, O(1) to compute. - ANS Both statements are
true.



What is a collision? - ANS When two keys hash to the same value?



Considering the case of separate chaining in hashing. Which of the following are true?



Statement 1: Performance of the dictionary operations is not good because of the use of a
linked list.



Statement 2: The chain is not maintained in sorted order. - ANS Both statements are true.



The use of a linked list has little effect towards the performance of dictionary operations.



The element is simply inserted at the end of the chain, regardless of order.



In the case of the max-priority queue, the minimum element is the priority element. -
ANS False - name of the queue is self explanatory, the prioritized element is the max
element.



How do you insert a node into a heap? - ANS Insert the node into the first available spot,
then sort the heap.



What is the height of a heap? - ANS The amount of rows after the root.



What is true about heaps? - ANS Heapsort is an in place sorting algorithm.



3 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
Fyndlay Kaplan University
Voir profil
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
357
Membre depuis
1 année
Nombre de followers
80
Documents
18668
Dernière vente
3 jours de cela
Scholar\'s Sanctuary.

Explore a Vast Collection of Finely Made Learning Materials.

3.7

68 revues

5
32
4
8
3
13
2
6
1
9

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions