Re: Not constructive proof of existing of an algorithm
- From: Roberto Bagnara <bagnara@xxxxxxxxxxx>
- Date: Mon, 25 Apr 2005 06:16:09 GMT
Iron Bone wrote:
Do you know a not constructive proof of existing of an algorithm ( polynomial time algorithm , ...).
Consider the function
/ 1, if at least x consecutive `5' appear in the decimal expansion
| of pi = 3.141592653...;
f(x) = |
|
\ 0, otherwise.There certainly exist an algorithm that computes this function. It is given either by the constant function
(*) f(x) = 1,
if the decimal expansion of pi contains sequences of consecutive `5' of any length, or, for some natural number k, by the function
/ 1, if x <= k;
|
(**) f(x) = |
|
\ 0, otherwise.The proof is not constructive because (unless there have been recent advances in number theory of which I am unaware) we don't know whether the right algorithm is (*) or is of the form (**). In the latter case, we don't even know the value of k. This doesn't matter, as long as we only care about the existence of an algorithm.
Compare with the situation we have with function
/ 1, if _exactly_ x consecutive `5' appear in the decimal expansion
| of pi = 3.141592653...;
g(x) = |
|
\ 0, otherwise.
In this case, unless there have been recent advances in number theory of which I am unaware, we have no idea about whether an algorithm for computing `g' exists or not. Hope this helps,
Roberto
-- Prof. Roberto Bagnara Computer Science Group Department of Mathematics, University of Parma, Italy http://www.cs.unipr.it/~bagnara/ mailto:bagnara@xxxxxxxxxxx .
- Follow-Ups:
- Re: Not constructive proof of existing of an algorithm
- From: Iron Bone
- Re: Not constructive proof of existing of an algorithm
- References:
- Not constructive proof of existing of an algorithm
- From: Iron Bone
- Not constructive proof of existing of an algorithm
- Prev by Date: Re: P=NP: Linear Programming Formulation of the TSP
- Next by Date: Re: Not constructive proof of existing of an algorithm
- Previous by thread: Re: Not constructive proof of existing of an algorithm
- Next by thread: Re: Not constructive proof of existing of an algorithm
- Index(es):
Relevant Pages
|