Computational problem

In theoretical computer science, a computational problem is one that asks for a solution in terms of an algorithm. For example, the problem of factoring

"Given a positive integer n, find a nontrivial prime factor of n."

is a computational problem that has a solution, as there are many known integer factorization algorithms. A computational problem can be viewed as a set of instances or cases together with a, possibly empty, set of solutions for every instance/case. The question then is, whether there exists an algorithm that maps instances to solutions. For example, in the factoring problem, the instances are the integers n, and solutions are prime numbers p that are the nontrivial prime factors of n. An example of a computational problem without a solution is the Halting problem. Computational problems are one of the main objects of study in theoretical computer science.

One is often interested not only in mere existence of an algorithm, but also how efficient the algorithm can be. The field of computational complexity theory addresses such questions by determining the amount of resources (computational complexity) solving a given problem will require, and explain why some problems are intractable or undecidable. Solvable computational problems belong to complexity classes that define broadly the resources (e.g. time, space/memory, energy, circuit depth) it takes to compute (solve) them with various abstract machines. For example, the complexity classes

  • P, problems that consume polynomial time for deterministic classical machines
  • BPP, problems that consume polynomial time for probabilistic classical machines (e.g. computers with random number generators)
  • BQP, problems that consume polynomial time for probabilistic quantum machines.

Both instances and solutions are represented by binary strings, namely elements of {0, 1}*.[a] For example, natural numbers are usually represented as binary strings using binary encoding. This is important since the complexity is expressed as a function of the length of the input representation.

Types

Decision problem

A decision problem is a computational problem where the answer for every instance is either yes or no. An example of a decision problem is primality testing:

"Given a positive integer n, determine if n is prime."

A decision problem is typically represented as the set of all instances for which the answer is yes. For example, primality testing can be represented as the infinite set

L = {2, 3, 5, 7, 11, ...}

Search problem

In a search problem, the answers can be arbitrary strings. For example, factoring is a search problem where the instances are (string representations of) positive integers and the solutions are (string representations of) collections of primes.

A search problem is represented as a relation consisting of all the instance-solution pairs, called a search relation. For example, factoring can be represented as the relation

R = {(4, 2), (6, 2), (6, 3), (8, 2), (9, 3), (10, 2), (10, 5)...}

which consist of all pairs of numbers (n, p), where p is a prime factor of n.

Counting problem

A counting problem asks for the number of solutions to a given search problem. For example, a counting problem associated with factoring is

"Given a positive integer n, count the number of nontrivial prime factors of n."

A counting problem can be represented by a function f from {0, 1}* to the nonnegative integers. For a search relation R, the counting problem associated to R is the function

fR(x) = |{y: R(x, y) }|.

Optimization problem

An optimization problem asks for finding a "best possible" solution among the set of all possible solutions to a search problem. One example is the maximum independent set problem:

"Given a graph G, find an independent set of G of maximum size."

Optimization problems are represented by their objective function and their constraints.

Function problem

In a function problem a single output (of a total function) is expected for every input, but the output is more complex than that of a decision problem, that is, it isn't just "yes" or "no". One of the most famous examples is the traveling salesman problem:

"Given a list of cities and the distances between each pair of cities, find the shortest possible route that visits each city exactly once and returns to the origin city."

It is an NP-hard problem in combinatorial optimization, important in operations research and theoretical computer science.

Promise problem

In computational complexity theory, it is usually implicitly assumed that any string in {0, 1}* represents an instance of the computational problem in question. However, sometimes not all strings {0, 1}* represent valid instances, and one specifies a proper subset of {0, 1}* as the set of "valid instances". Computational problems of this type are called promise problems.

The following is an example of a (decision) promise problem:

"Given a graph G, determine if every independent set in G has size at most 5, or G has an independent set of size at least 10."

Here, the valid instances are those graphs whose maximum independent set size is either at most 5 or at least 10.

Decision promise problems are usually represented as pairs of disjoint subsets (Lyes, Lno) of {0, 1}*. The valid instances are those in LyesLno. Lyes and Lno represent the instances whose answer is yes and no, respectively.

Promise problems play an important role in several areas of computational complexity, including hardness of approximation, property testing, and interactive proof systems.

See also

Notes

  1. ^ See regular expressions for the notation used

References

  • Even, Shimon; Selman, Alan L.; Yacobi, Yacov (1984), "The complexity of promise problems with applications to public-key cryptography", Information and Control, 61 (2): 159–173, doi:10.1016/S0019-9958(84)80056-X.
  • Goldreich, Oded (2008), Computational Complexity: A Conceptual Perspective, Cambridge University Press, ISBN 978-0-521-88473-0.
  • Goldreich, Oded; Wigderson, Avi (2008), "IV.20 Computational Complexity", in Gowers, Timothy; Barrow-Green, June; Leader, Imre (eds.), The Princeton Companion to Mathematics, Princeton University Press, pp. 575–604, ISBN 978-0-691-11880-2.

