cayleytable
Class frobenius
java.lang.Object
cayleytable.frobenius
public class frobenius
- extends java.lang.Object
- Author:
- jbarr
Constructor Summary |
frobenius()
Creates a new instance of frobenius |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
countNewCycles
int countNewCycles
sizeOfCycle
int sizeOfCycle
frobenius
public frobenius()
throws java.io.IOException
- Creates a new instance of frobenius
- Throws:
java.io.IOException
cycle
private java.lang.String cycle(int[] tau,
int prime)
findLowestNotInString
private int findLowestNotInString(boolean[] used,
int prime)
findNextPrime
private int findNextPrime(int n)
isPrime
private boolean isPrime(int n)
calculateSigma
private int[] calculateSigma(int prime,
int order)
calculateTau
private int[] calculateTau(int prime,
int order,
int fixed)
main
public static void main(java.lang.String[] args)
- Parameters:
args
- the command line arguments