<snapdata remixID="9460334"><project name="Binomial Heap Sort" app="Snap! 6, https://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAITklEQVR4Xu3dbWxT1x3H8a/xcyBPuMHBEPFgkdGsoLCJSu20aZ14GKo2dSla2US79sXWiRdoL6apqtQXezN10rZqqrRW1VZNmwa0GoOWwQIxpJSGEJKWLgPSgLM2kBAanAfII7aDJ8IE0kbwta9vrrB/vOHNOf+T+zsfTjjX1+c6UqlUCv1RAlkm4HA4HFl2ne7mEEAz8amvAMqArQkIoK3xa3ABlAFbExBAW+PX4AIoA5klMDQGe0/CqU8hUAxVATgZha/VQFsXPL8evhAyXFMADUelhtMJxEbgzSPQ0A7hIITKofkcrFsNLefhxTqoXWo4LAE0HJUaCqAM2J+AVkD756CgfwIBLOjpt//iBdD+OSjon0AAC3r6Z+fihxJQ4oJLk1DhhVgcPA7wOyE6CA3N2gXPzkwU6CgvR2HiBuzoge8tgsYYVPqgygeRXtg6IYAFSmN2LlsAZydnjTJDAgIoGrYmIIC2xq/BBVAGbE1AAG2NX4MLoAxYmUDqKsR3Q+JDmLMAHCGYagP312HqJHivRnFW6TaMlXNQ0LVTgzD5e4gfBGc1OIK34LnXQ/I4+N1RXCsEsKCRWHnxAmhluqqdNgEBTBuRGliZgABama5qp01AANNGpAZWJiCAVqar2tMJTA6CpxhGeqFoAUxcAacXXH6Y7AJPRLtgUbEwgdZfQWIEOnbByi1wIQLFi2FuCC5H4ImnBdDC+FVaAGXA1gQE0Nb4NbgAyoCtCQigrfFrcAGUAVsTEEBb48//wcdGoP4tONMGFSF4IAhnP4KHH4P2E7BsFBYv0m2Y/Jdg0xWOXoW3XoemegjXQGngFsZHN8DHTbDGC8vDAmjT9OT/sAJ4a451Sr5N1jMBWLMVIj9ykDi/gp9UnOPgZn0SYtO05c+wmQC8+VFcfDzJBz913wkg5aB355f5baiVZIeeiM4fGbN0JZkCvP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/qyghMrhsLoADm2lRG9QRQADMCk+vGAiiAuTaVUT0BFMCMwGTTeJR+XPgY5iKlhKb/9lHCHNwMcJF3adQueD0kj4Pfrde1ZmPsnn1aeINhejjDO6ziSc7yLgt4EB+lfEIEPz8QQAHMubvbBQVQb0qyTpeBygIogAaYWNdEAAXQOl0GKgugABpgYl0TARRA63QZqCyAAmiASfZNUiQY4g+M04SHahy4SdDFPDYyyhHO42SSct2GCcHlCDzxtF5Ynb22u/RMESfGr7nGXop4BKYBdjCXxxmjgS4CxFkogAKYU3e3iwkg6GuZ1tgyVFUABdAQFKsaCaAAWmXLUF0BFEBDUKxqJIACaJWtO3UT/TDHA/GL4A5B/AI4S8HhJpXsIVb0nnbBG+DjJljjheVh6NgFK7fAhYjuA5oHGnsT4p/B8D4oq4PhPeB/CJzFpEYixL74rAAKoHlnM1YQQJZUQmUAGpth+1poqodwDZQG9CvYQnn/LS2AAvg/ymb3fcECKIACqBNS2ToBDe0QDkKokM6I1gqoFVAroFbA/F0Bb0xB0xvQdQwqa8Dtg/5OePCb0BmBlR6oKNVtGO2Cb6+Dud2E3ATY8Eto3wPhrwKOWwAf+hZ01MOaBRAKCqAACqBe05CPmxCtgJyKwcYqeL8PijphmR/ePgRP6Yjeu95n1q9gvagmj17XqhVQK2CGn6dpBdQKeJ+tgP2fg8sFPRchtAi6P4PycnC64HIvDB/VLlj/BzS8Dma+Au74E/w7CvX74dvfgb1/hVW14PfD0cPw8rMCKICGAf4HPoDMDtb17VgAAAAASUVORK5CYII=</thumbnail><stage name="Stage" width="240" height="200" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" penlog="false" volume="100" pan="0" lines="round" ternary="false" hyperops="true" codify="false" inheritance="true" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAADICAYAAADWfGxSAAANxklEQVR4Xu2dT2jd2XXHP/cnpUwbHmNH8dReGa0zEGRaQSnBdKG0DMR1wQjvkoEuBtqFQbG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DPwYLcMAT74RncsfkYSYAEW4INDO/hOAfZ3YH8H9nfg0f577I8yA5uBzcCjMWQGNgObgc3Ao/33MAO/vvGEb+0ftvdnpP7Vn36JdXCezMBmYDOwGfjg/zE+7Z1+BvYzsJ+BR2PoUDJwvMY0/8+DBBGvM52ecD++Tov/41j6mEfxVU6S6KTfsh2vcZq/ZsFSSiuxcAs9NMWVAxwtpgjuwcBVHgVLdJghMUuXNgUXiX7T9WCR77EuwAIswEPzW/15YAFmq4CBjpEvm8cPtjEFNnfwSyxe0aoLy36JdXCQfwe7TWi2T7WohQAAAABJRU5ErkJggg==</pentrails><costumes><list struct="atomic" id="2"></list></costumes><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="Sprite" idx="1" x="100.00000000000026" y="89.0625" heading="90" scale="1" volume="100" pan="0" rotation="1" instrument="2"  draggable="true" hidden="true" costume="0" color="255,0,83.671875,1" pen="tip" id="8"><costumes><list struct="atomic" id="9"></list></costumes><sounds><list struct="atomic" id="10"></list></sounds><blocks></blocks><variables></variables><scripts><script x="30" y="30"><block s="receiveGo"></block><block s="doSetGlobalFlag"><l><option>turbo mode</option></l><l><bool>true</bool></l></block><block s="doAsk"><l>Length</l></block><block s="doSetVar"><l>list</l><block s="reportMap"><block s="reifyReporter"><autolambda><block s="reportSum"><block s="reportModulus"><block s="reportProduct"><block s="reportDifference"><l></l><l>1</l></block><l>8</l></block><block s="getLastAnswer"></block></block><l>1</l></block></autolambda><list></list></block><block s="reportNumbers"><block s="getLastAnswer"></block><l>1</l></block></block></block><block s="doAsk"><l>Make with</l></block><block s="doRun"><block s="reportListItem"><block s="getLastAnswer"></block><block s="reportNewList"><list><block s="reifyScript"><script><custom-block s="Make Heap (A)"></custom-block></script><list></list></block><block s="reifyScript"><script><custom-block s="Make Heap (B)"></custom-block></script><list></list></block><block s="reifyScript"><script><custom-block s="Make Heap (C)"></custom-block></script><list></list></block></list></block></block><list></list></block><custom-block s="reset"></custom-block><block s="doAsk"><l>Sort with</l></block><block s="doRun"><block s="reportListItem"><block s="getLastAnswer"></block><block s="reportNewList"><list><block s="reifyScript"><script><custom-block s="Sort Heap (A)"></custom-block></script><list></list></block><block s="reifyScript"><script><custom-block s="Sort Heap (B)"></custom-block></script><list></list></block></list></block></block><list></list></block><custom-block s="clear highlight"></custom-block></script><script x="772.3333333333339" y="921.0000000000003"><block s="doSetVar"><l>list</l><l></l></block></script><script x="916.6995442708339" y="927.0000000000003"><block var="m"/></script><script x="1004.3684895833339" y="927.0000000000003"><block var="itemnum"/></script><script x="1109.805989583334" y="927.0000000000003"><block var="list"/></script><script x="380" y="506.83333333333326"><custom-block s="reset"></custom-block><block s="doWait"><l>1</l></block><custom-block s="every day im shuffling"></custom-block><block s="doWait"><l>1</l></block></script><script x="65" y="443.83333333333326"><block s="reportIfElse"><block s="reportEquals"><block s="reportModulus"><block var="list"/><l>2</l></block><l>1</l></block><block var="list"/><block s="reportDifference"><block s="reportSum"><l>1</l><block var="list"/></block><block s="getLastAnswer"></block></block></block></script><script x="489.04296875" y="155"><block s="reportNumbers"><l>1</l><block s="getLastAnswer"></block></block></script></scripts></sprite><sprite name="Sprite(2)" idx="2" x="85.29760432661901" y="27.115819119881824" heading="90" scale="1" volume="100" pan="0" rotation="1" instrument="2"  draggable="true" costume="0" color="129.948,232.05,0,1" pen="tip" id="141"><costumes><list struct="atomic" id="142"></list></costumes><sounds><list struct="atomic" id="143"></list></sounds><blocks></blocks><variables></variables><scripts><script x="30" y="143.33333333333334"><block s="receiveMessage"><l>note 2</l></block><block s="playFreq"><custom-block s="hz from note %n"><block s="reportSum"><l>20</l><block s="reportProduct"><l>80</l><block s="reportQuotient"><block s="reportListItem"><block var="highlight 2"/><block var="list"/></block><block s="reportListLength"><block var="list"/></block></block></block></block></custom-block></block></script><script x="217" y="425.66666666666663"><block s="receiveMessage"><l>stop</l></block><block s="stopFreq"></block></script></scripts></sprite><watcher scope="Stage" s="getLastAnswer" style="normal" x="43.74487882046992" y="43.74487882047073" color="4,148,220" hidden="true"/><watcher var="depth" style="normal" x="34.848386909207306" y="157.33404760654767" color="243,118,29" hidden="true"/><watcher var="index" style="normal" x="34.848386909207306" y="265.20197868095056" color="243,118,29" hidden="true"/><watcher var="max node" style="normal" x="-8.896491911264548" y="1022.1719930226923" color="243,118,29" hidden="true"/><watcher var="highlight 2" style="normal" x="26.770954486484925" y="680.9619382230195" color="243,118,29" hidden="true"/><watcher var="highlight" style="normal" x="-2.3638183216792186" y="562.8507654077354" color="243,118,29" hidden="true"/><watcher var="list" style="normal" x="718.180055076527" y="29.163243798005396" color="243,118,29" extX="94.6845703125" extY="150" hidden="true"/><watcher var="focus" style="normal" x="30.47389902716384" y="351.25162536925734" color="243,118,29" hidden="true"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="visual update" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>i1</l></list></block><block s="clear"></block><block s="doSetVar"><l>i1</l><l>0</l></block><block s="doWarp"><script><block s="doRepeat"><block s="reportListLength"><block var="list"/></block><script><block s="up"></block><block s="doChangeVar"><l>i1</l><l>1</l></block><block s="doIfElse"><block s="reportEquals"><block var="i1"/><block var="highlight"/></block><script><block s="setPenHSVA"><l><option>brightness</option></l><l>20</l></block><block s="playFreq"><custom-block s="hz from note %n"><block s="reportSum"><l>20</l><block s="reportProduct"><l>80</l><block s="reportQuotient"><block s="reportListItem"><block var="highlight"/><block var="list"/></block><block s="reportListLength"><block var="list"/></block></block></block></block></custom-block></block></script><script><block s="doIfElse"><block s="reportEquals"><block var="i1"/><block var="highlight 2"/></block><script><block s="setPenHSVA"><l><option>brightness</option></l><l>20</l></block><block s="doBroadcast"><l>note 2</l></block></script><script><block s="setPenHSVA"><l><option>brightness</option></l><l>100</l></block></script></block></script></block><block s="setXPosition"><block s="reportDifference"><block s="reportProduct"><l>200</l><block s="reportQuotient"><block var="i1"/><block s="reportListLength"><block var="list"/></block></block></block><l>100</l></block></block><block s="setPenHSVA"><l><option>hue</option></l><block s="reportProduct"><l>100</l><block s="reportQuotient"><block s="reportListItem"><block var="i1"/><block var="list"/></block><block s="reportListLength"><block var="list"/></block></block></block></block><block s="setYPosition"><l>-180</l></block><block s="down"></block><block s="setYPosition"><block s="reportDifference"><block s="reportProduct"><l>200</l><block s="reportQuotient"><block s="reportListItem"><block var="i1"/><block var="list"/></block><block s="reportListLength"><block var="list"/></block></block></block><l>100</l></block></block></script></block></script></block></script></block-definition><block-definition s="clear highlight" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>highlight</l><l>0</l></block><block s="doSetVar"><l>highlight 2</l><l>0</l></block><custom-block s="visual update"></custom-block><block s="stopFreq"></block><block s="doBroadcast"><l>stop</l></block></script></block-definition><block-definition s="reset" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="setPenHSVA"><l><option>hue</option></l><l>0</l></block><block s="setPenHSVA"><l><option>saturation</option></l><l>100</l></block><block s="setPenHSVA"><l><option>brightness</option></l><l>100</l></block><block s="doSetInstrument"><l>2</l></block><block s="gotoXY"><l>0</l><l>0</l></block><block s="hide"></block><custom-block s="clear highlight"></custom-block></script></block-definition><block-definition s="every day im shuffling" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doFor"><l>i</l><l>1</l><block s="reportListLength"><block var="list"/></block><script><custom-block s="swap item %n with item %n of %l"><block var="i"/><block s="reportRandom"><block var="i"/><block s="reportListLength"><block var="list"/></block></block><block var="list"/></custom-block><custom-block s="visual update"></custom-block></script></block><custom-block s="clear highlight"></custom-block></script></block-definition><block-definition s="hz from note %&apos;note&apos;" type="reporter" category="sound"><header></header><code></code><translations>pt:a frequência da nota _&#xD;</translations><inputs><input type="%n">69</input></inputs><script><block s="doReport"><block s="reportProduct"><l>440</l><block s="reportPower"><l>2</l><block s="reportQuotient"><block s="reportDifference"><block var="note"/><l>69</l></block><l>12</l></block></block></block></block></script></block-definition><block-definition s="swap item %&apos;a&apos; with item %&apos;b&apos; of %&apos;list&apos;" type="command" category="lists"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%n"></input><input type="%l"></input></inputs><script><block s="doDeclareVariables"><list><l>temp</l></list></block><block s="doSetVar"><l>highlight</l><block var="b"/></block><block s="doSetVar"><l>highlight 2</l><block var="a"/></block><block s="doSetVar"><l>temp</l><block s="reportListItem"><block var="a"/><block var="list"/></block></block><block s="doReplaceInList"><block var="a"/><block var="list"/><block s="reportListItem"><block var="b"/><block var="list"/></block></block><block s="doReplaceInList"><block var="b"/><block var="list"/><block var="temp"/></block><custom-block s="visual update"></custom-block></script></block-definition><block-definition s="sift %&apos;item&apos; of %&apos;list&apos;" type="command" category="lists"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%l"></input></inputs><script><block s="doSetVar"><l>focus</l><block var="max node"/></block><block s="doSetVar"><l>depth</l><l>1</l></block><block s="doUntil"><block s="reportEquals"><block s="reportModulus"><block s="reportQuotient"><block var="focus"/><block var="depth"/></block><l>2</l></block><l>1</l></block><script><block s="doIf"><block s="reportGreaterThan"><block s="reportListItem"><block s="reportDifference"><block var="focus"/><block var="depth"/></block><block var="list"/></block><block s="reportListItem"><block var="max node"/><block var="list"/></block></block><script><block s="doSetVar"><l>max node</l><block s="reportDifference"><block var="focus"/><block var="depth"/></block></block></script></block><block s="doSetVar"><l>depth</l><block s="reportProduct"><block var="depth"/><l>2</l></block></block></script></block><block s="doIf"><block s="reportNot"><block s="reportEquals"><block var="focus"/><block var="max node"/></block></block><script><custom-block s="swap item %n with item %n of %l"><block var="focus"/><block var="max node"/><block var="list"/></custom-block></script></block><block s="doUntil"><block s="reportEquals"><block var="focus"/><block var="max node"/></block><script><block s="doSetVar"><l>focus</l><block var="max node"/></block><block s="doSetVar"><l>depth</l><l>1</l></block><block s="doUntil"><block s="reportEquals"><block s="reportModulus"><block s="reportQuotient"><block var="focus"/><block var="depth"/></block><l>2</l></block><l>1</l></block><script><block s="doIf"><block s="reportGreaterThan"><block s="reportListItem"><block s="reportDifference"><block var="focus"/><block var="depth"/></block><block var="list"/></block><block s="reportListItem"><block var="max node"/><block var="list"/></block></block><script><block s="doSetVar"><l>max node</l><block s="reportDifference"><block var="focus"/><block var="depth"/></block></block></script></block><block s="doSetVar"><l>depth</l><block s="reportProduct"><block var="depth"/><l>2</l></block></block></script></block><block s="doIf"><block s="reportNot"><block s="reportEquals"><block var="focus"/><block var="max node"/></block></block><script><custom-block s="swap item %n with item %n of %l"><block var="focus"/><block var="max node"/><block var="list"/></custom-block></script></block></script></block></script></block-definition><block-definition s="Make Heap (A)" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>index</l><l>2</l></block><block s="doUntil"><block s="reportGreaterThan"><block var="index"/><block s="reportListLength"><block var="list"/></block></block><script><block s="doSetVar"><l>max node</l><block var="index"/></block><custom-block s="sift %n of %l"><block var="max node"/><block var="list"/></custom-block><block s="doChangeVar"><l>index</l><l>2</l></block></script></block></script></block-definition><block-definition s="Sort Heap (A)" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>index</l><block s="reportListLength"><block var="list"/></block></block><block s="doUntil"><block s="reportLessThan"><block var="index"/><l>3</l></block><script><block s="doSetVar"><l>max node</l><block var="index"/></block><block s="doSetVar"><l>focus</l><block var="max node"/></block><block s="doSetVar"><l>depth</l><l>1</l></block><block s="doUntil"><block s="reportEquals"><block var="focus"/><l>0</l></block><script><block s="doIf"><block s="reportEquals"><block s="reportModulus"><block s="reportQuotient"><block var="focus"/><block var="depth"/></block><l>2</l></block><l>1</l></block><script><block s="doIf"><block s="reportGreaterThan"><block s="reportListItem"><block var="focus"/><block var="list"/></block><block s="reportListItem"><block var="max node"/><block var="list"/></block></block><script><block s="doSetVar"><l>max node</l><block var="focus"/></block></script></block><block s="doSetVar"><l>focus</l><block s="reportDifference"><block var="focus"/><block var="depth"/></block></block></script></block><block s="doSetVar"><l>depth</l><block s="reportProduct"><block var="depth"/><l>2</l></block></block></script></block><block s="doIf"><block s="reportNot"><block s="reportEquals"><block var="index"/><block var="max node"/></block></block><script><custom-block s="swap item %n with item %n of %l"><block var="index"/><block var="max node"/><block var="list"/></custom-block><custom-block s="sift %n of %l"><block var="max node"/><block var="list"/></custom-block></script></block><block s="doChangeVar"><l>index</l><l>-1</l></block></script></block></script></block-definition><block-definition s="Make Heap (B)" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>depth</l><l>1</l></block><block s="doUntil"><block s="reportGreaterThan"><block s="reportProduct"><l>2</l><block var="depth"/></block><block s="reportListLength"><block var="list"/></block></block><script><block s="doSetVar"><l>focus</l><block var="depth"/></block><block s="doUntil"><block s="reportGreaterThan"><block s="reportSum"><block var="focus"/><block var="depth"/></block><block s="reportListLength"><block var="list"/></block></block><script><block s="doIf"><block s="reportGreaterThan"><block s="reportListItem"><block var="focus"/><block var="list"/></block><block s="reportListItem"><block s="reportSum"><block var="focus"/><block var="depth"/></block><block var="list"/></block></block><script><block s="doFor"><l>index</l><l>1</l><block var="depth"/><script><custom-block s="swap item %n with item %n of %l"><block s="reportDifference"><block s="reportSum"><block var="focus"/><block var="index"/></block><block var="depth"/></block><block s="reportSum"><block var="focus"/><block var="index"/></block><block var="list"/></custom-block></script></block></script></block><block s="doChangeVar"><l>focus</l><block s="reportProduct"><l>2</l><block var="depth"/></block></block></script></block><block s="doSetVar"><l>depth</l><block s="reportProduct"><l>2</l><block var="depth"/></block></block></script></block></script></block-definition><block-definition s="Sort Heap (B)" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>index</l><block s="reportListLength"><block var="list"/></block></block><block s="doUntil"><block s="reportLessThan"><block var="index"/><l>3</l></block><script><block s="doSetVar"><l>max node</l><block var="index"/></block><block s="doSetVar"><l>focus</l><block var="index"/></block><block s="doSetVar"><l>depth</l><l>1</l></block><block s="doUntil"><block s="reportEquals"><block var="focus"/><l>0</l></block><script><block s="doIf"><block s="reportEquals"><block s="reportModulus"><block s="reportQuotient"><block var="focus"/><block var="depth"/></block><l>2</l></block><l>1</l></block><script><block s="doIf"><block s="reportGreaterThan"><block s="reportListItem"><block var="focus"/><block var="list"/></block><block s="reportListItem"><block var="max node"/><block var="list"/></block></block><script><block s="doSetVar"><l>max node</l><block var="focus"/></block></script></block><block s="doSetVar"><l>focus</l><block s="reportDifference"><block var="focus"/><block var="depth"/></block></block></script></block><block s="doSetVar"><l>depth</l><block s="reportProduct"><l>2</l><block var="depth"/></block></block></script></block><block s="doIf"><block s="reportNot"><block s="reportEquals"><block var="max node"/><block var="index"/></block></block><script><block s="doSetVar"><l>depth</l><l>1</l></block><block s="doUntil"><block s="reportEquals"><block s="reportModulus"><block s="reportQuotient"><block var="index"/><block var="depth"/></block><l>2</l></block><l>1</l></block><script><block s="doSetVar"><l>depth</l><block s="reportProduct"><l>2</l><block var="depth"/></block></block></script></block><block s="doFor"><l>focus</l><l>0</l><block s="reportDifference"><block var="depth"/><l>1</l></block><script><custom-block s="swap item %n with item %n of %l"><block s="reportDifference"><block var="index"/><block var="focus"/></block><block s="reportDifference"><block var="max node"/><block var="focus"/></block><block var="list"/></custom-block></script></block><block s="doUntil"><block s="reportEquals"><block s="reportModulus"><block s="reportQuotient"><block var="max node"/><block var="depth"/></block><l>2</l></block><l>1</l></block><script><block s="doIf"><block s="reportGreaterThan"><block s="reportListItem"><block s="reportDifference"><block var="max node"/><block var="depth"/></block><block var="list"/></block><block s="reportListItem"><block var="max node"/><block var="list"/></block></block><script><block s="doFor"><l>focus</l><l>0</l><block s="reportDifference"><block var="depth"/><l>1</l></block><script><custom-block s="swap item %n with item %n of %l"><block s="reportDifference"><block var="max node"/><block var="focus"/></block><block s="reportDifference"><block s="reportDifference"><block var="max node"/><block var="depth"/></block><block var="focus"/></block><block var="list"/></custom-block></script></block></script></block><block s="doSetVar"><l>depth</l><block s="reportProduct"><l>2</l><block var="depth"/></block></block></script></block></script></block><block s="doChangeVar"><l>index</l><l>-1</l></block></script></block></script></block-definition><block-definition s="Make Heap (C)" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>done</l></list></block><block s="doSetVar"><l>done</l><block s="reportBoolean"><l><bool>false</bool></l></block></block><block s="doUntil"><block var="done"/><script><block s="doSetVar"><l>done</l><block s="reportBoolean"><l><bool>true</bool></l></block></block><block s="doSetVar"><l>focus</l><l>1</l></block><block s="doUntil"><block s="reportEquals"><block var="focus"/><block s="reportListLength"><block var="list"/></block></block><script><block s="doSetVar"><l>depth</l><l>1</l></block><block s="doUntil"><block s="reportEquals"><block s="reportModulus"><block s="reportQuotient"><block var="focus"/><block var="depth"/></block><l>2</l></block><l>1</l></block><script><block s="doSetVar"><l>depth</l><block s="reportProduct"><block var="depth"/><l>2</l></block></block></script></block><block s="doIf"><block s="reportAnd"><block s="reportNot"><block s="reportGreaterThan"><block s="reportSum"><block var="focus"/><block var="depth"/></block><block s="reportListLength"><block var="list"/></block></block></block><block s="reportGreaterThan"><block s="reportListItem"><block var="focus"/><block var="list"/></block><block s="reportListItem"><block s="reportSum"><block var="focus"/><block var="depth"/></block><block var="list"/></block></block></block><script><custom-block s="swap item %n with item %n of %l"><block var="focus"/><block s="reportSum"><block var="focus"/><block var="depth"/></block><block var="list"/></custom-block><block s="doSetVar"><l>done</l><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block><block s="doChangeVar"><l>focus</l><l>1</l></block></script></block></script></block></script></block-definition></blocks><variables><variable name="list"><list struct="atomic" id="993">1,1,1,1,1,1,1,1,9,9,9,9,9,9,9,9,17,17,17,17,17,17,17,17,25,25,25,25,25,25,25,25,33,33,33,33,33,33,33,33,41,41,41,41,41,41,41,41,49,49,49,49,49,49,49,49,57,57,57,57,57,57,57,57,65,65,65,65,65,65,65,65,73,73,73,73,73,73,73,73,81,81,81,81,81,81,81,81,89,89,89,89,89,89,89,89,97,97,97,97,97,97,97,97,105,105,105,105,105,105,105,105,113,113,113,113,113,113,113,113,121,121,121,121,121,121,121,121</list></variable><variable name="highlight"><l>0</l></variable><variable name="highlight 2"><l>0</l></variable><variable name="depth"><l>4</l></variable><variable name="focus"><l>0</l></variable><variable name="index"><l>2</l></variable><variable name="max node"><l>3</l></variable></variables></project><media name="Binomial Heap Sort" app="Snap! 6, https://snap.berkeley.edu" version="1"></media></snapdata>