matroide
Class Util
java.lang.Object
|
+--matroide.Util
- public class Util
- extends java.lang.Object
Title: matroide.Util
Description: enthaelt alle statischen Hilfsmethoden
Constructor Summary |
Util()
|
Method Summary |
protected static java.util.Vector |
arrayToVector(java.lang.Object[] a)
|
protected static boolean |
enthalten(java.util.Vector v,
Chirotop chi)
|
protected static int |
fakultaet(int n)
|
protected static int |
findeIndex(int[] feld,
int key)
|
protected static java.util.Vector |
generierePermutationen(int anfang,
int ende)
generiert einen Vector mit allen Permutationen der Zahlen von anfang bis ende |
protected static java.util.Vector |
getPermutationen(int b)
|
protected static int |
nUeberK(int n,
int k)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
permutationen
protected static java.util.Vector[] permutationen
Util
public Util()
nUeberK
protected static int nUeberK(int n,
int k)
- Parameters:
n
- k
- - Returns:
- Binomialkoeffizient n ueber k
fakultaet
protected static int fakultaet(int n)
- Parameters:
n
- - Returns:
- n!, Fakulät von n
getPermutationen
protected static java.util.Vector getPermutationen(int b)
- Parameters:
b
- - anzahl der zu permutierenden ints- Returns:
- Vector mit allen permutationen (auch in Vektoren mit Integers)
enthalten
protected static boolean enthalten(java.util.Vector v,
Chirotop chi)
- Parameters:
v
- chi
- - Returns:
- true falls man chi in v mit dummesEquals findet
arrayToVector
protected static java.util.Vector arrayToVector(java.lang.Object[] a)
- Parameters:
a
- - Returns:
- Vector, der alle Objects aus a enthaelt.
findeIndex
protected static int findeIndex(int[] feld,
int key)
- Parameters:
feld
- key
- - Returns:
- Index des ersten Vorkommens von key in feld. -1 falls key nicht enthalten ist.
generierePermutationen
protected static java.util.Vector generierePermutationen(int anfang,
int ende)
- generiert einen Vector mit allen Permutationen der Zahlen von anfang bis ende
- Parameters:
int
- anfang, int ende- Returns:
- Vector Permutationen