Iskren Stoyanov's blog

Monday, November 26, 2007

PHP Generate perfectly balanced tree

The script that follows generates perfectly balanced tree with "n" nodes:

Posted by Iskren Stoyanov at 3:45 PM
Labels: Recursive algorithms

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Friends

Labels

  • Recursive algorithms
  • Sorting algorithms

Blog Archive

  • ►  2013 (1)
    • ►  January (1)
  • ▼  2007 (14)
    • ▼  November (14)
      • PHP B-tree - Add element/node
      • PHP B-tree - Remove element/node
      • PHP Balanced tree - Add element/node
      • PHP Balanced tree - Remove element/node
      • PHP Generate perfectly balanced tree
      • PHP Eight queens
      • Benchmark of sorting algorithms written in PHP
      • PHP Quicksort
      • PHP Heapsort
      • PHP Shaker Sort
      • PHP Bubble sort
      • PHP Selection sort
      • PHP Binary Insertion sort
      • PHP Straight Insertion sort
Simple theme. Powered by Blogger.