PHP Classes

PHP Matrix Similarity: Find similarities in a 2D tile matrix

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 124 All time: 9,267 This week: 208Up
Version License PHP version Categories
matrix-similarity 1.0.3The PHP License5HTML, Algorithms, Math
Description Author

This class can find similarities in a 2D tile matrix.

It can generate a bidimensional array of a given size and populate it with random letters from a given set of values.

The class can traverse the generated array to find similar sequences of values following a given set of directions of connected neighbor values.

The class can also display the array in a Web page highlighting the similar connected values.

Innovation Award
PHP Programming Innovation award nominee
May 2015
Number 5
2D matrices are often used to solve problems of algorithm implementation, geographic mapping and gaming.

This class can find matrix similarities using 2D arrays. It can be useful for instance to determine if players in a 2D tile game have achieved goals determined by the trails of the tiles that they traversed.

Manuel Lemos
Picture of Ghali Ahmed
  Performance   Level  
Name: Ghali Ahmed <contact>
Classes: 5 packages by
Country: Tunisia Tunisia
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Accessible without login Plain text file demo.php Example Experimental example that demonstrate how the class works
Plain text file MathMatrixHelper.php Class Main class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:124
This week:0
All time:9,267
This week:208Up
For more information send a message to info at phpclasses dot org.