So if your program can delete the book with matching ID from the
linked list stored in the hash table, that is all we need it to do to
keep track of the number of comparisons?
Or do you want to see that we have a variable with the number of
comparisons?
If we do print it out, would it be like this (if the book is the
second book in the linked list):
DELETED bucket 0: book id 200, 2 comparisons
Thanks,
Josh
> It is not mandatory to output the number of comparisons. You just need to
> show it in your implementation as mentioned in the HW description. Don't
> worry about the output. I am saying that to everybody. What I mean that when
> you find the bucket that has the specified book id, you will go through the
> linked list until you find this book and delete it.
>
> Regards,
> Ahmad
>
> On Sun, Dec 5, 2010 at 8:56 PM, Lucas Hawk <
lukeh...@gmail.com> wrote:
> > i dont know what that means.
>
> > This is what i will do - I will count the number of comparisons for delete,
> > and output it to the command line. Will that work?
>
> > I apologize to the class, I am not trying to sign anyone else up for work,
> > and implying they should do this, but i am just letting you know what i am
> > doing, and hoping (this thing is due in 3 hours...) that it will fly...
>
> > Thanks
>
> > Luke
>
> > On Sun, Dec 5, 2010 at 7:55 PM, ahmad qawasmeh <
arqawas...@gmail.com>wrote:
>
> >> Hi,
>
> >> As I mentioned, It is better to associate this number with the delete
> >> output syntax. Anyhow, it is not mandatory, but you need
> >> to show it in your implementation. We will not ask about this number to be
> >> shown in the output. Don't worry.
>
> >> Regards,
> >> Ahmad