QUESTIONS:
3.What is Dictionaries ,state different
types of dictionaries ,operations
and ADT(Operations on
dictionary).
5.Perform the
insertion operations using double
hashing for the following
list:
12,54,62,45,37,78,89,28,61,49.Where table
size is 10.
6.(a)List any
four to five advantages
and disadvantages of
separate chaining.
(b)Explain open addressing
and write the
algorithm to insert
an item into
the table.
7.(a)Explain with
an example about linear
probing ,quadratic probing.
(b)Provide
draw backs of separate chaining .
8.(a)Write the
characteristics of good hashing
function.
(b)Explain
separate chaining and
its operations.
9.(a)Write an
algorithm of insertion
and search on double hashing .
(b)Applications of
hash tables.
FILL
IN THE
BLANKS:
12.In the
multiplicative Hash Function ,the scientist Donald
Knuth use constant
‘A’, value of ‘A’ is 0.61803398987.
20.The function
of double hashing
is H1(key)=key mod table size
and H2(key)=M-(key
mod m).
CHOOSE THE CORRECT ANSWERS:
(a)H(key)=key% table
size
(b)(key)2=Result
(mid part of result)
(c)H(key)=floor(p*(fractional
part of key*A))
(d)H(key)=key/ table
size
(a)H(key)=key% table
size
(b)H(key)=key/table
size
(c)(key)2=Result
(mid part of result)
(d)H(key)=floor(p*(fractional
part of key*A))
(a)H(key)=key% table
size
(b)H(key)=key/table
size
(c)(key)2=Result(mid
part of result)
(d)H(key)=floor(p*(fractional
part of key *A))
(a)5798
(b)14355
(c)99812
(d)none
(a)overflow occurs
(c)insertion occurs
(d)deletion occurs
6.When the
hash table is
filled if there is a situation to insert
a new pair in
the same hash table
then [a]
(a)overflow occurs
(c)insertion occurs
(d)both b&c
7.The best
time complexity of
search operation is [c]
(a)O(n)
(b)O(n log n)
(c)O(1)
(d)O(log n)
8The worst
time complexity of
insertion operation is [a]
(a)O(n)
(b)O(n log n)
(c)O(1)
(d)O(log n)
TRUE (or)
FALSE:
MATCH THE
FOLLOWING:
7.16,18,9,36 when
table size is
[c] (g)table size need not
be prime number.
8.Advantages of
separate chaining [g]
(h)O(n)
9.Best time
complexity
[f] (i)(key)2=result(mid
part of result)
(k)pair(rows,columns)
(l)H(key)=floor(p*(fractional part
of key
*A))
No comments:
Post a Comment