The quantum Fourier transform (QFT) can calculate the Fourier transform of a vector of size N with time complexity \mathcal{O}(\log^{2}N) as compared to the classical complexity of \mathcal{O}(N\log N). However, if one wanted to measure the full output state, then the QFT complexity becomes \mathcal{O}(N\log^{2}N), thus losing its apparent advantage, indicating that the advantage is fully exploited for algorithms when only a limited number of samples is required from the output vector, as is the case in many quantum algorithms. Moreover, the computational complexity worsens if one considers the complexity of constructing the initial state. In this paper, this issue is better illustrated by providing a concrete implementation of these algorithms and discussing their complexities as well as the complexity of the simulation of the QFT in MATLAB.