Skip to content
Code for mimicry little competition
C++
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
.gitignore
CMakeLists.txt
README.md

README.md

mimicry (copycat)

This is the code for this little competetion. Short presentation can be found here.

How to build

You need a descent C++ compiler and cmake to compile this code.

git clone https://github.com/mani-monaj/mimicry
cd mimicry
mkdir build && cd build
cmake ..
make

The executable will be placed in build/bin.

Disclaimer

It turned out during the meetup that the original problem is called copycat. This code is by no means a formal way to solve the copycat problem. It is a heuristic approach to solve a subset of copycat problems. Please check here for some formal descriptions and solutions.

Sample Output

./mimicry abc abbddd xyz
1,xyyaaa,[Rule 0: At Pose 1 : Change scale from 1 to 2][Rule 1: At Pose 2 : Increment by 1 Change scale from 1 to 3],76
2,xyyddd,[Rule 0: At Pose 1 : Change scale from 1 to 2][Rule 1: At Pose 2 : Replace with d Change scale from 1 to 3],100

./mimicry abbc abc asdd
1,asdd,[Rule 0: At Pose 1 : Change scale from 2 to 1],25
2,asdd,[Rule 0: At Pose 1 : Change scale from 2 to 1],25
3,asd,[Rule 0: At any pose change scale from 2 to 1],25
4,asd,[Rule 0: At any pose change scale from 2 to 1],25
Something went wrong with that request. Please try again.