in Programming in C
1,149 views
2 votes
2 votes

Consider an initially empty hash table of length 10. Following set of keys are inserted using open addressing with hash function h(k) = kmod 10 and linear probing.

The number of different insertion sequence of the key values using the given hash function and linear probing will result in the hash table shown in above __________.

I am getting 168.


Which of the following is true?

A) In IPv6 broadcasting is used to send packet to every host inside a network.

B) In IPv6 for Path MTU discovery ICMP protocol is used.

C) Flooding always guaranteed to send the packet from source to destination with minimum number of hops.

D) both b and c.

I think it is B).

in Programming in C
1.1k views

7 Comments

1st one will be 36×8=288.
0
0

For the second question I think option D.

Flooding guarantees minimum hops.

Reference:

https://gateoverflow.in/188103/flooding

0
0
For 1st one:-

Case 1:-  When 77 come with $91, 2,13,24$ i.e. before 12, 62. So, no of ways to arrange this is 120.

Case 2:- When 77 come between 12 and 62 then 91, 2, 13, 24 can be arranged in 24 ways, So, for this case 24 ways.

Case 3:- When 77 come after 12 and 62 then 91, 2, 13, 24 can be arranged in 24 ways, So, for this case 24 ways.

In total $120+ 24+ 24 = 168$ ways.
0
0
1)i am getting 288

2) both B) and C) are correct, flooding always guarantee shortest path.
0
0
91 is independent in each case , i think that is wrong in your case.
0
0
I agree with $288$ and both $b)$ and $c)$
Sending packet to all links will guarantee that it would have also sent to one path which will be reported by shortest path algorithm therefore it will be ensured by flooding as well.
0
0

1 Answer

1 vote
1 vote

for the first one graph will be 

2,13,24,12,62,82

permute the (2,13,24) => 6 ways

i.e

2,13,24,12,62,82

2,24,13,12,62,82

13,2,24,12,62,82

13,24,2,12,62,82

24,13,2,12,62,82

24,2,13,12,62,82

Remaining are 77 and 91

for 77

__2__13__24__12__62__82 => 6 ways

for 91 

__77__2__13__24__12__62__82__ => 8 ways

Total possibilities=6*6*8=288

by

Related questions