retagged by
727 views
1 votes
1 votes

retagged by

1 Answer

0 votes
0 votes

First find the non conflicting keys that directly hash to their hash values ...91, 33, 44 and 77

the remaining two 23 and 64 conflict with 33 and 44 in one of the orders like,

91,77,33,44,23,64(this is one sequence possible)

now fix the keys which must be inserted before (that can,t be rearranged)

_33_44_23_64_

keys in bold must not be interchanged, the rest 2 keys(91 and 77) can appear anywhere.

to solve this let us use the simple formula : total permutation /permutation of invalid combinations

total permutation for 6 keys is = 6!

invalid combination is(that should fixed) = 4!               //For 33,44,23,64

=> 6!/(4!)

solving this you get 30.

now 44 and 33 can be rearranged for which multiply the result with 2!.

Hence, total number of insertion sequences possible is 60.

edited by
Answer:

Related questions

1 votes
1 votes
2 answers
1
Soumyashree asked Nov 21, 2015
9,067 views
A hash table can store a max of 10 records, currently, there are records in locations 1,3,4,7,8,9,10. The probability of a new record going into location 2,with a hash fu...
0 votes
0 votes
1 answer
2
tishhaagrawal asked Dec 16, 2023
372 views
Below is my approach to solving this question, can anyone please explain if I am doing it the right way?Let X = #free slotssince, m =7 and n = 3So, $4 \leqslant x\leqsla...
0 votes
0 votes
1 answer
3
Ray Tomlinson asked Aug 9, 2023
519 views
Numerical Answer Type Que?(please Try to give some ahortcut trick also or important concept is there to solve that question )