P
P
Porto_b2019-11-29 19:33:26
Delphi
Porto_b, 2019-11-29 19:33:26

Hash table of dimension m, chaining method?

Have I correctly formatted the data structure for such a hash table?

type
...
      l = ^p;
      p = record
             k : string; //key
             v : intger; //value
             n : l;      //next
          end;
var
  a : array[0..m-1] of l; //hash table
...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hemul GM, 2019-11-30
@Porto_b

The structure is correct. Whether it will work normally - you need to check.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question