From guna@andrew.cmu.edu Sun Dec 16 07:35:23 2001 Date: Mon, 10 Dec 2001 07:23:04 -0500 (EST) From: Ananda D Gunawardena To: Andreas Hung Cc: Ananda D Gunawardena Subject: Re: Lab 8 Due Date yes you need to sort the array. Use the bubble sort algorithm we discusssed in class. Include that as a method in main class. Then call from binarySearch. in the mainm method: sort(A); binarySearch(Target, A, start, end); On Mon, 10 Dec 2001, Andreas Hung wrote: > Hi, > I am having a problem with lab 8. Do I have to sort the array of int > before doing the binary search? if so how can I sort it? I tried > sort(int[]a) and it doens't work no matter what I import. Please help. > > Thanks > Andreas Hung > ----- Original Message ----- > From: "Ananda D Gunawardena" > To: <+dist+~guna/public/15100H.dl@andrew.cmu.edu>; "15-100 I" > <+dist+~guna/public/15100I.dl@andrew.cmu.edu> > Cc: "Ananda D Gunawardena" > Sent: Sunday, December 09, 2001 7:47 PM > Subject: Lab 8 Due Date > > > > Please note that lab8 can be submitted until 11:59 Thursday 12/13 without > > a penalty. > > > > ananda > > > > > >