Some questions have only two answers.
Some questions only have two answers.
Imagine asking if a number is prime. You can follow steps to find the answer. This is called a decision procedure.
Some problems are easy to solve. For example, you can use long division. This helps you know if numbers divide evenly.
But some questions are too hard. We call these undecidable problems. No set of steps can solve them.
Math helps us study these hard questions.
Some questions only have two possible answers. You can answer with a YES or a NO. These are called decision problems.
Think about numbers. You might ask if a number is prime. A prime number is a special kind of number. You can find the answer by following set steps. This set of steps is called a decision procedure. If a procedure exists, the problem is decidable. One example is long division. You can use it to see if one number divides another evenly. This helps you give a clear YES or NO.
Some problems are much harder. We call these undecidable problems. This means no set of steps can ever solve them. The halting problem is a famous undecidable problem.
Math experts also study how hard these problems are. They look at how many resources a computer needs to solve them. This study is called computational complexity theory. Some problems are even linked together. If you can solve one, you can solve the other. These are called complete problems. They help us group hard problems into sets. This helps us understand the limits of what we can know.
Imagine you are asking a question that only has two possible answers. You might ask if a number is prime or if one number divides another evenly. These are called decision problems. In these problems, every input leads to a simple YES or NO.
A decision problem is called decidable if there is a way to solve it. This way is called a decision procedure. It is a set of steps that always gives the right answer. For example, long division is a decision procedure. You can use it to see if x evenly divides y. If the answer is correct, the problem is decidable.
Some problems are much more difficult. These are called undecidable problems. This means it is impossible to create an algorithm to solve them. An algorithm is just a set of steps or rules. The halting problem is a famous example of an undecidable problem.
Math experts use different fields to study these problems. One field is computational complexity theory. It looks at how hard a problem is to solve. It measures the resources a computer needs to find the answer. Another field is recursion theory. It studies undecidable problems using something called Turing degree. This measures how hard a problem is to compute.
Decision problems are related to other kinds of math tasks. Function problems are different because they have more than two answers. For example, you might ask what x divided by y is. This gives a specific number instead of just YES or NO.
A decision problem is a specific type of computational question. Every input for a decision problem results in one of two possible outputs: YES or NO.
To solve these problems, we use a decision procedure. This is an algorithmic method that provides the correct YES or NO answer for every input. If such a procedure exists, the decision problem is called decidable. A problem is also called effectively solvable if the set of YES inputs is a recursive set. For example, asking if one number x evenly divides another number y is a decidable problem. You can use long division as a decision procedure to find the answer. Another classic example is determining if a natural number is prime. You can decide this by testing every possible nontrivial factor. Even if a faster method exists, the ability to test factors proves it is decidable.
Not all problems can be solved by an algorithm. If no decision procedure can ever be created, the problem is undecidable. This means it is impossible to solve the problem, no matter how much time or power you have. The halting problem is one of the most famous undecidable problems in mathematics. Some problems are also called partially decidable or semidecidable. These occur when the set of YES inputs is a recursively enumerable set. For these problems, you might find a YES answer, but you cannot always confirm a NO answer. To study these unsolvable tasks, researchers use recursion theory. This field categorizes undecidable problems by their Turing degree, which measures their inherent noncomputability.
Computer scientists also group decidable problems by their difficulty. This is the focus of computational complexity theory. Difficulty is measured by the computational resources required by the most efficient algorithm. Some problems are more central to their groups than others. We call a problem "complete" if it belongs to a specific set and can represent every other problem in that set. This is done through processes like many-one reducibility or polynomial-time reductions. For instance, the Boolean satisfiability problem is complete for the class NP. Using complete problems helps scientists characterize entire classes of complexity.
Decision problems are closely linked to function problems. While decision problems only give YES or NO, function problems have more complex answers. A function problem asks for a specific value, such as asking what x divided by y equals. Every function problem can be transformed into a decision problem. You can do this by looking at the graph of the function. The graph is the set of all pairs (x, y) where the function f(x) equals y. If this new decision problem is effectively solvable, the original function problem is also solvable. However, this transformation does not always preserve the same level of computational complexity.
Another related area is optimization problems. These do not look for a simple YES or NO, but rather the best possible answer. Examples include the traveling salesman problem or questions in linear programming. In the traveling salesman problem, the goal is to find a tour with minimal weight. You can turn this optimization task into a decision problem to make it easier to study. You might ask if a graph has any tour with a weight less than a specific number N. By repeatedly answering this decision question, you can eventually find the minimal weight. This allows researchers to use the well-developed theory of decision problems to solve complex real-world tasks.
In summary, decision problems serve as the foundation for much of modern computational theory. They allow us to map the boundaries between what is possible and what is impossible. By converting complex functions and optimization tasks into simple YES or NO questions, we can measure exactly how much work a computer must do. Whether we are studying the limits of logic through undecidability or the speed of algorithms through complexity, decision problems provide the essential framework for understanding computation.
🖼️ Images & Media (1)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.