Zaslat SMS: Topology of algebraic curves