list of all possible subsets of a set
I want to divide an array [1 .. N] all integers and array is sorted
into k segments. The output should be a list of all possible k-subset
no permutation allowed
All subsets should have at least two elements but this is easy to do.
f.e. k=2, N=5 ===> a=[1 2 3 4 5]
 [2 3 4 5] less than 2 elements in set - delete
[1 2 3 4]  less than 2 elements in set - delete
[1 2] [3 4 5]
[1 2 3] [4 5]
 [2 3] [4 5]
 [2 3 4] 
  [3 4 5]
[1 2]  [4 5]
[1 2 3] [ 4] 
(actually for this case there is no solution - all cases have one subset of one element.
...Find all subset of given set in a table
i have a problem, i have a table like this:
A | B
1 | 1
1 | 2
2 | 1
2 | 4
2 | 5
3 | 3
and a given set like C=('1', '2', '3'). I would to retrieve all A
where B of A is a subset of the set C, in this example the result will
be 1 and 3. Is this possible with low complexity and with a single
> Hi all,
> i have a problem, i have a table like this:
> A | B
> 1 | 1
> 1 | 2
> 2 | 1
> 2 | 4
> 2 | 5
> 3 | 3
>...list of unique non-subset sets
I have many set objects some of which can contain same group of object
while others can be subset of the other. Given a list of sets,
I need to get a list of unique sets such that non of the set is an
subset of another or contain exactly the same members.
Tried to do the following:
----------------------- > cleaned-up list should contain s1,...Calculate the Correlation Coefficient of Subsets of a given set
I wanna calculate the correlation coefficient of all subsets of a given sets.
I know how I can calculate the CC of each subset but the problem is that how I can extract all the subsets and found each subset contains which members of set.
"Mojgan " <email@example.com> wrote in message <firstname.lastname@example.org>...
> Hi guys
> I wanna calculate the correlation coefficient of all subsets of a given sets.
> I know how I can calculate the CC of each subset but the problem is that how I can extract all the ...set a attribute to random values in a given list
I like to have a SQL script which could update a table to set one attribute
to a random value picked from a given list. The prototyping code is as
select @value_list = ('John', 'David', 'Mathew', 'Paul')
update EMP set emp_name = @random_name
where random name is randomly got from the given list. Of course there will
be a cursor so that different row may have different random name but not
necessary unique. Also the attribute and the list could be any valid common
SQL data types
"Ximing Zheng" <xz...Breaking Python list into set-length list of lists
I'm pretty new to Python, & I need to do something that's incredibly
simple, but combing my Python Cookbook & googling hasn't helped me out
too much yet, and my brain is very, very tired & flaccid @ the
I have a list of objects, simply called "list". I need to break it
into an array (list of lists) wherein each sublist is the length of
the variable "items_per_page". So array would go from array
to array[items_per_page], then bump up to array - array
[items_per_page], until all the items in the origin...function for searching a given path list for a given file
I am looking for a c callable function to search a path list for a given
Many thanks in advance,
On 7/28/2010 5:22 PM, Aaron Gray wrote:
> I am looking for a c callable function to search a path list for a given
I think what you are after is globbing capabilities.
Does that link give you a head start for what you want?
...How to list all files with an ACL and also list the ACL settings
I am using AIX 5.3 with MP 7 and I am investigating the use of ACL=92s
to assist in setting various security constraints.
I have found that you can use ls and find to obtain a list of the
objects that have ACL=92s applied to them. The command =93find=94 with the
=93-ea=94 option appears to be the better option of the two.
My question is: Is there any tool available on AIX that will keep a
list of the objects and their applied ACL=92s in a file or files.
I could write a script to do all of this by making use of find and
aclget. However if there is already a tool or script etc that is...List Subsets
I'm hoping you could show me examples of how a functional/declarative
language could be used to consicely describe resticted subsets of elements.
I'm looking for a 'specification' style definition so any ideas/input would
be very welcome.
Thanks for your time,
Say I have a list of items which is considered ordered...
['iA', 'iB', 'iC', 'iD', 'iE', 'iF']
which could also be enumerated if needed...
[(0,'iA'), (1,'iB'), (2,'iC'), (3,'iD'), (4,'iE'), (5,'iF')]