109 lines
10 KiB
Plaintext
109 lines
10 KiB
Plaintext
<mxfile host="65bd71144e">
|
|
<diagram id="x3mvl7MIxiUfgaiuTItL" name="Page-1">
|
|
<mxGraphModel dx="950" dy="1232" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" background="#ffffff" math="0" shadow="0">
|
|
<root>
|
|
<mxCell id="0"/>
|
|
<mxCell id="1" parent="0"/>
|
|
<mxCell id="10" value="<div style="line-height: 24px;"><div style=""><font color="#1a1a1a" style="font-size: 12px;">initialize</font></div><div style=""><div>sales = [100, 200, 100, 200, 300, 400, -1]</div><div>i = 0</div><div>inventory = 1000</div></div><div style="background-color: rgb(30, 30, 30); font-size: 18px; font-family: &quot;Monaco for Powerline&quot;, &quot;Droid Sans Mono&quot;, &quot;monospace&quot;, monospace, Consolas, &quot;Courier New&quot;, monospace;"></div></div>" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#E6E6E6;fontColor=#050505;strokeColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="281.5" y="-370" width="288" height="130" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="11" value="sales[i] &gt;= 0 ?" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#1A1A1A;fillColor=#E6E6E6;fontColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="363" y="-160" width="125" height="80" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="13" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeColor=#1A1A1A;" parent="1" edge="1">
|
|
<mxGeometry relative="1" as="geometry">
|
|
<mxPoint x="424.64" y="-240" as="sourcePoint"/>
|
|
<mxPoint x="425.14" y="-160" as="targetPoint"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="14" value="<div style="line-height: 24px;"><div style="">inventory = inventory - sales[i]</div><div style="background-color: rgb(30, 30, 30); font-size: 18px; font-family: &quot;Monaco for Powerline&quot;, &quot;Droid Sans Mono&quot;, &quot;monospace&quot;, monospace, Consolas, &quot;Courier New&quot;, monospace;"></div></div>" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#1A1A1A;fillColor=#E6E6E6;fontColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="326" y="-30" width="198" height="60" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="17" value="inventory &lt; 0" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#1A1A1A;fillColor=#E6E6E6;fontColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="362.5" y="100" width="125" height="80" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="18" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeColor=#1A1A1A;" parent="1" source="14" target="17" edge="1">
|
|
<mxGeometry relative="1" as="geometry">
|
|
<mxPoint x="435.5" y="-70" as="sourcePoint"/>
|
|
<mxPoint x="435.0000000000001" y="-20" as="targetPoint"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="19" value="<div style="line-height: 24px;"><div style="">i = i + 1</div><div style="background-color: rgb(30, 30, 30); font-size: 18px; font-family: &quot;Monaco for Powerline&quot;, &quot;Droid Sans Mono&quot;, &quot;monospace&quot;, monospace, Consolas, &quot;Courier New&quot;, monospace;"></div></div>" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#1A1A1A;fillColor=#E6E6E6;fontColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="580" y="110" width="86" height="60" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="20" value="True" style="edgeStyle=none;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;strokeColor=#1A1A1A;labelBackgroundColor=none;fontColor=#1A1A1A;" parent="1" source="17" edge="1">
|
|
<mxGeometry x="-0.856" y="-10" relative="1" as="geometry">
|
|
<mxPoint x="424.81" y="180" as="sourcePoint"/>
|
|
<mxPoint x="310" y="-120" as="targetPoint"/>
|
|
<Array as="points">
|
|
<mxPoint x="310" y="140"/>
|
|
</Array>
|
|
<mxPoint as="offset"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="23" value="False" style="edgeStyle=none;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;strokeColor=#1A1A1A;labelBackgroundColor=none;fontColor=#1A1A1A;" parent="1" target="19" edge="1">
|
|
<mxGeometry x="-0.1111" y="10" relative="1" as="geometry">
|
|
<mxPoint x="490" y="140" as="sourcePoint"/>
|
|
<mxPoint x="434.81000000000006" y="260" as="targetPoint"/>
|
|
<mxPoint as="offset"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="24" value="" style="edgeStyle=none;html=1;entryX=1;entryY=0.5;entryDx=0;entryDy=0;strokeColor=#1A1A1A;labelBackgroundColor=none;fontColor=#1A1A1A;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="19" target="11" edge="1">
|
|
<mxGeometry x="0.1429" y="15" relative="1" as="geometry">
|
|
<mxPoint x="500" y="150" as="sourcePoint"/>
|
|
<mxPoint x="590" y="150" as="targetPoint"/>
|
|
<mxPoint as="offset"/>
|
|
<Array as="points">
|
|
<mxPoint x="740" y="140"/>
|
|
<mxPoint x="740" y="-120"/>
|
|
</Array>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="25" value="inventory &gt;= 0" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#1A1A1A;fillColor=#E6E6E6;fontColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="185" y="-50" width="100" height="80" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="26" value="False" style="edgeStyle=none;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeColor=#1A1A1A;labelBackgroundColor=none;fontColor=#1A1A1A;" parent="1" source="11" target="25" edge="1">
|
|
<mxGeometry x="0.1429" y="15" relative="1" as="geometry">
|
|
<mxPoint x="434.80999999999995" y="190" as="sourcePoint"/>
|
|
<mxPoint x="434.80999999999995" y="260" as="targetPoint"/>
|
|
<mxPoint as="offset"/>
|
|
<Array as="points">
|
|
<mxPoint x="235" y="-120"/>
|
|
</Array>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="27" value="True" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;strokeColor=#1A1A1A;labelBackgroundColor=none;fontColor=#1A1A1A;" parent="1" source="11" target="14" edge="1">
|
|
<mxGeometry x="0.1429" y="15" relative="1" as="geometry">
|
|
<mxPoint x="434.80999999999995" y="190" as="sourcePoint"/>
|
|
<mxPoint x="434.80999999999995" y="260" as="targetPoint"/>
|
|
<mxPoint as="offset"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="28" value="<div style="line-height: 24px;"><div style="">print inventory left</div><div style="background-color: rgb(30, 30, 30); font-size: 18px; font-family: &quot;Monaco for Powerline&quot;, &quot;Droid Sans Mono&quot;, &quot;monospace&quot;, monospace, Consolas, &quot;Courier New&quot;, monospace;"></div></div>" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#1A1A1A;fillColor=#E6E6E6;fontColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="50" y="110" width="110" height="60" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="29" value="True" style="edgeStyle=none;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;strokeColor=#1A1A1A;labelBackgroundColor=none;fontColor=#1A1A1A;" parent="1" source="25" edge="1">
|
|
<mxGeometry x="0.1429" y="15" relative="1" as="geometry">
|
|
<mxPoint x="104.57999999999993" y="40" as="sourcePoint"/>
|
|
<mxPoint x="104.57999999999993" y="110" as="targetPoint"/>
|
|
<mxPoint as="offset"/>
|
|
<Array as="points">
|
|
<mxPoint x="105" y="-10"/>
|
|
</Array>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
<mxCell id="30" value="<div style="line-height: 24px;"><div style="">print</div><div style="">out of stock</div><div style="background-color: rgb(30, 30, 30); font-size: 18px; font-family: &quot;Monaco for Powerline&quot;, &quot;Droid Sans Mono&quot;, &quot;monospace&quot;, monospace, Consolas, &quot;Courier New&quot;, monospace;"></div></div>" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#1A1A1A;fillColor=#E6E6E6;fontColor=#1A1A1A;" parent="1" vertex="1">
|
|
<mxGeometry x="180" y="110" width="110" height="60" as="geometry"/>
|
|
</mxCell>
|
|
<mxCell id="31" value="False" style="edgeStyle=none;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;strokeColor=#1A1A1A;labelBackgroundColor=none;fontColor=#1A1A1A;" parent="1" target="30" edge="1">
|
|
<mxGeometry x="0.1429" y="15" relative="1" as="geometry">
|
|
<mxPoint x="234.6599999999999" y="30" as="sourcePoint"/>
|
|
<mxPoint x="234.6599999999999" y="100" as="targetPoint"/>
|
|
<mxPoint as="offset"/>
|
|
</mxGeometry>
|
|
</mxCell>
|
|
</root>
|
|
</mxGraphModel>
|
|
</diagram>
|
|
</mxfile>
|