Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

AVL Tree implements a data structure container able to store/retrieve/delete a Key/Value relationship.

 

An AVL Tree is a self-balancing binary search tree. In an AVL Tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing is done to restore this property.

 

An AVL Tree containers has the following characteristics:

AVL Self-Balanced Binary Tree

one-to-one Key/Value relationship

Values stored/retrieved/removed using unique lookup Key

Keys must be unique

no limit on Key length

Value replaced if Key exist

Tree always stays in Key order

Tree may be traversed forward/backward in Key order

Tree is self-balanced to maintain shortest average path to each Key

 

 

Additional information about AVL Tree

 

Use Wikipedia as source of information: https://en.wikipedia.org/wiki/AVL_tree

 

 

How to use in thinBasic

 

As a minimum, the following are the step required to use an an AVL Tree:

1.use Tree_New to create a new AVL Tree

2.use Tree_Set to add/change key/value pairs

3.use Tree_Get to retrieve key/value pairs

4.use Tree_Free to remove the entire AVL Tree and all associated key/value pairs

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software