• 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. Interpreter
  2. Compiler
  3. CPU
  4. Interpreter
اس سوال کو وضاحت کے ساتھ پڑھیں

مشینی زبان کے پروگرام کے بنیادی اجزاء کیا ہیں؟
  1. Statements
  2. Directives
  3. Injunctions
  4. Instructions
اس سوال کو وضاحت کے ساتھ پڑھیں

کمپیوٹر سسٹم تک رسائی حاصل کرنے کے لیے استعمال ہونے والے کوڈ شدہ اندراجات کو کیا کہا جاتا ہے؟
  1. Entry Codes
  2. Passwords
  3. Security Commands
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ایک مضبوط پاس ورڈ کن چیزوں کا مجموعہ ہونا چاہیے؟
  1. Only alpha numeric characters
  2. Only special characters
  3. Alpha numeric characters and special characters
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ای میل میں "سی سی" کا مطلب کیا ہے؟
  1. Cut Copy
  2. Common Copy
  3. Combined Copy
  4. Carbon Copy
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com