Answers are grounded in this paper and cite their sources.
Theoretical results reveal an efficient algorithm for computing inequivalent expressions with distinct variables.
An expression is any mathematical formula that contains certain formal variables and opera-tions 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 ?(n2) algorithm that computes the number of inequivalent arithmetic expressions on n distinct variables.
No takes yet. Share an insight, caveat, or question.
Stošić et al. (2025) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: