CS“大词”是什么?表示相同动作的术语总是具有相同的效果

发布于 2024-08-18 14:18:54 字数 213 浏览 5 评论 0原文

我没有想到一个计算机科学术语,其中一个以“-icity”结尾的单词。

这意味着类似给定的操作将始终产生相同的结果,即不会有任何滞后,或者该操作不会改变系统的功能......

敲响警钟,有人吗?谢谢。

对标签表示歉意,我只是将其标记为 Java b/c 我在学校的 Java 课程中学到了这一点,我认为人群往往有更多的 CS 背景......

There's a computer science term for this that escapes my head, one of those words that ends with "-icity".

It means something like a given action will always produce the same result, IE there won't be any hysteresis, or the action will not alter the functioning of the system...

Ring a bell, anyone? Thanks.

Apologies for the tagging, I'm only tagging it Java b/c I learned about this in a Java class back in school and I figure that crowd tends to have more CS background...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(14

甜中书 2024-08-25 14:18:55

这可能意味着两个不同的事情:

确定性 - 意味着给定相同的初始状态,相同的操作(具有完全相同的数据)将始终产生相同的结果状态(和可选输出)。 - http://en.wikipedia.org/wiki/Deterministic_algorithm

即相同的操作具有相同的效果 - 假设您从同一系统中的同一位置开始。 (没有什么随机的,没有任何从外部输入的东西会影响结果......)

幂等 - 意味着将函数应用于一个值一次,例如 f(x) = v 会产生与以下相同的结果多次应用该函数,例如 f(f(f(x))) = v - http://en。 wikipedia.org/wiki/Idempotence

即,在给定相同初始值的情况下,一个或多个函数应用程序会产生相同的值

This could mean two different things:

deterministic - meaning that given the same initial state, the same operation (with exactly the same data) will always produce the same resulting state (and optional output.) - http://en.wikipedia.org/wiki/Deterministic_algorithm

i.e. same action has the same effect - assuming you start from the same place in the same system. (Nothing random about it, nothing fed in from the outside that could effect the result...)

idempotent - meaning applying a function to a value once e.g. f(x) = v produces the same result as applying the function multiple times e.g. f(f(f(x))) = v - http://en.wikipedia.org/wiki/Idempotence

i.e. one or more function applications yields the same value given the same initial value

小帐篷 2024-08-25 14:18:55

你的意思是幂等

you mean idempotent ??

穿透光 2024-08-25 14:18:55

引用透明度也在一些计算机科学圈子中使用。

Referential transparency is also used in some CS circles.

千寻… 2024-08-25 14:18:55

确定性 ,.,-=

deterministic ,.,-=

初吻给了烟 2024-08-25 14:18:55

您在寻找不变吗?

http://en.wikipedia.org/wiki/Invariant_%28computer_science%29

在计算机科学中,谓词是
称为序​​列的不变量
如果谓词总是进行操作
在序列末尾求值
与开始前相同的值
序列。

Are you looking for invariant?

http://en.wikipedia.org/wiki/Invariant_%28computer_science%29

In computer science, a predicate is
called an invariant to a sequence of
operations if the predicate always
evaluates at the end of the sequence
to the same value as before starting
the sequence.

为你拒绝所有暧昧 2024-08-25 14:18:55

无副作用?

side effect-free?

轮廓§ 2024-08-25 14:18:55

在数学中,如果多个应用程序不更改结果,则函数“f”幂等

In math, a function 'f' is idempotent if multiple applications do not change the result.

颜漓半夏 2024-08-25 14:18:55

你的意思是幂等性?

you mean idempotence?

ま昔日黯然 2024-08-25 14:18:55

或者该操作不会改变系统的功能...

您在寻找“幂等性”吗?

or the action will not alter the functioning of the system...

Are you looking for ‘idempotence’?

知足的幸福 2024-08-25 14:18:55

你的问题的“以 -icity 结尾”部分让我觉得你可能正在寻找单调性< /em>,即使它与该词的描述/定义完全匹配。来自维基百科文章:

在数学中,单调函数(或单调函数)是保留给定顺序的函数。这个概念首先出现在微积分中,后来被推广到更抽象的阶论设置。

在下面的插图中(也借自维基百科文章)绘制了三个函数:

A:
    
B:
    
C:

A 和 B 都是单调的(递增并分别递减),而 C 不是单调的。

The "ends with -icity" part of your question makes me think you might be looking for monotonicity, even though it does not quite match description/definition of the word. From the Wikipedia article:

In mathematics, a monotonic function (or monotone function) is a function which preserves the given order. This concept first arose in calculus, and was later generalized to the more abstract setting of order theory.

In the following illustrations (also borrowed from the Wikipedia article) three functions are drawn:

A:
    
B:
    
C:

A and B and both monotonic (increasing and decreasing respectively), while C is not monotonic.

请叫√我孤独 2024-08-25 14:18:55

你的意思是原子代码块?

You mean an atomic block of code?

那一片橙海, 2024-08-25 14:18:55

ACID 中的 A。

原子性——规定数据库修改必须遵循“全有或全无”的规则。每笔交易都被认为是“原子的”。如果事务的一部分失败,则整个事务都会失败。

The A in ACID.

Atomicity - states that database modifications must follow an “all or nothing” rule. Each transaction is said to be “atomic.” If one part of the transaction fails, the entire transaction fails.

梦中楼上月下 2024-08-25 14:18:55

听起来您所描述的将是一个无记忆函数。虽然术语无记忆通常用于随机分布,但我不太记得它是否有一个等价的编程语言......

It sounds like what you're describing would be a memoryless function. Although the term memorylessness is usually used for stochastic distributions, I don't quite remember if it has a programming equivalent...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文