100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

CSE 310 MIDTERM 2 EXAM QUESTIONS AND ANSWERS 100% PASS

Rating
-
Sold
-
Pages
3
Grade
A+
Uploaded on
09-01-2026
Written in
2025/2026

CSE 310 MIDTERM 2 EXAM QUESTIONS AND ANSWERS 100% PASS

Institution
CSE 310
Course
CSE 310








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CSE 310
Course
CSE 310

Document information

Uploaded on
January 9, 2026
Number of pages
3
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CSE 310 MIDTERM 2 EXAM QUESTIONS
AND ANSWERS 100% PASS




Height of decision tree - ANS h ≥ ceiling( log n! )



Number of leaves in decision tree - ANS n!



Number of decision tree comparisons in worst case - ANS Equal to the height of the decision
tree



build heap runtime - ANS Quick look would say O(n log n) since heapify costs O(log n) and is
called n times. However, the runtime of heapify depends on the height of the tree which starts
off small and grows larger. By accounting for this, can derive a tighter bound of O(n) for building
a heap.



hash table load factor - ANS # of keys in hash table / capacity of hash table



quick sort - ANS O(n^2) for bad pivot

O(n log n) for median pivot

sorts in place

divide and conquer



1 @COPYRIGHT 2025/2026 ALLRIGHTS RESERVED.

Get to know the seller

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.
Fyndlay Kaplan University
View profile
Follow You need to be logged in order to follow users or courses
Sold
357
Member since
1 year
Number of followers
80
Documents
18668
Last sold
3 days ago
Scholar\'s Sanctuary.

Explore a Vast Collection of Finely Made Learning Materials.

3.7

68 reviews

5
32
4
8
3
13
2
6
1
9

Recently viewed by you

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

Frequently asked questions