100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE 2050 Time Complexities Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution £6.46   Add to cart

Exam (elaborations)

CSE 2050 Time Complexities Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution

 5 views  0 purchase

CSE 2050 Time Complexities Questions with 100% Actual correct answers | verified | latest update | Graded A+ | Already Passed | Complete Solution

Preview 1 out of 3  pages

  • June 24, 2024
  • 3
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
All documents for this subject (68)
avatar-seller
Hkane
CSE 2050 Time Complexities
Bubble Sort Best Case - ANS-O(n)

Bubble sort average case - ANS-O(n^2)

Bubble Sort worst case - ANS-O(n^2)

Bubble sort works best on - ANS-Sorted/near sorted lists

Bubble sort works worst on - ANS-reverse lists

Compare first item with second, sorts the pair. Then compares second term with third,
and sorts, those, and continues comparing by pair through the list - ANS-Bubble sort

Bubble sort properties - ANS-Adaptive, Invariant

Selection sort best case - ANS-O(n^2)

selection sort average case - ANS-O(n^2)

Selection sort worst case - ANS-O(n^2)

Selection sort works best on - ANS-Small list size

Selection sort works worst on - ANS-large list size

Selection sort properties - ANS-Invariant

Looping through an entire list, finding the largest or smallest value (depending on how
you want to sort), and moving it to it's spot at either the beginning or end of the list -
ANS-Selection sort

Insertion Sort best case - ANS-O(n)

Insertion sort average case - ANS-O(n^2)

Insertion sort worst case - ANS-O(n^2)

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Hkane. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for £6.46. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

62890 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy revision notes and other study material for 14 years now

Start selling
£6.46
  • (0)
  Add to cart