Talk:Set consolidation: Difference between revisions

→‎Why.: "Connected components of a graph". Yah!
No edit summary
(→‎Why.: "Connected components of a graph". Yah!)
Line 5:
 
:I'm not sure either, but if you break the sets down into sets of 2, it becomes the problem of finding the connected components of a graph, the sets of size 2 being the edges and the items being the nodes. --[[User:Spoon!|Spoon!]] 18:59, 7 May 2012 (UTC)
 
::Hi Spoon, thanks for the name '''"Connected components of a graph"'''. It lead to links such as [http://www.cs.umd.edu/class/sum2005/cmsc451/components.pdf this] and [http://computation.pa.msu.edu/NO/ConnCompPresentation.html this] that show that the set consolidation routine in Python could be applied to the type of problems described. --[[User:Paddy3118|Paddy3118]] 01:13, 8 May 2012 (UTC)
 
:There's no need to use permutation to show the result is order independent. Think input sets as undirected graph nodes, and two nodes are connected if they share elements, then it's just a matter of finding connected subgraphs which clearly doesn't depend on input set ordering. --[[User:Ledrug|Ledrug]] 23:02, 7 May 2012 (UTC)
 
::Hi Ledrug, I wasn't sure of a general need either so left out mentioning order independence from the main task description but just wanted to make sure of my Python code so reported the run of it in the Python docstring. --[[User:Paddy3118|Paddy3118]] 01:13, 8 May 2012 (UTC)
Anonymous user