ossner / TUMGAD

Exercise generator and helpful materials for the Introduction to Algorithms and Data Structures 📚

Home Page:https://ossner.github.io/TUMGAD/src/routes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minor bug in creating collision table (double hashing)

HardMax71 opened this issue · comments

Describe the bug
The number of rows in the collision table is always in 1 more than the number of values i need to add to that table.

To Reproduce
Steps to reproduce the behavior (If generation issue, please provide the seed stated on the first page):
0. Any seed

  1. Create .pdf with "double hashing" exercise
  2. Open exercises.pdf
  3. Scroll down to "double hashing"
  4. Look at the rows in the table

Expected behavior
Number of rows = number of values to add.

Screenshots
Pic from exercises.pdf (additional / not requested row is marked with blue arrow) :
image
Solution of the exercise :
image

Desktop (please complete the following information):

  • IDE IntelliJ