O problema inverso da fase: teoria e algoritmos