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
(** proplog.ml: | |
* Author: Prasad Rao | |
* Email: raoprasadv AT gmail DOT com | |
* use propositional logic to show principles of | |
* prolog resolution | |
* using SLG (http://link.springer.com/chapter/10.1007/3-540-63255-7_33#page-1) | |
* for computing Well-founded semantics of a propositional logic program | |
* | |
* Intended for use as a teaching tool. | |
*) |
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
class Celery | |
def initialize(grid) | |
@grid = grid | |
@height = grid.length | |
@width = grid[0].length | |
end | |
def self.mini | |
[[ 0, 1, 2, 3, 4], | |
[10,11,12,13,14], | |
[20,21,22,23,24], |