topics:  main-page   everything   99things   things-to-do   software   space   future   exercise & health   faith  
  thought   web   movies+TV   music   mymusic   food   curiosity   tidbits   I remember   wishlist   misc   links


This section lists all blog posts, regardless of topic.

Cat VS Printer
September 11, 2008

http://gizmodo.com/5048489/cat-kos-printer-in-vicious-boxing-match

Whew, worth a good laugh.


Exercise 13: Rule parser
September 11, 2008

Summary

Write a parser to allow rules to be added to the brain. Add a hash to the brain called "rules" that indexes rules on the following three items:

1.Their type
2.Their first non-variable entity type
3.Their second non-variable entity type

Test cases

Click here


Exercise 12: Rule class design
September 11, 2008

Summary

The objective of this exercise is to complete a class design for rules as described in an earlier post.

A rule can have one or more conditions.
A rule has exactly one conclusion.
A rule condition is basically the same as a transformation output specification, whereby any token can be replaced with a numbered variable.
Likewise, a rule condition is basically the same as a transformation output specification.
The rule conclusion can only use variables that are referenced in one or more rule conditions.
A rule has a type: A rule is either an "assignment rule" or a "relationship rule".


older >>