2022-08-31 09:53:41 +0100 | received badge | ● Famous Question (source) |
2022-05-23 11:44:09 +0100 | received badge | ● Famous Question (source) |
2020-07-05 20:36:40 +0100 | asked a question | Combination under constrained situation with a condition Step 1: I want to take a number Step 2: We form the set Step 3: Now I pick each possible two-element subsets of Step 4: Now I need to pick Example Step 4 One element which satisfies condition of step 4; HERE
Now see in the above set
Similarly we may get for Now based on Kindly help if possible any one. |
2020-07-04 17:45:36 +0100 | asked a question | How to find all maximum length lists with a nested and display? How to find all maximum length lists with a nested and display? L=[[1,2,3,4],[1,2],[1,4,5,6],[9,10,12,8],[7,3],[4,5,6]] Now i need to find the maximum length lists in this that the program has to display [1,2,3,4]
[1,4,5,6]
[9,10,12,8]
and say maximum length is 4 Or can we sort the nested list based on its inner lists lengths |
2019-04-23 07:05:32 +0100 | received badge | ● Notable Question (source) |
2017-04-03 23:10:03 +0100 | received badge | ● Famous Question (source) |
2015-03-21 21:53:56 +0100 | received badge | ● Popular Question (source) |
2014-06-29 16:56:35 +0100 | received badge | ● Famous Question (source) |
2014-06-29 16:56:35 +0100 | received badge | ● Notable Question (source) |
2014-06-29 16:56:35 +0100 | received badge | ● Popular Question (source) |
2014-06-29 11:02:44 +0100 | received badge | ● Popular Question (source) |
2014-06-29 11:02:44 +0100 | received badge | ● Famous Question (source) |
2014-06-29 11:02:44 +0100 | received badge | ● Notable Question (source) |
2014-04-23 19:12:53 +0100 | received badge | ● Notable Question (source) |
2014-01-04 17:48:30 +0100 | received badge | ● Notable Question (source) |
2013-03-27 12:30:07 +0100 | received badge | ● Popular Question (source) |
2012-12-12 11:49:06 +0100 | received badge | ● Famous Question (source) |
2012-11-26 10:13:59 +0100 | received badge | ● Famous Question (source) |
2012-11-25 19:05:07 +0100 | received badge | ● Popular Question (source) |
2012-02-17 12:56:36 +0100 | received badge | ● Notable Question (source) |
2011-09-23 02:17:23 +0100 | received badge | ● Notable Question (source) |
2011-06-08 11:27:20 +0100 | received badge | ● Popular Question (source) |
2011-06-03 08:53:36 +0100 | received badge | ● Popular Question (source) |
2010-10-14 23:11:12 +0100 | received badge | ● Student (source) |
2010-10-14 23:11:11 +0100 | received badge | ● Editor (source) |
2010-09-20 03:15:05 +0100 | asked a question | how to change the subset function give subset?? get the code how to make change's to file and take subset with more conditions to the same code run it I triend running in python but some module's are missing or there are some error's possed I tried to find module's asked but unable to find like banner,version,prandom Help me what to do to Re use the subset with some more contions to it rewritten by me. |
2010-09-18 09:37:03 +0100 | asked a question | subsets with condition given a collection say ([(0, 1), (0, 2), (0, 4), (3, 5)],[(0, 1), (0, 2), (0, 5), (3, 4)],[(0, 1), (0, 4), (0, 5), (2, 3)],[(0, 2), (0, 4), (0, 5), (1, 3)],[(0, 1), (1, 2), (1, 5), (3, 4)] } How to obtain subset or sub collection say size 3 or as specified by user such that intersection between (first internal set and second internal set) is one set and (first internal set and Third internal set) is zero sets ,(second internal set and Third internal set) is one set . That is like ([(0, 1), (0, 2), (0, 4), (3, 5)],[(0, 1), (1, 3), (1, 5), (2, 4)],[(0, 4), (1, 3), (2, 5),(4,5)] The number of intersection between sets in each to be specified by user. How to do without enumerating all subsets any hint. |
2010-09-18 09:35:52 +0100 | asked a question | subsets with condition given a collection say ([(0, 1), (0, 2), (0, 4), (3, 5)],[(0, 1), (0, 2), (0, 5), (3, 4)],[(0, 1), (0, 4), (0, 5), (2, 3)],[(0, 2), (0, 4), (0, 5), (1, 3)],[(0, 1), (1, 2), (1, 5), (3, 4)] } How to obtain subset or sub collection say size 3 or as specified by user such that intersection between (first internal set and second internal set) is one set and (first internal set and Third internal set) is zero sets ,(second internal set and Third internal set) is one set . That is like ([(0, 1), (0, 2), (0, 4), (3, 5)],[(0, 1), (1, 3), (1, 5), (2, 4)],[(0, 4), (1, 3), (2, 5),(4,5)] The number of intersection between sets in each to be specified by user. How to do without enumerating all subsets any hint. |
2010-09-18 07:58:20 +0100 | asked a question | where to get python coding tutorial for beginners link PDF reading a tutorial on writing Python code Link to PDF file |
2010-09-18 06:00:14 +0100 | asked a question | collection of sets How to create a collection of sets and how find its subcollections of specified size ordered pairs for example say a collection of set {[1,2,3],[3,2,4],[1,2,4]} subcollection of size 2 {[1,2,3],[3,2,4]} {[3,2,4],[1,2,3]} {[3,2,4],[1,20,4]} {[1,20,4],[3,2,4]} {[1,2,3],[1,2,4]} {[1,2,4],[1,2,3]} Is it possible to do this program below without finding all subsets sage: s = set([1,3,"two"]) # make a set from a list of items sage: t = list(subsets(s)); t # this is the list of all subsets of s [[], [1], [3], [1, 3], ['two'], [1, 'two'], [3, 'two'], [1, 3, 'two']] sage: for x in subsets(s): # subsets(s) is an iterator, so you can loop through it
....: if len(x) == 2: # and extract items of a specified length
....: print x
....: |
2010-09-17 09:23:50 +0100 | asked a question | how to remove duplicate elements in a list From a list L = ([1,2,3,4],[3,5,6,7],[7,8,9,10],[1,2,3.4]) remove duplicate sets here [1,2,3,4] has occurred twice and put only one making L = ([1,2,3,4],[3,5,6,7],[7,8,9,10]) |
2010-09-17 08:38:04 +0100 | asked a question | collection of sets How to create a collection of sets and how find its subcollections of specified size |
2010-09-17 07:53:56 +0100 | asked a question | sublist of a given list of objects Sublist of specified size of a given list of graph objects |
2010-09-17 06:46:00 +0100 | commented answer | sub list like subsets find all sublists of set of a specified size say 3,4,5... from a given given list of sets |
2010-09-17 06:08:08 +0100 | asked a question | sub list like subsets how to take lists of size from a list like subsets of size example L = ([1,2,3,4],[3,5,6,7],[7,8,9,10]) From the above list find sublists of size 2 ([1,2,3,4],[3,5,6,7]) ([1,2,3,4],[7,8,9,10]) ([3,5,6,7],[7,8,9,10]) subsets can also be size 3,4,5 as specified |
2010-09-15 02:17:45 +0100 | asked a question | Enumerate isomrphic subgraphs of graph vertex labeled Enumerate all isomorphic subgraphs of given graph given the subgraph adjacency matrix |