Advertisement
jdalbey

Hashtable Calculator System Tests

Dec 17th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. Linear Probing
  2. Tablesize 3
  3. 1=0*3+1
  4. 1 probe.
  5. 2=0*3+2
  6. 1 probe.
  7. 3=1*3+0
  8. 1 probe.
  9. 4=1*3+1
  10. Table full.
  11.  
  12. Linear Probing
  13. Tablesize 3
  14. 1=0*3+1
  15. 1 probe.
  16. 4=1*3+1
  17. 2 probes.
  18. 7=2*3+1
  19. 3 probes.
  20. 10=3*3+1
  21. Table full.
  22. 7=2*3+1
  23. 3 probes.
  24. 1=0*3+1
  25. 1 probe.
  26. 33=11*3+0
  27. Table full.
  28.  
  29. Linear Probing, Letters
  30. Tablesize 10
  31. d=0*10+3
  32. 1 probe.
  33. h=0*10+7
  34. 1 probe.
  35. l=1*10+1
  36. 1 probe.
  37. b=0*10+1
  38. 2 probes.
  39. y=2*10+4
  40. 1 probe.
  41. v=2*10+1
  42. 5 probes.
  43.  
  44.  
  45. Quadratic Probing
  46. Tablesize 10
  47. 3=0*10+3
  48. 3
  49. 1 probe.
  50. 4=0*10+4
  51. 4
  52. 1 probe.
  53. 5=0*10+5
  54. 5
  55. 1 probe.
  56. 0=0*10+0
  57. 0
  58. 1 probe.
  59. 1=0*10+1
  60. 1
  61. 1 probe.
  62. 2=0*10+2
  63. 2
  64. 1 probe.
  65. 6=0*10+6
  66. 6
  67. 1 probe.
  68. 7=0*10+7
  69. 7
  70. 1 probe.
  71. 8=0*10+8
  72. 8
  73. 1 probe.
  74. 9=0*10+9
  75. 9
  76. 1 probe.
  77. 11=1*10+1
  78. 1 2 5 0
  79. 4 probes.
  80. 21=2*10+1
  81. 1 2 5 0 7 6 7 0 5 2
  82. No spot available.
  83.  
  84. Quadratic Probing
  85. Tablesize 10
  86. 3=0*10+3
  87. 3
  88. 1 probe.
  89. 5=0*10+5
  90. 5
  91. 1 probe.
  92. 3=0*10+3
  93. 3
  94. 1 probe.
  95. 25=2*10+5
  96. 5 6
  97. 2 probes.
  98. 13=1*10+3
  99. 3 4
  100. 2 probes.
  101. 25=2*10+5
  102. 5 6
  103. 2 probes.
  104.  
  105. Quadratic Probing
  106. Tablesize 10
  107. 1=0*10+1
  108. 1
  109. 1 probe.
  110. 11=1*10+1
  111. 1 2
  112. 2 probes.
  113. 21=2*10+1
  114. 1 2 5
  115. 3 probes.
  116. 31=3*10+1
  117. 1 2 5 0
  118. 4 probes.
  119. 41=4*10+1
  120. 1 2 5 0 7
  121. 5 probes.
  122. 51=5*10+1
  123. 1 2 5 0 7 6
  124. 6 probes.
  125. 61=6*10+1
  126. 1 2 5 0 7 6 7 0 5 2
  127. No spot available.
  128.  
  129. Quadratic Probing, Letters
  130. Tablesize 10
  131. d=0*10+3
  132. 3
  133. 1 probe.
  134. p=1*10+5
  135. 5
  136. 1 probe.
  137. n=1*10+3
  138. 3 4
  139. 2 probes.
  140. v=2*10+1
  141. 1
  142. 1 probe.
  143. x=2*10+3
  144. 3 4 7
  145. 3 probes.
  146. b=0*10+1
  147. 1 2
  148. 2 probes.
  149. l=1*10+1
  150. 1 2 5 0
  151. 4 probes.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement