Insights Blog
-- Browse All Articles --
Physics Articles
Physics Tutorials
Physics Guides
Physics FAQ
Math Articles
Math Tutorials
Math Guides
Math FAQ
Education Articles
Education Guides
Bio/Chem Articles
Technology Guides
Computer Science Tutorials
Forums
General Math
Calculus
Differential Equations
Topology and Analysis
Linear and Abstract Algebra
Differential Geometry
Set Theory, Logic, Probability, Statistics
MATLAB, Maple, Mathematica, LaTeX
Trending
Featured Threads
Log in
Register
What's new
Search
Search
Search titles only
By:
General Math
Calculus
Differential Equations
Topology and Analysis
Linear and Abstract Algebra
Differential Geometry
Set Theory, Logic, Probability, Statistics
MATLAB, Maple, Mathematica, LaTeX
Menu
Log in
Register
Navigation
More options
Contact us
Close Menu
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Mathematics
Linear and Abstract Algebra
Finding integer numbers using basic operations
Reply to thread
Message
[QUOTE="seezeey, post: 3117792, member: 306304"] Hello everyone! I am trying to construct an algorithm for the following problem and was wondering if there is any existing body of knowledge on this. Please forgive me if this is inappropriate (or ridiculous) but I am totally foreign to number theory. It goes like this: You are given n integers and allowed to use four basic operations. You are also given another integer as the target. You are required to find the target using the given numbers. The only rule is that you can use each number (given or derived) only once. Is there an efficient algorithm to check if there exists a solution to any given instance of this problem? For example: given numbers: 1 2 3 4 target: 17 a valid solution would be (4 + 1) * 3 + 2 = 17 an invalid solution would be (4 + 4) * 2 + 1 = 17, since 4 is used twice. My solution is practically a brute-force approach with pruning and it is subject to state-explosion. Thanks in advance... --seezeey [/QUOTE]
Insert quotes…
Post reply
Forums
Mathematics
Linear and Abstract Algebra
Finding integer numbers using basic operations
Back
Top