- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for sais_8_32 (0.09 sec)
-
src/index/suffixarray/sais.go
// with len(tmp) ≥ textMax. If len(tmp) ≥ 2*textMax // then the algorithm runs a little faster. // If sais_8_32 modifies tmp, it sets tmp[0] = -1 on return. func sais_8_32(text []byte, textMax int, sa, tmp []int32) { if len(sa) != len(text) || len(tmp) < textMax { panic("suffixarray: misuse of sais_8_32") } // Trivial base cases. Sorting 0 or 1 things is easy. if len(text) == 0 { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 18 23:57:18 UTC 2024 - 32.4K bytes - Viewed (0) -
src/index/suffixarray/sais2.go
if int(int64(len(text))) != len(text) || len(text) != len(sa) { panic("suffixarray: misuse of text_64") } sais_8_64(text, 256, sa, make([]int64, 2*256)) } func sais_8_64(text []byte, textMax int, sa, tmp []int64) { if len(sa) != len(text) || len(tmp) < textMax { panic("suffixarray: misuse of sais_8_64") } // Trivial base cases. Sorting 0 or 1 things is easy. if len(text) == 0 { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 18 23:57:18 UTC 2024 - 52.3K bytes - Viewed (0)