100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

CSE 310 MIDTERM 2 TEST REVIEW QUESTIONS 2026 FULLY SOLVED GRADED A+

Beoordeling
-
Verkocht
-
Pagina's
19
Cijfer
A+
Geüpload op
10-01-2026
Geschreven in
2025/2026

CSE 310 MIDTERM 2 TEST REVIEW QUESTIONS 2026 FULLY SOLVED GRADED A+

Instelling
CSE 310
Vak
CSE 310










Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
CSE 310
Vak
CSE 310

Documentinformatie

Geüpload op
10 januari 2026
Aantal pagina's
19
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

CSE 310 COMPREHENSIVE PAPER 2026
COMPLETE SOLUTIONS GUARANTEED

⫸ Consider the hashing function h(k) = k mod m.
What is a good value for m? Answer: 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. Answer: 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.


⫸ What is a hash table? Answer: 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 -> / Answer: 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? Answer: [7, 34, EMPTY, 10, 25, 12, 17]


⫸ What is true about hash tables? Answer: 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.


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


⫸ What is a collision? Answer: 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. Answer:
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.

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
FocusFile7 Harvard University
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
32
Lid sinds
6 maanden
Aantal volgers
2
Documenten
18627
Laatst verkocht
1 dag geleden
FocusFile7

Welcome to FocusFile, your inspiring hub for academic excellence! Just like your favorite café where every sip brings comfort, FocusFile is designed to be your go-to space for clear thinking, deep focus, and study success. Here at FocusFile, I believe learning isn’t just about cramming it’s about clarity, growth, and building the confidence to conquer any challenge. That’s why you’ll find a handpicked collection of top-notch, easy-to-digest study materials, smart summaries, and guides tailored to a wide range of subjects and learning styles. Whether you're gearing up for exams, brushing up on class notes, or just need that extra push, FocusFile has you covered. From quick-reference sheets to deep-dive notes, there’s something here for every learner whether you're a visual thinker, a bullet-point lover, or someone who thrives on quick, impactful insights. Think of FocusFile as your academic sanctuary, a place where productivity meets peace of mind. So grab your favorite drink, settle in, and let’s sharpen your focus and fuel your success, one file at a time. Thanks for making FocusFile your study partner. Let’s unlock your full potential together!

Lees meer Lees minder
4.0

3 beoordelingen

5
1
4
1
3
1
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen