计算机科学 > 离散数学
[提交于 2024年5月22日]
标题:Counting the number of inequivalent arithmetic expressions on $n$ variables
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:An expression is any mathematical formula that contains certain formal variables and operations to be executed in a specified order. In computer science, it is usually convenient to represent each expression in the form of an expression tree. Here, we consider only arithmetic expressions, i.e., those that contain only the four standard arithmetic operations: addition, subtraction, multiplication and division, alongside additive inversion. We first provide certain theoretical results concerning the equivalence of such expressions and then disclose a $\Theta(n^2)$ algorithm that computes the number of inequivalent arithmetic expressions on $n$ distinct variables.
提交历史
来自:Ivan Damnjanović[v1] 2024年5月22日 星期三 18:58:23 UTC