I don't get the concept of collision.
Is collision is number of keys mapped on same location ?
if it is according to the above question :
Total number of collision in linear probing= 0
Total number of collision in chaining = 2 (03,86 is mapped on index 3 ) & (19,337 is mapped on index 10 )
Correct if I'm wrong please.
--
You received this message because you are subscribed to the Google Groups "DSFAST2015" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dsfast2015+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dsfast2015/2092c3e0-a83e-4670-903b-12a483c62d3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
HafsaTotal number of collisions would be the same in both cases. If a key is mapped to an index which is already occupied we have a collision.Mehreen
-------- Original message --------
From Hafsa Tariq <hafsata...@gmail.com>
Date: 07/06/2015 10:09 (GMT+05:00)
To dsfas...@googlegroups.com
Subject Re: Hashing
To view this discussion on the web visit https://groups.google.com/d/msgid/dsfast2015/CADaqFdFCDCqCNt8tMqdwyyMcOJEW1Z6PB_OVG%3DhBK_mccad9%2Bg%40mail.gmail.com.
No. of collisions (linear probing) = 8
and no. of collisions (chaining ) = 2