Results 1 to 8 of 8
Thread: BTree Implementation
- 08-10-2011, 01:26 AM #1
Member
- Join Date
- Feb 2011
- Posts
- 78
- Rep Power
- 0
- 08-10-2011, 02:20 AM #2
Oh no Google is broken again.
- 08-10-2011, 02:22 AM #3
Member
- Join Date
- Aug 2011
- Posts
- 95
- Rep Power
- 0
Here's a good place to look:
Let me google that for you
- 08-10-2011, 02:23 AM #4
Member
- Join Date
- Feb 2011
- Posts
- 78
- Rep Power
- 0
I couldn't locate an example, so I figured someone in this forum may be aware of one.
- 08-10-2011, 02:25 AM #5
Member
- Join Date
- Feb 2011
- Posts
- 78
- Rep Power
- 0
14 posts and you feel the need to play that role...
I've tried google and I can't seem to find an example of a delete.
- 08-10-2011, 02:35 AM #6
- 08-10-2011, 02:57 AM #7
Member
- Join Date
- Aug 2011
- Posts
- 95
- Rep Power
- 0
OK, here's a description of how to delete a node in a binary tree:
Binary search tree - Wikipedia, the free encyclopedia
Yes, it is a bit tricky.
- 08-10-2011, 06:53 AM #8
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,422
- Blog Entries
- 7
- Rep Power
- 17
I don't think that's what the OP means; a binary tree isn't a Btree (as in Btree, B+tree and B*tree). Deleting a node from a BTree can be tricky indeed by not for the reasons outlined in that wiki article. Basically you have to delete the element from a node and when the node becomes too small you borrow an element from the parent and join the node with one of its neighbours; apply recursively to the parent node etc.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
AI implementation
By vxaviern in forum Advanced JavaReplies: 2Last Post: 11-18-2010, 09:02 AM -
Solr Implementation
By j.venkata.krishna in forum LuceneReplies: 0Last Post: 07-13-2010, 11:48 AM -
error in DES implementation
By Bharati in forum NetworkingReplies: 2Last Post: 03-26-2010, 05:21 PM -
Stack implementation
By jefrazie in forum New To JavaReplies: 3Last Post: 10-07-2009, 12:59 PM -
how to use btree to store data
By fred in forum New To JavaReplies: 1Last Post: 08-07-2007, 05:52 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks