Тёмный

External Merge-Sort | Merge Sort | Data Structure | Appliedroots 

GATE Applied Course
Подписаться 34 тыс.
Просмотров 53 тыс.
50% 1

Chapter Name: Merge Sort
Please visit: gate.appliedroots.com/
For any queries you can either drop a mail to Gatecse@appliedroots.com or call us at +91 844-844-0102
Refer: en.wikipedia.org/wiki/Externa...

Опубликовано:

 

2 май 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 94   
@ashishkempwad3267
@ashishkempwad3267 5 лет назад
This is one of the best explanation on external merging. I saw so many videos but no one could explain it correctly. Thanks alot for this incredible explanation.
@minatopalovic6504
@minatopalovic6504 5 лет назад
Do you have maybe the external merging sort algorithm written in c#?
@adarshramtripathi7748
@adarshramtripathi7748 2 месяца назад
God, to the point, crystal clear explanation, just awesome.
@EJP286CRSKW
@EJP286CRSKW 6 месяцев назад
Everyone seems to have forgotten about this, but a replacement-selection run-distribution algorithm would produce 2x2GB files and 1x1GB sorted files; avoid the initial split step, saving 5GB of disk space; and would then only need a 3-way merge rather than a 5-way merge. This would all be considerably faster than what you have described here.
@naturalsmen1
@naturalsmen1 5 лет назад
This is the best explanation on external sort I have ever seen! Thanks for sharing.
@yuvrajoberoi7834
@yuvrajoberoi7834 3 года назад
This guy is awesome, explaining like some elder brother to me, I felt nostalgic, why didn't I find you sooner.
@savantdude
@savantdude 4 года назад
amazingly clear explanation! this video deserves more views.. thank you!
@yuvrajoberoi7834
@yuvrajoberoi7834 3 года назад
The only video I found on the internet which explained this thing crystal clearly.
@veenancse8816
@veenancse8816 4 года назад
One of the best explanation related to merge sort which can be extended to K-way merge and later the external sorting, Thank a lot for the wonderful explanation
@whitesign31
@whitesign31 2 года назад
This is the core of all distributed system and a lot of Data Engineers does not even know about it. A crisp and clear explanation. 🤘🤘🤘🤘🤘🤘
@myflo4130
@myflo4130 3 года назад
Thanks for the explanation. Clear, simple and straightforward 👌🏽👌🏽
@amansoni0922
@amansoni0922 4 года назад
u just won a subscriber for the extra info you provided after the explanation of the algo. . Kudos!
@55562009
@55562009 4 месяца назад
best explanation on youtube
@bhar92
@bhar92 4 года назад
thank you for this video. really, thank you so much!
@priyanshu4399
@priyanshu4399 2 года назад
after watching many videos this is the video i was looking for. Thanks for this video. To the point explanation.
@shalinik8345
@shalinik8345 3 года назад
Best version! Very clearly explained!
@SC-ss8vb
@SC-ss8vb 4 года назад
Best explanation. You made it so clear inside out. Thanks
@rrichi
@rrichi Год назад
Awesome! finally I found the explanation I was looking for, I had watched 5-6 videos earlier but none of them were so clear to explain. +1
@studyonline3236
@studyonline3236 Год назад
Superb explanation Mr.Srikanth
@pudisasikar7996
@pudisasikar7996 3 года назад
Man.. You are genius... This is the explanation I'm waiting... Awesome... I wasted 3 hours on other channels
@LokkasVLOG
@LokkasVLOG 4 года назад
Good explanation and also accent easier to understand than other Indians
@aayushitiwari8771
@aayushitiwari8771 5 лет назад
Great explanation, great handwriting even using the mouse. It's amazing , that you provided some other information about this apart from algorithm explanation.. bravo🎆
@rishabmalhotra6980
@rishabmalhotra6980 Год назад
Wow, what a clever and simple way to sort the large amount of data with lesser resources.
@anandprakash4995
@anandprakash4995 3 года назад
You made my day ! Excellent explanation sir !
@GauravKumar-ue7nz
@GauravKumar-ue7nz 2 года назад
Thank you Sir for explaining so well, And I enjoyed the Facts you told at end.
@parvkhatri9529
@parvkhatri9529 3 года назад
You have explained this concept so nicely that I have not created notes for this topic. God Bless you. :)
@GATEAppliedCourse
@GATEAppliedCourse 3 года назад
Glad it was helpful!
@bostonlights2749
@bostonlights2749 4 года назад
Thanks man! Unforgettable
@MrPsaroukla
@MrPsaroukla 3 года назад
Incredible explanation, thank you
@HeduAI
@HeduAI 3 года назад
Great explanation! Thank you!
@adiboy_223
@adiboy_223 3 года назад
Simple language. Best explanation.
@za3931
@za3931 3 года назад
Great explanation! This particular topic was so confusing for me prior to watching this video.
@LDecker3
@LDecker3 4 года назад
This is awesome. Thank you!!
@yashpreetbathla4653
@yashpreetbathla4653 3 года назад
Thank you so so much for such a great video, learnt a lot from this video !
@mbmk92
@mbmk92 4 года назад
Well explained! Thank you!
@marvellouschandan
@marvellouschandan 2 месяца назад
What a fabulous explanation 🤓
@Vadim-id1kv
@Vadim-id1kv 3 года назад
Bravo! I am very grateful for such an ingenious explanation. Thank's a lot!
@GATEAppliedCourse
@GATEAppliedCourse 3 года назад
Glad it was helpful!
@Dedi369
@Dedi369 4 года назад
amazing explaination
@abhisheknarolia9279
@abhisheknarolia9279 4 года назад
Superb tutorial on external sorting.. it could be great if code implementation also mentioned..
@daursan
@daursan Год назад
great explanation, sir!
@narendrakumariitb
@narendrakumariitb 4 года назад
Big thumbs up. Thanks 👍👏
@ankitrathore007
@ankitrathore007 4 года назад
Awesome explanation👏. Subscribed👍
@chernanq88
@chernanq88 Год назад
Best explanation! 👏
@rameshbabumallela6308
@rameshbabumallela6308 2 года назад
awesome explanation
@abhijit-sarkar
@abhijit-sarkar 7 месяцев назад
Important note that at 16:25: The sort has to be in-place (i.e. only using constant space or O(1) space) because you're sorting 1GB using 1GB RAM, so, there's no memory left to store the sorted output in the RAM.
@Netipraveen
@Netipraveen 4 года назад
Excellent explanation sir u are great
@ankitasinha7892
@ankitasinha7892 4 года назад
Thank you. Well explained.
@chetansarnad1232
@chetansarnad1232 4 года назад
Very nice explanation. Thanks
@mubris9705
@mubris9705 2 года назад
Amazing explanation!
@amirtv106
@amirtv106 4 года назад
Best explanation!
@c4yourselfyt
@c4yourselfyt 3 года назад
Hi, excellent video you have here. Which software do you use for digital writing on the screen?
@jamesskyhigh946
@jamesskyhigh946 2 года назад
thank you very much!! Yr the best😍
@gautammishra96
@gautammishra96 3 года назад
Very nicely explained thank you 💓
@nikhilm4290
@nikhilm4290 4 года назад
Nice explanation..
@tovaleh2626
@tovaleh2626 11 месяцев назад
This was so extremely helpful. I was completely lost with my teacher's explanation for this, but you speak so clearly and thoroughly. This is an amazing explanation. I have a question though, why would someone use merge and not heap to do external sorting? Isn't heap more efficient time and space wise?
@sarahan7864
@sarahan7864 4 года назад
You are amazing 👍
@superneutral1663
@superneutral1663 4 года назад
god level explanation
@hix0071
@hix0071 3 года назад
very very helpful sir. Keep up the good work. May you have million subs in 2021 !
@GATEAppliedCourse
@GATEAppliedCourse 3 года назад
Wow, thanks
@dr_920
@dr_920 2 года назад
Thank you. Subscribed.
@samart3010
@samart3010 3 года назад
That Tonsand....Tonsand....Tonsand data was satisfying...at 22:29
@arturczajkowski4255
@arturczajkowski4255 6 месяцев назад
18:08 There is an error in this logic. There is no guarantee that those 250Mb files will be sorted with the least items in first file, then second then third and so forth.
@sandeepannamaneni3119
@sandeepannamaneni3119 4 года назад
Awesome
@omnnnooy3267
@omnnnooy3267 2 года назад
thank you!!
@ngtbs5079
@ngtbs5079 4 года назад
are the intermediate F1, F3...F5 files (1GB each) first saved onto disk? Then from disk you feed them onto the RAM?
@aditya234567
@aditya234567 3 года назад
In 2002, I was 12 and had 4GB harddrive.. used to play games by putting the floppy or CD in haha
@lavanyaaken3658
@lavanyaaken3658 Год назад
what is the difference betweeen external merge sort and external sort merge algorithm or both are same?
@unikkkkkkk
@unikkkkkkk 4 года назад
What's the name of this man? He is an Awesome Teacher
@srsenapati
@srsenapati 3 года назад
He is Chekuri Srikanth Varma AIR 2 CS 2007
@SuddxAesthetics
@SuddxAesthetics 2 года назад
Srikanth Varma Chekuri Founder of Applied Roots AIR 2 GATE CSE 2007
@Sauravgpt34
@Sauravgpt34 3 года назад
cool 😎😎
@gopalpandey213
@gopalpandey213 4 года назад
Can you please explain 1.why you choose 150MB from each chunk and left 250 for merge , 2. Varying these will cause computation cost, how to compute these value optimally?
@yuvrajoberoi7834
@yuvrajoberoi7834 3 года назад
You can chose anything less than 200 as you would be needing some memory to save the sorted elements in the RAM
@yashesh7264
@yashesh7264 Год назад
this explanation is great god tier but please please can someone please send me the copde instead of watrching this video that could be a great help indeed
@baohezhang112
@baohezhang112 4 года назад
cool
@mohankantamsetti
@mohankantamsetti 4 года назад
Last Mei wiki von Neumann Walkman and all 🔥🔥🔥
@manojpidikiti2711
@manojpidikiti2711 2 года назад
Could you please explain how merge sort can be used for string characters? Eg: sort a file with a large number of random words in dictionary order.
@jianhe
@jianhe 3 года назад
Dear Sir. One more question: how does the 5 output data Marge together into one 5gb data. Since ram only 1GB.
@mutyaluamballa
@mutyaluamballa 3 года назад
I Didn't know why merge sort is invented and never thought about the idea of external sorting, my bad..!
@mohithguptakorangi1766
@mohithguptakorangi1766 3 года назад
stop scrolling through comments and watch the video, you wont regret it
@rezahaddad6856
@rezahaddad6856 2 года назад
thank you
@GATEAppliedCourse
@GATEAppliedCourse 2 года назад
You're welcome
@kittytangsze
@kittytangsze 2 года назад
what is Br, Bb, in your case?
@anerdwitdacamera204
@anerdwitdacamera204 4 года назад
very very clear, except the MB GB part : ) jk lol
@oguzcelik3531
@oguzcelik3531 2 года назад
Thank you, great explanation. I have one question though. How do we know the second 150 MB of File_1_Sorted will not have an element smaller than an element in the first 150 MB of File_2_Sorted? In that case, we would have to compare output 2 and output 1. Imagine first 150 MB of File_1_Sorted = [1, 2, 3, 4], first 150 MB of File_2_Sorted = [9,10,11,12], second 150 MB of File_1_Sorted = [5,6,7,8]. In that case, 5,6,7,8 will be placed in the second output so not all of the elements in the first output will be smaller than output 2. I would appreciate it if someone can explain it. Best!
@subhranilmondal1742
@subhranilmondal1742 2 года назад
For external sorting, the way that the k-way merge algorithm would work is that you don't finish processing one array once it's over. Taking your example, once we have covered the first 150 MB of File_1_Sorted, we would load the next 150 MB of File_1_Sorted immediately rather than just copying the elements of File_2_Sorted into output. So now, 5 would be compared against 9 and 5 would be stored to output, 6 would be stored next and so on. We would directly copy elements of one array to output only when processing of one of the files is completely done. In the above example, when we have processed entire 1 GB data of File_1_Sorted, only then we can directly copy elements of File_2_Sorted to output. Hope this helps!
@sahilkhan_cs50
@sahilkhan_cs50 Год назад
I have the same query.Pls help.
@rameshbabumallela6308
@rameshbabumallela6308 2 года назад
150MB
@ashleylove6840
@ashleylove6840 2 года назад
got confused there -.-
@marriagedance8657
@marriagedance8657 4 года назад
Isn't this step wrong, where you are saying that You will get sorted output by combining these files? Let me give you an example. Take arrays A1 = {1, 2, 3, 4} A2 = {10, 12, 13, 14} A3 = {20, 34, 45}. Now let's say I perform 3 way merge, taking 2 elements per array at a time. The remaining RAM can contain max of 6 elements. So O1 = {1, 2, 10, 12, 20, 34} Again I perform 3 way merge for remaining elements. O4 = {3, 4, 13, 14, 45}. Now check yourself, if concatenating these is producing the correct sorted array?
@CaptainAthiban
@CaptainAthiban 4 года назад
3-way merge produces O1 = {1,2,3,4,10,12}
@princeaditya2119
@princeaditya2119 4 года назад
@@CaptainAthiban how it will produce like that with the input of {1,2,10,12,20,34}
@milanviradia5824
@milanviradia5824 4 года назад
Let's say, initial i/p contains first 2 elements from each of the array....RAM have free space for 6 elements . Initially, i/p = {1, 2, 10, 12, 20, 34} O1={} Apply 3-way merge, step 1 : i/p = {1, 2, 10, 12, 20, 34} O1 = {1} step 2 : i/p = { 1, 2, 10, 12, 20, 34} O1 = {1, 2} Now, all 2 elements of A1 are processed. So, we will load next 2 elements of A1 into RAM. i/p becomes {3, 4, 10, 12, 20, 34} . step 3: i/p = {3, 4, 10, 12, 20, 34} O1 = {1, 2, 3} step 4: i/p = {3 , 4, 10, 12, 20, 34} O1 = {1, 2, 3, 4} Here, A1 is completely processed. step 5: i/p = { -, -, 10, 12, 20, 34} O1 = {1, 2, 3, 4, 10} step 6: i/p = {- , - , 10, 12, 20, 34} O1 = {1, 2, 3, 4, 10, 12} Now, O1 contains 6 elements. Write O1 to file. Next i/p will become {-, -, 13, 14, 20,34} and O2={ }......continue this way.
Далее
Solved Problem 1: Merge Sort
4:27
Просмотров 11 тыс.
TYLA DANCE TREND😭 | #shorts #emilydobson
00:12
Просмотров 2,8 млн
Merge Sort Theory | DSA
15:56
Просмотров 12 тыс.
Merge sort algorithm
18:20
Просмотров 2,2 млн
10 Sorting Algorithms Easily Explained
10:48
Просмотров 34 тыс.
Quick Sort Theory | DSA
21:18
Просмотров 15 тыс.
Top 7 Algorithms for Coding Interviews Explained SIMPLY
21:22
External Sorting
25:12
Просмотров 13 тыс.