- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我知道这只是编程问题的一部分,但目前,我正在做一些逻辑编程。我仍然没有正确理解的一件事是一阶逻辑中的统一。
我读了 Wikipedia article并且或多或少很清楚,目的是搜索一个将两个句子统一起来的术语......本文中也有示例,但我只是不明白为什么这应该有用。任何人都可以举一个真实世界对象而不是 A、B、C 等的例子吗?我希望这会帮助我理解。谢谢
最佳答案
感谢您提供这些详细的答案。现在我真的明白了。但是,我想在这里写下我在 Stuart Russell 和 Peter Norvig 的“人工智能:一种现代方法”一书中找到的一个例子,以防有人再次寻找同样的问题。我认为这个答案使用了一种非常实用的方法:
Lifted inference rules require finding substitutions that make different logical expressions look identical. This process is called unification and is a key component of all first-order inference algorithms. The UNIFY algorithm takes two sentences and returns a unifier for them if one exists.
Let us look at some examples of how UNIFY should behave. Suppose we have a query Knows(John, x): whom does John know? Some answers to this query can be found by finding all sentences in the knowledge base that unify with Knows(John, x). Here are the results of unification with four different sentences that might be in the knowledge base:
UNIFY(Knows(John, x), Knows(John, Jane)) = {x/Jane}
UNIFY(Knows(John, x), Knows(y, Bill)) = {x/Bill, y/John}
UNIFY(Knows(John, x), Knows(y, Mother(y))) = {y/John, x/Mother(John)}
UNIFY(Knows(John, x), Knows(x, Elisabeth)) = fail
The last unification fails because x cannot take on the values John and Elizabeth at the same time.
关于computer-science - 一阶逻辑中统一的真实世界示例?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2961670/
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 4年前关闭。 Improve thi
关闭。这个问题需要更多focused .它目前不接受答案。 想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 6 年前。 Improve this qu
我有一个关于车床的非常简单的问题。 如果它采取的第一个 Action 包括倒带,它会向后移动超过起点,还是这是一种特殊情况,它会留在起点吗? 最佳答案 这实际上取决于您使用的是哪种形式主义。一些形式主
我正在关注这个博客 http://www.quuxlabs.com/blog/2010/09/matrix-factorization-a-simple-tutorial-and-implementa
我正在尝试在 Kaggle Iowa 住房数据集上训练 LightGBM 模型,我编写了一个小脚本来随机尝试给定范围内的不同参数。我不确定我的代码有什么问题,但脚本使用不同的参数返回相同的分数,这是不
查找图形外边缘的最佳方法是什么? 例如,这张图上的红色边: 我不知道这个算法有没有名字。这个名字足以帮助我在 Google 上找到一些东西。 最佳答案 我希望我没有误解这个问题,但我认为没有答案,除非
我正在回答一些与虚拟内存相关的问题,并希望得到一些帮助来澄清或确认我对这些东西是如何完成的理解。 问题如下: Given a byte-addressable system with 32 bit w
我知道算法是一种有效的方法,表示为用于计算函数的定义明确的指令的有限列表。但是我们如何将它与逻辑区分开来? 最佳答案 哇,你的问题带我去旅行,我发现了一些东西!这可能不能作为答案,但将其放在这里作为引
关闭。这个问题是opinion-based .它目前不接受答案。 想改善这个问题吗?更新问题,以便可以通过 editing this post 用事实和引文回答问题. 4年前关闭。 Improve t
您如何评价出版物?我目前正在寻找 CS 研究主题并阅读各种论文。我在阅读论文时的困境通常是 - 在这个主题上继续研究真的值得吗? 研究影响的指标是什么? 顺便说一句,我目前对 - 活性分析感兴趣。你怎
根据我的教科书,L1 = A* - L1 的补码就是正则语言,只要 L1 是正则语言。 A* 不也包括上下文无关语言、上下文敏感语言和递归可枚举语言吗? A*-L1 也会包括所有这些,不是吗?那怎么能
我正在开发用户收集标签的 Web 应用程序。我需要根据用户标签的相似性为用户创建一个建议列表。 例如,当用户登录系统时,系统获取他的标签并在用户的数据库中搜索这些标签并显示具有相似标签的用户。例如如果
假设存在图灵机 M1、M2、M3,它们识别的语言分别是 L(M1)、L(M2) 和 L(M3)。以下语言 L = {(M1, M2, M3) : L(M1), L(M2), and L(M3) 不相等
我现在正在学习一个编译器类,我们正处于必须构建一个 CFG 以实现优化的地步。我不知道的一件事是一个程序有多少个 CFG?我见过的每个示例似乎都是一个简单代码段的 CGF。因此,如果您有一个具有三个功
关闭。这个问题是off-topic .它目前不接受答案。 想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。 9年前关闭。 Improve this q
我正在撰写有关计算机科学主题的相当长的专着。但是,我通常发现自己必须用数学术语写一些计算机科学概念,这对我来说很困难。例如,说我想编写一个for循环或void函数。我大部分时间都去我的Knuth或Co
堆栈在微处理器中的作用是什么? 最佳答案 堆栈主要在函数调用期间使用,但根据语言和编程级别,它可用于临时存储处理器寄存器数据或其他变量。 此外,当使用递归函数将部分数据存储在堆栈中并再次调用自己时,堆
到目前为止,我想出的最好的方法是卡片目录包含有关如何 cooking 不同类型食物的说明。它不包含有关如何 cooking 食物的信息,也不包含 cooking 食物本身的说明,但它可以为您指明位于其
我是一名 CS 大二学生,我想用电子学习度过我的暑假。周围有很多公开类(class),但我不知道从哪里开始或如何进行。 编辑:感谢您的建议,但我真正的问题是我无法选择我应该参加哪个特定的讲座。 最佳答
我对数据科学还很陌生。我正在研究使用基于产品编号和商店编号作为预测变量的线性回归来预测销售需求的用例。可以有许多具有数值的商店和产品。如果这些变量/预测变量的值是数字的、无界的并且在不同的尺度上,我是
我是一名优秀的程序员,十分优秀!