thesis: recognition algorithm pseudocode