PHP Algorithm
PHP Numerical and Statistical algorithms
Prime is a simple script that is meant to determine whether an integer number prime, i.e. it is divisible only by itself or 1.

A Cute and rather unique sorting technique. Easy way to manipulate your array.

Probabilistic is a script to perform several types of common calculations used in probabilistic analysis.Probabilistic can calculate: Average Variance Standard deviation Poisson density and distribution Hypergeometric density and distribution Binomial density and distribution Normal density and distribution (Gauss curve).Probabilistic also has functions to calculate: Factorial of a number Combinations o two numbers Interpolation The area and Z values in the ...

Love Calculator implements a numerology algorithm to measure the so called "love factor" between the names of two persons. You may have heard about the "love factor" on MTV shows.

Simplifica is a script that implements the QuineMcCluskey's tabular method for simplifying boolean expressions. It computes the canonical form of an expression.Simplifica is useful for teaching students how to simplify expressions using an iterative method, instead of Karnaugh, and how boolean algebra may be applied for solving the problem.

Kruskal implements the Kruskal algorithm to find the minimum spanning tree that traverses a given set of nodes of a graph.A graph is described as set of nodes and arcs connecting them. The class takes an associative array that has as indexes the letters of the starting and ending node.The respective array entry values represent the cost of traversing two ...

There are many types of data structures defined by the pioneer programmers in the past the direct interface to them datastructures have been an imperative but today datastructure have been taken for granted. From the most basic stacks and queues to the more advanced link list and binary trees. each plays an important role in the life of a computer. ...

Barcode128 pattern compute script computes barcode128 pattern.

Queue Theory can be used to calculate several types of factors of the queue theory. It provides a generic queue abstract class and several concrete classes with different queue implementations.Currently Queue Theory can calculate the following queue factors: Lambda, Mu, Rho, Po, Pn, Ls, Lq, Ws and Wq values of MM1, MM2 and MMC tails.

BioR is a simple script for calculating a personal biorhythm values given the birth date and the date of a given day of life. The (most common) theory of biorhythm states that our daily lives are significantly affected by simple rhythmic cycles.When we are born, three cycles begin from zero point and then oscillate between 100 and 100 till we ...

Guid is a simple script that meant to generate text values that may be used as global unique identifiers (GUID).The GUID values are generated from random seed numbers, the local computer network host name and the local time. The resulting value is digested with MD5 algorithm.

UID scripts is a simple class for generating a unique identifier using the SHA1 algorithm to compute a digest from the combination of several unique and random text values.UID scripts uses the current timestamp with microseconds, Mersenne Twister random number generator, remote port number, remote IP address, remote user agent, URI and script path to generate a 40 character unique ...

SHA classes provides you a pure PHP implementation of the Secure Hash Algorithm.

Permutation to permutate a string (short one) to return subsets with variable parameters. "ABC" returns a,b,c,aa,ab,ac,ba,bb,...abc,aca,acb ... Initially implemented with a recursive solution there was the bothersome stack overflow and also other minor problems... later when implemented with a tripple for loop it still fails the volume test though try not to have too many characters or it will exceed ...

Calculates the phase of the moon, current, week at a glance, or a specific date. Could be useful for displaying a corresponding image of the moon on a dynamic website.