mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-07-17 12:02:22 +08:00
Documentation for 0953376d31
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
<map id="dynamic_programming/shortest_common_supersequence.cpp" name="dynamic_programming/shortest_common_supersequence.cpp">
|
||||
<area shape="rect" id="node1" title="SCS is a string Z which is the shortest supersequence of strings X and Y (may not be continuous in Z,..." alt="" coords="83,5,332,46"/>
|
||||
<area shape="rect" id="node2" title=" " alt="" coords="5,94,77,120"/>
|
||||
<area shape="rect" id="node3" title=" " alt="" coords="101,94,154,120"/>
|
||||
<area shape="rect" id="node4" title=" " alt="" coords="179,94,236,120"/>
|
||||
<area shape="rect" id="node5" title=" " alt="" coords="260,94,334,120"/>
|
||||
<area shape="rect" id="node6" title=" " alt="" coords="358,94,423,120"/>
|
||||
<area shape="rect" id="Node000001" title="SCS is a string Z which is the shortest supersequence of strings X and Y (may not be continuous in Z,..." alt="" coords="83,5,332,46"/>
|
||||
<area shape="rect" id="Node000002" title=" " alt="" coords="5,94,77,120"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="167,49,81,90,78,85,165,44"/>
|
||||
<area shape="rect" id="Node000003" title=" " alt="" coords="101,94,154,120"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="190,48,152,85,149,81,186,45"/>
|
||||
<area shape="rect" id="Node000004" title=" " alt="" coords="179,94,236,120"/>
|
||||
<area shape="poly" id="edge3_Node000001_Node000004" title=" " alt="" coords="210,46,210,79,205,79,205,46"/>
|
||||
<area shape="rect" id="Node000005" title=" " alt="" coords="260,94,334,120"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="232,44,274,82,271,86,228,48"/>
|
||||
<area shape="rect" id="Node000006" title=" " alt="" coords="358,94,423,120"/>
|
||||
<area shape="poly" id="edge5_Node000001_Node000006" title=" " alt="" coords="254,44,350,85,348,90,252,49"/>
|
||||
</map>
|
||||
|
||||
@@ -1 +1 @@
|
||||
fdc9dfad8a666df101ab59288ff8533d
|
||||
03eb93421e45b77bc06006b16ac59f15
|
||||
@@ -6,12 +6,22 @@
|
||||
<!-- Title: dynamic_programming/shortest_common_supersequence.cpp Pages: 1 -->
|
||||
<svg width="321pt" height="94pt"
|
||||
viewBox="0.00 0.00 320.88 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
||||
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
|
||||
<style type="text/css"><![CDATA[
|
||||
.node, .edge {opacity: 0.7;}
|
||||
.node.selected, .edge.selected {opacity: 1;}
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 89.75)">
|
||||
<title>dynamic_programming/shortest_common_supersequence.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="node1" class="node">
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_node1"><a xlink:title="SCS is a string Z which is the shortest supersequence of strings X and Y (may not be continuous in Z,...">
|
||||
<g id="a_Node000001"><a xlink:title="SCS is a string Z which is the shortest supersequence of strings X and Y (may not be continuous in Z,...">
|
||||
<polygon fill="#999999" stroke="#666666" points="245.25,-85.75 58.25,-85.75 58.25,-55.25 245.25,-55.25 245.25,-85.75"/>
|
||||
<text text-anchor="start" x="66.25" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">dynamic_programming</text>
|
||||
<text text-anchor="middle" x="151.75" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">/shortest_common_supersequence.cpp</text>
|
||||
@@ -19,79 +29,109 @@
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="node2" class="node">
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_node2"><a xlink:title=" ">
|
||||
<g id="a_Node000002"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="53.5,-19.25 0,-19.25 0,0 53.5,0 53.5,-19.25"/>
|
||||
<text text-anchor="middle" x="26.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1" class="edge">
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M120.53,-54.8C100.67,-45.44 75.13,-33.41 55.72,-24.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="57.46,-20.75 46.92,-19.65 54.48,-27.08 57.46,-20.75"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="node3" class="node">
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_node3"><a xlink:title=" ">
|
||||
<g id="a_Node000003"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="111.75,-19.25 71.75,-19.25 71.75,0 111.75,0 111.75,-19.25"/>
|
||||
<text text-anchor="middle" x="91.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2" class="edge">
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M136.92,-54.95C128.4,-46.59 117.66,-36.05 108.8,-27.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="111.59,-25.21 102,-20.7 106.69,-30.2 111.59,-25.21"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="node4" class="node">
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_node4"><a xlink:title=" ">
|
||||
<g id="a_Node000004"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="173.25,-19.25 130.25,-19.25 130.25,0 173.25,0 173.25,-19.25"/>
|
||||
<text text-anchor="middle" x="151.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3" class="edge">
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M151.75,-54.95C151.75,-47.62 151.75,-38.62 151.75,-30.66"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="155.25,-30.7 151.75,-20.7 148.25,-30.7 155.25,-30.7"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="node5" class="node">
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_node5"><a xlink:title=" ">
|
||||
<g id="a_Node000005"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="246.62,-19.25 190.88,-19.25 190.88,0 246.62,0 246.62,-19.25"/>
|
||||
<text text-anchor="middle" x="218.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">algorithm</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node5 -->
|
||||
<g id="edge4" class="edge">
|
||||
<g id="edge4_Node000001_Node000005" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M168.31,-54.95C178.02,-46.41 190.31,-35.62 200.33,-26.81"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="202.22,-28.93 207.42,-19.7 197.6,-23.67 202.22,-28.93"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="node6" class="node">
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_node6"><a xlink:title=" ">
|
||||
<g id="a_Node000006"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="312.88,-19.25 264.62,-19.25 264.62,0 312.88,0 312.88,-19.25"/>
|
||||
<text text-anchor="middle" x="288.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node6 -->
|
||||
<g id="edge5" class="edge">
|
||||
<g id="edge5_Node000001_Node000006" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M185.97,-54.8C208.03,-45.31 236.5,-33.08 257.87,-23.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="258.93,-26.82 266.74,-19.65 256.17,-20.39 258.93,-26.82"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
|
||||
<style type='text/css'>
|
||||
<![CDATA[
|
||||
[data-mouse-over-selected='false'] { opacity: 0.7; }
|
||||
[data-mouse-over-selected='true'] { opacity: 1.0; }
|
||||
]]>
|
||||
</style>
|
||||
<script type="application/ecmascript"><![CDATA[
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
highlightEdges();
|
||||
highlightAdjacentNodes();
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 5.6 KiB |
112
d5/d48/shortest__common__supersequence_8cpp__incl_org.svg
Normal file
112
d5/d48/shortest__common__supersequence_8cpp__incl_org.svg
Normal file
@@ -0,0 +1,112 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 8.0.5 (20230430.1635)
|
||||
-->
|
||||
<!-- Title: dynamic_programming/shortest_common_supersequence.cpp Pages: 1 -->
|
||||
<svg width="321pt" height="94pt"
|
||||
viewBox="0.00 0.00 320.88 93.75" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 89.75)">
|
||||
<title>dynamic_programming/shortest_common_supersequence.cpp</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="SCS is a string Z which is the shortest supersequence of strings X and Y (may not be continuous in Z,...">
|
||||
<polygon fill="#999999" stroke="#666666" points="245.25,-85.75 58.25,-85.75 58.25,-55.25 245.25,-55.25 245.25,-85.75"/>
|
||||
<text text-anchor="start" x="66.25" y="-72.25" font-family="Helvetica,sans-Serif" font-size="10.00">dynamic_programming</text>
|
||||
<text text-anchor="middle" x="151.75" y="-61" font-family="Helvetica,sans-Serif" font-size="10.00">/shortest_common_supersequence.cpp</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="53.5,-19.25 0,-19.25 0,0 53.5,0 53.5,-19.25"/>
|
||||
<text text-anchor="middle" x="26.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">iostream</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M120.53,-54.8C100.67,-45.44 75.13,-33.41 55.72,-24.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="57.46,-20.75 46.92,-19.65 54.48,-27.08 57.46,-20.75"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="111.75,-19.25 71.75,-19.25 71.75,0 111.75,0 111.75,-19.25"/>
|
||||
<text text-anchor="middle" x="91.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">string</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M136.92,-54.95C128.4,-46.59 117.66,-36.05 108.8,-27.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="111.59,-25.21 102,-20.7 106.69,-30.2 111.59,-25.21"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="173.25,-19.25 130.25,-19.25 130.25,0 173.25,0 173.25,-19.25"/>
|
||||
<text text-anchor="middle" x="151.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">vector</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node4 -->
|
||||
<g id="edge3_Node000001_Node000004" class="edge">
|
||||
<title>Node1->Node4</title>
|
||||
<g id="a_edge3_Node000001_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M151.75,-54.95C151.75,-47.62 151.75,-38.62 151.75,-30.66"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="155.25,-30.7 151.75,-20.7 148.25,-30.7 155.25,-30.7"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="246.62,-19.25 190.88,-19.25 190.88,0 246.62,0 246.62,-19.25"/>
|
||||
<text text-anchor="middle" x="218.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">algorithm</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node5 -->
|
||||
<g id="edge4_Node000001_Node000005" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M168.31,-54.95C178.02,-46.41 190.31,-35.62 200.33,-26.81"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="202.22,-28.93 207.42,-19.7 197.6,-23.67 202.22,-28.93"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:title=" ">
|
||||
<polygon fill="#e0e0e0" stroke="#999999" points="312.88,-19.25 264.62,-19.25 264.62,0 312.88,0 312.88,-19.25"/>
|
||||
<text text-anchor="middle" x="288.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">cassert</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node6 -->
|
||||
<g id="edge5_Node000001_Node000006" class="edge">
|
||||
<title>Node1->Node6</title>
|
||||
<g id="a_edge5_Node000001_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M185.97,-54.8C208.03,-45.31 236.5,-33.08 257.87,-23.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="258.93,-26.82 266.74,-19.65 256.17,-20.39 258.93,-26.82"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.8 KiB |
Reference in New Issue
Block a user