Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9273955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:14:15+00:00 2026-06-18T16:14:15+00:00

Professor Tim Roughgarden from Stanford University while teaching a MOOC said that solutions to

  • 0

Professor Tim Roughgarden from Stanford University while teaching a MOOC said that solutions to problems in the class NP must be polynomial in length. But the wikipedia article says that NP problems are decision problems. So what type of problems are basically in the class NP ? And is it unnecessary to say that solutions to such problems have a polynomial length output(as decision problems necessarily output either 0 or 1) ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:14:16+00:00Added an answer on June 18, 2026 at 4:14 pm

    He was probably talking about witnesses and verifiers.

    For every problem in NP, there is a verifier—read algorithm/turing machine—that can verify “yes”-claims in polynomial time.

    The idea is, that you have some kind of information—the witness—to help you do this given the time constraints.

    For instance, in the travelling salesman problem:

    TSP = {(G, k) if G has a hamiltonian cycle of cost <= k}
    

    For a given input (G, k), you only need to determine whether or not the problem instance is in TSP. That’s a yes/no answer.

    Now, if someone comes along and says: This problem instance is in TSP, you will demand a proof. The other person will then probably give you a sequence of cities. You can then simply check whether the cities in that order form a Hamiltonian cycle and whether the total cost of the cycle is ≤ k.

    You can perform this procedure in polynomial time—given that the witness is polynomial in length.

    Using this sequence of cities, you were thus able to correctly determine that the problem instance was indeed in TSP.

    That’s the idea of verifiers: They take a proof object/witness that is polynomial in length to check in polynomial time, that a certain problem instance is in the language.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Difference between iostream and iostream.h My professor said that the following: #include
I'm watching the Programming Methodology from Stanford on Youtube and professor uses the GraphicsProgram
My professor said, that adding multiple layers in the BLL, will make the 3-tier
I remember that my professor said that new operation is the most costly operation
I am taking a class in C++ programming and the professor told us that
My professor provided me with a file called CursorList.cpp that implements a Cursor Linked
I'm presenting a problem my professor showed in class, with my O(n*log(n)) solution: Given
I am doing an assignment for an information systems class and the professor decided
I'm currently taking a math class in College called Scientific Computing and the professor
So to make a long story short. A professor asked this question in class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.