Storage Media Independent AVL Library | CodeGuru

Storage Media Independent AVL Library

Although there has been a lot of AVL tree libraries available now, nearly all of them are meant to work in the random access memory(RAM). Some of them do provide some mechanism for dumping the whole tree into a file and loading it back to the memory in order to make data in that tree […]

Written By
CodeGuru Staff
CodeGuru Staff
Feb 8, 2000
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Although there has been
a lot of AVL tree libraries available now, nearly all of them are
meant to work in the random access memory(RAM). Some of them do
provide some mechanism for dumping the whole tree into a file and
loading it back to the memory in order to make data in that tree
persistent. It serves well when there’s just small amount of
data. When the tree is somewhat bigger, the dumping/loading
process could take a lengthy time and makes your mission-critical
program less efficient. How about an AVL tree that can directly
use the disk for data storage ? If there’s something like that,
we won’t need to read through the whole tree in order to pick up
just a little bit imformation(a node), but read only the sectors
that are neccssary for locating a certain node and the sectors in
which that node lies. This is my initial motivation for writing a
‘storage-media’independent AVL Tree. However, as you step forth,
you would find that it not only works fine with disks but also
fine with memorys, too.

Downloads

Download source – 86 Kb

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.