Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sais_8_32 (0.09 sec)

  1. 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)
  2. 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)
Back to top