Off-topic Talk Where overpaid, underworked S2000 owners waste the worst part of their days before the drive home. This forum is for general chit chat and discussions not covered by the other off-topic forums.

HELP! Does any have or know where to find B+ Tree Implementation in Java?

Old Apr 6, 2003 | 09:16 PM
  #1  
RedS2Girl's Avatar
Thread Starter
Registered User
 
Joined: Jan 2002
Posts: 1,861
Likes: 0
From: San Jose
Default HELP! Does any have or know where to find B+ Tree Implementation in Java?

HELP!

I'm having a difficult time implementing my B+ tree program in Java and would like to know if anyone can give me a hand. Does anyone have the B+ tree source code in Java or know where to find one? Thanks in advance.

I really hate my professor... one of the worst I've ever had. He's way too old to teach. I went to his office hour before class and at the end of the office hour, he asked me, "what class is it now? which room should I go to?" He makes his students teach the class for him most of the time, and when he finally lectures, he never makes any sense.

Any help is greatly appreciated. Thanks again.
Reply
Old Apr 6, 2003 | 10:00 PM
  #2  
SteveUCI's Avatar
Registered User
 
Joined: Jan 2001
Posts: 6,455
Likes: 0
From: Glendale/Burbank/LA
Default

I remember doing exactly this a long time ago.... but don't know where that stuff is now.

Do you at least understand the B-tree concept inside and out yet? Cause that's Step 1, and it sounds like your professor has trouble getting you to Step 1....?
Reply
Old Apr 6, 2003 | 10:07 PM
  #3  
RedS2Girl's Avatar
Thread Starter
Registered User
 
Joined: Jan 2002
Posts: 1,861
Likes: 0
From: San Jose
Default

[QUOTE]Originally posted by SteveUCI
[B]I remember doing exactly this a long time ago.... but don't know where that stuff is now.

Do you at least understand the B-tree concept inside and out yet?
Reply
Old Apr 6, 2003 | 10:47 PM
  #4  
The Unabageler's Avatar
Former Moderator
 
Joined: Oct 2000
Posts: 20,448
Likes: 0
From: internet
Default

that's lame.

This http://www.brpreiss.com/books/opus5/programs/ was the first google result I got on my search for "btree java search"

it's a bit down the page.
Reply
Old Apr 7, 2003 | 10:03 AM
  #5  
RedS2Girl's Avatar
Thread Starter
Registered User
 
Joined: Jan 2002
Posts: 1,861
Likes: 0
From: San Jose
Default

Thanks Josh

I need to find a B+ tree though... I tried searching for bplustree and the first search result is the link my professor gave us to go to for a demo.
Reply
Old Apr 7, 2003 | 03:52 PM
  #6  
erik's Avatar
20 Year Member
 
Joined: Oct 2000
Posts: 752
Likes: 8
From: South Jersey
Default

Ah, the old B+ tree. This thing was a bitch for me and my buddies. We had to do it in C++ and I think we started 2 days before it was due!! A huge mistake. At least for a very average programmer when I was in school.

I found an applet. You can easily develop it as a non applet. Hope this helps.

http://www.seanster.com/BplusTree/source/

ERIK
Reply
Old Apr 7, 2003 | 07:51 PM
  #7  
RedS2Girl's Avatar
Thread Starter
Registered User
 
Joined: Jan 2002
Posts: 1,861
Likes: 0
From: San Jose
Default

[QUOTE]Originally posted by erik
[B]Ah, the old B+ tree.
Reply
Old Apr 8, 2003 | 12:00 AM
  #8  
AquilaEagle's Avatar
Administrator
Gold Member (Premium)
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Jan 2002
Posts: 95,183
Likes: 69
From: Heath & Reach, Beds, UK
Default

Sorry i dont have a clue
Reply
Old Apr 13, 2003 | 12:15 PM
  #9  
PeaceLove&S2K's Avatar
20 Year Member
 
Joined: Jul 2002
Posts: 19,257
Likes: 19
From: San Diego, CA
Default

What's a B+ tree? Is it a kind of binary tree? Like a balancing binary tree or something like that. It's been a while since I used that stuff.
Reply
Old Apr 13, 2003 | 08:50 PM
  #10  
RedS2Girl's Avatar
Thread Starter
Registered User
 
Joined: Jan 2002
Posts: 1,861
Likes: 0
From: San Jose
Default

Originally posted by PeaceLove&S2K
What's a B+ tree? Is it a kind of binary tree? Like a balancing binary tree or something like that. It's been a while since I used that stuff.
Informally, a B+ tree is an n-ary tree with n variable but large (often >100).

A B+ tree of order v consists of a root, internal nodes and leaves. The root my be either leaf or node with two or more children. Internal nodes contain between v and 2v keys, and a node with k keys has k + 1 children. Leaves are always on the same level. If a leaf is a primary index, it consists of a bucket of records, sorted by search key. If it is a secondary index, it will have many short records consisting of a key and a pointer to the actual record.

Reply


All times are GMT -8. The time now is 04:53 PM.