<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hency Patel on Medium]]></title>
        <description><![CDATA[Stories by Hency Patel on Medium]]></description>
        <link>https://medium.com/@24bt04039?source=rss-69a4e970e6e6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*N6LGhixI57yvM4ke</url>
            <title>Stories by Hency Patel on Medium</title>
            <link>https://medium.com/@24bt04039?source=rss-69a4e970e6e6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 04:58:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@24bt04039/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Approximation Algorithms in Road Network Design Balancing Cost and Reach]]></title>
            <link>https://medium.com/@24bt04039/approximation-algorithms-in-road-network-design-balancing-cost-and-reach-48d92ddbc341?source=rss-69a4e970e6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/48d92ddbc341</guid>
            <category><![CDATA[graph-algorithms]]></category>
            <category><![CDATA[minimum-spanning-tree]]></category>
            <category><![CDATA[steiner-tree-problem]]></category>
            <category><![CDATA[approximation-algorithm]]></category>
            <dc:creator><![CDATA[Hency Patel]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 05:21:09 GMT</pubDate>
            <atom:updated>2026-09-30T05:21:09.935Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What if the cheapest road network is not the one?</strong></p><p>Whenever we travel from one place to another we usually think about the road in front of us. We rarely think about the question behind it: How were all these roads decided in the first place? Imagine a government has to connect towns with a road network. There is a fixed budget, different construction costs, difficult terrain and many places that people need to reach. Building roads everywhere would obviously make the network well connected. It would also be extremely expensive. Now consider the approach. What if we only build the number of roads to connect the important towns? The cost might be much lower. Some places could become difficult to reach. People may have to travel much farther. How can we build a road network that provides connectivity without spending?</p><p><strong>Looking at Roads as a Graph</strong></p><p>Before getting into approximation algorithms it helps to look at a road network in a way. In Design and Analysis of Algorithms we often represent real-world systems using graphs.</p><p>● Vertices can represent cities, towns, intersections or possible junctions.</p><p>● Edges represent roads connecting those locations.</p><p>● Edge weights can represent construction cost, distance, travel time or another measure.</p><p>● Some vertices are more important than others because they must be connected.</p><p>For example, suppose we have five locations: A ,B, C, D and E. There may also be locations that are not necessary but could be useful as connecting points. The goal is not only to connect every location. Instead we want to connect the locations while keeping the construction cost as low as possible. This sounds simple when the network is small. Once the number of roads becomes large the number of possible combinations grows very quickly.</p><p><strong>The Connection with the Steiner Tree Problem</strong></p><p>A way to tackle this type of road-network problem is through the Steiner Tree Problem. In a Steiner Tree problem we have a graph and a set of vertices called terminals. The objective is to construct a minimum-cost tree that connects all the terminals. The interesting part is that the solution is allowed to use vertices. These additional vertices are called Steiner vertices. Think of them as junctions.</p><p>For a road network the terminals could be cities, hospitals, airports, industrial areas, railway stations or important towns. The Steiner vertices could be towns or suitable locations where a new junction could be created. Suppose three major towns are apart. By connecting every pair of towns it might be cheaper to build roads from all three towards a common intermediate junction. So an additional junction, which was not originally one of the locations, can sometimes reduce the construction cost. The difficulty is that finding the exact minimum-cost Steiner Tree is an NP- problem. For networks checking every design to guarantee the absolute best one is therefore not practical.</p><p><strong>Why Not Just Find the Perfect Solution?</strong></p><p>At first the obvious solution seems to be: “Just try every combination of roads and choose the one.” The problem is the number of combinations. Suppose a network has a few roads. Trying combinations may be manageable. Imagine a region containing hundreds or thousands of possible road segments. Now the number of networks has become enormous. In searching for the perfect answer an approximation algorithm tries to find a good solution efficiently. The important thing about approximation is that it is not simply a guess. A proper approximation algorithm has a guarantee about how its solution can be from the optimum.For the version of the Steiner Tree problem a known approach gives a 2-approximation meaning the resulting network costs at most twice the optimal Steiner-tree cost. That trade-off is extremely useful: less optimal + faster can be more practical than perfectly optimal + computationally impractical.</p><p><strong>A Simple Road Network Example</strong></p><p>Let’s look at a simple example. Imagine four towns: A, B, C, and D. Suppose the direct road connections between them span the following distances: A → B is 10 km, B → C is 10 km, and C → D is 10 km.</p><p>If we connect them sequentially in a chain (A–B–C–D), the total road length is 10 + 10 + 10 = 30 km.</p><p>Now, suppose there is an alternative: a new intermediate junction, S, near the center of the region. Instead of linking the towns to one another, we could build roads from each town directly to this central point (A–S, B–S, C–S, and D–S). If each of these new roads is 7 km long, the total network length becomes 7 + 7 + 7 + 7 = 28 km.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LRsTFhv540aD6xTJs5_zew.png" /></figure><p><strong>One Practical Approximation Approach</strong></p><p>One of the approaches is based on the Minimum Spanning Tree (MST). The idea is interesting because we take a problem and turn it into a sequence of problems that we already know how to solve</p><ol><li><strong>Step 1</strong>: Identify the locations First we identify the terminals. For example: A, B, C, D and E. These are the cities that absolutely need to be connected.</li><li><strong>Step 2: </strong>Find the connection between locations Next we calculate the shortest-path distance between pairs of terminals. The direct road between A and B might not actually be the way to connect them. Perhaps the cheapest route is A → X → Y → B, where X and Y’re intermediate locations.</li><li><strong>Step 3</strong>: Create a graph Now we create a graph containing only the important locations. The weight between two vertices represents the shortest-path cost between those locations in the road network.</li><li><strong>Step 4</strong>: Construct the Minimum Spanning Tree Now we run an MST algorithm such as Kruskals or Prims algorithm on this graph. The MST connects all the required locations while keeping the edge weight as small as possible. Finally the selected connections are mapped back to the roads in the network.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ONRIbDuFDHLspGwbKp-pQQ.png" /></figure><p><strong>Where does the “Approximation” Come From?</strong></p><p>When we hear the word approximation it can sound like the algorithm is simply giving an answer that’s close enough.</p><p>An approximation algorithm comes with a performance guarantee.</p><p>Cost of solution ≤ 2 × Cost of Optimal solution</p><p>For example, suppose the unknown optimal network costs ₹10 crore. The 2-approximation guarantee tells us that the algorithm will not produce a solution costing more than ₹20 crore. This does not mean the algorithm will actually cost ₹20 crore. It could be ₹11 crore, ₹13 crore or another value below the bound. The important point is that we have a limit on how far the solution can be from the optimum.</p><p><strong>Balancing Cost and Reach</strong></p><p>This brings us back to the idea of the topic. A road network cannot be judged by its construction cost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*BgdAXI8U8wc_zDUlKcj-uQ.png" /></figure><p>If we only minimize construction cost, Network A may look attractive. If we only focus on reach and accessibility Network B may appear useful. Real road planning therefore involves competing objectives, including construction cost, travel distance, accessibility, traffic congestion, land acquisition, terrain, environmental impact, connectivity and reliability. The better question is: “What is a network that gives connectivity without consuming an unreasonable amount of resources?” That is where approximation becomes valuable.</p><p><strong>A DAA Perspective</strong></p><p>Looking at the problem from the perspective of Design and Analysis of Algorithms makes the whole idea clearer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ftltx2NeiGfjeoretnIS5A.png" /></figure><p>This is an example of how different algorithmic concepts can work together. Shortest-path algorithms help us understand the way to move between locations. MST algorithms help us connect the required locations without cycles. Approximation theory tells us how good the resulting solution can be compared with the optimum.</p><p><strong>What about Time Complexity?</strong></p><p>Another important part of algorithm analysis is understanding how much computation is required. Suppose we have n locations. The algorithm first needs shortest-path information between the terminals. Depending on the implementation and graph representation this can require running shortest-path algorithms times. After that an MST is constructed on the graph. If there are n terminals the complete terminal graph can contain up to <strong>n(n − 1) / 2 pairs.</strong> This is much smaller than trying to enumerate every road network in the problem although the exact running time still depends on the number of vertices and edges in the underlying road graph and on the shortest-path method being used.</p><p>Where Could This Be Useful?</p><p>● Internet and communication networks: Important offices or data centers might need to be connected while keeping infrastructure costs under control.</p><p>● Electricity distribution: Power stations and important substations need connections while installing infrastructure can be expensive.</p><p>● Fiber-optic networks: A company might want to connect locations, with cable and construction cost.</p><p>● Water pipelines: Several communities might need to be connected to a water source while minimizing pipeline length and construction expense.</p><p>● Transportation planning: Cities, railway stations, airports, hospitals or industrial zones might need to be connected through a transportation network.</p><p><strong>References</strong></p><p>● Asadi Bagloee, S., &amp; Sarvi, M. (2018). An outer approximation method for the road network design problem. PLOS ONE, 13(3) e0192454.</p><p>● Trevisan, L. Steiner Tree Approximation. Stanford University, CS261 lecture notes.</p><p>● Stanford University. Online Steiner Tree Algorithms CS369 course notes.</p><p>● Cheriyan, J., &amp; Vetta A. Approximation Algorithms for Network Design with Metric Costs. SIAM Journal on Discrete Mathematics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48d92ddbc341" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>