Загрузка данных


<mxfile host="app.diagrams.net">
  <diagram id="lab14-task3" name="Задание 3">
    <mxGraphModel dx="900" dy="700" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="800" pageHeight="700" background="#ffffff">
      <root>
        <mxCell id="0"/>
        <mxCell id="1" parent="0"/>

        <!-- ================= СЛЕВА СВЕРХУ: getCount ================= -->
        <mxCell id="g1" value="Начало getCount(K, n)" style="rounded=1;arcSize=50;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="40" y="30" width="160" height="36" as="geometry"/>
        </mxCell>
        <mxCell id="g2" value="count = 0" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="50" y="86" width="140" height="32" as="geometry"/>
        </mxCell>
        <mxCell id="g3" value="i от 0 до n - 1" style="shape=hexagon;perimeter=hexagonPerimeter2;fixedSize=1;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="40" y="138" width="160" height="34" as="geometry"/>
        </mxCell>
        <mxCell id="g4" value="K[i] не равно 0" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="45" y="192" width="150" height="46" as="geometry"/>
        </mxCell>
        <mxCell id="g5" value="count = count + 1" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="50" y="258" width="140" height="32" as="geometry"/>
        </mxCell>
        <mxCell id="g6" value="Возврат count" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="50" y="310" width="140" height="32" as="geometry"/>
        </mxCell>
        <mxCell id="g7" value="Конец" style="rounded=1;arcSize=50;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="40" y="362" width="160" height="36" as="geometry"/>
        </mxCell>

        <mxCell id="ge1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="g1" target="g2"><mxGeometry relative="1" as="geometry"/></mxCell>
        <mxCell id="ge2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="g2" target="g3"><mxGeometry relative="1" as="geometry"/></mxCell>
        <mxCell id="ge3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="g3" target="g4"><mxGeometry relative="1" as="geometry"/></mxCell>
        <mxCell id="ge4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="g4" target="g5">
          <mxGeometry relative="1" as="geometry"/>
        </mxCell>
        <mxCell id="ge4_l" value="Да" style="edgeLabel;html=1;align=center;verticalAlign=middle;" vertex="1" connectable="0" parent="ge4">
          <mxGeometry x="-0.2" relative="1" as="geometry"><mxPoint x="12" y="0" as="offset"/></mxGeometry>
        </mxCell>
        <mxCell id="ge5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;exitX=0.5;exitY=1;entryX=0;entryY=0.5;" edge="1" parent="1" source="g5" target="g3">
          <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="120" y="298"/><mxPoint x="20" y="298"/><mxPoint x="20" y="155"/></Array></mxGeometry>
        </mxCell>
        <mxCell id="ge6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=none;exitX=1;exitY=0.5;" edge="1" parent="1" source="g4">
          <mxGeometry relative="1" as="geometry"><mxPoint x="20" y="298" as="targetPoint"/><Array as="points"><mxPoint x="210" y="215"/><mxPoint x="210" y="298"/></Array></mxGeometry>
        </mxCell>
        <mxCell id="ge6_l" value="Нет" style="edgeLabel;html=1;align=center;verticalAlign=middle;" vertex="1" connectable="0" parent="ge6">
          <mxGeometry x="-0.7" relative="1" as="geometry"><mxPoint x="10" y="-10" as="offset"/></mxGeometry>
        </mxCell>
        <mxCell id="ge7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;exitX=1;exitY=0.5;entryX=1;entryY=0.5;" edge="1" parent="1" source="g3" target="g6">
          <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="225" y="155"/><mxPoint x="225" y="326"/></Array></mxGeometry>
        </mxCell>
        <mxCell id="ge8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="g6" target="g7"><mxGeometry relative="1" as="geometry"/></mxCell>

        <!-- ================= СЛЕВА СНИЗУ: makeX ================= -->
        <mxCell id="m1" value="Начало makeX(K, n, X)" style="rounded=1;arcSize=50;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="40" y="420" width="160" height="36" as="geometry"/>
        </mxCell>
        <mxCell id="m2" value="idx = 0" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="50" y="476" width="140" height="32" as="geometry"/>
        </mxCell>
        <mxCell id="m3" value="i от 0 до n - 1" style="shape=hexagon;perimeter=hexagonPerimeter2;fixedSize=1;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="40" y="528" width="160" height="34" as="geometry"/>
        </mxCell>
        <mxCell id="m4" value="K[i] не равно 0" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="45" y="582" width="150" height="46" as="geometry"/>
        </mxCell>
        <mxCell id="m5" value="X[idx] = K[i]; idx = idx + 1" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="45" y="648" width="150" height="32" as="geometry"/>
        </mxCell>
        <mxCell id="m6" value="Конец" style="rounded=1;arcSize=50;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="40" y="700" width="160" height="36" as="geometry"/>
        </mxCell>

        <mxCell id="me1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="m1" target="m2"><mxGeometry relative="1" as="geometry"/></mxCell>
        <mxCell id="me2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="m2" target="m3"><mxGeometry relative="1" as="geometry"/></mxCell>
        <mxCell id="me3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="m3" target="m4"><mxGeometry relative="1" as="geometry"/></mxCell>
        <mxCell id="me4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="m4" target="m5">
          <mxGeometry relative="1" as="geometry"/>
        </mxCell>
        <mxCell id="me4_l" value="Да" style="edgeLabel;html=1;align=center;verticalAlign=middle;" vertex="1" connectable="0" parent="me4">
          <mxGeometry x="-0.2" relative="1" as="geometry"><mxPoint x="12" y="0" as="offset"/></mxGeometry>
        </mxCell>
        <mxCell id="me5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;exitX=0.5;exitY=1;entryX=0;entryY=0.5;" edge="1" parent="1" source="m5" target="m3">
          <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="120" y="688"/><mxPoint x="20" y="688"/><mxPoint x="20" y="545"/></Array></mxGeometry>
        </mxCell>
        <mxCell id="me6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=none;exitX=1;exitY=0.5;" edge="1" parent="1" source="m4">
          <mxGeometry relative="1" as="geometry"><mxPoint x="20" y="688" as="targetPoint"/><Array as="points"><mxPoint x="210" y="605"/><mxPoint x="210" y="688"/></Array></mxGeometry>
        </mxCell>
        <mxCell id="me6_l" value="Нет" style="edgeLabel;html=1;align=center;verticalAlign=middle;" vertex="1" connectable="0" parent="me6">
          <mxGeometry x="-0.7" relative="1" as="geometry"><mxPoint x="10" y="-10" as="offset"/></mxGeometry>
        </mxCell>
        <mxCell id="me7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;exitX=1;exitY=0.5;entryX=1;entryY=0.5;" edge="1" parent="1" source="m3" target="m6">
          <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="225" y="545"/><mxPoint x="225" y="718"/></Array></mxGeometry>
        </mxCell>

        <!-- ================= СПРАВА: calc ================= -->
        <mxCell id="c1" value="Начало calc(X, m)" style="rounded=1;arcSize=50;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="360" y="30" width="180" height="36" as="geometry"/>
        </mxCell>
        <mxCell id="c2" value="m &amp;lt;= 1" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="375" y="86" width="150" height="46" as="geometry"/>
        </mxCell>
        <mxCell id="c_ret0" value="Возврат 0" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="580" y="93" width="110" height="32" as="geometry"/>
        </mxCell>
        <mxCell id="c3" value="minId = 0" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="380" y="152" width="140" height="32" as="geometry"/>
        </mxCell>
        <mxCell id="c4" value="i от 1 до m - 1" style="shape=hexagon;perimeter=hexagonPerimeter2;fixedSize=1;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="370" y="204" width="160" height="34" as="geometry"/>
        </mxCell>
        <mxCell id="c5" value="X[i] &amp;lt; X[minId]" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="375" y="258" width="150" height="46" as="geometry"/>
        </mxCell>
        <mxCell id="c6" value="minId = i" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="385" y="324" width="130" height="32" as="geometry"/>
        </mxCell>
        <mxCell id="c7" value="count = 0" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="380" y="386" width="140" height="32" as="geometry"/>
        </mxCell>
        <mxCell id="c8" value="i от minId + 1 до m - 1" style="shape=hexagon;perimeter=hexagonPerimeter2;fixedSize=1;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="360" y="438" width="180" height="34" as="geometry"/>
        </mxCell>
        <mxCell id="c9" value="X[i] &amp;gt; 0" style="rhombus;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="375" y="492" width="150" height="46" as="geometry"/>
        </mxCell>
        <mxCell id="c10" value="count = count + 1" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="385" y="558" width="130" height="32" as="geometry"/>
        </mxCell>
        <mxCell id="c11" value="Возврат count" style="rounded=0;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="380" y="620" width="140" height="32" as="geometry"/>
        </mxCell>
        <mxCell id="c12" value="Конец" style="rounded=1;arcSize=50;whiteSpace=wrap;html=1;strokeColor=#000000;strokeWidth=1.5;fillColor=#ffffff;" vertex="1" parent="1">
          <mxGeometry x="370" y="672" width="160" height="36" as="geometry"/>
        </mxCell>

        <mxCell id="ce1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="c1" target="c2"><mxGeometry relative="1" as="geometry"/></mxCell>
        <mxCell id="ce2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="c2" target="c_ret0">
          <mxGeometry relative="1" as="geometry"/>
        </mxCell>
        <mxCell id="ce2_l" value="Да" style="edgeLabel;html=1;align=center;verticalAlign=middle;" vertex="1" connectable="0" parent="ce2">
          <mxGeometry x="-0.1" relative="1" as="geometry"><mxPoint y="-10" as="offset"/></mxGeometry>
        </mxCell>
        <mxCell id="ce_exit0" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;exitX=0.5;exitY=1;entryX=1;entryY=0.5;" edge="1" parent="1" source="c_ret0" target="c12">
          <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="635" y="690"/></Array></mxGeometry>
        </mxCell>

        <mxCell id="ce3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="c2" target="c3">
          <mxGeometry relative="1" as="geometry"/>
        </mxCell>
        <mxCell id="ce3_l" value="Нет" style="edgeLabel;html=1;align=center;verticalAlign=middle;" vertex="1" connectable="0" parent="ce3">
          <mxGeometry x="-0.2" relative="1" as="geometry"><mxPoint x="14" y="0" as="offset"/></mxGeometry>
        </mxCell>

        <mxCell id="ce4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="c3" target="c4"><mxGeometry relative="1" as="geometry"/></mxCell>
        <mxCell id="ce5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="c4" target="c5"><mxGeometry relative="1" as="geometry"/></mxCell>
        <mxCell id="ce6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="c5" target="c6">
          <mxGeometry relative="1" as="geometry"/>
        </mxCell>
        <mxCell id="ce6_l" value="Да" style="edgeLabel;html=1;align=center;verticalAlign=middle;" vertex="1" connectable="0" parent="ce6">
          <mxGeometry x="-0.2" relative="1" as="geometry"><mxPoint x="12" y="0" as="offset"/></mxGeometry>
        </mxCell>

        <mxCell id="ce7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;exitX=0.5;exitY=1;entryX=0;entryY=0.5;" edge="1" parent="1" source="c6" target="c4">
          <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="450" y="366"/><mxPoint x="340" y="366"/><mxPoint x="340" y="221"/></Array></mxGeometry>
        </mxCell>
        <mxCell id="ce8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=none;exitX=1;exitY=0.5;" edge="1" parent="1" source="c5">
          <mxGeometry relative="1" as="geometry"><mxPoint x="340" y="366" as="targetPoint"/><Array as="points"><mxPoint x="540" y="281"/><mxPoint x="540" y="366"/></Array></mxGeometry>
        </mxCell>
        <mxCell id="ce8_l" value="Нет" style="edgeLabel;html=1;align=center;verticalAlign=middle;" vertex="1" connectable="0" parent="ce8">
          <mxGeometry x="-0.7" relative="1" as="geometry"><mxPoint x="10" y="-10" as="offset"/></mxGeometry>
        </mxCell>
        <mxCell id="ce9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;exitX=1;exitY=0.5;entryX=1;entryY=0.5;" edge="1" parent="1" source="c4" target="c7">
          <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="555" y="221"/><mxPoint x="555" y="402"/></Array></mxGeometry>
        </mxCell>

        <mxCell id="ce10" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="c7" target="c8"><mxGeometry relative="1" as="geometry"/></mxCell>
        <mxCell id="ce11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="c8" target="c9"><mxGeometry relative="1" as="geometry"/></mxCell>
        <mxCell id="ce12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="c9" target="c10">
          <mxGeometry relative="1" as="geometry"/>
        </mxCell>
        <mxCell id="ce12_l" value="Да" style="edgeLabel;html=1;align=center;verticalAlign=middle;" vertex="1" connectable="0" parent="ce12">
          <mxGeometry x="-0.2" relative="1" as="geometry"><mxPoint x="12" y="0" as="offset"/></mxGeometry>
        </mxCell>

        <mxCell id="ce13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;exitX=0.5;exitY=1;entryX=0;entryY=0.5;" edge="1" parent="1" source="c10" target="c8">
          <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="450" y="600"/><mxPoint x="340" y="600"/><mxPoint x="340" y="455"/></Array></mxGeometry>
        </mxCell>
        <mxCell id="ce14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=none;exitX=1;exitY=0.5;" edge="1" parent="1" source="c9">
          <mxGeometry relative="1" as="geometry"><mxPoint x="340" y="600" as="targetPoint"/><Array as="points"><mxPoint x="540" y="515"/><mxPoint x="540" y="600"/></Array></mxGeometry>
        </mxCell>
        <mxCell id="ce14_l" value="Нет" style="edgeLabel;html=1;align=center;verticalAlign=middle;" vertex="1" connectable="0" parent="ce14">
          <mxGeometry x="-0.7" relative="1" as="geometry"><mxPoint x="10" y="-10" as="offset"/></mxGeometry>
        </mxCell>
        <mxCell id="ce15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;exitX=1;exitY=0.5;entryX=1;entryY=0.5;" edge="1" parent="1" source="c8" target="c11">
          <mxGeometry relative="1" as="geometry"><Array as="points"><mxPoint x="555" y="455"/><mxPoint x="555" y="636"/></Array></mxGeometry>
        </mxCell>
        <mxCell id="ce16" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeColor=#000000;strokeWidth=1.5;endArrow=classic;" edge="1" parent="1" source="c11" target="c12"><mxGeometry relative="1" as="geometry"/></mxCell>

      </root>
    </mxGraphModel>
  </diagram>
</mxfile>