如何确定密码中每个字母的编号?
我有一项作业需要解决密码问题。但我无法理解我在互联网上看到的算法。有人能用简单的话解释如何做到这一点吗?
I have an assignment that needs to solve a cryptarithm. But I cant understand the algorithms that I saw in the internet. Could anybody explain how to do this in simple words?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
作为一般情况,大多数约束满足算法都是一个两步过程,其中猜测(或分支)阶段之后是演绎阶段,其中在不猜测的情况下找到尽可能多的分配。 (例如数独)
示例:
当您到达死胡同时,原路返回
As a general case, most Constraint Satisfaction Algorithms are a two step process, where a guessing (or branching) phase is followed by a deductive phase, where as many assignments as possible are found without guessing. (Think Sudoku, for example)
Example:
When you reach a dead end, backtrack
可以使用遗传算法来解决此类问题,这里是使用 GA 的解决方案 https://github.com/pauloremoli /密码算术
It's possible to solve this kind of problem with Genetic Algorithm, here is a solution using GA https://github.com/pauloremoli/cryptarithmetic