00001 00002 /* Exchange the values of two variables */ 00003 class SwapMove : public Move 00004 {public : 00005 int variable1; 00006 int variable2; 00007 SwapMove(); 00008 ~SwapMove() {;}; 00009 int eqmove(Move* move); 00010 void copymove (Move* move); 00011 Move* computetabumove(Configuration* config); 00012 }; 00013 00014 00016 /* particular case of exchange (two variables in and out of a set : used for maxclique problem) */ 00017 class ExchangeMove : public SwapMove 00018 {public : 00019 ExchangeMove(); 00020 ~ExchangeMove() {;}; 00021 int eqmove(Move* move); 00022 void copymove (Move* move); 00023 Move* computetabumove(Configuration* config); 00024 };