Question
Option 4 : already sorted with the first element as pivot / पहले तत्व को पिवट मानकर पहले से क्रमबद्ध
Detailed Solution
सही उत्तर already sorted with the first element as pivot / पहले तत्व को पिवट मानकर पहले से क्रमबद्ध है।
Question:
Quick sort exhibits its O(n squared) worst case when the input array is / क्विक सॉर्ट अपनी O(n squared) सबसे खराब स्थिति तब दर्शाता है जब इनपुट ऐरे हो
Correct Answer: already sorted with the first element as pivot / पहले तत्व को पिवट मानकर पहले से क्रमबद्ध
With the first element as pivot on a sorted array, every partition is maximally unbalanced with one side empty, producing quadratic total work. / क्रमबद्ध ऐरे पर पहले तत्व को पिवट मानने से प्रत्येक विभाजन अधिकतम असंतुलित होता है जिसमें एक पक्ष रिक्त रहता है, जिससे कुल कार्य द्विघाती हो जाता है।