Newest Files

Date iconNov.20

Driver for Broadcom 570x 10/100 Ethernet Driver.

Date iconNov.16

This is a 650mb raw disk image that will eventually ...

Date iconNov.12

About Photograbber: PhotoGrabber ha...

Date iconNov.11

Driver for Broadcom 440x 10/100 Ethernet Driver.

Date iconNov.09

This is a 10gb expanding VMWare disk image. I plan t...

Date iconNov.09

About IPW2100: Driver for Intel(R) PRO/Wireless...

Date iconNov.09

Attansic L2 FastEthernet adapter: Driver for At...

Date iconNov.09

About Pegasus BeOS Driver: Pegasus BeOS driver....

Date iconNov.08

SLFFEA stands for San Le's Free Finite Element Ana...

Date iconNov.08

Aladdin is a computational toolkit for the interac...

Date iconOct.28

Qonk is a small space build-and-conquer strategy gam...

Date iconOct.25

This port is based on the work done by Takashi Toyos...

Date iconOct.25

These are the icons Haiku comes with converted from ...

Date iconOct.17

This project was based on the popular weekly superpa...

Date iconOct.16

The MUSCLE system is a robust, somewhat scalable, cr...

AVLDupTree download_trans.gif Download

Thumbnails:

Description:
BeOS/Haiku Logo
About AVLDupTree:

AVL Balanced Binary Tree with Duplicates handling and a stylish GUI Demo.

Short: AVL Balanced Binary Tree with Duplicates handling and GUI Demo.
Author: agmsmith@achilles.net (Alexander G. M. Smith)
Uploader: agmsmith@achilles.net (Alexander G. M. Smith)
Website: http://www.achilles.net/~agmsmith/
Version: 1.0
Type: Development/Example Code
Requires: BeOS 5.0+

AVLDupTree is a set of C subroutines (not C++, so you can use it in drivers) that is useful for indexing a set of key/value pairs, using the key to find a matching value. The standard AVL balanced binary tree algorithm is enhanced to support multiple values for the same key. It is designed for future use in a file system to support fast attribute indexing and queries, but you can use it for other things.

The API supports these operations:

Create a tree, with a specified data type for keys and another for values (choose from C string (any length), int32, int64, float, double). Optionally enable multitasking protection - which allows N simultaneous readers or one writer.

Deallocate a tree and its contents.

Add a key/value pair.

Delete a key/value pair.

Iterate over the tree. This uses a callback function for efficiency, so you can process a large batch of key/values in one operation rather than having a "find" operation to find individual ones. It is generalized to efficiently iterate over an optionally open ended range of keys, optionally including the ones equal to your range limits (the difference between less-than-or-equal and less-than), making it ideal for query processing.


AGMSAVLTest is a BeOS GUI program for testing the tree library and demonstrating the tree operations via a graphical display of the tree. It also has a cool subtle colour cycling effect.


AVLDupTree is released under the GNU Lesser General Public License. The AGMSAVLTest program is released as public domain.

- Alex (Ottawa, March 2001)

   
Details about this version:

Version 1.0 is the initial version, supporting basic Add, Delete and Range Iterate operations.
License:
LGPL
Submitted On:
29 Oct 2007
Submitted By:
Karl vom Dorff (karl)
File Date:
29 Oct 2007
File Author:
Alexander G. M. Smith
File Version:
1.0
File Size:
153.22 Kb
File Type:
zip
File HomePage:
Click to visit site
Downloads:
5
Rating:
stars/0.gifTotal Votes:0
Comments (0)add comment

Write comment
You must be logged in to a comment. Please register if you do not have an account yet.

busy

Login

File Search

Search For: 
File Titles: 
File Description: 

Most Popular Files

Nov.09
Downloads
File iconSenryu Personal Edition Vmware Image - Weekly
7264
Sep.26
Downloads
File iconSenryu Virtual Box Edition
1534
Nov.23
Downloads
File iconOpera
944
Jul.09
Downloads
File iconAbiWord
888
Oct.17
Downloads
File iconSenryu Developer Edition Vmware Image
860
Jul.08
Downloads
File iconBeOS 5 PE Max Edition
523
Aug.15
Downloads
File iconICH AC97 Driver
510
Aug.24
Downloads
File iconAti Radeon Graphics Driver
397
Apr.25
Downloads
File iconSenryu Qemu Edition
318
Jun.06
Downloads
File iconHaikuPC-Info
291
Jul.29
Downloads
File iconNiue
272
Sep.30
Downloads
File iconFirefox
203
Oct.28
Downloads
File iconHaikuLiveCDScript
189
May.21
Downloads
File iconLinks
172
Oct.04
Downloads
File iconHaiku Radeon Driver
170
Jul.23
Downloads
File iconOpen Sound System (OSS)
143
Apr.25
Downloads
File iconSenryu Parallels Edition
134
Sep.15
Downloads
File iconBeFar
129
Sep.15
Downloads
File iconAural Illusion
128