You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
2I would suggest that cs.stackexchange.com is a better forum for your questionSteven Eccles– Steven Eccles2018-01-12 15:19:42 +00:00Commented Jan 12, 2018 at 15:19
-
Graph theory puts a lot of emphasis on the relationships between nodes. Right now I don't quite follow the topography of your collection of nodes - how are they related? If you put them on a whiteboard, what lines would you draw between them, and why?Dan Pichelman– Dan Pichelman2018-01-12 15:21:40 +00:00Commented Jan 12, 2018 at 15:21
-
Hi Dan, thanks for reply. I think node was wrong word to be used in context. I changed it to 'objects'. If you still think white board image will help, please let me know and I will share white board picture. I can best imagine it as if I am creating a zoo, then different animals might be compatible with certain animals. We need to keep all compatible animals in one set maximizing number of animals in zoo. And one animal cannot be repeated in any other set. I will also share pic. Thanks for your time.Zohaib– Zohaib2018-01-12 15:52:08 +00:00Commented Jan 12, 2018 at 15:52
-
1I think this might be an NP-complete problem: checking whether a selection of sets is valid can be done cheaply, but to find the best combination you have to search every combination. So unless you need an exact solution, you can use a heuristic (e.g. start a search from the largest set), or use a probabilistic algorithm (e.g. a genetic algorithm). Because these are approximate, you can trade solution quality against performance. A heuristic might work very well in practice if you have more info about the structure of your problem, e.g. if you know how the sizes of sets are distributed.amon– amon2018-01-12 16:01:03 +00:00Commented Jan 12, 2018 at 16:01
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-java