Data Structures and Algorithms-I MCQs

Page No. 37

Which of the following helps keys to be mapped into addresses?


ahash function


bseparate chaining


copen addressing


dchaining using a linked list


View Answer hash function

What is the formula to find the expected number of probes for an unsuccessful search in linear probing?


a1/2 1+1/(1−⅄)


b1/2 1+1/(1−⅄)2


c1/2 1+1/(1+⅄)


d1/2 1+1/(1+⅄)(1−⅄)


View Answer 1/2 1+1/(1−⅄)2

Hashing can be used in online spelling checkers.


aTrue


bFalse


cNone of the given options


deither true either false


View Answer True

What is the hash function used in linear probing?


aH(x)= key mod table size


bH(x)= (key+ F(i2)) mod table size


cH(x)= (key+ F(i)) mod table size


dH(x)= X mod 17



___________ is not a theoretical problem but actually occurs in real implementations of probing.


aHashing


bClustering


cRehashing


dCollision


View Answer Clustering

Which of the following is the correct function definition for linear probing?


aF(i)= 1


bF(i)=i


cF(i)=i2


dF(i)=i+1


View Answer F(i)=i

In linear probing, the cost of an unsuccessful search can be used to compute the average cost of a successful search.


aTrue


bFalse


cNone of the given options


deither true either false


View Answer True

Which of the following is not a collision resolution strategy for open addressing?


aLinear probing


bQuadratic probing


cDouble hashing


dRehashing


View Answer Rehashing

What is the load factor for an open addressing technique?


a1


b0.5


c1.5


d0


View Answer 0.5

How many probes are required on average for insertion and successful search?


a4 and 10


b2 and 6


c2.5 and 1.5


d3.5 and 1.5


View Answer 2.5 and 1.5

Goto Page No.

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