Data Structures Algorithms-II MCQs

Page No. 147

In most of the cases, topological sort starts from a node which has __________


aMaximum Degree


bMinimum Degree


cAny degree


dZero Degree


View Answer Zero Degree

Most Efficient Time Complexity of Topological Sorting is? (V – number of vertices, E – number of edges)


aO(V + E)


bO(V)


cO(E)


dO(V*E)


View Answer O(V + E)

Topological sort can be applied to which of the following graphs?


aUndirected Cyclic Graphs


bDirected Cyclic Graphs


cUndirected Acyclic Graphs


dDirected Acyclic Graphs



Which of the following is a disadvantage of quickselect?


aPoor space complexity


bPoor best case time complexity


cPoor average case time complexity


dPoor worst case time complexity



What is the average case time complexity of quickselect?


aO(n log n)


bO(n2)


cO(n)


dO(log n)


View Answer O(n)

What is the worst case time complexity of quickselect?


aO(n log n)


bO(n2)


cO(n)


dO(log n)


View Answer O(n2)

Quickselect’s algorithm is similar to which of the following algorithm?


aMerge sort


bQuicksort


cSelection sort


dCounting sort


View Answer Quicksort

What is the best case time complexity of quickselect?


aO(n log n)


bO(n2)


cO(n)


dO(log n)


View Answer O(n)

Quickselect is an in-place algorithm?


atrue


bfalse


cA & B


dNone of these


View Answer true

What is the auxiliary space requirement of the quickselect algorithm?


aO(n2)


bO(n)


cO(n log n)


dO(1)


View Answer O(1)

Goto Page No.

Page 147 of 149

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