Login   Register  
PHP Classes
elePHPant
Icontem

Value Seek: Seek for optimal values with binary search

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-01-18 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 311 All time: 6,545 This week: 1,523Up
Version License PHP version Categories  
value-seek 1.0GNU General Public Lice...5Algorithms, PHP 5, Performance and op...
Description Author  

This class can seek for optimal values using the binary search algorithm.

It can search for an optimal value to solve a problem by trying different values and invoking given functions to evaluate the results of each tried value and determine which is closer to the optimal solution.

The search starts with a lower and an upper range search values.

The number of attempts to find the optimal values can also be limited.

Innovation Award  
PHP Programming Innovation award nominee
January 2013
Number 2
Binary search is an algorithm that is often used to search for optimal values in a sorted array.

This class implements the binary search algorithm to search for optimal values of any kind.

Instead of searching for values in a sorted array, it can search values within a given range that produce optimal results returned by a given function.

Manuel Lemos
Picture of Chris Jeffries
Name: Chris Jeffries <contact>
Classes: 2 packages by
Country: United Kingdom United Kingdom
Age: 66
All time rank: 2769126 in United Kingdom United Kingdom
Week rank: 1642 Up66 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file batchresize.php Example Example code using ValueSeek to resize image files. Command line utility, not web page script
Plain text file class_ValueSeek.php Class Contains the ValueSeek class
Accessible without login Plain text file consolelog.txt Output Showing batchresize.php execution
Accessible without login HTML file ValueSeek.html Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 0%Total:311All time:6,545
 This week:0This week:1,523Up