Data Structures Algorithms-II MCQs

Page No. 47

What character shift tables does quick search algorithm use?


agood-character shift tables


bbad-character shift tables


cnext-character shift tables


dboth good and bad character shift tables



What is the time complexity of the Quick search algorithm?


a O(n)


bO(log n)


cO(m+n)


dO(mn)


View Answer O(m+n)

Which of the following algorithms formed the basis for the Quick search algorithm?


aBoyer-Moore’s algorithm


bParallel string matching algorithm


cBinary Search algorithm


d Linear Search algorithm



Which of the following is the fastest algorithm in string matching field?


aBoyer-Moore’s algorithm


b String matching algorithm


c String matching algorithm


dLinear search algorithm



What is the GCD of 20 and 12 using Euclid’s algorithm?


a 8


b 2


c4


d6


View Answer 4

What is the total running time of the binary GCD algorithm?


aO(N)


bO(N2)


cO(log N)


dO(N log N)


View Answer O(N2)

What is the formula for Euclidean algorithm?


aGCD (m,n) = GCD (n, m mod n)


b LCM(m,n)=LCM(n, m mod n)


cGCD(m,n,o,p) = GCD (m, m mod n, o, p mod o)


dLCM (m,n,o,p) = LCM (m, m mod n, o, p mod o)



Euclidean algorithm does not require the calculation of prime factors.


aTrue


b False


cA & B


d None of the above


View Answer True

What is the total running time of Euclid’s algorithm?


aO(N)


bO(N log M)


cO(N log N)


dO(log N +1)


View Answer O(N)

If GCD of two numbers is 1, then the two numbers are said to be ________


aCo-prime numbers


bprime numbers


cComposite numbers


d Rational numbers


View Answer Co-prime numbers

Goto Page No.

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