CS50 SORT | LAB 3 | SOLUTION

preview_player
Показать описание
In this video, I walkthrough how to complete week3's lab problem called sort.

I went through in detail so that beginners will be able to understand how to attempt and solve this practice problem.

Like and subscribe if you enjoyed this video, if you have any questions comment down below.

If you have additional questions or need support, you can also hit me up on my discord server for this channel :D

Рекомендации по теме
Комментарии
Автор

How to download these files i tried to download but it tells me services is unable to

prabeshbhandari
Автор

Please tell me how you are able to copy and paste in the terminal

masterodmagic
Автор

I answered as below. However, failed. I don't know why. Here is my answer:sort1 uses:Bubble Sort
How do you know?:Takes 0.50sec to sort sorted list; Takes 4.89sec to sort reversed list
For sorted files, sort1 is the quickest. However, compared with sorted file, it take very long time to sort reversed list

sort2 use: Merge Sort
How do you know?:Takes 0.59sec to sort sorted list; Takes 0.47sec to sort reversed list
Sort2 almost take the same time to sort both sorted list and reversted list. Moreover, it's faster when comparing to other sorting program.

sort3 uses: Selection Sort
How do you know?:Takes 2.44sec to sort sorted list; Takes 2.33sec to sort reversed list
It almost take the same time to sort both the sorted list and reversed list. Moreover, compared to other sorting program, it is very slow
Thank you for the help

junwang