Explicit Learning Curves for Transduction and Application to Clustering and Compression Algorithms