Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Chi Hoang  >  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: 2 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" );


?>