forked from pvfj5ugro/text3
Merge pull request 'XZG_AsScortbyNum流程图' (#23) from XZG_AsScortbyNum流程图 into master
pvfj5ugro
2 years ago
commit
1bcd4f8f5d
@ -0,0 +1,239 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created by Flowgorithm 3.4.2 (http://flowgorithm.org) -->
|
||||||
|
|
||||||
|
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="2728" height="5487">
|
||||||
|
<rect x="0" y="0" width="2728" height="5487" fill="#FFFFFF"/>
|
||||||
|
<g>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,248 372,323"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="372,341 389,310 354,310"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,1488 372,5221"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="372,5239 389,5208 354,5208"/>
|
||||||
|
<g>
|
||||||
|
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 186,124 A 62 62, 0, 0 0, 186 248 L 558,248 A 62 62, 0, 0 0, 558 124 Z"/>
|
||||||
|
<text x="372" y="142" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="372" dy="62" unicode-bidi="embed">AsSortbyNum</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#F0E0FF" stroke="#9070A0" stroke-width="4" stroke-dasharray="none" d="M 248,5239 A 62 62, 0, 0 0, 248 5363 L 496,5363 A 62 62, 0, 0 0, 496 5239 Z"/>
|
||||||
|
<text x="372" y="5257" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="372" dy="62" unicode-bidi="embed">End</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,496 372,571"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="372,589 389,558 354,558"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,744 372,819"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="372,837 389,806 354,806"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,992 372,1067"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="372,1085 389,1054 354,1054"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="372,1240 372,1346"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="372,1364 389,1333 354,1333"/>
|
||||||
|
<g>
|
||||||
|
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,341 L 186,496 L 558,496 L 558,341 Z"/>
|
||||||
|
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,372 558,372"/>
|
||||||
|
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,341 217,496"/>
|
||||||
|
<text x="387" y="390" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="387" dy="62" unicode-bidi="embed">Integer i</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,589 L 186,744 L 558,744 L 558,589 Z"/>
|
||||||
|
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,620 558,620"/>
|
||||||
|
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,589 217,744"/>
|
||||||
|
<text x="387" y="638" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="387" dy="62" unicode-bidi="embed">Integer j</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,837 L 186,992 L 558,992 L 558,837 Z"/>
|
||||||
|
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,868 558,868"/>
|
||||||
|
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,837 217,992"/>
|
||||||
|
<text x="387" y="886" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="387" dy="62" unicode-bidi="embed">Integer k</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 186,1085 L 186,1240 L 558,1240 L 558,1085 Z"/>
|
||||||
|
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="186,1116 558,1116"/>
|
||||||
|
<polyline fill="none" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" points="217,1085 217,1240"/>
|
||||||
|
<text x="387" y="1134" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="387" dy="62" unicode-bidi="embed">Integer t</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="620,1426 992,1426 992,1532"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="992,1550 1009,1519 974,1519"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="992,5022 992,5115 434,5115 434,1505"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="434,1488 416,1518 451,1518"/>
|
||||||
|
<g>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="992,1674 992,1780"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="992,1798 1009,1767 974,1767"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="992,1922 992,2958"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="992,2976 1009,2945 974,2945"/>
|
||||||
|
<g>
|
||||||
|
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 806,1550 L 806,1674 L 1178,1674 L 1178,1550 Z"/>
|
||||||
|
<text x="992" y="1568" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="992" dy="62" unicode-bidi="embed">k = i</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1240,1860 1829,1860 1829,1966"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="1829,1984 1846,1953 1811,1953"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1829,2759 1829,2852 1054,2852 1054,1939"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="1054,1922 1036,1952 1071,1952"/>
|
||||||
|
<g>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2201,2201 2418,2201 2418,2462"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="2418,2480 2435,2449 2400,2449"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2418,2604 2418,2728 1877,2728"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="1860,2728 1890,2745 1890,2710"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1457,2201 1209,2201 1209,2728 1780,2728"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="1798,2728 1767,2710 1767,2745"/>
|
||||||
|
<g>
|
||||||
|
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1829,1984 L 1426,2201 L 1829,2418 L 2232,2201 Z"/>
|
||||||
|
<text x="1829" y="2157" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="1829" dy="62" unicode-bidi="embed">if (stu[j].num < stu[k].num)</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#FFFFD0" stroke="#A0A070" stroke-width="4" stroke-dasharray="none" d="M 2232,2480 L 2232,2604 L 2604,2604 L 2604,2480 Z"/>
|
||||||
|
<text x="2418" y="2498" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="2418" dy="62" unicode-bidi="embed">k = j</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
</g>
|
||||||
|
<ellipse cx="1829" cy="2728" rx="31" ry="31" fill="#C04040" stroke="#602020" stroke-width="4"/>
|
||||||
|
<text x="2325" y="2095" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="2325" dy="62" unicode-bidi="embed">True</tspan>
|
||||||
|
</text>
|
||||||
|
<text x="1317" y="2095" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="1317" dy="62" unicode-bidi="embed">False</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 806,1798 L 744,1860 L 806,1922 L 1178,1922 L 1240,1860 L 1178,1798 Z"/>
|
||||||
|
<text x="992" y="1816" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="992" dy="62" unicode-bidi="embed">j = i+1 to n-1</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<text x="1333" y="1754" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="1333" dy="62" unicode-bidi="embed">Next</tspan>
|
||||||
|
</text>
|
||||||
|
<text x="883" y="1940" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="883" dy="62" unicode-bidi="embed">Done</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1147,3069 1519,3069 1519,3237"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="1519,3255 1536,3224 1501,3224"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,4867 1519,4991 1040,4991"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="1023,4991 1053,5008 1053,4973"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="837,3069 589,3069 589,4991 943,4991"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="961,4991 930,4973 930,5008"/>
|
||||||
|
<g>
|
||||||
|
<path fill="#FFD0D0" stroke="#A07070" stroke-width="4" stroke-dasharray="none" d="M 992,2976 L 806,3069 L 992,3162 L 1178,3069 Z"/>
|
||||||
|
<text x="992" y="3025" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="992" dy="62" unicode-bidi="embed">k != i</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,3379 1519,3826"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="1519,3844 1536,3813 1501,3813"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,4030 1519,4105"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="1519,4123 1536,4092 1501,4092"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,4309 1519,4384"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="1519,4402 1536,4371 1501,4371"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1519,4588 1519,4663"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="1519,4681 1536,4650 1501,4650"/>
|
||||||
|
<g>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="1767,3317 2139,3317 2139,3423"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="2139,3441 2156,3410 2121,3410"/>
|
||||||
|
<polyline fill="none" stroke="#404040" stroke-width="8" stroke-dasharray="none" points="2139,3627 2139,3720 1581,3720 1581,3396"/>
|
||||||
|
<polygon fill="#404040" stroke="none" points="1581,3379 1563,3409 1598,3409"/>
|
||||||
|
<g>
|
||||||
|
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1705,3441 L 1705,3627 L 2573,3627 L 2573,3441 Z"/>
|
||||||
|
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1736,3441 1736,3627"/>
|
||||||
|
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="2542,3441 2542,3627"/>
|
||||||
|
<text x="2139" y="3459" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="2139" dy="62" unicode-bidi="embed">SwapFloat(&stu[k].score[t], &</tspan>
|
||||||
|
<tspan x="2139" dy="62" unicode-bidi="embed">stu[i].score[t])</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 1333,3255 L 1271,3317 L 1333,3379 L 1705,3379 L 1767,3317 L 1705,3255 Z"/>
|
||||||
|
<text x="1519" y="3273" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="1519" dy="62" unicode-bidi="embed">t = 0 to m-1</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<text x="1860" y="3211" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="1860" dy="62" unicode-bidi="embed">Next</tspan>
|
||||||
|
</text>
|
||||||
|
<text x="1410" y="3397" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="1410" dy="62" unicode-bidi="embed">Done</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1054,3844 L 1054,4030 L 1984,4030 L 1984,3844 Z"/>
|
||||||
|
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1085,3844 1085,4030"/>
|
||||||
|
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1953,3844 1953,4030"/>
|
||||||
|
<text x="1519" y="3862" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="1519" dy="62" unicode-bidi="embed">SwapFloat(&stu[k].sum, &stu[i].</tspan>
|
||||||
|
<tspan x="1519" dy="62" unicode-bidi="embed">sum)</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1054,4123 L 1054,4309 L 1984,4309 L 1984,4123 Z"/>
|
||||||
|
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1085,4123 1085,4309"/>
|
||||||
|
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1953,4123 1953,4309"/>
|
||||||
|
<text x="1519" y="4141" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="1519" dy="62" unicode-bidi="embed">SwapFloat(&stu[k].aver, &stu[i].</tspan>
|
||||||
|
<tspan x="1519" dy="62" unicode-bidi="embed">aver)</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1054,4402 L 1054,4588 L 1984,4588 L 1984,4402 Z"/>
|
||||||
|
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1085,4402 1085,4588"/>
|
||||||
|
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1953,4402 1953,4588"/>
|
||||||
|
<text x="1519" y="4420" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="1519" dy="62" unicode-bidi="embed">SwapLong(&stu[k].num, &stu[i].</tspan>
|
||||||
|
<tspan x="1519" dy="62" unicode-bidi="embed">num)</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#C04040" stroke="#602020" stroke-width="4" stroke-dasharray="none" d="M 1116,4681 L 1116,4867 L 1922,4867 L 1922,4681 Z"/>
|
||||||
|
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1147,4681 1147,4867"/>
|
||||||
|
<polyline fill="none" stroke="#602020" stroke-width="4" stroke-dasharray="none" points="1891,4681 1891,4867"/>
|
||||||
|
<text x="1519" y="4699" fill="#FFFFFF" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="1519" dy="62" unicode-bidi="embed">SwapChar(stu[k].name, stu</tspan>
|
||||||
|
<tspan x="1519" dy="62" unicode-bidi="embed">[i].name)</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
</g>
|
||||||
|
<ellipse cx="992" cy="4991" rx="31" ry="31" fill="#FFD0D0" stroke="#A07070" stroke-width="4"/>
|
||||||
|
<text x="1271" y="2963" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="1271" dy="62" unicode-bidi="embed">True</tspan>
|
||||||
|
</text>
|
||||||
|
<text x="697" y="2963" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="697" dy="62" unicode-bidi="embed">False</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path fill="#FFE0A0" stroke="#A08040" stroke-width="4" stroke-dasharray="none" d="M 186,1364 L 124,1426 L 186,1488 L 558,1488 L 620,1426 L 558,1364 Z"/>
|
||||||
|
<text x="372" y="1382" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="372" dy="62" unicode-bidi="embed">i = 0 to n-2</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<text x="713" y="1320" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="713" dy="62" unicode-bidi="embed">Next</tspan>
|
||||||
|
</text>
|
||||||
|
<text x="263" y="1506" fill="#000000" font-family="Arial" font-size="32pt" text-anchor="middle" direction="ltr">
|
||||||
|
<tspan x="263" dy="62" unicode-bidi="embed">Done</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 16 KiB |
Write
Preview
Loading…
Cancel
Save
Reference in new issue