hash

package
v0.0.0-...-63bc8f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL