Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CSE 331 Exam 1 ACTUAL UPDATED QUESTIONS AND CORRECT ANSWERS

Rating
-
Sold
-
Pages
7
Grade
A+
Uploaded on
13-06-2026
Written in
2025/2026

CSE 331 Exam 1 ACTUAL UPDATED QUESTIONS AND CORRECT ANSWERS

Institution
CSE
Course
CSE

Content preview

CSE 331 Exam 1 ACTUAL UPDATED QUESTIONS AND CORRECT ANSWERS

Big O "f(n) is less than or equal to another function g(n)". Upper bound on growth rate.
f(n) is O(g(n)) means that the growth rate of f(n) is no more than that of g(n)


Big Omega a function grows at a rate that is "greater than or equal to that of another function"


Big Theta allows us to say that 2 function grow at the same rate. f(n) is O(g(n)) and f(n) is
Big_Omega(g(n))

, 1/j is equal to O of what O(logn)


3 way disjoint sets, how to make better after the first 2 loops, if the values are not equal theres no point in entering the
third loop, making this O(n^2) not O(n^3)


big O of fibonacci number sequence O(2^n)


run time of insertion sort O(n^2)


little-oh notation f(n) is less than but not equal to o(g(n))


little-omega(w) f(n) is greater but not equal to g(n)


reflectivity property of time complexities f(n) = big_theta(f(n))


symmetry property of time complexities f(n) = big_theta(g(n)) if and only if g(n) = big_theta(f(n))


Transpose property of time complexities f(n) = O(g(n)) ----- > g(n) = big_omega(f(n))




run time of merge sort O(nlogn)


run time of merging 2 sorted lists in merge sort O(n) - for doubly linked list


height of merge sort tree O(logn)


worst/best case of merge sort NONE, always O(nlogn)


how to divide into 2 lists for merge sort n//2 where n is the size of the OG list


O(n^2) sorting algorithms insertion sort, bubble sort


all sorting algorithms are big omega of... big_omega(n), must search all elements at least once


run time of selection sort O(n^2)


merge sort recursion function T(n) = 2T(n/2)+n
T(1) = 1 if n<2

Written for

Institution
CSE
Course
CSE

Document information

Uploaded on
June 13, 2026
Number of pages
7
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$14.99
Get access to the full document:

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

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.
Briwisescore Stanford University
Follow You need to be logged in order to follow users or courses
Sold
20
Member since
2 year
Number of followers
5
Documents
9901
Last sold
3 weeks ago

1.7

3 reviews

5
0
4
0
3
1
2
0
1
2

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

Working on your references?

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

Working on your references?

Frequently asked questions