Data Structures and Algorithms-I MCQs

Page No. 40

What is the hash function used in the division method?


ah(k) = k/m


bh(k) = k mod m


ch(k) = m/k


dh(k) = m mod k


View Answer h(k) = k mod m

Interpret the given character string as an integer expressed in suitable radix notation.
Character string = pt


a14963


b14392


c12784


d14452


View Answer 14452

A good hash approach is to derive the hash value that is expected to be dependent of any patterns that might exist in the data.


aTrue


bFalse


cNone of the given options


deither true either false


View Answer False

Which hash function satisfies the condition of simple uniform hashing?


ah(k) = lowerbound(km)


bh(k)= upperbound(mk)


ch(k)= lowerbound(k)


dh(k)= upperbound(k)


View Answer h(k) = lowerbound(km)

Which scheme uses a randomization approach?


ahashing by division


bhashing by multiplication


cuniversal hashing


dopen addressing


View Answer universal hashing

What is the value of m’ if the value of m is 19?


a11


b18


c17


d15


View Answer 17

Which technique has the greatest number of probe sequences?


aLinear probing


bQuadratic probing


cDouble hashing


dDouble hashing


View Answer Double hashing

What is the running time of double hashing?


aTheta(m)


bTheta(m2)


cTheta(m log k)


dTheta(m3)


View Answer Theta(m)

The value of h2(k) can be composite relatively to the hash table size m.


aTrue


bFalse


cNone of the given options


deither true either false


View Answer False

On what value does the probe sequence depend on?


ac1


bk


cc2


dm


View Answer k

Goto Page No.

Page 40 of 53

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