PHP Classes

Value Seek: Seek for optimal values with binary search

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 317 All time: 7,243 This week: 522Up
Version License PHP version Categories
value-seek 1.0GNU General Publi...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
  Performance   Level  
Name: Chris Jeffries <contact>
Classes: 6 packages by
Country: United Kingdom
Age: 76
All time rank: 2175100 in United Kingdom
Week rank: 312 Up8 in United Kingdom Up
Innovation award
Innovation award
Nominee: 3x

  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:317
This week:0
All time:7,243
This week:522Up