A stroke-tracing algorithm that can be used to extract stroke data from the pixilated image of the sketch drawn on paper and handles overlapping strokes and also attempts to capture sequencing information, which is helpful in many sketch recognition techniques.