How to sort 1 GB of data when only 100 of RAM memory is accessible at once all togather? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to sort 1 GB of data when only 100 of RAM memory is accessible at once all togather?

Mention the complete process.

24th Jun 2020, 4:35 PM
Arkadev Banerjee
Arkadev Banerjee - avatar
4 Answers
+ 2
We should use merge sort in case where we have only 100 mb of data in primary memory but to sort 1gb of data.
24th Jun 2020, 4:40 PM
Sourashis Paul
Sourashis Paul - avatar
+ 2
By Merge Sort, we can do that.
25th Jun 2020, 10:03 PM
INDRAJIT BANERJEE
INDRAJIT BANERJEE - avatar
0
The question is how, you have to mention the method too!
26th Jun 2020, 2:41 AM
Arkadev Banerjee
Arkadev Banerjee - avatar
- 2
Yes merge sort is the way, but how? How can you use merge sort to do the same? Keeping in mind, theoretically we know, merge sort requires double auxiliary space of order O(2n).
24th Jun 2020, 4:43 PM
Arkadev Banerjee
Arkadev Banerjee - avatar