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 6142717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:25:37+00:00 2026-05-23T18:25:37+00:00

this is my first stackoverflow question, so be gentle. I apologize in advance if

  • 0

this is my first stackoverflow question, so be gentle. I apologize in advance if this has been beaten to death already… I read a few threads on NP but I haven’t found a tantalizing answer to my question (if anything, I came up with some new ones). Briefly:

  1. Are there decision problems which are decidable but not in NP?
  2. If so, are problems which ask for a solution harder than the equivalent decision problem?

My suspicion is that the answer to the first question is a resounding ‘yes’ and that the answer to the second is a resounding ‘no’.

In the first case, an example problem might be “given a set S, a subset T of S and a function f with domain 2^S, determine whether T maximizes f”. For generic S, T and f, you can’t even verify this without checking f(X) for all subsets X of S, right?

In the second case… well, I’ll admit this is more of a hunch. For some reason, it doesn’t seem like it should matter whether an answer contains one bit (for decision problems) or any (finite) number of bits… or, in other words, why you shouldn’t be able to consider the symbols left on the tape after the TM halts as part of the “answer”.

EDIT:
Actually, I have a question… how precisely does your construction show that function problems are “no harder” than decision problems? If anything, you’ve shown that it’s no easier to answer a function problem than a decision problem… which is trivial. Perhaps this is my fault for asking the question in a sloppy fashion.

Given a TM T1 in NP which solves the problem “Is X a solution to problem P” for variable X and (for the sake of argument) fixed P, is it guaranteed that there will be a TM T2 in NP which halts everywhere T1 halts, which ends in the “halt accept” state everywhere it halts, and leaves e.g. a binary representation of X on the tape?

  • 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-05-23T18:25:37+00:00Added an answer on May 23, 2026 at 6:25 pm

    (1) Yes, there are decision problems that are decidable but not in NP. It is a consequence of the time hierarchy theorem that NP ⊊ NEXP, so any NEXP-hard problem is not in NP. The canonical example is this problem:

    Given a non-deterministic Turing machine M and an integer n written in binary, does M accept the empty string in at most n steps?

    This problem is certainly decidable (just simulate all computation paths for M of length n and if see any accepts).

    See this question on cstheory.stackexchange.com for many more NEXP-complete problems. And of course, there are decision problems outside NEXP: indeed, a whole exponential hierarchy of them…

    (2) The answer to your second question is no: function problems are no harder than decision problems. (In a particular technical sense of “no harder than”.) Suppose we have a function problem which asks for output N. Then there’s a decision problem which takes an input k and asks whether the kth bit of N is 1. Solve this decision problem for every bit in the answer, and you’re done!

    For example, FSAT (the problem of finding a satisfying assignment to a Boolean formula) can be polynomial-time reduced to SAT (the problem of determining whether a Boolean formula has a satisfying assignment). Suppose you can solve SAT, and you are asked to find a satisfying assignment for the formula φ. Consider the first variable x in your formula φ, and ask SAT whether x∧φ is satisfiable. If it is, there must be a satisfying assignment for φ in which x is true; if not, and φ is satisfiable, then there must be a satisfying assignment for φ in which x is false. Continue with the second variable y, asking whether x∧y∧φ (or ¬x∧y∧φ, according to the answer to your first question) is satisfiable. And so on for each variable in the formula.

    [I ought to add an important caveat about this example. Here SAT and FSAT are “naturally” related: they are both concerned with the same kind of thing, namely satisfying assignments to formulae. But in my argument that search in general can be reduced to decision, I used a highly artificial decision problem about the kth bit of the output. So although search reduces to decision, it doesn’t necessarily reduce to the natural corresponding decision problem. In particular, Bellare and Goldwasser showed that sometimes search can’t be so reduced.]

    • M. Bellare and S. Goldwasser (1994). “The complexity of decision versus search.” SIAM Journal on Computing. 23:1 pp. 97–119.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first question on StackOverflow and I've already visited every single question
This is my first question on stackoverflow (I have usually been able to figure
This is my first time using stackoverflow for a question, I have read a
This is my first StackOverflow question so be nice! :-) I recently came across
this is my first question to stackoverflow so here it goes... I use cruise
This is my first question on stackoverflow. I just wonder why my getJSON code
First of all, sorry if this isn't an appropriate question for StackOverflow. I've tried
Greetings to all! This is my first question here on stackoverflow. I have a
This is my first time on StackOverflow though I read Coding Horror quite often.
first question to StackOverflow, please be gentle. I am trying to find the equation

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.