Hoorcollege 5 Apply modify algebra Flashcards
1
Q
Graph algebras
A
Terms contain symbols representing operations
* There is more than one way to build a graph
2
Q
HR Algebra
A
- Can rename source names ren{rt -> s} (cat, rt) = (cat, s)
rename s->g (G) is the function - Can forget source names: fs(cat, s) = (cat)
forget s (G) is the function - Merge (||): put g and h together and merge any common source
3
Q
Algebras
A
Set of objects and a set of operations for putting them together
4
Q
Evaluation of a term
A
Term can be evaluated bottom up
* replace a node label with its interpretation (object or function)
* Apply the functions to the evaluations of their children
* Notation: [[term]] = object in domain
5
Q
S-graph
A
graph plus a set S of source names and a mapping from S to the nodes of G
6
Q
Apply-modify (AM) algebra
A
- Apply operation: Combines a head with a complement
- Modify operation: Combines a modifier with a head
7
Q
Graph types
A
The type of an s- graph is the set of its non-rt source names
* Apply and Modify with types