Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(200)

Issue 3752044: code review 3752044: suffixarray: faster creation algorithm (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by Eric Roshan Eisner
Modified:
14 years, 2 months ago
Reviewers:
CC:
gri, gri1, golang-dev
Visibility:
Public.

Description

suffixarray: faster creation algorithm This implements the algorithm qsufsort using the sort package as a sorting primitive. Its worst-case performance is O(N*log(N)), and it uses only an additional slice of N ints of memory during creation. Benchmarks (seconds): old new 10k nulls 149 0.044 1M English corpus 32.0 3.6

Patch Set 1 #

Patch Set 2 : code review 3752044: suffixarray: faster creation algorithm #

Patch Set 3 : code review 3752044: suffixarray: faster creation algorithm #

Total comments: 10

Patch Set 4 : code review 3752044: suffixarray: faster creation algorithm #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -23 lines) Patch
M src/pkg/index/suffixarray/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/index/suffixarray/qsufsort.go View 1 2 3 1 chunk +164 lines, -0 lines 0 comments Download
M src/pkg/index/suffixarray/suffixarray.go View 1 2 3 3 chunks +2 lines, -23 lines 0 comments Download
M src/pkg/index/suffixarray/suffixarray_test.go View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 8
Eric Roshan Eisner
Hello gri (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 3 months ago (2010-12-29 04:51:54 UTC) #1
gri
Thanks, this was quick. I am on technically on vacation thus a thorough review will ...
14 years, 3 months ago (2010-12-29 05:54:51 UTC) #2
Eric Roshan Eisner
Hello gri (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 3 months ago (2010-12-30 16:58:38 UTC) #3
gri1
I have only glanced over the details (and not tried to fully understand the implementation), ...
14 years, 2 months ago (2011-01-12 00:44:53 UTC) #4
Eric Roshan Eisner
Hello gri, gri1 (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 2 months ago (2011-01-12 03:14:37 UTC) #5
Eric Roshan Eisner
On Tue, Jan 11, 2011 at 19:44, <gri@google.com> wrote: > I have only glanced over ...
14 years, 2 months ago (2011-01-12 03:26:30 UTC) #6
gri1
LGTM Thanks for doing this! - gri On Tue, Jan 11, 2011 at 7:14 PM, ...
14 years, 2 months ago (2011-01-12 04:18:06 UTC) #7
gri
14 years, 2 months ago (2011-01-12 05:46:53 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=d2ab7d15a2da ***

suffixarray: faster creation algorithm

This implements the algorithm qsufsort using the sort package
as a sorting primitive. Its worst-case performance is O(N*log(N)), and it
uses only an additional slice of N ints of memory during creation.

Benchmarks (seconds):
           old    new
10k nulls          149    0.044
1M English corpus  32.0   3.6

R=gri, gri1
CC=golang-dev
http://codereview.appspot.com/3752044

Committer: Robert Griesemer <gri@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b