the DELETE function

1 view
Skip to first unread message
Message has been deleted
Message has been deleted

Mark

unread,
Dec 4, 2010, 3:22:09 PM12/4/10
to COSC2320
Should the DELETE function delete all books under the hash location?

Anthony White

unread,
Dec 4, 2010, 3:22:39 PM12/4/10
to cosc...@googlegroups.com
I'm pretty sure it's just the specific book ID that it's requesting to delete.

On Sat, Dec 4, 2010 at 2:18 PM, Mark <mahasi...@gmail.com> wrote:
Should the delete function delete all book under to hash location?

On Dec 4, 2:17 pm, Mark <mahasitav...@gmail.com> wrote:
> To clarify...

ahmad qawasmeh

unread,
Dec 4, 2010, 3:28:38 PM12/4/10
to cosc...@googlegroups.com
Hi,
 
As Anthony said.
 
Regards,
Ahmad

Mark

unread,
Dec 4, 2010, 3:51:48 PM12/4/10
to COSC2320
The example shows just the index and not the title, so it would delete
the entire bucket. I wanted to confirm this. If there is a collision
there will be multiple books at the hash location (bucket).

So the question remains.. the whole bucket or will there be a title?




On Dec 4, 2:28 pm, ahmad qawasmeh <arqawas...@gmail.com> wrote:
> Hi,
>
> As Anthony said.
>
> Regards,
> Ahmad
>
> On Sat, Dec 4, 2010 at 3:22 PM, Anthony White <tonywhite...@gmail.com>wrote:
>
> > I'm pretty sure it's just the specific book ID that it's requesting to
> > delete.
>

Anthony White

unread,
Dec 4, 2010, 3:54:46 PM12/4/10
to cosc...@googlegroups.com
I thought the number that came after the delete command was the book ID? if so, then you're only supposed to delete that specific book from the bucket, not the whole bucket that contains that id.

Lucas Hawk

unread,
Dec 4, 2010, 3:58:41 PM12/4/10
to cosc...@googlegroups.com, COSC2320
That is not the index. It is the book ID.

For a table of size 7, the following command,

DELETE 34

would delete book ID 34, which resides in bucket 6. You would not delete any other book, nor the whole bucket.

Make sense?

Sent from my iPhone

ahmad qawasmeh

unread,
Dec 4, 2010, 3:59:02 PM12/4/10
to cosc...@googlegroups.com
Hi,
 
The delete command will delete one book only with the ID specified.
 
Regards,
Ahmad

Mohammed Alam

unread,
Dec 5, 2010, 8:03:19 PM12/5/10
to COSC2320
should delete be a running total or output the number of iterations
for every time the delete command is called

Lucas Hawk

unread,
Dec 5, 2010, 8:05:21 PM12/5/10
to cosc...@googlegroups.com
can we get some clarity on this??
 
how are you going to check this count? we are not ouputting it anywhere right? are you just going to watch the code? are we still supposed to implement this?

On Sun, Dec 5, 2010 at 7:03 PM, Mohammed Alam <superm...@gmail.com> wrote:
should delete be a running total or output the number of iterations
for every time the delete command is called



--
Rev. Lucas A Hawk
W Dallas Universal Church of Life
2210 W Dallas
Houston, TX 77019

ahmad qawasmeh

unread,
Dec 5, 2010, 8:51:01 PM12/5/10
to cosc...@googlegroups.com
Hi,
 
It is better to associate this number with the delete output syntax. Anyhow, it is not mandatory to print it out, but yes, you have to show it in your implementation.
 
Regards,
Ahmad

Reply all
Reply to author
Forward
0 new messages