Skip to main content

Questions tagged [subset]

Questions on the usage of the Subsets command and related functionalities (Tuples, Permutations etc.), and on how to implement more efficient algorithms.

0 votes
2 answers
124 views

I think I found the way I want: ...
user avatar
2 votes
1 answer
126 views

Let $G$ be a graph. A vertex subset $F \subset V(G)$ is a cyclic vertex-cut of $G$ if $G-F$ has at least two components containing cycles. I plan to write a test to check if a graph $G$ contains a ...
licheng's user avatar
  • 2,293
8 votes
2 answers
258 views

Question Given a list of digits 0-9 {d[[1]],d[[2]],...,d[[n]]}, I am interested in finding the largest subsequence of digits (largest when you ...
ydd's user avatar
  • 8,744
2 votes
2 answers
132 views

My understanding is that Subsets[Dot[a,b],{1,2}] gives the output ${a, b, a.b }$ But for some reason, this does not work when I try to do it with matrices. ...
am567's user avatar
  • 997
3 votes
3 answers
261 views

Subsets[Range[2000], {4}, {n}] would give the $s^{th}$ subset of the Subsets[Range[2000], {4}]. For example, ...
internet's user avatar
  • 1,417
2 votes
1 answer
117 views

I have such a list sets = Select[IntegerDigits /@ (Range[Floor@Sqrt@987654321]^2), DuplicateFreeQ@# && FreeQ[#, 0] &] I want to pick all subsets of ...
vector's user avatar
  • 343
2 votes
1 answer
85 views

Consider the following table: tab = RandomReal[{0, 1}, {10, 3}]; subsets=Subsets[tab, {2}]; How to quickly reduce subsets to a ...
John Taylor's user avatar
  • 6,063
6 votes
3 answers
299 views

Consider the following table: tab = RandomReal[{0, 1}, {10, 3}]; subsets=Subsets[tab, {2}]; How to quickly reduce subsets to a ...
John Taylor's user avatar
  • 6,063
2 votes
3 answers
176 views

t={{a,b},{},{},{},{a},{a,b},{},{a,b,c},{},{b}} s={{},{a,b,c},{a,b}} Thread[Subset[t,s]] I'm tired of trying to calculate: {a,b} [which is the intersection [{a,b}, {...
Alyasaa Jasim's user avatar
0 votes
1 answer
129 views

I have ...
Alyasaa Jasim's user avatar
0 votes
1 answer
165 views

I want to calculate the union of possible subsets within each set of the family of sets. I use the following code: ...
Alyasaa Jasim's user avatar
6 votes
7 answers
563 views

I am trying to obtain a co-occurance matrix for pairs of names in a collection of groups of names. So, I have a collection of letters in small groups, such as ...
apg's user avatar
  • 2,303
2 votes
3 answers
344 views

I have a list of 21 elements from which I have obtained possible combinations of minimum 3 and up to 10 elements using the Subsets function as follows: ...
LNah's user avatar
  • 331
4 votes
3 answers
214 views

Consider the following list: list = {{meson1, p1}, {meson2, p2}, {meson3, p3}, {meson4, p4}} I would like to organize it into two sub-sets, each with two elements, ...
John Taylor's user avatar
  • 6,063
10 votes
5 answers
1k views

I wonder if Mathematica can find the pairs of two points that are the farthest in a given list. Let's say a list, XYlist, of points with (x,y) coordinates. ...
Taiki Bessho's user avatar

15 30 50 per page
1
2 3 4 5 6