[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-85185-en":3,"doc-seo-85185-105":30,"detail-sidebar-cat-0-en-105":92},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":21,"is_downloadable":21,"audit_status":21,"page_count":22,"language":23,"language_code":24,"site_id":25,"html_lang":24,"table_of_contents":26,"faqs":27,"seo_title":13,"seo_description":14,"update_tm":28,"read_time":29},85185,962075114765,"Quinn","https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd",8,"Research & Report","The Complexity of Computing Path Length Distributions with Edges i.i.d. Random via Local Uniformity","The paper studies how to compute distribution functions for the shortest and longest path lengths in a directed graph with random edge lengths. Under uniformly distributed lengths, the task becomes computing the volume of a polytope determined by the graph structure. The problem is shown to be #P-hard even when edge lengths are i.i.d. from any continuous distribution satisfying local uniformity. The work also proves containment in XP parameterized by treewidth and gives a dynamic programming algorithm for i.i.d. uniform edges.","arXiv :2607 . 10 195v 1 [ cs .CC] 11 Jul 2026  \nThe Complexity of Computing Path Length Distributions with Edges i.i.d. Random via Local Uniformity  \nEi ANDO \\#   \nSenshu University, 2-1-1, Higashimita, Tama-Ku, Kawasaki, Kanagawa, Japan  \n~~ Abstract ~~  \nWe investigate the problem of computing the distribution function for the shortest and longest path lengths in a directed graph with random edge lengths. Specifically, when these lengths are uniformly distributed, the problem reduces to computing the volume of a polytope defined by the graph structure. We establish that the problem is \\#P-hard, even under the restricted condition that the random edge lengths are identically and independently distributed (i.i.d.) according to any continuous probability distribution with certain natural conditions, the local uniformity. This hardness result applies broadly: while the uniform distribution provides an essential case for the reduction, other distributions—such as exponential or normal—are similarly hard because they contain uniform distributions in every arbitrarily small interval. Furthermore, we show that the problem is contained within XP with respect to the treewidth k of the underlying undirected graph. For the specific case of i.i.d. uniform edge lengths, we present a novel dynamic programming algorithm that processes a tree decomposition by iteratively performing convolutions to propagate distribution functions. Our approach achieves a time complexity of nO (k2 ) for any fixed treewidth k.  \n2012 ACM Subject Classification Theory of computation → Shortest paths; Theory of computation → Problems, reductions and completeness; Mathematics of computing → Distribution functions  \nKeywords and phrases \\#P-hardness, shortest path, longest path, random edge length, distribution function, local uniformity, treewidth, XP  \nFunding Ei ANDO :  \n 1  Introduction  \nMotivation and Background. Computing the distribution function of the longest path length with random edge lengths presents a fundamental challenge in Statistical Static Timing Analysis (SSTA) for VLSI design. In modern semiconductor manufacturing, timing violations arising from process variations are a primary source of yield loss and carry significant economic consequences. Since deterministic analysis fails to capture these stochastic behaviors due to constant scaling in semiconductor devices, the performance of a logic circuit should be modeled using its full path length distribution. While numerous approximation algorithms have been proposed assuming continuous delays [7, 11, 33], and the necessity of such stochastic modeling is well-documented [34], the problem remains formidable. Indeed, even modern statistical approaches, including machine learning methods, are actively being explored, as noted in recent surveys like [19] .  \nThe computational challenge predates the VLSI era, finding its roots in Operations Research with the Performance Evaluation and Review Technique (PERT), introduced by Malcolm, Roseboom, Clark, and Fazar [25] . PERT models project duration as the longest path length within a Directed Acyclic Graph (DAG), where individual task durations are modeled using random variables. Over the decades, significant scholarly attention has been dedicated to determining the distribution functions of both shortest and longest paths, resulting in various heuristic and bounding methods (e.g., Adlakha and Kulkarni [1]; Ludwig, Möhring, and Stork [24]) .  \nThe computational complexity of these path length distribution problems is rooted in the class \\#P, which was first defined by Valiant [31] to characterize the intractability in counting and reliability problems [32] . Initial work on stochastic networks demonstrated that computing both shortest and  \n2 Path Length Distributions with Locally Uniform Edge Lengths  \nlongest path length distributions is NP-hard (Ball and Provan [5]) . Subsequently, Hagstrom [17] established the \\#P-completeness of the problem when edge ","cbCaieI0mpYy9KRG","https://ap.wps.com/l/cbCaieI0mpYy9KRG","pdf",819920,5,1,40,"English","en",105,"# Introduction\n## Motivation and background\n## Computational complexity foundations\n# Path Length Distributions with Locally Uniform Edge Lengths\n## Reduction to polytope volume\n## Prior hardness and approximation limits\n# Main results and algorithmic approach\n## Complexity classification via treewidth\n## Dynamic programming for i.i.d. uniform edges","[{\"question\":\"What distributions does the paper focus on?\",\"answer\":\"It focuses on computing distribution functions for the shortest and longest path lengths in a directed graph with random edge lengths.\"},{\"question\":\"Why does the uniform case become a polytope-volume computation?\",\"answer\":\"When edge lengths are continuously uniformly distributed, the longest path length distribution reduces to computing the volume of a high-dimensional polytope defined by the graph structure.\"},{\"question\":\"What is the complexity status under i.i.d. continuous edge lengths?\",\"answer\":\"The problem is proved #P-hard even when edge lengths are i.i.d. according to any continuous distribution satisfying local uniformity, and it is also shown to belong to XP with respect to treewidth.\"}]",1784201609,101,{"code":4,"msg":31,"data":32},"ok",{"site_id":25,"language":24,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":87,"head_meta":89,"extra_data":91,"updated_unix":28},"the-complexity-of-computing-path-length-distributions-with-edges-iid-random-via-local-uniformity","",{"@graph":36,"@context":86},[37,54,69],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":21},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/research-report/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/the-complexity-of-computing-path-length-distributions-with-edges-iid-random-via-local-uniformity/85185/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":24,"description":14,"dateModified":62,"datePublished":63,"encodingFormat":61,"isAccessibleForFree":64,"interactionStatistic":65},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-07-24","2026-07-16",true,{"@type":66,"interactionType":67,"userInteractionCount":20},"InteractionCounter",{"@type":68},"ViewAction",{"@type":70,"mainEntity":71},"FAQPage",[72,78,82],{"name":73,"@type":74,"acceptedAnswer":75},"What distributions does the paper focus on?","Question",{"text":76,"@type":77},"It focuses on computing distribution functions for the shortest and longest path lengths in a directed graph with random edge lengths.","Answer",{"name":79,"@type":74,"acceptedAnswer":80},"Why does the uniform case become a polytope-volume computation?",{"text":81,"@type":77},"When edge lengths are continuously uniformly distributed, the longest path length distribution reduces to computing the volume of a high-dimensional polytope defined by the graph structure.",{"name":83,"@type":74,"acceptedAnswer":84},"What is the complexity status under i.i.d. continuous edge lengths?",{"text":85,"@type":77},"The problem is proved #P-hard even when edge lengths are i.i.d. according to any continuous distribution satisfying local uniformity, and it is also shown to belong to XP with respect to treewidth.","https://schema.org",{"og:url":52,"og:type":88,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":90,"canonical":52},"index,follow",{"doc_id":7,"site_id":25},{"code":4,"msg":5,"data":93},[94,98,102,106,110,115,119,122,127,130,134],{"id":21,"doc_module":4,"doc_module_name":46,"category_name":95,"show_sort_weight":96,"slug":97},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":99,"show_sort_weight":100,"slug":101},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":103,"show_sort_weight":104,"slug":105},"Exam",70,"exam",{"id":20,"doc_module":4,"doc_module_name":46,"category_name":107,"show_sort_weight":108,"slug":109},"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":46,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":46,"category_name":117,"show_sort_weight":22,"slug":118},7,"Healthcare","healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":120,"slug":121},30,"research-report",{"id":123,"doc_module":4,"doc_module_name":46,"category_name":124,"show_sort_weight":125,"slug":126},9,"Religion & Spirituality",20,"religion-spirituality",{"id":125,"doc_module":4,"doc_module_name":46,"category_name":128,"show_sort_weight":125,"slug":129},"World Cup","world-cup",{"id":131,"doc_module":4,"doc_module_name":46,"category_name":132,"show_sort_weight":131,"slug":133},10,"Lifestyle","lifestyle",{"id":135,"doc_module":4,"doc_module_name":46,"category_name":136,"show_sort_weight":20,"slug":137},19,"General","general"]