Data Structures and Algorithms-I MCQs

Page No. 22

Do ternary heap have better memory cache behavior than binary heap.


aTrue


bFalse


ceither true either false


dNone of the mentioned


View Answer True

What is the time complexity for decreasing priority of key in a maximum ternary heap of n elements?


aO (log n/ log 3)


bO (3log n/ log 3)


cO (n)


dO (1)


View Answer O (3log n/ log 3)

What is the time complexity for increasing priority of key in a minimum ternary heap of n elements?


aO (log n/ log 3)


bO (3log n/ log 3)


cO (n)


dO (1)


View Answer O (3log n/ log 3)

What is the time complexity for deleting root key in a ternary heap of n elements?


aO (log n/ log 3)


bO (3log n/ log 3)


cO (n)


dO (1)


View Answer O (3log n/ log 3)

What is the time complexity for increasing priority of key in a maximum ternary heap of n elements?


aO (log n/ log 3)


bO (n!)


cO (n)


dO (1)


View Answer O (log n/ log 3)

What is the time complexity for decreasing priority of key in a minimum ternary heap of n elements?


aO (log n/ log 3)


bO (n!)


cO (n)


dO (1)


View Answer O (log n/ log 3)

Is decrease priority operation performed more quickly in a ternary heap with respect to the binary heap.


aTrue


bFalse


ceither true either false


dNone of the mentioned


View Answer True

What is the time complexity for inserting a new item in a ternary heap of n elements?


aO (log n/ log 3)


bO (n!)


cO (n)


dO (1)


View Answer O (log n/ log 3)

What is the run time efficiency of an insertion algorithm?


aO(N)


bO(log N)


cO(2N)


dO(M log N)


View Answer O(N)

Out of the following given options, which is the fastest algorithm?


afibonacci heap


bpairing heap


cd-ary heap


dbinary heap


View Answer fibonacci heap

Goto Page No.

Page 22 of 53

Alphabetical MCQs Categories

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan