Data Structures and Algorithms-I MCQs

Page No. 24

In what time can a leftist heap be built?


aO(N)


bO(N log N)


cO(log N)


dO(M log N)


View Answer O(N)

What is the time taken to delete a minimum element in a leftist heap?


aO(N)


bO(N log N)


cO(log N)


dO(M log N)


View Answer O(log N)

What happens if the null path length is not updated?


aerror occurs


ball null path lengths will be 0


call null path lengths will be -1


dall null path lengths will be 1



What would be the result if the left subtree of the root has a null path length of 1 and the right subtree has a null path length of 2?


amerge occurs without violation


bviolation at left subtree


cviolation at right subtree


dviolation at the root


View Answer violation at the root

In a leftist heap, all the operations should be performed on?


aleft path


bcentre path


cright path


droot


View Answer right path

Why is this heap named leftist heap?


aonly left subtrees exist


bthe tree is biased to get deep down the left


cit is balanced


dright trees are unbalanced



What is the node path length of a node with 0 or 1 child?


a1


b-1


c0


dnull


View Answer 0

What is the efficiency of merge used in leftist heaps?


aO(N)


bO(N log N)


cO(M log N)


dO(log N)


View Answer O(log N)

A leftist heap is also said to be a binary heap.


atrue


bFalse


cNone of the given options


deither true either false


View Answer true

What is the fundamental operation on leftist heap?


ainsertion


bmerging


cdeletion


dswapping


View Answer merging

Goto Page No.

Page 24 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