File: index.html

Recommend this page to a friend!
  Classes of gustavo oliveira de avila  >  JavaScript Binary Search Tree  >  index.html  >  Download  
File: index.html
Role: Example script
Content type: text/plain
Description: example of usage
Class: JavaScript Binary Search Tree
Search values in an array using binary search
Author: By
Last change:
Date: 6 years ago
Size: 500 bytes


Class file image Download
	<script src="SBT.js"></script>
		var text=new binary_tree(["bar","axe","cocoa","avocado","executable","file"]);
		console.log("axe index=""axe"));
		console.log("text tree array="+JSON.stringify(text.tree));
		var number=new binary_tree([2,1,5,6,3,4]);
		console.log("5 index=";
		console.log("number tree array="+JSON.stringify(number.tree));