• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
What is the space complexity of the Quicksort algorithm?
  1. O(log n)
  2. O²(log n)
  3. O(log n²)
  4. None of these
Explanation
  • Quick Sort is an in-place sorting algorithm.
  • It does not require extra arrays, but uses recursion stack space.
  • On average, recursion depth is log n, so space complexity is O(log n).

Additional information:

  • Average space → O(log n)
  • Best case → O(log n)
  • Worst case → O(n) (unbalanced recursion)
  • Time (average) → O(n log n)

Last verified on 24-03-2026

Related MCQs

وہ پروسیسر یونٹ جو کمپیوٹر کے تمام آپریشنز کو کنٹرول، ہم آہنگ اور ہدایات دیتا ہے، اسے کیا کہتے ہیں؟
  1. Cache memory
  2. Arithmetic unit
  3. Control unit
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ایرک کیا ہے؟
  1. Plagiarism technique in research
  2. Database in education
  3. Software
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ریم سے کیا مراد ہے؟
  1. Random Access Memory
  2. Random Access Money
  3. Random Accurate Memory
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

اگر آپ قریب کی دو عمارتوں کو جوڑنا چاہتے ہیں تو آپ مندرجہ ذیل میں سے کون سا نیٹ ورک استعمال کریں گے؟
  1. Metropolitan Area Network (MAN)
  2. Local Area Network (LAN)
  3. Wide Area Network (WAN)
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ڈیجیٹل سگنلز کو اینالاگ سگنلز میں تبدیل کرنے والی ڈیوائس کا کیا نام ہے؟
  1. Router
  2. Switch
  3. Modem
  4. None of above
اس سوال کو وضاحت کے ساتھ پڑھیں

Leave a Reply

Your email address will not be published. Required fields are marked *

1 + 2 = ?



All Rights Reserved © TestPointpk.com