Question: why dct is better than dft?
Answer: Compared with DFT, DCT has two main advantages: It is a real transform with better computational efficiency than DFT which by definition is a complex transform. It does not introduce discontinuity while imposing periodicity in the time signal.