{"id":"2011.11767","title":"Arithmetic Expression Construction","authors":["Leo Alcock","Sualeh Asif","Jeffrey Bosboom","Josh Brunner","Charlotte Chen","Erik D. Demaine","Rogers Epstein","Adam Hesterberg","Lior Hirschfeld","William Hu","Jayson Lynch","Sarah Scheffler","Lillian Zhang"],"categories":["cs.CC"],"primary_category":"cs.CC","first_posted":"2020-11-23","updated":"2020-11-23","url":"https://arxiv.vip/abs/2011.11767","arxiv_url":"https://arxiv.org/abs/2011.11767","pdf_url":"https://arxiv.org/pdf/2011.11767","comment_count":0,"abstract":"When can n given numbers be combined using arithmetic operators from a given subset of {+, -, x, div} to obtain a given target number? We study three variations of this problem of Arithmetic Expression Construction: when the expression (1) is unconstrained; (2) has a specified pattern of parentheses and operators (and only the numbers need to be assigned to blanks); or (3) must match a specified ordering of the numbers (but the operators and parenthesization are free). For each of these variants, and many of the subsets of {+,-,x,div}, we prove the problem NP-complete, sometimes in the weak sense and sometimes in the strong sense. Most of these proofs make use of a \"rational function framework\" which proves equivalence of these problems for values in rational functions with values in positive integers.","arxiv_comments":"36 pages, 5 figures. Full version of paper accepted to 31st International Symposium on Algorithms and Computation (ISAAC 2020)","journal_ref":null,"doi":null,"license":"http://arxiv.org/licenses/nonexclusive-distrib/1.0/","versions":1,"discussion_url":"https://arxiv.vip/abs/2011.11767#discussion"}