[algogeeks] Expectation-Maximization algorithm

2008-01-17 Thread mg
Hi, using E-M algorithm it is possible to divide dataset into K fuzzy clusters. K is predefined input variable. I'm wondering how to detect best-fitting K? Should I run fuzzy cluster many times, and choose most probable K, or is there a better way? -- Regards Mariusz

[algogeeks] Re: Nice question!!

2006-07-04 Thread mg
#includestdio.h struct key { int min; double sum; }; int main(int argc,char **argv) { int n,i,j,k; int start=0,end=0; double currentValue=0,eValue=0; struct key opt[10]; int a[10]; while ( scanf(%d,n) != EOF ) {

[algogeeks] Re: Lock A Node In A Tree...

2006-07-02 Thread mg
This idea sems to be fastest what u can do ..as i know. Then u need to have 2 booleans. CanItBeLocked: true/false ActualStatus: locked/unlocked. So whenever you want to query a node u simply check CanItBeLocked. But when u actually want to lock/unlock it. then you need to do a status