Re: What is the complexity classification of sat(..) ?

Liste des GroupesRevenir à c theory 
Sujet : Re: What is the complexity classification of sat(..) ?
De : news (at) *nospam* immibis.com (immibis)
Groupes : comp.theory
Date : 13. May 2024, 07:00:19
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v1s6p3$39bgn$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 11/05/24 08:00, wij wrote:
  typedef unsigned int UInt;
  typedef bool (*Func)(UInt);
   // [Ret] true, if ∃c, 0<=c<=n, f(c)==1 and f is a P-time function.
  //       false, otherwise.
  //
  bool sat(Func f, UInt n) {
    for(Uint c=0; c<=n; ++c) {
      if(f(c)) return true;
    }
    return false;
  }
   Q: If it is NPC, what is the proof? If it it not, what is the complexity
     classification of sat(..)?
 
If UInt is a variable length integer, the amount of time that 'sat' takes to run is usually proportional to 2 to the power of the size of its input.

Date Sujet#  Auteur
11 May 24 * What is the complexity classification of sat(..) ?9wij
13 May 24 +* Re: What is the complexity classification of sat(..) ?5immibis
13 May 24 i`* Re: What is the complexity classification of sat(..) ?4wij
13 May 24 i +* Re: What is the complexity classification of sat(..) ?2immibis
14 May 24 i i`- Re: What is the complexity classification of sat(..) ?1immibis
17 May 24 i `- Re: What is the complexity classification of sat(..) ?1wij
16 May 24 `* Re: What is the complexity classification of sat(..) ?3Jeff Barnett
16 May 24  `* Re: What is the complexity classification of sat(..) ?2wij
16 May 24   `- Re: What is the complexity classification of sat(..) ?1Ben Bacarisse

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal