{"title":"np完全问题的图","authors":"G. Sampath","doi":"10.1145/2817460.2817501","DOIUrl":null,"url":null,"abstract":"A weighted directed graph G<sub>Q</sub> = (V, E) is defined for Q, the set of problems known to be NP-complete, with a vertex v<sub>i</sub> in V being an NP-complete problem p<sub>i</sub> in Q and the weight of an edge in E being the complexity of the transformation used to prove the NP-completeness of a problem. If the complexity of problem p<sub>1</sub> relative to problem p<sub>2</sub> is defined as the minimum complexity of a reduction from p<sub>1</sub> to p<sub>2</sub> (considering all paths from v<sub>1</sub> to v<sub>2</sub> in V) then the relative complexity graph of Q is the weighted graph G<sub>QR</sub> = (V, E'), with the weight of edge e'<sub>ij</sub> being the minimum complexity of p<sub>1</sub> relative to p<sub>2</sub>. An O(n<sup>3</sup>) variant of the shortest path problem on directed graphs that is similar to the Floyd algorithm for all-pairs shortest paths is used to construct G<sub>QR</sub>. G<sub>QR</sub> can be updated with an O(n<sup>2</sup>) algorithm when a reduction with smaller complexity is found or a new edge is added to the graph, and with an O(n) algorithm if a new vertex (corresponding to the discovery of a new NP-complete problem) is added to the graph.","PeriodicalId":274966,"journal":{"name":"ACM-SE 35","volume":"18 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1997-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A graph for NP-complete problems\",\"authors\":\"G. Sampath\",\"doi\":\"10.1145/2817460.2817501\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"A weighted directed graph G<sub>Q</sub> = (V, E) is defined for Q, the set of problems known to be NP-complete, with a vertex v<sub>i</sub> in V being an NP-complete problem p<sub>i</sub> in Q and the weight of an edge in E being the complexity of the transformation used to prove the NP-completeness of a problem. If the complexity of problem p<sub>1</sub> relative to problem p<sub>2</sub> is defined as the minimum complexity of a reduction from p<sub>1</sub> to p<sub>2</sub> (considering all paths from v<sub>1</sub> to v<sub>2</sub> in V) then the relative complexity graph of Q is the weighted graph G<sub>QR</sub> = (V, E'), with the weight of edge e'<sub>ij</sub> being the minimum complexity of p<sub>1</sub> relative to p<sub>2</sub>. An O(n<sup>3</sup>) variant of the shortest path problem on directed graphs that is similar to the Floyd algorithm for all-pairs shortest paths is used to construct G<sub>QR</sub>. G<sub>QR</sub> can be updated with an O(n<sup>2</sup>) algorithm when a reduction with smaller complexity is found or a new edge is added to the graph, and with an O(n) algorithm if a new vertex (corresponding to the discovery of a new NP-complete problem) is added to the graph.\",\"PeriodicalId\":274966,\"journal\":{\"name\":\"ACM-SE 35\",\"volume\":\"18 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1997-04-02\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"ACM-SE 35\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/2817460.2817501\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM-SE 35","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/2817460.2817501","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
A weighted directed graph GQ = (V, E) is defined for Q, the set of problems known to be NP-complete, with a vertex vi in V being an NP-complete problem pi in Q and the weight of an edge in E being the complexity of the transformation used to prove the NP-completeness of a problem. If the complexity of problem p1 relative to problem p2 is defined as the minimum complexity of a reduction from p1 to p2 (considering all paths from v1 to v2 in V) then the relative complexity graph of Q is the weighted graph GQR = (V, E'), with the weight of edge e'ij being the minimum complexity of p1 relative to p2. An O(n3) variant of the shortest path problem on directed graphs that is similar to the Floyd algorithm for all-pairs shortest paths is used to construct GQR. GQR can be updated with an O(n2) algorithm when a reduction with smaller complexity is found or a new edge is added to the graph, and with an O(n) algorithm if a new vertex (corresponding to the discovery of a new NP-complete problem) is added to the graph.