Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TwoCommSolver Class Reference

#include <TwoCommSolver.h>

List of all members.

Public Methods

 TwoCommSolver (FreeGroup F)
 ~TwoCommSolver ()
bool isProductOfTwoComms (Word r, Word &x1, Word &x2, Word &y1, Word &y2, ostream *out=NULL)

Private Methods

Map getSolution (const Word &u, int &eqInd, int &conjInd, ostream *out=NULL)
Word getImage (Map M, Map solution, int ind, int num)
Word mutate (const Word &u)
int randomGen ()
Word randomWord ()
Word crossover (const Word &u, const Word &v)
int fitness (Word u, Word v, int &) const

Private Attributes

FreeGroup theGroup
GHNConfig cfg
VectorOf<Chars>* varNames
int numOfVars
int numOfConsts
int numOfEq
bool keepDetails
UniformRandom r
int maxWordLen
Chars popFile

Constructor & Destructor Documentation

TwoCommSolver::TwoCommSolver ( FreeGroup F )

TwoCommSolver::~TwoCommSolver ( )

Member Function Documentation

bool TwoCommSolver::isProductOfTwoComms ( Word r,
Word & x1,
Word & x2,
Word & y1,
Word & y2,
ostream * out = NULL )

Map TwoCommSolver::getSolution ( const Word & u,
int & eqInd,
int & conjInd,
ostream * out = NULL ) [private]

Word TwoCommSolver::getImage ( Map M,
Map solution,
int ind,
int num ) [private]

Word TwoCommSolver::mutate ( const Word & u ) [private]

int TwoCommSolver::randomGen ( ) [private]

Word TwoCommSolver::randomWord ( ) [private]

Word TwoCommSolver::crossover ( const Word & u,
const Word & v ) [private]

int TwoCommSolver::fitness ( Word u,
Word v,
int & ) const [private]

Member Data Documentation

FreeGroup TwoCommSolver::theGroup [private]

Definition at line 95 of file TwoCommSolver.h.

GHNConfig TwoCommSolver::cfg [private]

Definition at line 96 of file TwoCommSolver.h.

VectorOf<Chars>* TwoCommSolver::varNames [private]

Definition at line 97 of file TwoCommSolver.h.

int TwoCommSolver::numOfVars [private]

Definition at line 98 of file TwoCommSolver.h.

int TwoCommSolver::numOfConsts [private]

Definition at line 98 of file TwoCommSolver.h.

int TwoCommSolver::numOfEq [private]

Definition at line 98 of file TwoCommSolver.h.

bool TwoCommSolver::keepDetails [private]

Definition at line 99 of file TwoCommSolver.h.

UniformRandom TwoCommSolver::r [private]

Definition at line 100 of file TwoCommSolver.h.

int TwoCommSolver::maxWordLen [private]

Definition at line 101 of file TwoCommSolver.h.

Word* TwoCommSolver::equation [private]

Definition at line 102 of file TwoCommSolver.h.

Chars TwoCommSolver::popFile [private]

Definition at line 103 of file TwoCommSolver.h.

The documentation for this class was generated from the following file:
Generated at Tue Jun 19 09:50:10 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001