Note

The wasBinarySearchTreeMinimum function takes as arguments:

and returns the minimal value in the binary search tree.

Code

This script was tested and works on OpenSim version 0.7.5!

///////////////////////////////////////////////////////////////////////////
//    Copyright (C) 2013 Wizardry and Steamworks - License: GNU GPLv3    //
///////////////////////////////////////////////////////////////////////////
string wasBinarySearchTreeMinimum(list BST, string root) {
    string node = wasBinaryTreeLeft(BST, root);
    if(node == "") return root;
    return wasBinarySearchTreeMinimum(BST, node);
}