Efficient algorithms for discrete time-frequency distributions