Counting the number of inequivalent arithmetic expressions on $n$ variables

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Stošić, Ivan, Damnjanović, Ivan, Ranđelović, Žarko
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911392593870848
author Stošić, Ivan
Damnjanović, Ivan
Ranđelović, Žarko
author_facet Stošić, Ivan
Damnjanović, Ivan
Ranđelović, Žarko
contents 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 $Θ(n^2)$ algorithm that computes the number of inequivalent arithmetic expressions on $n$ distinct variables.
format Preprint
id arxiv_https___arxiv_org_abs_2405_13928
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Counting the number of inequivalent arithmetic expressions on $n$ variables
Stošić, Ivan
Damnjanović, Ivan
Ranđelović, Žarko
Discrete Mathematics
Combinatorics
Number Theory
68R05, 05A15, 05A19, 11C08
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 $Θ(n^2)$ algorithm that computes the number of inequivalent arithmetic expressions on $n$ distinct variables.
title Counting the number of inequivalent arithmetic expressions on $n$ variables
topic Discrete Mathematics
Combinatorics
Number Theory
68R05, 05A15, 05A19, 11C08
url https://arxiv.org/abs/2405.13928