I\'m having trouble defining this problem space (example below), where to look, what to search etc. and would appreciate any help with libraries, algorithms etc. I\'ve spent