Computational problem

From Wikipedia, the free encyclopedia

In theoretical computer science, a computational problem is a mathematical object representing a question that computers might want to solve. For example, "given any number x, determine whether x is prime" is a computational problem. Computational problems are one of the main objects of study in theoretical computer science, because nearly any task one would want to accomplish is an example of a computational problem. In the field of algorithms, we study methods of solving computational problems; in the complementary field of computational complexity theory, we organize computational problems based on how difficult they are to solve.

A computational problem encodes a general problem, independent of its specific input. A problem with a specific set of inputs is called an instance. For example, "Given any two numbers x and y, find the sum of x and y" is a computational problem. A specific instance of that computational problem would be "What is the sum of 13 and 28?".


Computational problems are organized in many different ways. They can be organized by how they are defined, and by how many computational resources are needed to compute an answer. Computational problems that intuitively look very similar can vary wildly in the amount of resources needed to compute them, and some computational problems are noncomputable, meaning that no possible algorithm could solve every instance.

A computational problem which only returns a yes-or-no answer is called a decision problem. Examples of decision problems include "given an integer n, determine whether n is prime" and "given two numbers x and y, determine whether x evenly divides y". Decision problems are often used in computational complexity theory, because they are easier to study than other problems.

Computational problems that are not restricted to yes-or-no answers are called function problems. Examples of function problems include "given an integer n, list the prime factorization of n" and "given two numbers x and y, output x divided by y".

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.