The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Search attributes in one structure using the values from another structure dhanamurthy High Level Programming 3 03-27-2008 12:37 AM
tree structure of the data ThobiasVakayil Shell Programming and Scripting 2 03-26-2008 10:15 PM
inode data structure anwerreyaz Filesystems, Disks and Memory 4 11-19-2006 11:34 PM
disk space used for files with in a directory structure. kasala Shell Programming and Scripting 8 01-14-2005 01:26 PM
what data structure for polinomial xli3 High Level Programming 0 10-07-2002 12:27 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-09-2007
Registered User
 

Join Date: Apr 2007
Posts: 75
How to implement an on-disk data structure

I have heard about on-disk data structures, but I am trying to understand how to implement it.

I want to write a program which is going to make use of a B-Tree which is so huge that whole of it cannot sit in memory.

Lets take a simple case of a linked list. Suppose I want to have a linked list which is going to be very big ! How do I implement that.

In normal cases, to insert a new node to the list I will use malloc() to dynamically allocate memory for the node. Now how do I write this node to the disk ? Does this mean I create a file and write the node to it or something ? hmm I dont think so...

My program is in C.

btw, Is there an on-disk implementation of b-tree available ? (on unix in C)

Thanks !!
Reply With Quote
Forum Sponsor
  #2  
Old 08-09-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
You might be thinking of 'mmap', but you are still limited by the addressing range of the CPU.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0