Counting the number of inequivalent arithmetic expressions on n 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.
Authors
- Žarko Ranđelović (ORCID: https://orcid.org/0000-0002-0893-0347)
- Ivan Damnjanović (ORCID: https://orcid.org/0000-0001-7329-1759)
- Ivan Stošić (ORCID: https://orcid.org/0009-0008-2248-5447)
Institutions
- University of Primorska (SI)
- University of Nis (RS)
- University of Cambridge (GB)
- London Mathematical Laboratory (GB)
Publication Details
- Journal
- Filomat
- Published
- 2025-01-01
- DOI
- https://doi.org/10.2298/fil2503949s
- Citations
- 1
- Primary Topic
- Numerical Methods and Algorithms
- Type
- article
- Field-Weighted Citation Impact
- 1.50