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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: I created a (hopefully fast) C++ lib to find words in ASCII sequences

4 点作者 waffenklang超过 5 年前
Hi,<p>to provide a bit context, I&#x27;m the author of a small causal android game called &quot;Squabbel&quot;[1] which is a modern take on a merge of tetris and scrabble.<p>Its core is based around the idea to find strings within a sequence of characters, which is accomplished by using a deterministic finite automaton.<p>Currently I&#x27;m working on the successor of Squabbel and I was optimizing the internal search engine and refactored the code to a c++ library which is now available on github<p>https:&#x2F;&#x2F;github.com&#x2F;0x10&#x2F;fastdict<p>The search times are to my needs pretty good and I would love to get some feedback on the performance.<p>Thanks.<p>[1] https:&#x2F;&#x2F;play.google.com&#x2F;store&#x2F;apps&#x2F;details?id=cc.deadlock.squabbel.lite

1 comment

rogaos超过 5 年前
Cool! Seems similar to the Aho-Corasick algorithm, which was designed for exactly this task (<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Aho%E2%80%93Corasick_algorithm" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Aho%E2%80%93Corasick_algorithm</a>)
评论 #21406699 未加载