We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,376 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

insertion of a records with the key in B tree

Hi
I have the program for inserion of keys into the B tree and displaying them.But i want to write a code for the b tree in C so that each key in the B tree should have 4 attributes. I'm having trouble modifying the structure pointers in the program i have. So any one could help it?All i need is the algorithm clearly.I want to add two more attributes (for ex name and age) to the structure node along with the key.and the rest of the program should run same and the whole record should be availabel when we search ,delete ,display or modify the key. here .I am attaching the code

https://docs.google.com/document/d/106EQfQpU4BUFzut__dR5LQvZ-6KXaWad3WSckkjSAFI/

please if anyone has help for me. I wil be thankful.

2
Contributors
1
Reply
1 Hour
Discussion Span
7 Months Ago
Last Updated
2
Views
ashdeekon
Newbie Poster
1 post since Aug 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

Start by adding age since that's easier due to lack of string handling requirements. Add something like int age; to the struct definition and then everywhere the other "attributes" are used, add an equivalent line for age.

Since your Google document is blank and you neglected to post any code, I can't really help you more than that.

deceptikon
Challenge Accepted
Administrator
3,456 posts since Jan 2012
Reputation Points: 822
Solved Threads: 473
Skill Endorsements: 57

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0596 seconds using 2.64MB