• 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 1 out of 3 pages
Exam (elaborations)

Cse 310 Midterm Actual Exam Paper 2026 Questions With Solutions Graded A+

Document preview thumbnail
Preview 1 out of 3 pages

CSE 310 MIDTERM ACTUAL EXAM PAPER 2026 QUESTIONS WITH SOLUTIONS GRADED A+

Content preview

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



◉ Number of leaves in decision tree. Answer: n!


◉ Number of decision tree comparisons in worst case. Answer:
Equal to the height of the decision tree


◉ build heap runtime. Answer: 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. Answer: # of keys in hash table / capacity of
hash table


◉ quick sort. Answer: O(n^2) for bad pivot
O(n log n) for median pivot
sorts in place
divide and conquer


◉ merge sort. Answer: O(n log n) worst case
divide and conquer

Document information

Uploaded on
January 10, 2026
Number of pages
3
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.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.
FocusFile7
4.0
(28)
Sold
297
Followers
4
Items
75553
Last sold
2 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