m2skills

qhash op

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