anagrammer

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2014 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package anagrammer implements an anagrammer based on a GADDAG data structure. I am basing this (and the movegen in the future) on my ujamaa program at github.com/domino14/ujamaa However, in order to simplify data structures and (hopefully) speed things up, we replace ARC* with just the index of the node that the ARC would point to in all the algorithms.

This is the RPC API for the anagrammer package.

Index

Constants

View Source
const (
	ModeBuild   = iota
	ModeAnagram = iota
)

Variables

This section is empty.

Functions

func Anagram

func Anagram(gaddagData []uint32, str string, mode uint8)

Anagram anagrams or builds the passed in string.

Types

type AnagramService added in v0.0.2

type AnagramService struct{}

func (*AnagramService) Anagram added in v0.0.2

type AnagramServiceArgs added in v0.0.2

type AnagramServiceArgs struct {
	Mode    string
	Letters string
}

type AnagramServiceReply added in v0.0.2

type AnagramServiceReply struct {
	Message string
}

type Rack

type Rack struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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