×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • INFO

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

NP is the class of languages that have polynomial time verifiers

by Emmanuel Udofia / Thursday, 23 May 2024 / Published in Cybersecurity, EITC/IS/CCTF Computational Complexity Theory Fundamentals, Complexity, Definition of NP and polynomial verifiability

The class NP, which stands for "nondeterministic polynomial time," is a fundamental concept in computational complexity theory, a subfield of theoretical computer science. To understand NP, one must first grasp the notion of decision problems, which are questions with a yes-or-no answer. A language in this context refers to a set of strings over some alphabet, where each string encodes an instance of a decision problem.

A language (L) is said to be in NP if there exists a polynomial-time verifier for (L). A verifier is a deterministic algorithm (V) that takes two inputs: an instance (x) and a certificate (y). The certificate (y) is also known as a "witness" or "proof." The verifier (V) checks whether the certificate (y) confirms that (x) belongs to the language (L). Formally, a language (L) is in NP if there exists a polynomial-time algorithm (V) and a polynomial (p(n)) such that for every string (x in L), there exists a string (y) with (|y| leq p(|x|)) and (V(x, y) = 1). Conversely, for every string (x notin L), there is no string (y) such that (V(x, y) = 1).

To elucidate this concept, consider the well-known problem of "Boolean satisfiability" (SAT). The SAT problem asks whether there exists an assignment of truth values to variables in a given Boolean formula such that the formula evaluates to true. The SAT problem is in NP because, given a Boolean formula ( phi ) and an assignment ( alpha ) of truth values to its variables, one can verify in polynomial time whether ( alpha ) satisfies ( phi ). Here, the instance ( x ) is the Boolean formula ( phi ), and the certificate ( y ) is the assignment ( alpha ). The verifier ( V ) checks whether ( alpha ) makes ( phi ) true, which can be done in polynomial time with respect to the size of ( phi ).

Another illustrative example is the "Hamiltonian Path" problem. This problem asks whether there exists a path in a given graph that visits each vertex exactly once. The Hamiltonian Path problem is also in NP because, given a graph ( G ) and a sequence of vertices ( P ), one can verify in polynomial time whether ( P ) is a Hamiltonian path in ( G ). In this case, the instance ( x ) is the graph ( G ), and the certificate ( y ) is the sequence of vertices ( P ). The verifier ( V ) checks whether ( P ) forms a Hamiltonian path, which can be done in polynomial time with respect to the size of ( G ).

The concept of polynomial-time verifiability is important because it provides a way to characterize problems that are efficiently checkable, even if finding the solution might be computationally infeasible. This leads to the famous question of whether ( P = NP ), which asks whether every problem whose solution can be verified in polynomial time can also be solved in polynomial time. The class ( P ) consists of decision problems that can be solved in polynomial time by a deterministic Turing machine. If ( P = NP ), it would mean that every problem with a polynomial-time verifier also has a polynomial-time solver. This question remains one of the most important open problems in computer science.

One of the key properties of NP is that it is closed under polynomial-time reductions. A polynomial-time reduction from a language ( L_1 ) to a language ( L_2 ) is a polynomial-time computable function ( f ) such that ( x in L_1 ) if and only if ( f(x) in L_2 ). If there exists a polynomial-time reduction from ( L_1 ) to ( L_2 ) and ( L_2 ) is in NP, then ( L_1 ) is also in NP. This property is instrumental in the study of NP-completeness, which identifies the "hardest" problems in NP. A problem is NP-complete if it is in NP and every problem in NP can be reduced to it in polynomial time. The SAT problem was the first problem proven to be NP-complete, and it serves as a basis for proving the NP-completeness of other problems.

To further illustrate the concept of polynomial-time verifiability, consider the "Subset Sum" problem. This problem asks whether there exists a subset of a given set of integers that sums to a specified target value. The Subset Sum problem is in NP because, given a set of integers ( S ), a target value ( t ), and a subset ( S' ) of ( S ), one can verify in polynomial time whether the sum of the elements in ( S' ) equals ( t ). Here, the instance ( x ) is the pair ( (S, t) ), and the certificate ( y ) is the subset ( S' ). The verifier ( V ) checks whether the sum of the elements in ( S' ) equals ( t ), which can be done in polynomial time with respect to the size of ( S ).

The importance of polynomial-time verifiability extends beyond theoretical considerations. In practical terms, it means that for problems in NP, if a proposed solution (certificate) is provided, it can be checked efficiently. This has significant implications for cryptographic protocols, optimization problems, and various fields where verifying the correctness of a solution is important.

To summarize, the class NP encompasses decision problems for which a proposed solution can be verified in polynomial time by a deterministic algorithm. This concept is foundational in computational complexity theory and has profound implications for both theoretical and practical aspects of computer science. The study of NP, polynomial-time verifiability, and related concepts such as NP-completeness continues to be a vibrant and critical area of research.

Other recent questions and answers regarding Complexity:

  • Is PSPACE class not equal to the EXPSPACE class?
  • Is P complexity class a subset of PSPACE class?
  • Can we can prove that Np and P class are the same by finding an efficient polynomial solution for any NP complete problem on a deterministic TM?
  • Can the NP class be equal to the EXPTIME class?
  • Are there problems in PSPACE for which there is no known NP algorithm?
  • Can a SAT problem be an NP complete problem?
  • Can a problem be in NP complexity class if there is a non deterministic turing machine that will solve it in polynomial time
  • Are P and NP actually the same complexity class?
  • Is every context free language in the P complexity class?
  • Is there a contradiction between the definition of NP as a class of decision problems with polynomial-time verifiers and the fact that problems in the class P also have polynomial-time verifiers?

View more questions and answers in Complexity

More questions and answers:

  • Field: Cybersecurity
  • Programme: EITC/IS/CCTF Computational Complexity Theory Fundamentals (go to the certification programme)
  • Lesson: Complexity (go to related lesson)
  • Topic: Definition of NP and polynomial verifiability (go to related topic)
Tagged under: Computational Complexity Theory, Cybersecurity, Decision Problems, NP, Polynomial Time, Verifier
Home » Cybersecurity » EITC/IS/CCTF Computational Complexity Theory Fundamentals » Complexity » Definition of NP and polynomial verifiability » » NP is the class of languages that have polynomial time verifiers

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Medium publ.)
  • About
  • Contact

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.

Eligibility for EITCA Academy 80% EITCI DSJC Subsidy support

80% of EITCA Academy fees subsidized in enrolment by

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on X
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


    © 2008-2025  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?