提一个问题
版主: verdelite, Tlexander
-
- 论坛支柱
TheMatrix 的博客 - 帖子: 9776
- 注册时间: 2022年 7月 26日 00:35
#1 提一个问题
举几个二元函数的例子 f:Z×Z --> Z,使得可以定义出具有结合律的二元运算 x#y = f(x,y),也就是(x#y)#z=x#(y#z)。
以下两个是显然的:
f(x,y)=x+y
f(x,y)=x*y
举几个其他的例子。
以下两个是显然的:
f(x,y)=x+y
f(x,y)=x*y
举几个其他的例子。
-
- 论坛支柱
TheMatrix 的博客 - 帖子: 9776
- 注册时间: 2022年 7月 26日 00:35
-
- 论坛支柱
- 帖子: 9214
- 注册时间: 2022年 7月 22日 17:25
- 昵称(选填): YWY(夜未央)
#3 Re: 提一个问题
f(x,y) = nx+ny, where n is an integer.
f(x,y) = xnyn, where n is a non-negative integer.
f(x,y) = xnyn, where n is a non-negative integer.
上次由 YWY 在 2024年 2月 17日 10:23,总共编辑 1 次。
持仓抄底锁利,你钱你定
看牛观猪喊熊,自娱自乐
股市变幻莫测,不作不死
赌途曲折无常,吃枣药丸
看牛观猪喊熊,自娱自乐
股市变幻莫测,不作不死
赌途曲折无常,吃枣药丸
-
- 论坛支柱
TheMatrix 的博客 - 帖子: 9776
- 注册时间: 2022年 7月 26日 00:35
-
- 知名作家
- 帖子: 1018
- 注册时间: 2022年 7月 25日 03:22
-
- 论坛支柱
TheMatrix 的博客 - 帖子: 9776
- 注册时间: 2022年 7月 26日 00:35
#6 Re: 提一个问题
确实。nx+ny, xnyn都不行。randomatrices 写了: ↑2024年 2月 17日 09:24 这俩个都不行吧?
n(nx+ny)+nz != nx+n(ny+nz) when n != 1
AND, OR, bitwise AND, bitwise OR 可以
bitwise AND OR可以。
整数怎么AND OR? 0=false, otherwise true?
-
- 知名作家
- 帖子: 1018
- 注册时间: 2022年 7月 25日 03:22
-
- 知名作家
- 帖子: 1018
- 注册时间: 2022年 7月 25日 03:22
-
- 论坛支柱
- 帖子: 9214
- 注册时间: 2022年 7月 22日 17:25
- 昵称(选填): YWY(夜未央)
#9 Re: 提一个问题
哈哈,我一觉醒来,冲澡时也发现了自己的错误,刚想上来纠正,却早已经被班上大牛们的火眼金睛发现了。randomatrices 写了: ↑2024年 2月 17日 09:24 这俩个都不行吧?
n(nx+ny)+nz != nx+n(ny+nz) when n != 1
AND, OR, bitwise AND, bitwise OR 可以
我冲澡时还发现了另一个(trivial的)结合律例子,就是f(x,y) = n where n is a constant。
持仓抄底锁利,你钱你定
看牛观猪喊熊,自娱自乐
股市变幻莫测,不作不死
赌途曲折无常,吃枣药丸
看牛观猪喊熊,自娱自乐
股市变幻莫测,不作不死
赌途曲折无常,吃枣药丸
-
- 论坛支柱
TheMatrix 的博客 - 帖子: 9776
- 注册时间: 2022年 7月 26日 00:35
#10 Re: 提一个问题
嗯。一个indicator function on Z,然后再logic function。特例通常可以泛化。。。randomatrices 写了: ↑2024年 2月 17日 10:19 最简单的就是0=false, otherwise true吧, 或者复杂一点 AND(isPrime(x), isPrime(y))
-
- 论坛支柱
- 帖子: 9214
- 注册时间: 2022年 7月 22日 17:25
- 昵称(选填): YWY(夜未央)
#11 Re: 提一个问题
还有就是
f(x,y) = min{x,y}
f(x,y) = max{x,y}
f(x,y) = gcd(x,y), where we agree gcd(0,0) = 0
这几个都满足交换律,但不是多项式。
上次由 YWY 在 2024年 2月 17日 10:35,总共编辑 1 次。
持仓抄底锁利,你钱你定
看牛观猪喊熊,自娱自乐
股市变幻莫测,不作不死
赌途曲折无常,吃枣药丸
看牛观猪喊熊,自娱自乐
股市变幻莫测,不作不死
赌途曲折无常,吃枣药丸
-
- 论坛支柱
TheMatrix 的博客 - 帖子: 9776
- 注册时间: 2022年 7月 26日 00:35
#12 Re: 提一个问题
对。这是polynomial。
-
- 论坛支柱
TheMatrix 的博客 - 帖子: 9776
- 注册时间: 2022年 7月 26日 00:35
-
- 知名作家
- 帖子: 1018
- 注册时间: 2022年 7月 25日 03:22
-
- 著名点评
- 帖子: 3315
- 注册时间: 2022年 7月 26日 16:46
- 昵称(选填): 令狐
#15 Re: 提一个问题
wikipedia上给了一些例子。要提醒的是,乘法不一定满足结合律,比如octonion:
https://en.wikipedia.org/wiki/Associati ... _operation
https://en.wikipedia.org/wiki/Associati ... _operation
-
- 论坛支柱
- 帖子: 9214
- 注册时间: 2022年 7月 22日 17:25
- 昵称(选填): YWY(夜未央)
#16 Re: 提一个问题
在你上面例子的基础上,可以取绝对值,依然满足结合律
f(x,y) = |x|
f(x,y) = |y|
持仓抄底锁利,你钱你定
看牛观猪喊熊,自娱自乐
股市变幻莫测,不作不死
赌途曲折无常,吃枣药丸
看牛观猪喊熊,自娱自乐
股市变幻莫测,不作不死
赌途曲折无常,吃枣药丸
-
- 论坛支柱
TheMatrix 的博客 - 帖子: 9776
- 注册时间: 2022年 7月 26日 00:35
#17 Re: 提一个问题
这里列的跟wiki上的差不多了。FoxMe 写了: ↑2024年 2月 17日 10:45 wikipedia上给了一些例子。要提醒的是,乘法不一定满足结合律,比如octonion:
https://en.wikipedia.org/wiki/Associati ... _operation
-
- 论坛支柱
TheMatrix 的博客 - 帖子: 9776
- 注册时间: 2022年 7月 26日 00:35
#18 Re: 提一个问题
再出一个题:构造一个3个元素的monoid,而且非group。
-
- 论坛支柱
- 帖子: 9214
- 注册时间: 2022年 7月 22日 17:25
- 昵称(选填): YWY(夜未央)
#19 Re: 提一个问题
Let A = {1, 2, ..., n} and let x # y = max{x, y} for x, y in A. Then A is a monoid (with n elements), but A is not a group for n > 1.
持仓抄底锁利,你钱你定
看牛观猪喊熊,自娱自乐
股市变幻莫测,不作不死
赌途曲折无常,吃枣药丸
看牛观猪喊熊,自娱自乐
股市变幻莫测,不作不死
赌途曲折无常,吃枣药丸
-
- 论坛支柱
TheMatrix 的博客 - 帖子: 9776
- 注册时间: 2022年 7月 26日 00:35