-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Recently I came across a situation where set theory and set math fit what I was doing to the letter (granted there was an easier way to accomplish what I needed - i.e. LINQ - but I didn't think of that at the time). However I didn't know of any generic set libraries. Granted IEnumerables provide some…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Given 2 sets A & B, is there an algorithm that will generate the
insert/update/delete operations required to transform set A into
set B?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a set of N items, which are sets of integers, let's assume it's ordered and call it I[1..N]. Given a candidate set, I need to find the subset of I which have non-empty intersections with the candidate.
So, for example, if:
I = [{1,2}, {2,3}, {4,5}]
I'm looking to define valid_items(items…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
For any three given sets A, B and C: is there a way to determine (programmatically) whether there is an element of A that is part of the conjunction of B and C?
example:
A: all numbers greater than 3
B: all numbers lesser than 7
C: all numbers that equal 5
In this case there is an element in set…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I would like to create a cascading tree/list of N number of children for a given parent, where a child can also become a parent.
Given the following data structure:
CountryType=1; ColorType=3; StateType=5
6,7,8 = {Can, US, Mex}
10, 11, 12 = {Red, White, Blue}
20,21,22= {California, Florida, Alberta}…
>>> More