Merge Sort - Proof of correctness using loop invariance

preview_player
Показать описание
In this video, we discuss the correctness of Merge Sort using the concept of loop invariance

If you want to obtain a certification and a Algorithms Foundations badge from the State University of New York Binghamton based on the videos in this channel, please visit the link. For obtaining the certification, you will need to pass a multiple choice final exam based on these videos. The course also contains self-assessment quizzes to help you prepare for the finals and for obtaining the certificate.

This channel is part of CSEdu4All, an educational initiative that aims to make computer science education accessible to all! We believe that everyone has the right to good education, and geographical and political boundaries should not be a barrier to obtaining knowledge and information. We hope that you will join and support us in this endeavor!

---------
Help us spread computer science knowledge to everyone around the world!

Please support the channel and CSEdu4All by hitting "LIKE" and the "SUBSCRIBE" button. Your support encourages us to create more accessible computer science educational content.

---------
Find more interesting courses and videos in our website

---------
Find and Connect with us on Social Media:

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

In 6:05 when defining loop invariant, why is it A[p...k-1] and not A[p...k]?

In the maintenance step, why is it A[p...k] contains k-p+1 smallest elements?
Why do we need the extra "+1" in k-p+1, why isn't it just k-p?

Thank you again for the informative video!

GEhehloopf
Автор

Thank you for the video. Just a question, why is it k = r+1 and not k = r in the termination step?

j.p.
Автор

Sir make video oh loop invariant of heap sort

musharibjahangirkhan
Автор

Hello Sir, I also want lecture on merge procedure 😢😢

musharibjahangirkhan