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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:02:08+00:00 2026-06-17T16:02:08+00:00

Given: S , a set an odd number of n-bit strings A, a particular

  • 0

Given:
S, a set an odd number of n-bit strings
A, a particular n-bit string

show that any algorithm that decides whether A is in S must examine all n bits of A in the worst case.

Usually of course we would expect to have to look at all the parts of a string to do the matching, but there’s something particular about S having an odd size that’s escaping me.

  • 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-17T16:02:09+00:00Added an answer on June 17, 2026 at 4:02 pm

    Let’s say we have an algorithm A that decides membership in S correctly and says, for any input n-bit string, whether the string is in S or not.

    Suppose for a given input n-bit string s1, the algorithm A never looks at bit i of s1 and goes on to say “s1 is in (not in) S”. Then a string s2 equal to s1 except with bit i flipped is also in (not in) S! That is, for any string we feed into A, if A doesn’t look at a particular bit, then there is a second string also in (or not in) S with that bit flipped.

    Then what is special about odd-sized sets S? We can’t pair up strings in S evenly. That is, there must be a string s3 that A looks at and decides is in S, for which no single bit can be flipped to form another string in S. So A must look at all the bits of s3 (otherwise we could make such a string, as we did before).

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

Sidebar

Related Questions

Is there any way of automating a site publish with a given set of
I can see that Collections.unmodifiableSet returns an unmodifiable view of the given set but
Given a set of questions that have linked survey and category id: > db.questions.find().toArray();
First the practical application that led me to the problem: Given a set of
The odd task that I have been given is to serialize a LARGE object
This is one of the solution of getting true or false from given set
Given a set of phrases, i would like to filter the set of all
Given a set Paris New York London New York Paris Paris I'm trying to
Given a set of real numbers drawn from a unknown continuous univariate distribution (let's
Given a set of java regular expression patterns separated by an OR (i.e |

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.