{"title":"最短线性规划的频率优先启发式","authors":"Hua Jiang, Heng Zhang, Huijiao Wang, Xin Wang","doi":"10.1145/3503047.3503069","DOIUrl":null,"url":null,"abstract":"The shortest linear program has been proved to be a NP-hard problem. In order to obtain the better approximate solution, a frequency-first heuristic method is proposed, which can optimize the number of XOR gates required by linear components while ensuring the stability of the algorithm. Firstly, we combine the pre-emptive gate strategy with frequency-first (FQCY) in the selection stage to reduce the increase of time complexity caused by exhaustive search, so that the high-density matrix can obtain the optimal result within a reasonable time. Secondly, minimization of vector and appropriate randomization are added to deal with the tie, so as to give full play to the advantages of cancellation-allowed circuit and increase the possibility of obtaining the optimal solution. Finally, compared with Paar, BP, RNBP, RSDF algorithms on random matrices of various sizes and densities, it is proved that the probability of obtaining the optimal solution of the proposed algorithm in circuit depth is more than 30% higher than RNBP and RSDF. In terms of the number of XOR gates, especially for larger matrix, the probability of obtaining the optimal solution increases by more than 10%. The stability of the optimal circuit generated by this algorithm is about 90%.","PeriodicalId":190604,"journal":{"name":"Proceedings of the 3rd International Conference on Advanced Information Science and System","volume":"287 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-11-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A Frequency-first Heuristic for Shortest Linear Programs\",\"authors\":\"Hua Jiang, Heng Zhang, Huijiao Wang, Xin Wang\",\"doi\":\"10.1145/3503047.3503069\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The shortest linear program has been proved to be a NP-hard problem. In order to obtain the better approximate solution, a frequency-first heuristic method is proposed, which can optimize the number of XOR gates required by linear components while ensuring the stability of the algorithm. Firstly, we combine the pre-emptive gate strategy with frequency-first (FQCY) in the selection stage to reduce the increase of time complexity caused by exhaustive search, so that the high-density matrix can obtain the optimal result within a reasonable time. Secondly, minimization of vector and appropriate randomization are added to deal with the tie, so as to give full play to the advantages of cancellation-allowed circuit and increase the possibility of obtaining the optimal solution. Finally, compared with Paar, BP, RNBP, RSDF algorithms on random matrices of various sizes and densities, it is proved that the probability of obtaining the optimal solution of the proposed algorithm in circuit depth is more than 30% higher than RNBP and RSDF. In terms of the number of XOR gates, especially for larger matrix, the probability of obtaining the optimal solution increases by more than 10%. The stability of the optimal circuit generated by this algorithm is about 90%.\",\"PeriodicalId\":190604,\"journal\":{\"name\":\"Proceedings of the 3rd International Conference on Advanced Information Science and System\",\"volume\":\"287 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2021-11-26\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings of the 3rd International Conference on Advanced Information Science and System\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/3503047.3503069\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 3rd International Conference on Advanced Information Science and System","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3503047.3503069","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
A Frequency-first Heuristic for Shortest Linear Programs
The shortest linear program has been proved to be a NP-hard problem. In order to obtain the better approximate solution, a frequency-first heuristic method is proposed, which can optimize the number of XOR gates required by linear components while ensuring the stability of the algorithm. Firstly, we combine the pre-emptive gate strategy with frequency-first (FQCY) in the selection stage to reduce the increase of time complexity caused by exhaustive search, so that the high-density matrix can obtain the optimal result within a reasonable time. Secondly, minimization of vector and appropriate randomization are added to deal with the tie, so as to give full play to the advantages of cancellation-allowed circuit and increase the possibility of obtaining the optimal solution. Finally, compared with Paar, BP, RNBP, RSDF algorithms on random matrices of various sizes and densities, it is proved that the probability of obtaining the optimal solution of the proposed algorithm in circuit depth is more than 30% higher than RNBP and RSDF. In terms of the number of XOR gates, especially for larger matrix, the probability of obtaining the optimal solution increases by more than 10%. The stability of the optimal circuit generated by this algorithm is about 90%.