m2skills

dhash op

Apr 4th, 2017
4,770
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1.  
  2. Enter the Size of the hash table : 13
  3. Element 12 at position 12
  4. Element 26 at position 0
  5. Element 31 at position 5
  6. Element 17 at position 4
  7. Collision has occured for element 90 at position 12 finding new Position.
  8. Element 28 at position 2
  9. Element 88 at position 10
  10. Element 40 at position 1
  11. Collision has occured for element 77 at position 12 finding new Position.
  12.  
  13.  
  14. 0 = 26
  15. 1 = 40
  16. 2 = 28
  17. 3 = 0
  18. 4 = 17
  19. 5 = 31
  20. 6 = 0
  21. 7 = 0
  22. 8 = 0
  23. 9 = 77
  24. 10 = 88
  25. 11 = 90
  26. 12 = 12
  27. The number of element is the Table are : 9
  28.  
  29. The position of element 31 is : 5
  30. The position of element 28 is : 2
  31. The position of element 90 is : 11
  32. The position of element 77 is : 9
  33. Element not Found
  34. The position of element 1 is : False
  35.  
  36. Total number of comaprisons done for searching = 12
  37.  
  38. Element 90 is Deleted
  39. Element 12 is Deleted
  40.  
  41.  
  42. 0 = 26
  43. 1 = 40
  44. 2 = 28
  45. 3 = 0
  46. 4 = 17
  47. 5 = 31
  48. 6 = 0
  49. 7 = 0
  50. 8 = 0
  51. 9 = 77
  52. 10 = 88
  53. 11 = 0
  54. 12 = 0
  55. The number of element is the Table are : 7
Add Comment
Please, Sign In to add comment