MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / CreateNewState

Function CreateNewState

strings/ahocorasick/shared.go:111–113  ·  view source on GitHub ↗

CreateNewState Automaton function for creating a new state 'state'.

(state int, at map[int]map[uint8]int)

Source from the content-addressed store, hash-verified

109
110// CreateNewState Automaton function for creating a new state 'state'.
111func CreateNewState(state int, at map[int]map[uint8]int) {
112 at[state] = make(map[uint8]int)
113}
114
115// CreateTransition Creates a transition for function σ(state,letter) = end.
116func CreateTransition(fromState int, overChar uint8, toState int, at map[int]map[uint8]int) {

Callers 1

ConstructTrieFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected