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.
अंतर्राष्ट्रीय हिन्दी विश्वविद्यालय भारत में कहाँ स्थि�...
Choose the correct English translation of the given sentence. –
तेज़ी से बदलते वैश्विक परिदृ�...
' आलोचक ' शब्द का अर्थ है :
pact
नीचे दिए गए वाक्यों के सही अनुवाद का मिलान करें और उचित वि...
रश्मिरथी ' के रचयिता कौन हैं ?
नीचे दिए गए वाक्यों के सही अनुवाद का मिलान करें और उचित वि�...
नीचे दिए गए शब्दों का सही अंग्रेज़ी अनुवाद विकल्पों से च�...
इनमे से कौन से दो शब्द सही लिखे है :
A. रचयिता B. नृसंश C. विस...
नीचे दिए गए शब्दों का सही अनुवाद विकल्पों से चयन करें:
�...