C # creating a fixed size hash table

I want to create a hash file of a fixed size, for example, 100 buckets, and if I need to store more than 100 elements, then collisions and overwriting just have to happen. The hashtable class has the IsFixedSize property, but it is read-only.

Am I thinking about this completely wrong or is there a solution to this?

+3
source share
1 answer

Collections in the .NET Framework do not allow much tweaking. Although you may find one effective enough for your needs. Before optimizing, try some viable ones.

, , . , . C6 Generic Collection Library # CLI . Hash * .

, / , , .., , , # foreach .NET-.

++, , #/. NET. , SO , .

+4
source

Source: https://habr.com/ru/post/1730005/


All Articles