-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c7ed79
commit 2947b6b
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://cs50.harvard.edu/x/2023/labs/3/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
sort1 uses: bubble sort | ||
sorted50k 0.590s | ||
random50k 6.027s | ||
reversed50k 5.231s | ||
|
||
How do you know?: The best case is a function of n while worst case is of n^2 | ||
|
||
sort2 uses: merge sort | ||
sorted50k 0.617s | ||
random50k 0.653s | ||
reversed50k 0.619s | ||
|
||
How do you know?: The fastest of the 3 sorts and worst and best case is almost the same | ||
|
||
sort3 uses: selection sort | ||
reversed50k 2.528s | ||
random50k 2.663s | ||
reversed50k 2.926s | ||
|
||
How do you know?: The best case is almost the same as the worst case and it takes a while |