What is a computational problem?

Stephen M. Walker II · Co-Founder / CEO

What is a computational problem?

In computer science, a computational problem is a formal specification of a relationship between inputs and acceptable outputs — for example, "given a graph and two nodes, is there a path between them?" It is not itself an algorithm; it's the question an algorithm is judged against. Computational problems are typically classified along three axes:

  • Computability — whether any algorithm can solve the problem at all, even given unlimited time and memory. Some well-defined problems, such as the halting problem, are provably uncomputable.
  • Decidability — whether an algorithm can always produce a correct yes/no answer for every input in finite time. Decidable problems admit such an algorithm; undecidable problems do not.
  • Computational complexity — how the time or memory an algorithm needs grows with input size, used to sort solvable problems into complexity classes such as P (solvable in polynomial time) and NP (solutions verifiable in polynomial time).

Computational problems are commonly grouped by the shape of their expected output: decision problems (a yes/no answer), search problems (find a solution satisfying given constraints), optimization problems (find the best solution among many valid ones), and counting problems (how many solutions exist).

What is a computational problem in AI?

AI research borrows this formal framework but applies it to tasks like optimization, decision-making, pattern recognition, and knowledge representation, and then layers on practical constraints beyond the classical theory: high-dimensional or noisy data, nonlinear relationships between variables, environments that change over time, and finite compute and memory. So an AI "computational problem" is usually not just a question of computability or worst-case complexity class, but of finding an algorithm that performs well enough, fast enough, on real data.

Common computational problems in AI include:

  1. Exploration vs. exploitation — In reinforcement learning, an agent must balance trying new actions that might pay off against repeating actions already known to work. This trade-off is hardest to tune when the environment is stochastic or only partially observable.
  2. Generalization and transfer learning — A model trained on a limited set of examples must still perform well on inputs it hasn't seen, and ideally carry learned patterns over to related tasks or domains.
  3. Scalability and computational efficiency — Many algorithms scale poorly with input size, becoming impractical on large or high-dimensional datasets. This drives techniques like parallel and distributed computing and approximate methods such as stochastic gradient descent.
  4. Robustness and fault tolerance — Safety-critical or time-sensitive systems need to detect failures, recover from errors, and degrade gracefully rather than fail outright when conditions change unexpectedly.

Addressing these problems — through new algorithms, architectures, and methods that let machines reason, learn, and act under uncertainty — is a central and ongoing theme in AI research.

What is the problem that AI is trying to solve?

AI aims to build systems that perform tasks normally requiring human cognition, perception, or judgment — for example, language processing, image recognition, speech synthesis, game playing, robot control, and expert consultation.

What are the inputs and outputs of an AI system?

Inputs and outputs depend on the application. A natural language processing system might take raw text or speech as input and produce grammatically correct or semantically meaningful text as output. A computer vision system might take image pixels or video frames as input and produce object detection labels, segmentation maps, or action classifications as output.

What algorithms and data structures does AI use to solve the problem?

AI systems draw on a range of techniques — rule-based systems, decision trees, neural networks, clustering algorithms, genetic algorithms, and reinforcement learning agents — tailored to a task by incorporating domain knowledge or patterns learned from historical data.

What heuristics does AI use to solve the problem?

Heuristics give AI systems guiding rules for searching large problem spaces, evaluating candidate solutions, or making decisions with limited information or compute. They can be domain-specific, such as Manhattan distance for pathfinding, or problem-specific, such as alpha-beta pruning for game tree search, and are often combined with sampling, approximation, or learning methods to improve performance.

More terms

Continue exploring the glossary.

Learn how teams define, measure, and improve LLM systems.

Glossary term

What is Language Understanding in AI?

Language Understanding in AI refers to the ability of a machine to understand and interpret human language in a valuable way. It involves Natural Language Processing (NLP) and other AI techniques to enable machines to understand, interpret, and generate human language. This capability allows AI to interact with humans in a more natural and intuitive way, enabling more efficient and effective human-machine interactions.
Read term

Glossary term

What is commonsense knowledge?

Commonsense knowledge refers to the basic, self-evident knowledge that most people possess about the world around them. This includes understanding of everyday objects, events, and situations, as well as the ability to make sense of and interact with the world. Examples of commonsense knowledge include knowing that you should not enter an elevator until others have exited, or that if you stick a pin into a carrot, it makes a hole in the carrot, not the pin.
Read term

It's time to build

Collaborate with your team on reliable Generative AI features.
Want expert guidance? Book a 1:1 onboarding session from your dashboard.

Talk to sales