• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
Which of the following is the Best Case Time Complexity Quicksort algorithm?
  1. O(n log n²)
  2. O²(n log n)
  3. O(n log n)
  4. None of these
Explanation
  • Best case occurs when the pivot divides the array into two equal halves each time.
  • This leads to a balanced recursion tree.
  • Hence, Quick Sort runs in O(n log n) time in the best case.

Additional information:

  • Average case → O(n log n)
  • Worst case → O(n²)
  • Example size: n = 8 → log₂(8) = 3 levels
  • Total comparisons ≈ n log n

Last verified on 24-03-2026

Related MCQs

  1. Format
  2. Modify
  3. Draw
  4. Tools
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. Trim
  2. Offset
  3. Extrude
  4. Fillet
اس سوال کو وضاحت کے ساتھ پڑھیں

بڑی اسکرین پر ویڈیو تصاویر دکھانے کے لیے کون سا آؤٹ پٹ ڈیوائس استعمال ہوتا ہے؟
  1. Scanner
  2. Printer
  3. Projector
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

اینٹی وائرس سافٹ ویئر کا کیا کام ہے؟
  1. Protect against malware and viruses
  2. Manage email accounts
  3. Create and edit spreadsheets
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

کمپیوٹر کو ایک الیکٹرانک ڈیوائس کے طور پر کیسے بیان کیا جا سکتا ہے؟
  1. Carry out arithmetic operations
  2. Carry out logical operations
  3. Do complicated calculations
  4. Accept and process by implementation sequentially a set of stored instructions
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com