Skip to content

Commit 816214d

Browse files
committed
Copyright info and release notes have been updated
1 parent d0f40f3 commit 816214d

File tree

52 files changed

+304
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+304
-44
lines changed

META-INF/releasenotes.txt

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
1-
RELEASE NOTES
1+
2+
CombinatoricsLib - release notes
3+
by Dmytro Paukov
24

35
-----------------------------------------------------------------
4-
CombinatoricsLib 2.0 (August 2012)
5-
- Representation of the combinatorics vectors as strings has been
6-
changed to format: "CombinatoricsVector=( [elements], size=value)"
7-
- Added the "complex" combination generator and iterator to generate
8-
combinations in relation with permutations
9-
- Add a method to detect if a vector contains duplicated elements
10-
- SubSetGenerattor has been updated to support duplicates in the original
11-
vector which represents the original set. To do that a new iterator
12-
called "SubListIterator" has been introduced
6+
CombinatoricsLib 2.0 (October 2012)
137
- A new general interface ICombinatoricsVector<T> has been introduced.
148
All code has been re-factored to use this interface.
15-
- Added a constructor to create a combinatorics vector from an array
16-
of type T[].
17-
- Added a factory class to make the library more flexible
18-
- Test coverage is about 83% of all methods and 87% of all lines
9+
- The permutation generator can produce the permutations even
10+
if the initial vector has duplicates.
11+
For example, library can generate all permutations of (1,1,2,2).
12+
- Factory class has been introduced to create all vectors and generators.
13+
- All generators implement the java interface Iterable,
14+
so they can be used in the "foreach" statement directly.
15+
- Filters have been introduced. All generated vectors can be easily filtered.
16+
- Representation of the combinatorics vectors as strings has been
17+
changed to format: "CombinatoricsVector=( [elements], size=value)".
18+
- Added the "complex" combination generator called ComplexCombinationGenerator
19+
and iterator to generate combinations in relation with
20+
permutations (list partitions).
21+
- Add several methods to detect if a vector contains duplicated elements.
22+
- SubSetGenerator has been updated to support duplicates in the original
23+
vector which represents the original set. To do that a new iterator
24+
called "SubListIterator" has been introduced.
25+
- Added a constructor to create a combinatorics vector from an array.
26+
- Added a factory class to make the library more flexible.
1927

2028
-----------------------------------------------------------------
2129
CombinatoricsLib 1.0 (December 2011)

src/Main.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Combinatorics Library
3+
* Copyright 2012 Dmytro Paukov [email protected]
4+
*/
15
import java.util.List;
26

37
import org.paukov.combinatorics.Factory;
@@ -9,6 +13,11 @@
913
import org.paukov.combinatorics.IntegerVector;
1014
import org.paukov.combinatorics.util.ComplexCombinationGenerator;
1115

16+
/**
17+
* This class contains various examples of using the combinatoricslib
18+
*
19+
* @author Dmytro Paukov
20+
*/
1221
public class Main {
1322

1423
/**

src/org/paukov/combinatorics/CombinatoricsVector.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Combinatorics Library
3+
* Copyright 2012 Dmytro Paukov [email protected]
4+
*/
15
package org.paukov.combinatorics;
26

37
import java.util.ArrayList;
@@ -14,6 +18,7 @@
1418
* @see Generator
1519
* @see Iterator
1620
* @see Factory
21+
* @version 2.0
1722
* @param <T>
1823
* Type of the elements
1924
*/

src/org/paukov/combinatorics/Factory.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Combinatorics Library
3+
* Copyright 2012 Dmytro Paukov [email protected]
4+
*/
15
package org.paukov.combinatorics;
26

37
import java.util.Collection;

src/org/paukov/combinatorics/Generator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Combinatorics Library
3+
* Copyright 2012 Dmytro Paukov [email protected]
4+
*/
15
package org.paukov.combinatorics;
26

37
import java.util.ArrayList;
@@ -36,6 +40,7 @@
3640
* @see ICombinatoricsVector
3741
* @see Iterator
3842
* @see Factory
43+
* @version 2.0
3944
* @param <T>
4045
* Type of the elements in the generated vectors
4146
*/

src/org/paukov/combinatorics/ICombinatoricsVector.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Combinatorics Library
3+
* Copyright 2012 Dmytro Paukov [email protected]
4+
*/
15
package org.paukov.combinatorics;
26

37
import java.util.List;

src/org/paukov/combinatorics/IFilter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Combinatorics Library
3+
* Copyright 2012 Dmytro Paukov [email protected]
4+
*/
15
package org.paukov.combinatorics;
26

37
/**

src/org/paukov/combinatorics/IGenerator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Combinatorics Library
3+
* Copyright 2012 Dmytro Paukov [email protected]
4+
*/
15
package org.paukov.combinatorics;
26

37
import java.util.Iterator;

src/org/paukov/combinatorics/IntegerFactory.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Combinatorics Library
3+
* Copyright 2012 Dmytro Paukov [email protected]
4+
*/
15
package org.paukov.combinatorics;
26

37
import org.paukov.combinatorics.composition.IntegerCompositionGenerator;

src/org/paukov/combinatorics/IntegerGenerator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Combinatorics Library
3+
* Copyright 2012 Dmytro Paukov [email protected]
4+
*/
15
package org.paukov.combinatorics;
26

37
import java.util.ArrayList;

0 commit comments

Comments
 (0)