• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
What is the time complexity of inserting an element in a binary heap?
بائنری ڈھیر میں عنصر ڈالنے کی وقت کی پیچیدگی کیا ہے؟
  1. O(n log n)
  2. O(1)
  3. O(log n)
  4. None of these
Explanation

Insertion in a binary heap requires adding the element at the end and then heapifying up to maintain heap property.

The heapify operation takes logarithmic time relative to the number of elements.

Related MCQs

بائنری نمائندگی میں ، 1011 کے اعشاریہ کے برابر کیا ہے؟
  1. 11
  2. 12
  3. 13
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ایچ ٹی ایم ایل میں فریمس استعمال کرنے کا مقصد کیا ہے؟
  1. Divides a web page into sections, each displaying content of different HTML documents
  2. Creates clickable buttons within a web page
  3. Apply styles to different sections of a web page
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

  1. Special-purpose computer
  2. General-purpose computer
  3. Supercomputer
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

درج ذیل کمیونیکیشن میڈیمز میں سے، طویل فاصلے تک مواصلات کے لیے کس کو بھیجنے والے اور وصول کنندہ کے درمیان صف بندی کی ضرورت ہے؟
  1. Infrared
  2. Fiber optic cable
  3. Microwaves
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ٹائم شیئرنگ آپریٹنگ سسٹم کو کس قسم کے سسٹم کے طور پر بھی جانا جاتا ہے؟
  1. Single tasking
  2. Real-time
  3. Multitasking
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

Leave a Reply

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

1 + 2 = ?



All Rights Reserved © TestPointpk.com