<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
> <br>> Just a few quick notes:<br>> <br>> - You can still use the design recipe. The induction / recursion is<br>> over the indices rather than directly over the elements. So your<br>> template looks something like:<br>> <br>> (define (bubble-sort v i)<br>> (cond<br>> [(= i (vector-length v) ... finish recursion ...]<br>> [else ... (vector-ref v i) ... (bubble-sort v (add1 i)) ...]))<br>> <div><br></div><div>We will certainly do arrays with the DR but here we have a generative rather than structural recursion. Methinks that will be a bridge too far for my guys. </div><div><br>> You could implement a<br>> immutable swap (i.e. a copy) to show the students the mutation is not<br>> fundamental.<br>> <br><br></div><div>but</div><div><br></div><div>a) but would it further the objective of clarity </div><div>b) is it relevant to their syllabus</div><div>c) would they care? </div><div><br></div><div><br></div>                                            <br /><hr />We want to hear all your funny, exciting and crazy Hotmail stories. <a href='http://clk.atdmt.com/UKM/go/195013117/direct/01/' target='_new'>Tell us now</a></body>
</html>