combinations
Most mutually distant k elements (clustering?)
I have a simple machine learning question: I have n (~110) elements, and a matrix of all the pairwise distances. I would like to choose the 10 elements that are most far apart. That is, I want to[详细]
2023-02-19 06:34 分类:问答How do I produce a full set of combinations with string manipulation?
I have a small project where I have an input sentence where it is possible for the user to specify variations:[详细]
2023-02-18 19:48 分类:问答function gives wrong results
I have t开发者_如何学运维ried writting the following function to generate all combinations of a string by translating the algorithm from my algorithm text. But it keeps print entire string in the outp[详细]
2023-02-18 15:35 分类:问答Stuck with Combination Problem
I\'m having a problem w/ my program. I have extracted a set of data and I would like to test if there is a combination for a particular number. For example, I have an array of int, 1 2 3 4 5, I would[详细]
2023-02-17 01:53 分类:问答Algorithm to return all possible combinations of n objects taken from different bins
To make it more specific, I need an algorithm (recursive or not) that, given a integer n and a matrix as input, will return me all of the combinations that will have:[详细]
2023-02-16 10:12 分类:问答copying iterators and producing combinations
Say I have a list, and I want to produce a list of all unique pairs of elements without considering the order. One way to do this is:[详细]
2023-02-16 07:28 分类:问答Evaluate all possible interpretations in OCaml
I need to evaluate whether two formulas are equi开发者_运维技巧valent or not. Here, I use a simple definition of formula, which is a prefix formula.[详细]
2023-02-15 17:50 分类:问答Combine array of array into all possible combinations, forward only, in Ruby
I have an array of arrays, like so: [[\'1\',\'2\'],[\'a\',\'b\'],[\'x\',\'y\']] I need to combine those arrays into a string containing all possible combinations of all three sets, forward only. I[详细]
2023-02-15 15:19 分类:问答permutation/generate combination prefix and suffix
I have an array of prefixes, an array of base words and an array of suffixes. I would like to see every combination that can be made.[详细]
2023-02-15 07:58 分类:问答How to generate combination of vectors [duplicate]
This question already has answers here: 开发者_如何学Go Closed 11 years ago. Possible Duplicate: combination and permutation in C++[详细]
2023-02-15 05:43 分类:问答