Data Structures and Algorithms-I MCQs

Page No. 13

What is the depth of any tree if the union operation is performed by height?


aO(N)


bO(log N)


cO(N log N)


dO(M log N)


View Answer O(log N)

___________ is one of the earliest forms of a self-adjustment strategy used in splay trees, skew heaps.


aUnion by rank


bEquivalence function


cDynamic function


dPath compression


View Answer Path compression

What is the definition for Ackermann’s function?


aA(1,i) = i+1 for i>=1


bA(i,j) = i+j for i>=j


cA(i,j) = i+j for i = j


dA(1,i) = i+1 for i<1


View Answer A(1,i) = i+1 for i>=1

Path Compression algorithm performs in which of the following operations?


aCreate operation


bInsert operation


cFind operation


dDelete operation


View Answer Find operation

What is the worst case efficiency for a path compression algorithm?


aO(N)


bO(log N)


cO(N log N)


dO(M log N)


View Answer O(M log N)

Electrical connectivity is an example of equivalence relation.


atrue


bfalse


ceither true either false


dNone of the mentioned


View Answer true

A relation R on a set S, defined as x R y if and only if y R x. This is an example of?


areflexive relation


bsymmetric relation


ctransitive relation


dinvalid relation


View Answer symmetric relation

How many properties will an equivalent relationship satisfy?


a1


b2


c3


d4


View Answer 3

Bigger the query rectangle the better is the query efficiency.


atrue


bfalse


ceither true either false


dNone of the mentioned


View Answer false

Efficiency of bin depends upon ___________


asize of query and candidates


blocation of query and candidates


clocation and size of query and candidates


ddepends on the input



Goto Page No.

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