apanimesh061 0 Junior Poster

If we are given a data set which has student marks, GPA and Attendance, how can KNN be used to find the best 4 students?
I admit, that this is a homework question, but I am not asking for the code ... I will do that myself....
I only need an idea on how to apply KNN when only sorting can do the job? I guess ....

Please Help!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.