Schur polynomial: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Piannucci
→‎Properties: After I spent a day or two confused by one of the formulas here, I figured out what I had failed to understand. This edit will hopefully save the next reader some headache!
en>Paxinum
 
Line 1: Line 1:
In [[computational complexity theory]], a numeric algorithm runs in '''pseudo-polynomial time''' if its [[Computation time|running time]] is [[polynomial]] in the ''numeric value'' of the input (which is exponential in the ''length'' of the input – its number of digits).
Myrtle Benny is how I'm known as and I really feel comfortable when individuals use the full name. Doing ceramics is what love doing. Since she was 18 she's been operating as a receptionist but her promotion by no means arrives. California is where I've usually been residing and I adore each working day living right here.<br><br>Also visit my website :: [http://Chatbook.biz/blogs/post/922 http://Chatbook.biz/blogs/post/922]
 
An [[NP-complete]] problem with known pseudo-polynomial time algorithms is called [[weakly NP-complete]].
An [[NP-complete]] problem is called [[strongly NP-complete]] if it is proven that it cannot be solved by a pseudo-polynomial time algorithm unless [[P=NP]]. The strong/weak kinds of [[NP-hard]]ness are defined analogously.
 
==Example==
Consider the problem of [[Primality test|testing whether a number ''n'' is prime]], by naively checking whether no number in {2, 3, …, <math>\sqrt{n}</math>} divides ''n'' evenly. This approach can take up to {{nowrap|<math>\sqrt{n}</math> − 1}} divisions, which is sub-linear in the ''value of n'' but exponential in the ''size of n'' (which is about <math>\log(n)</math>).  For example, a number ''n'' slightly less than {{nowrap|10,000,000,000}} would require up to approximately 100,000 divisions, even though the length of ''n'' is only 10 digits. Moreover one can easily write down an input (say, a 300-digit number) for which this algorithm is impractical. Since computational complexity measures difficulty with respect to the ''length'' of the (encoded) input, this naive algorithm is actually exponential. It ''is'', however, pseudo-polynomial time.
 
Contrast this algorithm with a true polynomial numeric algorithm — say, the straightforward algorithm for addition:  Adding two 9-digit numbers takes around 9 simple steps, and in general the algorithm is truly linear in the length of the input. Compared with the actual numbers being added (in the billions), the algorithm could be called "pseudo-logarithmic time", though such a term is not standard.  Thus, adding 300-digit numbers is not impractical.  Similarly, long division is quadratic: an ''m''-digit number can be divided by a ''n''-digit number in <math>O(mn)</math> steps (see [[Big O notation]].)
 
In the case of primality, it turns out there is a different algorithm for [[AKS primality test|testing whether ''n'' is prime]] (discovered in 2002) which runs in time <math>O((\log {n})^6)</math>.
 
Another example of a problem which can be generally only solved in pseudo-polynomial time is the [[Knapsack problem]] unless P=NP.
 
==Generalizing to non-numeric problems==
Although the notion of pseudo-polynomial time is used almost exclusively for numeric problems, the concept can be generalized:
The function ''m'' is pseudo-polynomial if
''m''(''n'') is no greater than a [[polynomial function]] of the [[problem size]] ''n'' and an additional property of the input, ''k''(''n'').  (Presumably, ''k'' is chosen to be something relevant to the problem.)
This makes numeric polynomial problems a special case by taking ''k'' to be the number of (binary) digits of the input.
 
The distinction between the value of a number and its length is one of encoding: if numeric inputs are always encoded in [[Unary numeral system|unary]], then ''pseudo-polynomial'' would coincide with ''polynomial''.
 
==See also==
* [[Strongly NP-complete]]
* [[Quasi-polynomial time]]
 
==References==
* M. R. Garey and D. S. Johnson. [[Computers and Intractability: A Guide to the Theory of NP-Completeness]]. W.H. Freeman and Company, 1979.
<references/>
 
[[Category:Analysis of algorithms]]
[[Category:Complexity classes]]
[[Category:Computational complexity theory]]
[[Category:Pseudo-polynomial time algorithms]]

Latest revision as of 12:02, 2 December 2014

Myrtle Benny is how I'm known as and I really feel comfortable when individuals use the full name. Doing ceramics is what love doing. Since she was 18 she's been operating as a receptionist but her promotion by no means arrives. California is where I've usually been residing and I adore each working day living right here.

Also visit my website :: http://Chatbook.biz/blogs/post/922