| Authors: | Stošić, Ivan Ranđelović, Žarko Damjanović, Ivan |
Affiliations: | Mathematics Mathematical Institute of the Serbian Academy of Sciences and Arts |
Title: | On the number of F-arithmetic expressions in n distinct variables | Journal: | Discrete Applied Mathematics | Volume: | 386 | First page: | 279 | Last page: | 292 | Issue Date: | 2026 | Rank: | M22 | ISSN: | 0166-218X | DOI: | 10.1016/j.dam.2026.02.011 | Abstract: | How many arithmetic expressions are there in n distinct variables? In this paper, we provide a Θ(n2) algorithm for computing this number for arithmetic expressions over an arbitrary field F. We consider several cases of this problem with various restrictions on the allowed operations. An expression tree is an ordered rooted tree whose internal nodes represent operations to be performed, while its leaves correspond to formal variables from a set X. We view any arithmetic expression as an element of F(X) that is obtained by evaluating an expression tree. |
Keywords: | Arithmetic expressions | Arithmetic operations | Expression tree | Number of expressions | Publisher: | Elsevier |
Show full item record
Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.