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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Beginner pointers on SAT solvers?

4 点作者 fabriceleal超过 10 年前
I just got started on writing a SAT solver (https:&#x2F;&#x2F;github.com&#x2F;rjmacready&#x2F;sat-solver) (this is not working ATM) and while I’ve been finding some resources, I feel like I’m missing something … does anyone have some beginner pointers on SAT solver implementation? I was looking for something like pseudocode, algorithm visualization (like this http:&#x2F;&#x2F;www.cs.usfca.edu&#x2F;~galles&#x2F;visualization&#x2F;Algorithms.html, for instance), anything.<p>Also if anyone knows about how can they be applied in a compiler (typesystem, optimization, …), feedback is also welcomed.

1 comment

JoachimSchipper超过 10 年前
Minisat is designed to elucidate; consider reading the paper and implementation - it&#x27;s actually a very fast solver.<p>As to compilers: one interesting idea is the &quot;superoptimizer&quot;. In its basic form, try all byte sequences and use a solver to filter out the ones that do what you want when executed; then pick the fastest. Regehr has an interesting blog post on this topic.
评论 #8458234 未加载