repeat

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: GPL-3.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SuffixAutomaton

type SuffixAutomaton struct {
	Nodes   []*node
	LastPos int32 // 当前插入的字符对应的节点(终止点)
	// contains filtered or unexported fields
}

func NewSuffixAutomaton

func NewSuffixAutomaton() *SuffixAutomaton

func (*SuffixAutomaton) Add

func (sam *SuffixAutomaton) Add(c rune)

func (*SuffixAutomaton) AddString

func (sam *SuffixAutomaton) AddString(s string)

func (*SuffixAutomaton) Clear

func (sam *SuffixAutomaton) Clear()

func (*SuffixAutomaton) CountSubString

func (sam *SuffixAutomaton) CountSubString() int

CountSubString 本质不同的子串个数.

func (*SuffixAutomaton) GetRepeatness

func (sam *SuffixAutomaton) GetRepeatness() float64

func (*SuffixAutomaton) Length

func (sam *SuffixAutomaton) Length() int32

Jump to

Keyboard shortcuts

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