Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Latest commit

 

History

History
63 lines (40 loc) · 3.56 KB

File metadata and controls

63 lines (40 loc) · 3.56 KB

Rich Algorithms

A WordPress plugin for showing algorithms with code implementation examples.

License: GPL v3

Purpose

Rich Algorithms is part of Richard Webster's Innovation Project dissertation for 2022, University of Chester module CO6008.

Installation

Manually in WordPress

  1. Download the plugin ZIP file
  2. From the WordPress admin dashboard go to Plugins, Add New
  3. Click Upload Plugin, locate the file, upload
  4. In the WordPress dashboard go to Plugins, Installed Plugins, and activate Rich Algorithms

Manually using FTP

  1. Download the plugin ZIP file, extract it
  2. FTP to your server and go to your root WordPress directory
  3. Navigate to wp-content/plugins
  4. Upload the parent directory rich-algorithms - the folder that contains the file rich-algorithms.php - to that location
  5. In the WordPress dashboard go to Plugins, Installed Plugins, and activate Rich Algorithms

Credits & APA References

PHP documentation generated using phpDocumentor.

  • van Riel, M. (2021). phpDocumentor (3.3) [PHP documentation generator]. phpDocumentor. https://phpdoc.org/

PSR-4 Compliant PHP Autoloader class adapted from PHP FIG group.

Syntax highlighter by PrismJS.

  • PrismJS. (2022, February 17). PrismJS (1.27.0) [Code Syntax Highlighter]. PrismJS. https://prismjs.com/

Included Algorithms

Greedy Colouring

Greedy Colouring code example and implementation in Algorithms\GreedyColouring\Assets\JS\greedycolour.js adapted from Mudiyanto, 2022. Converted from Python by Richard Webster.

Fisher–Yates Shuffle function adapted from Bostock, 2012.

Dijkstra's Shortest Path

Shortest Path demonstration library included in Algorithms\Dijkstra\Example provided by David Lettier.

Shortest Path JS code example adapted from Sauer-Utley, 2021. Converted from JavaScript by Richard Webster.

Point in Plygon

Point in Polygon code example and implementation in Algorithms\PointInPolygon\Assets\JS\polygon.js adapted from Finley and Lagidse, 2007. Converted from C by Richard Webster.

  • Finley, D. R., & Lagidse, L. (2007). Determining Whether A Point Is Inside A Complex Polygon. Alien Ryder Flex. Retrieved 11 April 2022, from http://alienryderflex.com/polygon/

HTML5 canvas polygon drawing code implemented in Algorithms\PointInPolygon\Assets\JS\polygon.js adapted from Hajibaba, 2019.