- Calculate the tf-idf feature vectors from doc file to obtain the document-to-term matrix
- Apply truncated SVD to the document-to-term matrix with k=2 to obtain the representation of reduced dimension for each of the documents
- Convert the query 𝒒={attract, TV, program} to its representation of the reduced dimension
- Rank the four documents accordingly