• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
What is the worst case time complexity of a quick sort algorithm?
فوری ترتیب والے الگورتھم کی بدترین صورتحال کا وقت کی پیچیدگی کیا ہے؟
  1. O(log N)
  2. O(N log N)
  3. O(N²)
  4. None of these
Explanation
  • Quick Sort is a divide-and-conquer sorting algorithm.
  • In the worst case, it occurs when the pivot divides the array very unevenly (e.g., always smallest or largest element).
  • This results in O(n²) comparisons for an array of size n.

Additional information:

  • Average case → O(n log n)
  • Best case → O(n log n)
  • Worst case → O(n²)

Last verified on 23-03-2026

Related MCQs

مصنوعی ذہانت کے لئے مندرجہ ذیل میں سے کون سی مشترکہ زبان ہے؟
  1. LISP
  2. JAVA
  3. Python
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

آئی پی ایڈریس کا مقصد کیا ہے؟
  1. To uniquely identify a device on a network
  2. To encrypt internet connections
  3. To speed up downloads
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

درج ذیل میں سے نیٹ ورک ٹوپولوجی کون سی ہے؟
  1. Bus
  2. Star
  3. Ring
  4. All of these
اس سوال کو وضاحت کے ساتھ پڑھیں

چہرے کی شناخت کس کی نمایاں مثال ہے؟
  1. Artificial Intelligence (AI)
  2. Cybersecurity
  3. Cloud Computing
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ریم کونسی میموری ہے؟
  1. Permanent
  2. Volatile
  3. Primary Memory
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com