thesis: algorithm description