{"title":"基于固定网格方法的快速$k-\\text{NN}$算法","authors":"G. Jan, Kuan-Lin Su, Hui-Ching Hsieh, C. Luo","doi":"10.1109/airc56195.2022.9836452","DOIUrl":null,"url":null,"abstract":"$k-\\text{Nearest}$ Neighbor $(k-\\text{NN})$ is a well-known instance-based learning algorithm; widely used in pattern recognition. A $k-\\text{NN}$ classifier can generate highly accurate predictions if provided with sufficient training instances. Thus, it plays a pivotal role in many fields. However, though its accuracy can improve with more data, the need for computational resources increases as well. In this paper, we propose a novel approach which pre-partitions instance space into smaller cells in order to reduce computational cost and greatly reduce the time complexity. Assume every instance is mapped to a point in the $d-\\text{dimensional}$ Euclidean space and a training set $D$ contains $n$ training instances. Given a query instance, the brute force $k-\\text{NN}$ algorithm has the $O(nd)$ time complexity for predicting the class of a query instance. This algorithm can improve the time complexity.","PeriodicalId":147463,"journal":{"name":"2022 3rd International Conference on Artificial Intelligence, Robotics and Control (AIRC)","volume":"457 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-05-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"The Fast $k-\\\\text{NN}$ Algorithm Based on a Fixed Grid Method\",\"authors\":\"G. Jan, Kuan-Lin Su, Hui-Ching Hsieh, C. Luo\",\"doi\":\"10.1109/airc56195.2022.9836452\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"$k-\\\\text{Nearest}$ Neighbor $(k-\\\\text{NN})$ is a well-known instance-based learning algorithm; widely used in pattern recognition. A $k-\\\\text{NN}$ classifier can generate highly accurate predictions if provided with sufficient training instances. Thus, it plays a pivotal role in many fields. However, though its accuracy can improve with more data, the need for computational resources increases as well. In this paper, we propose a novel approach which pre-partitions instance space into smaller cells in order to reduce computational cost and greatly reduce the time complexity. Assume every instance is mapped to a point in the $d-\\\\text{dimensional}$ Euclidean space and a training set $D$ contains $n$ training instances. Given a query instance, the brute force $k-\\\\text{NN}$ algorithm has the $O(nd)$ time complexity for predicting the class of a query instance. This algorithm can improve the time complexity.\",\"PeriodicalId\":147463,\"journal\":{\"name\":\"2022 3rd International Conference on Artificial Intelligence, Robotics and Control (AIRC)\",\"volume\":\"457 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-05-10\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2022 3rd International Conference on Artificial Intelligence, Robotics and Control (AIRC)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/airc56195.2022.9836452\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 3rd International Conference on Artificial Intelligence, Robotics and Control (AIRC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/airc56195.2022.9836452","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
The Fast $k-\text{NN}$ Algorithm Based on a Fixed Grid Method
$k-\text{Nearest}$ Neighbor $(k-\text{NN})$ is a well-known instance-based learning algorithm; widely used in pattern recognition. A $k-\text{NN}$ classifier can generate highly accurate predictions if provided with sufficient training instances. Thus, it plays a pivotal role in many fields. However, though its accuracy can improve with more data, the need for computational resources increases as well. In this paper, we propose a novel approach which pre-partitions instance space into smaller cells in order to reduce computational cost and greatly reduce the time complexity. Assume every instance is mapped to a point in the $d-\text{dimensional}$ Euclidean space and a training set $D$ contains $n$ training instances. Given a query instance, the brute force $k-\text{NN}$ algorithm has the $O(nd)$ time complexity for predicting the class of a query instance. This algorithm can improve the time complexity.