This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *** HawkEar code level: GitRef=fix-dev-build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Compute practice quarter peal plans for Pipe's classic 11-part cyclic | |
| We can reduce David Pipe's 11-part classic cyclic composition by | |
| ringing only two per part plus the link method. But how? | |
| This script computes all the possible plans to jump between lead heads | |
| using short methods. A single part will look like the following: | |
| - Cyclic link method (Slinky / Slink) | |
| - Short method | |
| - Method from the original part |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Really simple heap that expects to store numbers | |
| class Heap extends SPLHeap | |
| { | |
| public function compare($value1, $value2) | |
| { | |
| return $value2 - $value1; | |
| } | |
| } |