TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Fast suffix arrays in Python

72 点作者 Labo333将近 8 年前

4 条评论

matt4711将近 8 年前
There are much faster SA construction algorithms than skew (check out divsufsort). The O(n) algorithms using induced sorting are also likely much faster than this work. The constants of recent O(n) algorithms are very low.<p>here a link for some state-of-the-art benchmarks of non-parallel SA construction algorithms: <a href="https:&#x2F;&#x2F;github.com&#x2F;y-256&#x2F;libdivsufsort&#x2F;blob&#x2F;wiki&#x2F;SACA_Benchmarks.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;y-256&#x2F;libdivsufsort&#x2F;blob&#x2F;wiki&#x2F;SACA_Benchm...</a><p>there also now exist linear speedup parallel SA construction algorithms.
评论 #14686399 未加载
评论 #14686812 未加载
lqdc13将近 8 年前
Is there another implementation we can compare this with?<p>Kind of crazy to say that this is fast without any comparisons with anything else. So far I&#x27;ve been using suffix trees from here: <a href="http:&#x2F;&#x2F;www.daimi.au.dk&#x2F;~mailund&#x2F;suffix_tree.html" rel="nofollow">http:&#x2F;&#x2F;www.daimi.au.dk&#x2F;~mailund&#x2F;suffix_tree.html</a>
评论 #14684227 未加载
评论 #14686902 未加载
评论 #14684627 未加载
评论 #14684228 未加载
xfer将近 8 年前
When i was doing a derivation of LZ compression using suffix arrays i used induced sorting. Here is a good overview: <a href="http:&#x2F;&#x2F;zork.net&#x2F;~st&#x2F;jottings&#x2F;sais.html" rel="nofollow">http:&#x2F;&#x2F;zork.net&#x2F;~st&#x2F;jottings&#x2F;sais.html</a>.<p>Also i think Doug&#x27;s C implementation of MM suffix array is worth mentioning : <a href="http:&#x2F;&#x2F;www.cs.dartmouth.edu&#x2F;~doug&#x2F;sarray&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.cs.dartmouth.edu&#x2F;~doug&#x2F;sarray&#x2F;</a>
评论 #14691044 未加载
visarga将近 8 年前
Anyone remember &quot;sary&quot;? It was doing suffix arrays 17 years ago. Last update was in 2005.<p><a href="http:&#x2F;&#x2F;sary.sourceforge.net&#x2F;" rel="nofollow">http:&#x2F;&#x2F;sary.sourceforge.net&#x2F;</a>