TY - JOUR AU - Medarametla Suda Rani AU - Thallapally Glory PY - 2025 DA - 2025/03/05 TI - Comparing K-Nearest Neighbors And Naive Bayes In Real-Time Recommendation Systems JO - Global Journal of Engineering Innovations and Interdisciplinary Research VL - 5 IS - 1 AB - This study evaluates and compares the performance of K-Nearest Neighbors (KNN) and Naive Bayes (NB) algorithms in the context of real-time recommendation systems. We analyzed several key metrics, including accuracy, precision, recall, F1 Score, training time, prediction time, and memory usage, using datasets that simulate user-item interactions. Our findings reveal that KNN, particularly with k=10k=10k=10, achieves superior accuracy, precision, recall, and F1 Score compared to Naive Bayes, indicating its effectiveness in delivering relevant recommendations. However, Naive Bayes demonstrates significant advantages in computational efficiency, with faster training and prediction times, and lower memory usage. This suggests that while KNN excels in recommendation quality, Naive Bayes is more resource-efficient. The choice of algorithm depends on the specific needs of the recommendation system, balancing between accuracy and computational efficiency. SN - 3066-1226 UR - https://dx.doi.org/10.33425/3066-1226.1075 DO - 10.33425/3066-1226.1075