Read other articles:

Planned Chinese lunar sample-return mission Chang'e 6Chang'e-5/6 spacecraft full-stack full-scale mockupMission typeSurface sample returnOperatorCNSAMission duration~53 days Spacecraft propertiesManufacturerCASTLaunch mass8,200 kg (18,100 lb)[1] Start of missionLaunch dateMay 2024 (expected) [2]RocketLong March 5Launch siteWenchang Moon landerLanding siteSouthern edge of Apollo Basin43°00′S 154°00′W / 43.0°S 154.0°W / -43.0; -154.0[...

 

 

Artery of bulb of penisThe deeper branches of the internal pudendal artery (artery of bulb of penis labeled as artery of urethral bulb)Diagram of the arteries of the penisDetailsSourceInternal pudendal arteryVeinVein of bulb of penisSuppliesBulb of penisIdentifiersLatinarteria bulbi penis, arteria bulbi urethraeTA98A12.2.15.043MTA24347FMA20864Anatomical terminology[edit on Wikidata] The artery of bulb of penis (artery of the urethral bulb or bulbourethral artery) is a short artery of larg...

 

 

Wall of tissue separating ventricles of human heart This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Interventricular septum – news · newspapers · books · scholar · JSTOR (May 2015) (Learn how and when to remove this template message) Interventricular septumSection of the heart showing the ventricular septum....

Austronesian language of Ouvéa, New Caledonia IaaiHwen iaaiRegionOuvéa Island, New CaledoniaNative speakers4,100 (2009 census)[1]Language familyAustronesian Malayo-PolynesianOceanicSouthern OceanicNew Caledonian – LoyaltiesLoyalty IslandsIaaiLanguage codesISO 639-3iaiGlottologiaai1238Iaai is not endangered according to the classification system of the UNESCO Atlas of the World's Languages in DangerThis article contains IPA phonetic symbols. Without proper rendering support, y...

 

 

Pour les articles homonymes, voir Onšov. Cet article est une ébauche concernant une localité tchèque. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Onšov Administration Pays Tchéquie Région Moravie-du-Sud District Znojmo Région historique Moravie Maire Ivan Oujezdský Code postal 671 02 Démographie Population 73 hab. (2020) Densité 13 hab./km2 Géographie Coordonnées 48° 54′ 3...

 

 

1st century AD Roman geographer De situ orbis redirects here. For the Carolingian treatise, see Anonymus Leidensis. Reconstruction of Pomponius Mela's world map by Konrad Miller [de] (1898) Pomponius Mela, who wrote around AD 43, was the earliest known Roman geographer. He was born in Tingentera (now Algeciras) and died c. AD 45. His short work (De situ orbis libri III.) remained in use nearly to the year 1500.[1] It occupies less than one hundred pages of ordinary p...

Return to SenderBerkas:ElvisPresleyReturnToSender.pngLagu oleh Elvis Presleydari album Girls! Girls! Girls!Sisi-BWhere Do You Come FromDirilis5 September 1962Direkam27 Maret 1962, Radio Recorders, Hollywood, CaliforniaGenreRhythm and blues[1]Durasi2:09LabelRCA Victor[2]Pencipta Winfield Scott Otis Blackwell[2] ProduserSteve Sholes dan Chet Atkins[2]Video musikReturn to Sender (hanya audio) di YouTube Return to Sender adalah sebuah singel hit tahun 1962 rekaman ...

 

 

Pour les articles homonymes, voir Yūbari. Yūbari Croiseur Yubari Type Croiseur léger Histoire A servi dans Commanditaire Marine impériale japonaise Chantier naval Arsenal naval de Sasebo Japon Commandé octobre 1921 Quille posée 5 juin 1922 Lancement 5 mars 1923 Armé 23 juillet 1923 Statut coulé le 28 avril 1944 Équipage Équipage 328 Caractéristiques techniques Longueur 138,9 m Maître-bau 12,04 m Tirant d'eau 3,58 m Déplacement 3 387 tonnes Port en lourd 4 400 tonnes Propulsion 3...

 

 

Star in the constellation Cygnus V1500 Cygni Nova Cygni 1975 (center), photographed at 07:00 UT August 30, 1975. Also shown are 59 Cygni (magnitude 4.8), 60 Cygni (magnitude 5.4) and 63 Cygni (magnitude 4.5) Observation dataEpoch J2000.0      Equinox J2000.0 Constellation Cygnus Right ascension 21h 11m 36.5810s[1] Declination +48° 09′ 01.952″[1] Apparent magnitude (V) 1.69 to <21[2] Characteristics V...

For the demolished station actually at Pennsylvania Avenue and Pitkin Avenue, see Pennsylvania Avenue (BMT Fulton Street Line). New York City Subway station in Brooklyn New York City Subway station in Brooklyn, New York Pennsylvania Avenue  New York City Subway station (rapid transit)A Manhattan-bound 3 train leaving the station before renovationStation statisticsAddressPennsylvania Avenue & Livonia AvenueBrooklyn, NYBoroughBrooklynLocaleEast New YorkCoordinates40°39′53″N 7...

 

 

Fictional character Comics character Sam LaneSam Lane as seen in Superman: Secret Origin #5.Art by Gary Frank.Publication informationPublisherDC ComicsFirst appearanceSuperman's Girl Friend, Lois Lane #13 (November 1959)Created byRobert BernsteinKurt SchaffenbergerIn-story informationFull nameSamuel LaneTeam affiliationsUnited States ArmyUnited States Senate Samuel Lane is a fictional character appearing in American comic books published by DC Comics.[1] He is the father of Lucy Lane ...

 

 

Downloading NancyPoster promosi filmSutradaraJohan RenckProduserJason EssexCole PayneIgor KovacevichDavid MooreDitulis olehPamela CumingLee RossPemeranMaria BelloJason PatricRufus SewellAmy BrennemanPenata musikKrister LinderSinematograferChristopher DoylePenyuntingJohan SöderbergTanggal rilis 21 Januari 2008 (2008-01-21) (Festival Film Sundance) Durasi102 menitNegaraAmerika SerikatBahasaInggrisPendapatankotor$20,000[1] Downloading Nancy adalah film drama tahun 2008 ya...

This article is about the city in the Netherlands. For the Italian rolling stock manufacturer, see Breda Costruzioni Ferroviarie. For other uses, see Breda (disambiguation).City and municipality in North Brabant, NetherlandsBredaCity and municipalityDocks in the city centre FlagCoat of armsLocation in North BrabantBredaLocation within the NetherlandsShow map of NetherlandsBredaLocation within EuropeShow map of EuropeCoordinates: 51°35′20″N 04°46′33″E / 51.58889°N 4....

 

 

Tendency to adopt group beliefs and behaviors Herd mentality is the tendency for people’s behavior or beliefs to conform to those of the group they belong to. The concept of herd mentality has been studied and analyzed from different perspectives, including biology, psychology and sociology. This psychological phenomenon can have profound impacts on human behavior. Social psychologists study the related topics of collective intelligence, crowd wisdom, groupthink, and deindividuation. Histor...

 

 

This article's lead section may be too short to adequately summarize the key points. Please consider expanding the lead to provide an accessible overview of all important aspects of the article. (August 2011) 71st New York Infantry RegimentCoat of armsActive1850–presentCountry United StatesBranchNew York Army National GuardTypeInfantrySizeBattalionGarrison/HQNew York CityNickname(s)The American GuardMotto(s)Pro aris et pro focisMarchThe Gallant Seventy-FirstEngagements American Civil W...

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: 1656 – news · newspapers · books · scholar · JSTOR (March 2022) (Learn how and when to remove this message) Calendar year Millennium: 2nd millennium Centuries: 16th century 17th century 18th century Decades: 1630s 1640s 1650s 1660s 1670s Ye...

 

 

Property of a binary operation Not to be confused with Alternatization. This article may be too technical for most readers to understand. Please help improve it to make it understandable to non-experts, without removing the technical details. (November 2021) (Learn how and when to remove this message) This article relies largely or entirely on a single source. Relevant discussion may be found on the talk page. Please help improve this article by introducing citations to additional sources.Fin...

 

 

العلاقات الجنوب سودانية الغرينادية جنوب السودان غرينادا   جنوب السودان   غرينادا تعديل مصدري - تعديل   العلاقات الجنوب سودانية الغرينادية هي العلاقات الثنائية التي تجمع بين جنوب السودان وغرينادا.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عا...

Forged Roman imperial decree This article is about the forged imperial decree. For the painting inspired by the decree, see The Donation of Constantine (painting). A 13th-century fresco of Sylvester I and Constantine the Great, showing the purported Donation (Santi Quattro Coronati, Rome) A 9th-century copy of the Donation of Constantine as part of the False Decretals by Pseudo-Isidore. The heading in red reads Epistola Constantini Imperator ad Silvestrum Papam, or Letter of Emperor Constanti...

 

 

Wind instrument controlled by keyboard This article is about organs that produce sound by driving wind through various pipes. For an overview of related instruments, see Organ (music) § Overview. Pipe organPipe organ in the collegiate church of St. Michael in Neunkirchen am BrandKeyboard instrumentOther namesOrgan, Church organ (used only for organs in houses of worship)Classification AerophoneHornbostel–Sachs classification 422.222.11 (flue pipes) 422.122 (beating reed pipes) 422.132...