Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mississi (0.07 sec)

  1. src/strings/search_test.go

    	testCases := []struct {
    		pattern string
    		bad     [256]int
    		suf     []int
    	}{
    		{
    			"abc",
    			[256]int{'a': 2, 'b': 1, 'c': 3},
    			[]int{5, 4, 1},
    		},
    		{
    			"mississi",
    			[256]int{'i': 3, 'm': 7, 's': 1},
    			[]int{15, 14, 13, 7, 11, 10, 7, 1},
    		},
    		// From https://www.cs.utexas.edu/~moore/publications/fstrpos.pdf
    		{
    			"abcxxxabc",
    			[256]int{'a': 2, 'b': 1, 'c': 6, 'x': 3},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 01 21:52:00 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  2. src/strings/search.go

    	// byte preceding it that we might possibly match). In this case, we can
    	// shift the matching frame to align with the next suffix chunk. For
    	// example, the pattern "mississi" has the suffix "issi" next occurring
    	// (in right-to-left order) at index 1, so goodSuffixSkip[3] ==
    	// shift+len(suffix) == 3+4 == 7.
    	//
    	// 2. If the matched suffix does not occur elsewhere in pattern, then the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 18:49:51 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top