Data Structures Algorithms-II MCQs

Page No. 44

Which of the following sorting algorithm is not in place?


a insertion sort

✖


bquick sort

✖


ctree sort

✓


dgnome sort

✖


View Answer tree sort

Which of the following is not true about tree sort?


a it is not an in place sorting algorithm

✖


bits every implementation is adaptive

✓


cit requires in order traversal of BST for sorting input elements

✖


dit is a stable sort

✖



In which of the following case does a tree sort become adaptive?


awhen implemented with an unbalanced tree

✖


bwhen implemented with a balanced tree

✖


cwhen implemented with a splay tree as BST

✓


dwhen implemented with AVL tree as BST

✖



What is the auxiliary space complexity of tree sort?


aO(1)

✖


b O(n)

✓


cO(log n)

✖


d O(n log n)

✖


View Answer O(n)

What is the worst case time complexity of tree sort (when implemented with an unbalanced tree)?


aO(n)

✖


bO(n log n)

✖


c O(n2)

✓


dO(log n)

✖


View Answer O(n2)

What is the worst case time complexity of tree sort (when implemented with a balanced tree)?


a O(n)

✖


b O(n log n)

✓


cO(n2)

✖


dO(log n)

✖


View Answer O(n log n)

What is the best case time complexity of tree sort?


aO(n)

✖


bO(n log n)

✓


cO(n2)

✖


dO(log n)

✖


View Answer O(n log n)

What is the average case time complexity of tree sort?


a O(n)

✖


bO(n log n)

✓


c O(n2)

✖


d O(log n)

✖


View Answer O(n log n)

Which of the following is a comparison based sort?


a tree sort

✓


bradix sort

✖


ccounting sort

✖


d pigeonhole sort

✖


View Answer tree sort

Which of the following sorting algorithm uses a binary search tree?


a radix sort

✖


btree sort

✓


codd-even sort

✖


dbead sort

✖


View Answer tree sort

Goto Page No.

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