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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:41:29+00:00 2026-06-10T17:41:29+00:00

I have N sets of values, eg. S1 = {A,B,C,D,E} S2 = {A,B,C,D,E,F} S3

  • 0

I have N sets of values, eg.

  • S1 = {A,B,C,D,E}
  • S2 = {A,B,C,D,E,F}
  • S3 = {A,B}
  • S4 = {C,E,F,G,H}

I wish to know is if there is a distinct or unique value in each set of the collection… Ie. is there a ‘path’ through the sets that leaves at least one value in each set that is not in any other..
The answer to the example above would be TRUE as you could have :
B from S1, D from S2, A from S3 and C from S4

A FALSE example would be:

  • S1 = {A,B,C}
  • S2 = {A}
  • S3 = {A,B}
  • S4 = {A,C}

As values would need to be duplicated between sets.

As always, I am certain there must be a trivial solution to this problem. Any help would be very gratefully received. Thank you

Clarification

Thanks for the answers so far but I am still slightly confused by this, albeit having what is (I think) a simple requirement. I suspect I made the question sound more confusing than the problem it actually represents.

To clarify, my end goal is to:

  • Have a single value from each set.
  • This list of new values should be distinct from one another.
  • The value picked from each set is relatively arbritrary.
  • If a single distinct value cannot be derived from the input sets then the process should return nothing

I have read about Bipartite graphs and maximum flow but I cant quite see the ‘wood from the trees’ Ultimately I need to write some code in .NET to implement this, so some pseudo code would be a really big help, if thats not possible just a simpler example of the relevant algorthm in action would be great.

  • 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-10T17:41:30+00:00Added an answer on June 10, 2026 at 5:41 pm

    Create a bipartite graph with ;

    Set X containing value of nodes = {S1,S2,S3,...,SN}
    Set Y containing value of nodes = {A,B,C...}
    

    Match this graph to the problem statement by making edges as per the sets given in the problem.

    The problem reduces to checking if the “maximum (bipartite) matching” between X and Y is equal to N. If the assignment of values needs to known, then print this matching as well.

    EDIT (for more explanation)

    enter image description here

    The edges between the two sets denote the original sets. We need to find edges such that all vertices in X are covered and no 2 edges share a common vertex

    Note: Multiple maximum matching may exist

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

Sidebar

Related Questions

I have multiple sets of measurements. Each set has multiple values in it. The
I have 10 sets of 3 values. At each point, I will only know
I have one multi-row INSERT statement (300 or so sets of values) that I
I have two data sets, each dataset contains the pixel values of an image.
I have a test project, with an App.config that sets up default values for
I have some code that sets up a dictionary with some defualt values for
I have sets of strings in a database. Each set will have less than
I have a large set of parameters P which take several distinct sets of
I have 2 sets of values. Each is in the range of -50 to
I have a pattern like this that matches multiple sets of values: (((\w+) (\d+))+)

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.