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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:10:06+00:00 2026-06-17T08:10:06+00:00

I am wondering whether this this is an established computer science problem and if

  • 0

I am wondering whether this this is an established computer science problem and if there is any polynomial time solution or approximation

Suppose I have some list X made up of true and false values

X = [True, False, True, False, True...True]

I also have a set of other lists which are the same length as X, with true and false values

A = [False, True, True, True, True, False .... False]
B = [False, False, True, False, True, False .... False]
...etc

Now, I want to find a ‘sum’ of these other lists (which is applying the bitwise OR operator to each element.. i.e. F + F = F , F + T = T , T + T = T) that best explain the observations seen in list X (I can introduce a scoring system that gives some score for a match and a penalty for a mismatch in the solution), and since there could be many possible solutions, I want to impose a penalty to the algorithm for the more lists it uses in its solution.

  • 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-17T08:10:06+00:00Added an answer on June 17, 2026 at 8:10 am

    The problem that you’re describing is NP-hard by a reduction from the minimum set cover problem, which is known to be NP-hard.

    The reduction is as follows. Given a set S of n elements, create a list of n copies of “true” as your list X. Then, for each set that might be permitted in the set cover, replace it with a list that has true or false in each spot based on whether the set contains or does not contain the given element of S. If you assign a penalty of infinity to a mismatch and assign a cost of one to each list, then there is a set cover of size k or less in the original set cover problem if and only if your problem has a solution of cost k or less.

    This means that there is no known polynomial time algorithm for this problem, and you will need to either accept approximate answers or be willing to let your program run for a long time on some inputs.

    Hope this helps!

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

Sidebar

Related Questions

I'm wondering whether or not there are any restrictions during HBase minor/major compactions .
I was wondering whether this effect is a known problem or it happens only
I have written a simple log4net wrapper. I was wondering whether this wrapper code
Hello I was wondering whether this is possible. I have a horizontal menu created
I'm wondering whether this implementation of polymorphism is desirable in C++. I have a
I am wondering whether this could be worse parallelizing generation of random numbers. I
I am wondering whether I can use the this keyword inside a C# lambda,
This is a very general question: I was wondering whether it is possible to
I've come across a Registry Class and I'm wondering whether to bother with this
I've always wondered about this, and now a client is wondering whether it's feasable:

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.