Documentation
¶
Index ¶
- type LinearProbingHashTable
- func (hashTable *LinearProbingHashTable) AveProbeSequenceLength() float32
- func (hashTable *LinearProbingHashTable) Contains(name string) bool
- func (hashTable *LinearProbingHashTable) Delete(name string)
- func (hashTable *LinearProbingHashTable) Dump()
- func (hashTable *LinearProbingHashTable) DumpConcise()
- func (hashTable *LinearProbingHashTable) Get(name string) string
- func (hashTable *LinearProbingHashTable) Set(name string, phone string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinearProbingHashTable ¶
type LinearProbingHashTable struct {
// contains filtered or unexported fields
}
func NewChainingHashTable ¶
func NewChainingHashTable(capacity int) *LinearProbingHashTable
func (*LinearProbingHashTable) AveProbeSequenceLength ¶
func (hashTable *LinearProbingHashTable) AveProbeSequenceLength() float32
func (*LinearProbingHashTable) Contains ¶
func (hashTable *LinearProbingHashTable) Contains(name string) bool
func (*LinearProbingHashTable) Delete ¶
func (hashTable *LinearProbingHashTable) Delete(name string)
func (*LinearProbingHashTable) Dump ¶
func (hashTable *LinearProbingHashTable) Dump()
func (*LinearProbingHashTable) DumpConcise ¶
func (hashTable *LinearProbingHashTable) DumpConcise()
func (*LinearProbingHashTable) Get ¶
func (hashTable *LinearProbingHashTable) Get(name string) string
func (*LinearProbingHashTable) Set ¶
func (hashTable *LinearProbingHashTable) Set(name string, phone string)
Click to show internal directories.
Click to hide internal directories.