예제 #1
0
    $s1->sortArr($det);
    $timeTaken = microtime() - $sTime;
    ?>

			<div id="totalcount">
				<?php 
    $s1->printTotalSwap();
    ?>
				<h4> Time taken: <?php 
    echo $timeTaken;
    ?>
</h4>
			</div>
			<div>
				<h4>Entered Array: <?php 
    $s1->printArr($arr);
    ?>
 </h4>
			</div>
			<div>
				<h4>Sorted array: <?php 
    $s1->printArr($s1->getArray());
    ?>
 </h4>
			</div>
			<div id="count">
				<h3>Swaps per pass</h3>
			</div>
			<div id="swap">
				<h3>Comparisons per pass</h3>
			</div>