Data Structures Algorithms-II MCQs

Page No. 31

LSD radix sort requires _____ passes to sort N elements.


a(w/logR)


b N(w/logR)


c(w/log(RN))


d (wN/log(N))


View Answer (w/logR)

What is the worst case time complexity of LSD radix sort?


aO(nlogn)


bO(wn)


cO(n)


dO(n + w)


View Answer O(wn)

Which of the following is the distribution sort?


aHeap sort


b Smooth sort


cQuick sort


dLSD radix sort


View Answer LSD radix sort

What will be the order of elements of the array arr = {23, 67, 143, 654, 43} after first iteration of MSD sort is complete?


a23, 43, 67, 143, 654


b23, 67, 43, 143, 654


c23, 67, 143, 654, 43


d23, 143, 43, 654, 67


View Answer 23, 67, 43, 143, 654

What is the advantage of radix sort over quick sort?


aradix sort performs better than quick sort when we have log n bits for every digit


bradix sort has lesser space complexity


cradix sort is not a comparison based sorting technique


dradix sort has better cache performance than quick sort



Which of the following is not true about radix sort?


aRadix sort performs better than quick sort when we have log n bits for every digit


bRadix sort has better cache performance than quick sort


cRadix sort has higher values of constant factor in asymptotic notation


dRadix sort takes more space than quick sort



Which of the following statement is not a stable sorting algorithm?


aLSD radix sort


bMSD radix sort


c Counting sort


d Pigeonhole sort


View Answer MSD radix sort

MSD radix sort is an in place sorting algorithm.


aTrue


bFalse


cA & B


dNone of these


View Answer False

What is the average time complexity of MSD radix sort (w= bits required to store each key)?


aO(n + w)


bO(n.w)


cO(n2)


d O(n log n)


View Answer O(n.w)

MSD radix sort should be preferred over LSD radix sort when we have to maintain the original relative order.


aTrue


b False


cA & B


dNone of these


View Answer False

Goto Page No.

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