PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Chi H.   Ternary Search Tree   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: Ternary Search Tree
Insert and search text using ternary search trees
Author: By
Last change:
Date: 12 years ago
Size: 642 bytes
 

Contents

Class file image Download
<?php
/***************************************************************
*
* (c) 2010-2012 Chi Hoang (info@chihoang.de)
* All rights reserved
*
***************************************************************/

require_once ( "TernaryTree.php" );

$tree = new TernaryTree ( );
$tree->Insert ( "ANTEEHEM");
$tree->Insert ( "ANTEE");
$tree->Insert ( "ANTARES");
$tree->Insert ( "ANTEC");
$tree->Insert ( "ANTI");
$tree->Insert ( "TEARE");
$tree->Insert ( "Mario Circuit" );
$tree->Insert ( "Mario Circuit Builder" );
$tree->Insert ( "Marioc" );
$tree->Insert ( "Marioo" );

$tree->Search ( "ANTEEHEM" );
$tree->Search ( "Mario Circuit" );


?>