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


<mxfile host="app.diagrams.net" version="24.0.0">
  <diagram id="task1_classic_bw" name="Задание 1">
    <mxGraphModel dx="1000" dy="1200" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
      <root>
        <mxCell id="0" />
        <mxCell id="1" parent="0" />

        <!-- 1. НАЧАЛО -->
        <mxCell id="b_start" value="начало" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="340" y="30" width="130" height="35" as="geometry" />
        </mxCell>

        <!-- 2. ВВОД k -->
        <mxCell id="b_in" value="вв. k" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="340" y="90" width="130" height="35" as="geometry" />
        </mxCell>

        <!-- 3. ПРОВЕРКА k < 1 -->
        <mxCell id="b_kcheck" value="k &lt; 1" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="345" y="150" width="120" height="45" as="geometry" />
        </mxCell>

        <!-- ОШИБКА: отодвинута вправо -->
        <mxCell id="b_err" value="выв. ошибка" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="540" y="155" width="130" height="35" as="geometry" />
        </mxCell>

        <!-- 4. ИНИЦИАЛИЗАЦИЯ P -->
        <mxCell id="b_p1" value="P = 1" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="345" y="225" width="120" height="35" as="geometry" />
        </mxCell>

        <!-- 5. ЦИКЛ m -->
        <mxCell id="b_loop" value="m = 1 .. k + 2" style="shape=hexagon;perimeter=hexagonPerimeter2;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="325" y="290" width="160" height="45" as="geometry" />
        </mxCell>

        <!-- 6. ПРОВЕРКА m = 4 -->
        <mxCell id="b_mcheck" value="m = 4" style="rhombus;whiteSpace=wrap;html=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="350" y="365" width="110" height="45" as="geometry" />
        </mxCell>

        <!-- 7. ВЫЧИСЛЕНИЕ P -->
        <mxCell id="b_calc" value="P = P · (m³ - 8) / (m - 4)" style="rounded=0;whiteSpace=wrap;html=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=13;" vertex="1" parent="1">
          <mxGeometry x="310" y="445" width="190" height="40" as="geometry" />
        </mxCell>

        <!-- 8. ВЫВОД P -->
        <mxCell id="b_out" value="выв. P" style="shape=parallelogram;perimeter=parallelogramPerimeter;whiteSpace=wrap;html=1;fixedSize=1;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="340" y="555" width="130" height="35" as="geometry" />
        </mxCell>

        <!-- 9. КОНЕЦ -->
        <mxCell id="b_end" value="конец" style="rounded=1;whiteSpace=wrap;html=1;arcSize=50;strokeWidth=1.5;strokeColor=#000000;fillColor=#FFFFFF;fontColor=#000000;fontFamily=Times New Roman;fontSize=14;" vertex="1" parent="1">
          <mxGeometry x="340" y="625" width="130" height="35" as="geometry" />
        </mxCell>

        <!-- СВЯЗИ ВЕРТИКАЛЬНЫЕ -->
        <mxCell id="e1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_start" target="b_in"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_in" target="b_kcheck"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- ВЕТВЛЕНИЕ k < 1 -->
        <mxCell id="e_k_yes" value="Да" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;fontColor=#000000;fontFamily=Times New Roman;fontSize=12;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="b_kcheck" target="b_err"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e_k_no" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;fontColor=#000000;fontFamily=Times New Roman;fontSize=12;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="b_kcheck" target="b_p1"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- ВЫХОД ИЗ ОШИБКИ В КОНЕЦ (Коридор справа X = 720) -->
        <mxCell id="e_err_end" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_err" target="b_end">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="605" y="210" />
              <mxPoint x="720" y="210" />
              <mxPoint x="720" y="642" />
            </Array>
          </mxGeometry>
        </mxCell>

        <mxCell id="e3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_p1" target="b_loop"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_loop" target="b_mcheck"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- ВЕТВЛЕНИЕ m = 4 -->
        <mxCell id="e_m_no" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;fontColor=#000000;fontFamily=Times New Roman;fontSize=12;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="b_mcheck" target="b_calc"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- ОБХОД m = 4 (Да) -> Коридор справа X = 515, затем в общий возврат -->
        <mxCell id="e_m_yes" value="Да" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=none;fontColor=#000000;fontFamily=Times New Roman;fontSize=12;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="b_mcheck">
          <mxGeometry relative="1" as="geometry">
            <mxPoint x="405" y="515" as="targetPoint" />
            <Array as="points">
              <mxPoint x="515" y="388" />
              <mxPoint x="515" y="515" />
            </Array>
          </mxGeometry>
        </mxCell>

        <!-- ВОЗВРАТ В ЦИКЛ (БЛИЖНИЙ ЛЕВЫЙ КОРИДОР X = 230) -->
        <mxCell id="e_loop_ret" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_calc" target="b_loop">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="405" y="515" />
              <mxPoint x="230" y="515" />
              <mxPoint x="230" y="312" />
            </Array>
          </mxGeometry>
        </mxCell>

        <!-- ВЫХОД ИЗ ЦИКЛА (ДАЛЬНИЙ ЛЕВЫЙ КОРИДОР X = 130) -->
        <mxCell id="e_loop_out" value="Нет" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;fontColor=#000000;fontFamily=Times New Roman;fontSize=12;labelBackgroundColor=#FFFFFF;" edge="1" parent="1" source="b_loop" target="b_out">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="130" y="312" />
              <mxPoint x="130" y="572" />
            </Array>
          </mxGeometry>
        </mxCell>

        <mxCell id="e5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_out" target="b_end"><mxGeometry relative="1" as="geometry" /></mxCell>

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