I need to find ordering of combination, Combination examples are as follows:
User A Selects in this order:
- Eye-Brown, 2. Pet-Dog, 3. Diet-Carnivore, 4. Body Type-Thin, 5. Hair length-Short
Total numbers may be dynamic, e.g. there may be more than 5 selections then combination would be different.
From above selection i need to find other users having combination percentage as follows:
100% Matching:
1,2,3,4,5
Then from the 80% Matching, first show:
Weight is decreasing
1,2,3,4,X higher weight as first four matched
1,2,3,X,5
1,2,X,4,5
1,X,3,4,5
X,2,3,4,5 lowest weight in 80% match, as last four selected
From 60% Matching Users, show in this order:
1,2,3,X,X
1,2,X,4,X
1,2,X,X,5
1,X,3,4,X
1,X,3,X,5
1,X,X,4,5
X,2,3,4,X
X,2,3,X,5
X,2,X,4,5
X,X,3,4,5
From 40%:
1,2,X,X,X
1,X,3,X,X
1,X,X,4,X
1,X,X,X,5
X,2,3,X,X
X,2,X,4,X
X,2,X,X,5
X,X,3,4,X
X,X,3,X,5
X,X,X,4,5
According to above combination, i am trying to get formula from which i can sort this data.
I need particular value of individual combination so that i can sort that combination according to that.
property={'1','2','3','4','5'}the evaluation of $p$ is trivial,p=0.6for both. And still you need the ID, a unique sequencial integer, a date, whatever!... Did you know about programming?? – Brethlosze Jun 07 '17 at 13:41a1,...,anvalues, and another column with thepvalue as indicated. Then sort with p then with ID. Only that you will have everything sorted. Paste your MongoDB code if you want. – Brethlosze Jun 07 '17 at 14:01