PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2013-01-18 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 316 All time: 7,081 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
  Performance   Level  
Name: Chris Jeffries <contact>
Classes: 5 packages by
Country: United Kingdom United Kingdom
Age: 71
All time rank: 2318106 in United Kingdom United Kingdom
Week rank: 903 Up39 in United Kingdom 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:316
This week:0
All time:7,081
This week:522Up