Structural Pattern Recognition