[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-512451-105":59,"doc-detail-512451-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","15-shortest-paths-in-planar-graphs-dense-distance-graphs-beating-dijkstra-repricing-beating-bellman-ford-nested-dissection","15 Shortest Paths in Planar Graphs - Dense distance graphs - Beating Dijkstra - Repricing - Beating Bellman-Ford: Nested dissection","","15 Shortest Paths in Planar Graphs explains how planar separators and r-divisions enable faster shortest-path algorithms. It introduces the dense distance graph built from boundary cliques of r-division pieces, allowing efficient computation of boundary-to-boundary distances. It then presents Dijkstra acceleration for planar graphs, and extends to negative-edge cases via repricing (Johnson-style potentials) to recover shortest paths. Finally, it shows a nested dissection approach using planar separators to beat Bellman-Ford.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/15-shortest-paths-in-planar-graphs-dense-distance-graphs-beating-dijkstra-repricing-beating-bellman-ford-nested-dissection/512451/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/15-shortest-paths-in-planar-graphs-dense-distance-graphs-beating-dijkstra-repricing-beating-bellman-ford-nested-dissection/512451.png","ImageObject",300,407,{"name":92,"@type":93},"WPS_1790064749","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-15","2026-10-06",true,{"@type":102,"interactionType":103,"userInteractionCount":34},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the dense distance graph and how is it constructed from an r-division?","Question",{"text":112,"@type":113},"For each r-division piece, the algorithm forms a weighted clique over the boundary vertices, where each edge weight equals the shortest-path distance within that piece. The dense distance graph is the union of these cliques across O(n/r) pieces.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the method beat Dijkstra for shortest paths in planar graphs?",{"text":117,"@type":113},"It triangulates the planar map, builds a good r-division, then constructs the dense distance graph. Dijkstra is run on the dense distance graph, and choosing r appropriately yields total time O(n log log n).",{"name":119,"@type":110,"acceptedAnswer":120},"How does repricing handle graphs with negative edge weights?",{"text":121,"@type":113},"It introduces vertex potentials to define new edge lengths so all adjusted lengths become non-negative. After computing distances with respect to the adjusted lengths using Dijkstra, original distances are recovered by subtracting the potentials.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},512451,1792162485,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":34,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":34,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":143,"read_time":144,"preview_page_count":19,"preview_urls":145},3985747859154,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","15 Shortest Paths in Planar Graphs  \n15.1 Dense distance graphs  \nOne of the most important applications of separators and r-divisions in planar graphs is faster algorithms to computer shortest paths. Most of these faster algorithms rely on an implicit representation of shortest-path distances called the dense distance graph, ﬁrst proposed by Jittat Fakcharoenphol and Satish Rao in 2001 .  \nLet 􀀆 be a simple planar map with weighted edges; for new we'll assume that all edge weights are non-negative. Add zero-weight edges to obtain a simple triangulation 􀀁 . Recall that a good r-division of 􀀆 is a subdivision of 􀀆 into O (n=r) pieces R 1 , R2 , . . . satisfying three conditions:  \n• Each piece has O(r)  vertices.  \n• Each piece has O( pr) boundary vertices (that is, vertices that are shared with other pieces) .  \n• Each piece has O(1) holes (faces of the piece that are not faces of 􀀆 .  \nFix a good r-division R. For each piece Ri 2 R, let Xi be a clique over the boundary vertices of Ri , where each edge is weighted by the shortest-path distance in Ri between its endpoints. The dense distance graph is  the union of these O (n=r) weighted cliques. Altogether, the dense distance graph has O (n= pr) vertices—only the boundary vertices of the pieces of the r-division—and O (n) weighted edges.  \nAssuming all edge weights are non-negative, we can compute all O (r) boundary-to-boundary shortest-path distances in each piece Ri in O (r log r) time, by running the multiple-source shortest-path algorithm once for each hole in Ri, using Dijkstra's algorithm to compute the initial shortest-path tree. Thus, the overall time to compute the dense-distance graph is O (nlog r) .  \n15.2 Beating Dijkstra  \nTheorem: Given any planar map 􀀆 with non-negative lengths on its edges, we can compute the shortest path between any two vertices of 􀀆 in O(n log log n) time.  \nProof: Triangulate 􀀆 in O (n) time, build a good r-division for the resulting triangulation in O (n)  \ntime, and then build the dense distance graph for the resulting r-division in O (nlog r) time, for some parameter r to be determined. In the top-level recursive call to build ther-division, we artiﬁcially declare s and t to be boundary vertices, so that they survive as vertices in the dense-distance graph. We can compute the shortest-path distance from s to every other vertex of the dense distance graph (including t ) using Dijkstra's algorithm, in time O (V log V + E) = O ((n= pr)log n + n) . If we set r = O (log2 n), the overall running time of the algorithm becomes O (nlog r + (n= pr)log n) = O (n log log n) . 􀂃  \n15.3 Repricing  \nDepending on which textbook you read, Dijkstra's algorithm is either no longer correct or no longer efﬁcient when some edges of the graph have negative-weight weights. The standard shortest-paths algorithm for graphs with negative edges is Bellman-Ford, which runs in O (VE ) time; for simple planar graphs with n vertices, Bellman-Ford takes O (n2 ) time. But just as webeat Dijkstra's, we can beat Bellman-Ford when the underlying graph is planar.  \nOur more efﬁcient algorithms all use a standard repricing technique ﬁrst1 proposed independently  \n1At least, ﬁrst explicitly proposed. Arguably the repricing technique is already implicit in Jacobi's early 19th-century  \nfor minimum-cost ﬂows by Nobuaki Tomizawa in 1971, and Jack Edmonds and Richard Karp in 1972, but ﬁrst applied speciﬁcally to shortest paths by Donald Johnson in 1973 .  \nSuppose each vertex v has an associate price 􀀙 (v) . We can assign a new edge-length function `0 as follows:  \n`0 (u! v) := 􀀙 (u) + `(u! v) 􀀀 􀀙(v) .  \nThen for any path s t in G, we have a telescoping sum  \n`0 (s t ) := 􀀙 (s) + `(s t ) 􀀀 􀀙( t ) .  \nBecause the length of every path from s to t changes by the same amount, the shortest paths from s to t with respect to ` and `0 coincide! Thus, if we can ﬁnd a pricing function that makes all new edge lengths `0 (u! v) non-negative, we can compute shortest-path distances with respect ","cbCain0R6PPoshSX","https://ap.wps.com/l/cbCain0R6PPoshSX","pdf",355642,"English","# 15 Shortest Paths in Planar Graphs\n## 15.1 Dense distance graphs\n## 15.2 Beating Dijkstra\n## 15.3 Repricing\n## 15.4 Beating Bellman-Ford: Nested dissection","[{\"question\":\"What is the dense distance graph and how is it constructed from an r-division?\",\"answer\":\"For each r-division piece, the algorithm forms a weighted clique over the boundary vertices, where each edge weight equals the shortest-path distance within that piece. The dense distance graph is the union of these cliques across O(n/r) pieces.\"},{\"question\":\"How does the method beat Dijkstra for shortest paths in planar graphs?\",\"answer\":\"It triangulates the planar map, builds a good r-division, then constructs the dense distance graph. Dijkstra is run on the dense distance graph, and choosing r appropriately yields total time O(n log log n).\"},{\"question\":\"How does repricing handle graphs with negative edge weights?\",\"answer\":\"It introduces vertex potentials to define new edge lengths so all adjusted lengths become non-negative. After computing distances with respect to the adjusted lengths using Dijkstra, original distances are recovered by subtracting the potentials.\"}]","15 Shortest Paths in Planar Graphs - Dense distance graphs - Beating Dijkstra - Repricing - Beating Bellman-Ford: Nested dissection | PDF",1791270980,18,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5b3096801b1336498b7cabc25ec970cc.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/2bb11c2807210362e17d22170bbd892c.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/7f3f7f3e22320bd225c462c8d89ecd1e.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/fe628df6b9e247260ee738268a7e94e8.webp",980,1268]