m2skills

lhash op

Apr 7th, 2017
3,862
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 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. Collision has occured for element 40 at position 1 finding new Position.
  11. Collision has occured for element 77 at position 12 finding new Position.
  12.  
  13.  
  14. 0 = 26
  15. 1 = 90
  16. 2 = 28
  17. 3 = 40
  18. 4 = 17
  19. 5 = 31
  20. 6 = 77
  21. 7 = 0
  22. 8 = 0
  23. 9 = 0
  24. 10 = 88
  25. 11 = 0
  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 : 1
  32. The position of element 77 is : 6
  33. Element not found
  34. The position of element 1 is : False
  35.  
  36. Element 90 is Deleted
  37. Element 12 is Deleted
  38.  
  39.  
  40. 0 = 26
  41. 1 = 0
  42. 2 = 28
  43. 3 = 40
  44. 4 = 17
  45. 5 = 31
  46. 6 = 77
  47. 7 = 0
  48. 8 = 0
  49. 9 = 0
  50. 10 = 88
  51. 11 = 0
  52. 12 = 0
  53. The number of element is the Table are : 7
Add Comment
Please, Sign In to add comment