• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 5 pages
Exam (elaborations)

Cmsc Exam 3 Actual Updated Questions And Correct Answers

Document preview thumbnail
Preview 2 out of 5 pages

CMSC Exam 3 ACTUAL UPDATED QUESTIONS AND CORRECT ANSWERS

Content preview

CMSC Exam 3 ACTUAL UPDATED QUESTIONS AND CORRECT ANSWERS

A Set An abstract data type that represents a collection of unique elements, does not
allow duplicates


Set Operations Insertion, Deletion, Search, Iteration, Union, Intersection, Difference


A Map An abstract data type that represents a collection of key-value pairs. Each key is
unique and maps to a single value

, Map operations Insertions, Retrieval, Deletion, Search, Size, Iteration


HashTable Uses a hash function to compute an index in an array where a key-value pair or an
element is stored, O(1) operations


Binary Search Tree Data structure where each node has at most two children, a left and right child,
O(logn) operations


HashSet Implementation of set that is best for look ups and insertions when order doesn't
matter


TreeSet Implementation of set that is best when sorted order is needed


LinkedHashSet Implementation of set best for when order matters, and we want fast lookups


HashMap Implementation of map that has O(1) lookup and order doesn't matter


TreeMap Implementation of map best for when sorted keys are required


LinkedHashMap Implementation of map that maintains insertion order and has O(1) lookups




Hashing A technique for storing keys or key-value pairs in an array for efficient retrieval


Hash Function Maps each unique key to a distinct index


Collision When two or more keys map to the same index in a hash table


Clustering When keys are not distributed across the hash table uniformly


Open Addressing Method for handling collisions where, if a collision occurs, look for an unused slot
in the table using various strategies.


Linear Probing Find an unused slot in the table by just checking the next available index


Quadratic Probing Find an unused slot in the table by checking i, i+4, i+9, i+16, etc...


Double Hashing Using a second hash function to determine the step size to find an unused slot


Separate Chaining Method for handling collisions by having all elements that hash to the same index
be stored inside a bucket

Document information

Uploaded on
June 12, 2026
Number of pages
5
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Briwisescore
2.5
(2)
Sold
43
Followers
5
Items
17872
Last sold
5 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions