Note One more question 

Forum: Com Sci 221, U Chicago, Autumn 2001, Old Classwork
Re: News Assignment #4 due Monday, 22 October (Mike O'Donnell)
Re: Question Questions about presentation (Roni Choudhury)
Date: 2001, Oct 20
From: Roni Choudhury roni

Right I had one more question.

The case for B=0 (which, for me, occurs when the array is empty, or when the value T is smaller than everything in the array) indicates that T is not to be found in the array. However, we can't check A[0] for equality with T because the problem states the array is indexed from 1 to N, and also because checking A[0] for the empty array is not a good idea. Is it alright if we explicity check for B=0? I can see that it's inelegant to do so, but it is certainly a special case and so we would expect to have to deal with it in a special way.

Thanks.

roni


Messages

1. Idea aha by Roni Choudhury, 2001, Oct 20
(_ Agree Merely compute B by Mike O'Donnell, 2001, Oct 20

to: "One more question"