arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.02855cs.CLcs.AI
收藏

针对Wordle的约束满足方法:新颖的启发式方法与跨词典验证

Constraint Satisfaction Approaches to Wordle: Novel Heuristics and Cross-Lexicon Validation

Jahidul Arafat, Fariha Tasmin, Sanjaya Poudel

AI总结:

本文提出基于约束满足问题的Wordle求解方法,通过新颖的启发式策略和跨词典验证,展示了在结构化谜题求解中的优越性能。

摘要:

Wordle为约束满足问题(CSP)求解提供了算法丰富的测试平台。尽管现有求解器依赖于信息论熵最大化或基于频率的启发式方法,而不进行正式的约束处理,我们提出了第一个全面的Wordle CSP公式化方法,并引入了新的约束意识求解策略。我们介绍了CSP-aware熵,计算约束传播后的信息增益,而不是在原始候选集上计算,以及一个结合贝叶斯词频先验与逻辑约束的概率CSP框架。通过在2315个英文单词上的评估,CSP-aware熵在平均猜测数上达到3.54次,成功率为99.9%,比Forward Checking提高了1.7%(t=-4.82,p<0.001,Cohen's d=0.07),运行时间快46%(12.9ms vs 23.7ms每猜)。在10%的噪声下,CSP-aware方法保持5.3个百分点的优势(29.0% vs 23.7%,p=0.041),而概率CSP在所有噪声水平(0-20%)上均实现100%的成功率,通过约束恢复机制。在500个西班牙单词上的跨词典验证显示成功率为88%,无需语言特定的调整,验证了核心CSP原则在不同语言间转移的能力,尽管存在11.2个百分点的语言差异(p<0.001,Fisher's exact test)。我们的开源实现带有34个单元测试,达到91%的代码覆盖率,为CSP研究提供了可重复的基础设施。正式CSP处理、约束意识启发式方法、概率-逻辑整合、鲁棒性分析和跨词典验证的结合,建立了新的性能基准,证明了原则化的约束满足技术在结构化谜题求解领域中优于传统信息论和学习方法。

英文摘要:

Wordle presents an algorithmically rich testbed for constraint satisfaction problem (CSP) solving. While existing solvers rely on information-theoretic entropy maximization or frequency-based heuristics without formal constraint treatment, we present the first comprehensive CSP formulation of Wordle with novel constraint-aware solving strategies. We introduce CSP-Aware Entropy, computing information gain after constraint propagation rather than on raw candidate sets, and a Probabilistic CSP framework integrating Bayesian word-frequency priors with logical constraints. Through evaluation on 2,315 English words, CSP-Aware Entropy achieves 3.54 average guesses with 99.9% success rate, a statistically significant 1.7% improvement over Forward Checking (t=-4.82, p<0.001, Cohen's d=0.07) with 46% faster runtime (12.9ms versus 23.7ms per guess). Under 10% noise, CSP-aware approaches maintain 5.3 percentage point advantages (29.0% versus 23.7%, p=0.041), while Probabilistic CSP achieves 100% success across all noise levels (0-20%) through constraint recovery mechanisms. Cross-lexicon validation on 500 Spanish words demonstrates 88% success with zero language-specific tuning, validating that core CSP principles transfer across languages despite an 11.2 percentage point gap from linguistic differences (p<0.001, Fisher's exact test). Our open-source implementation with 34 unit tests achieving 91% code coverage provides reproducible infrastructure for CSP research. The combination of formal CSP treatment, constraint-aware heuristics, probabilistic-logical integration, robustness analysis, and cross-lexicon validation establishes new performance benchmarks demonstrating that principled constraint satisfaction techniques outperform classical information-theoretic and learning-based approaches for structured puzzle-solving domains.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