Data Structures Algorithms-II MCQs

Page No. 46

What is the basic formula applied in Rabin Karp Algorithm to get the computation time as Theta(m)?


aHalving rule


bHorner’s rule


cSummation lemma


dCancellation lemma


View Answer Horner’s rule

Rabin Karp Algorithm makes use of elementary number theoretic notions.


aTrue


bFalse


cA & B


d None of the above


View Answer True

What is the pre-processing time of Rabin and Karp Algorithm?


aTheta(m2)


bTheta(mlogn)


ctheta(mT)


dBig-Oh(n)


View Answer theta(mT)

What is a Rabin and Karp Algorithm?


aString Matching Algorithm


bShortest Path Algorithm


cMinimum spanning tree Algorithm


dApproximation Algorithm



Given input string = “ABCDABCATRYCARCABCSRT” and pattern string = “CAT”. Find the first index of the pattern match using quick search algorithm.


a2


b 6


c11


d14


View Answer 6

The searching phase in quick search algorithm has good practical behaviour.


a true


bfalse


cA & B


dNone of the above


View Answer true

What is the worst case running time in searching phase of Boyer-Moore’s algorithm?


aO(n)


bO(log n)


cO(m+n)


dO(mn)


View Answer O(mn)

What character shift tables does Boyer-Moore’s search algorithm use?


agood-character shift tables


bbad-character shift tables


cnext-character shift tables


d both good and bad character shift tables



Quick search algorithm starts searching from the right most character to the left.


atrue


bfalse


cA & B


d None of the above


View Answer false

What is the space complexity of quick search algorithm?


aO(n)


bO(log n)


cO(m+n)


d O(mn)


View Answer O(n)

Goto Page No.

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