Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
An hash array dictonary step by step
#15
Right Bplus
your Dictionary let add many values for the same key/index value!
It is the APPEND way to solve collision issue in a dictionary. 
For be clearer:
the collision is the event that happens when 2 different values used for calculating Hash value gives the same result, so in the same position of an hash table there would be 2 different values. (This can be done also if the key used is already stored into the dictionary. I.E.  a first time we store into dictionary  "Plants" "Coffea arabica"  and in a second moment "Plants" "Citrus citrus")
The APPEND way is the solution to keep both the values in the same position.
But for keeping in order the dictionary we must store more information to distinguish the value associated a different keys.
Your solution seems to store in order of time both keys in K$ and values in V$. And with the reverse function we can have back key + value in order.
Reply


Messages In This Thread
RE: An hash array dictonary step by step - by TempodiBasic - 04-02-2023, 11:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple text pixel data to array demo Unseen Machine 5 676 09-12-2025, 05:30 PM
Last Post: bplus
  Unique Random Array Program eoredson 5 844 07-10-2025, 10:29 AM
Last Post: DANILIN
  QB64_GJ_LIB ARRay Library grymmjack 3 986 08-21-2023, 12:50 PM
Last Post: mnrvovrfc
  Get Next Filename into a string (or array) GTC 2 836 02-26-2023, 12:51 PM
Last Post: GTC
  Three-dimensional array Kernelpanic 20 4,221 01-08-2023, 05:39 PM
Last Post: TempodiBasic

Forum Jump:


Users browsing this thread: 1 Guest(s)