How to find a 'perfect 10'?
This simple algorithm applies Optional Stopping Time Theorem used for calculating optimal exercising time for American Options. Simply, it tells you whether your current partner is optimal.
Optimality is calculated in a sens of score represented by integer: 1--10, that you assign to your current partner. You also need to specify a few more parameters like:
- score(1--10) of you current partner,
- number of partners you already had(including your current partner),
- how many more partners you think you can have,
- the minimum score of a partner that you would date, and,
- the maximum score of a partner that would date you.
For execution, you must have python installed. On UNIX
-like systems do:
git clone git@gist.github.com:4c2c65b3864fc4d392eba8eef3ea7bc1.git perfect10
cd perfect10
python ./p10.py