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


<mxfile host="app.diagrams.net" version="24.0.0">
  <diagram id="task2_classic_bw" name="Задание 2">
    <mxGraphModel dx="1200" dy="1400" 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="140" height="35" as="geometry" />
        </mxCell>

        <!-- 2. ВВОД x, n -->
        <mxCell id="b_in" value="вв. x, n" 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="140" height="35" as="geometry" />
        </mxCell>

        <!-- 3. ПРОВЕРКА ВВОДА -->
        <mxCell id="b_check_in" value="x = 0 или n &lt; 1" style="rhombus;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="330" y="150" width="160" height="50" 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="580" y="157.5" width="130" height="35" as="geometry" />
        </mxCell>

        <!-- 4. ИНИЦИАЛИЗАЦИЯ S -->
        <mxCell id="b_s0" value="S = 0" 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="230" width="130" height="35" as="geometry" />
        </mxCell>

        <!-- 5. ВНЕШНИЙ ЦИКЛ ПО k -->
        <mxCell id="b_loop_k" value="k = 1 .. n" 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="335" y="295" width="150" height="45" as="geometry" />
        </mxCell>

        <!-- 6. ПРОВЕРКА k = 2 -->
        <mxCell id="b_check_k" value="k = 2" 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="355" y="370" width="110" height="45" as="geometry" />
        </mxCell>

        <!-- 7. ВЫЧИСЛЕНИЕ a И СБРОС P -->
        <mxCell id="b_calc_a" value="a = (-3)³ᵏ⁺¹ / (2·(k-2)·x³ᵏ⁺¹)&#xa;P = 1" 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="300" y="445" width="220" height="45" as="geometry" />
        </mxCell>

        <!-- 8. ВНУТРЕННИЙ ЦИКЛ ПО m -->
        <mxCell id="b_loop_m" 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="330" y="520" width="160" height="45" as="geometry" />
        </mxCell>

        <!-- 9. ПРОВЕРКА m = 4 -->
        <mxCell id="b_check_m" 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="355" y="595" width="110" height="45" as="geometry" />
        </mxCell>

        <!-- 10. ВЫЧИСЛЕНИЕ P -->
        <mxCell id="b_calc_p" 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="670" width="200" height="40" as="geometry" />
        </mxCell>

        <!-- 11. НАКОПЛЕНИЕ СУММЫ S -->
        <mxCell id="b_calc_s" value="S = S + a · P" 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="340" y="780" width="140" height="40" as="geometry" />
        </mxCell>

        <!-- 12. ВЫВОД S -->
        <mxCell id="b_out" value="выв. S" 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="880" width="140" height="35" as="geometry" />
        </mxCell>

        <!-- 13. КОНЕЦ -->
        <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="945" width="140" 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_check_in"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- ОШИБКА ВВОДА -->
        <mxCell id="e_in_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_check_in" target="b_err"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e_in_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_check_in" target="b_s0"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- ЛИНИЯ ОШИБКИ В КОНЕЦ ПО ДАЛЬНЕМУ ПРАВОМУ КРАЮ (X = 760) -->
        <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="645" y="215" />
              <mxPoint x="760" y="215" />
              <mxPoint x="760" y="962" />
            </Array>
          </mxGeometry>
        </mxCell>

        <mxCell id="e3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_s0" target="b_loop_k"><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_k" target="b_check_k"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- ВЕТВЛЕНИЕ k = 2 -->
        <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_check_k" target="b_calc_a"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- ОБХОД k = 2 (Да) -> КОРИДОР СПРАВА X = 570 В ОБХОД ВНЕШНЕГО ЦИКЛА -->
        <mxCell id="e_k_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_check_k">
          <mxGeometry relative="1" as="geometry">
            <mxPoint x="410" y="845" as="targetPoint" />
            <Array as="points">
              <mxPoint x="570" y="393" />
              <mxPoint x="570" y="845" />
            </Array>
          </mxGeometry>
        </mxCell>

        <mxCell id="e5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_calc_a" target="b_loop_m"><mxGeometry relative="1" as="geometry" /></mxCell>
        <mxCell id="e6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_loop_m" target="b_check_m"><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_check_m" target="b_calc_p"><mxGeometry relative="1" as="geometry" /></mxCell>

        <!-- ОБХОД m = 4 (Да) -> КОРИДОР СПРАВА X = 530, ЗАТЕМ В ВОЗВРАТ ЦИКЛА m -->
        <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_check_m">
          <mxGeometry relative="1" as="geometry">
            <mxPoint x="410" y="735" as="targetPoint" />
            <Array as="points">
              <mxPoint x="530" y="618" />
              <mxPoint x="530" y="735" />
            </Array>
          </mxGeometry>
        </mxCell>

        <!-- ВОЗВРАТ ВО ВНУТРЕННИЙ ЦИКЛ m (КОРИДОР СЛЕВА X = 250) -->
        <mxCell id="e_loop_m_ret" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_calc_p" target="b_loop_m">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="410" y="735" />
              <mxPoint x="250" y="735" />
              <mxPoint x="250" y="542" />
            </Array>
          </mxGeometry>
        </mxCell>

        <!-- ВЫХОД ИЗ ВНУТРЕННЕГО ЦИКЛА m (Нет) -> В НАКОПЛЕНИЕ СУММЫ (КОРИДОР СЛЕВА X = 190) -->
        <mxCell id="e_loop_m_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_m" target="b_calc_s">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="190" y="542" />
              <mxPoint x="190" y="800" />
            </Array>
          </mxGeometry>
        </mxCell>

        <!-- ВОЗВРАТ ВО ВНЕШНИЙ ЦИКЛ k (ДАЛЬНИЙ ЛЕВЫЙ КОРИДОР X = 120) -->
        <mxCell id="e_loop_k_ret" style="edgeStyle=orthogonalEdgeStyle;rounded=0;strokeWidth=1.5;strokeColor=#000000;endArrow=classic;" edge="1" parent="1" source="b_calc_s" target="b_loop_k">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="410" y="845" />
              <mxPoint x="120" y="845" />
              <mxPoint x="120" y="317" />
            </Array>
          </mxGeometry>
        </mxCell>

        <!-- ВЫХОД ИЗ ВНЕШНЕГО ЦИКЛА k (Нет) -> В ВЫВОД S (СВЕРХДАЛЬНИЙ ЛЕВЫЙ КОРИДОР X = 60) -->
        <mxCell id="e_loop_k_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_k" target="b_out">
          <mxGeometry relative="1" as="geometry">
            <Array as="points">
              <mxPoint x="60" y="317" />
              <mxPoint x="60" y="897" />
            </Array>
          </mxGeometry>
        </mxCell>

        <mxCell id="e7" 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>