[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/michaelgermini/Java-code/master/java-combinations/README.md [Back]  [Original]

Algorithms for Finding all Possible Combinations of k Elements in an Array with Java Implementation
===================================================================================================

Refer to the [http://hmkcode.github.io/calculate-find-all-possible-combinations-of-an-array-using-java/](http://hmkcode.github.io/calculate-find-all-possible-combinations-of-an-array-using-java/) for more info.

Given an array of size N e.g. `e={'A','B','C','D','E'}` **N=5**, we want to find all possible combinations of K elements in that array. For example, if K=3 then one possible combination is of array **e** is `{'A','B','C'}. Here we have three different algorithms for finding *k*-combinations of an array. 

![combinations](http://hmkcode.github.io/images/java/combinations_forwardbackward.png)

Web Proxy Viewer  |  New URL  |  Original Page