The sets tag has no wiki summary.
23
votes
6answers
1k views
How to select minimal subsets?
I am a newbie, so please point me in the right direction if you feel this question has been answered somewhere else before. Here goes:
Suppose I have a list like this:
...
11
votes
8answers
379 views
Any built-in function to generate successive sublists from a list?
Given
lst = {a, b, c, d}
I'd like to generate
{{a}, {a, b}, {a, b, c}, {a, b, c, d}}
but using built-in functions only, ...
7
votes
3answers
242 views
how to efficiently apply function to all pairs of a set (and collect the results)
To build a graph, I need to apply a function f[a_, b_] to all pairs of a list (3500 elements). The function itself returns a link ...
7
votes
3answers
210 views
Patternmatching sets
How to match set-patterns against sets?
A set (in the mathematical sense) is a list of elements without repetition and order of elements does not matter. For example, we have a pattern set ...
6
votes
3answers
415 views
Subsets of a list
Consider the following demand of products for the next four months.
data={1,20,3,40};
I could produce the whole demand in the first months, leading to the ...
4
votes
2answers
301 views
Exact cover solution
Is it possible to get a exact cover solution(s) and/or number of possible solutions in Mathematica?
1
vote
2answers
129 views
Combining lists with common elements efficiently [duplicate]
Possible Duplicate:
Computing the equivalence classes of the symmetric transitive closure of a relation
I am required to process sets consisting of 2-element subsets of integers by ...
1
vote
0answers
67 views
Element[ ] for real numbers
I was just wondering that one can easily check the presence of any number rational/irrational in $\mathbb R$ but I could not find if Mathematica supports any notation for open sets.
The number of ...
0
votes
2answers
70 views
Plot 3D set (or a domain of three-variable function)
is there any way to plot a "3D set" of points subject to certain rules? For example, my task is to find maximum of some function of three variables which have to meet some conditions. Of course I ...