Question
Which sorting algorithm is the most efficient for large
datasets and uses a divide-and-conquer approach?Solution
Merge Sort is a divide-and-conquer algorithm that divides the dataset into smaller subarrays, sorts each recursively, and merges them back to form a sorted array. Its time complexity is O(n log n) in all cases, making it highly efficient for large datasets.Advantages of Merge Sort include:
- Stability: It maintains the order of equal elements.
- Predictable performance: Consistent time complexity across best, worst, and average cases.
- Handles large datasets effectively, especially when external memory (e.g., disk storage) is involved.
वाक्यों के रिक्त स्थानों की पूर्ति के लिए दिए गए चार-चार व�...
अध्यादेश में कौन-सी सन्धि है ?
नीचे दिए वाक्यों में से कुछ में त्रुटियाँ हैं और कुछ ठीक ह�...
प का उच्चारण स्थान है:-
जिसकी पहले से कोई आशा न हो के लिए एक शब्द हैं
- मुगल काल में हिंदी भाषा पर प्रभाव डालने वाली भाषा कौन सी है?
निम्नलिखित मुहावरों का अर्थ लिखें।
ज़मीन आसमा�...
निम्नलिखित विकल्पों में से सही अर्थ का चयन करें।
निम्न शब्दों में कौन 'स्व' उपसर्ग से नहीं बना ?
फोर्ट विलियम कॉलेज की स्थापना कहां हुई?