Bifalgorithm post · Brisk · Chapter 1
How can predicates represent relationships among multiple objects?
How can predicates represent relationships among multiple objects? (Brisk · Chapter 1) — "Every sentence has a subject and a predicate. In “Billy jumps,” “Bill…
Ideas in this flowchart
- Predicates describe or affirm something about subjects.
- Every sentence has a subject and a predicate.
- In “Billy jumps,” “Billy” is the subject and “jumps” is the predicate.
- A predicate can have more than one input.
- IsFanOf(x, y) means that x digs the music of rock band y.
- Examples include IsFanOf(Stephen, Led Zeppelin), IsFanOf(Rachel, The Beatles), and ¬IsFanOf(Stephen, The Rolling Stones).
- TraveledToByModeInYear(p, d, m, y) means that person p traveled to destination d by mode m in year y.
- Examples include travel by car to Richmond in 2017 and ¬TraveledToByModeInYear(T.J., Mars, spaceship, 1776).
- AteWithAttitude can represent what someone ate and the attitude involved.
- Examples include eating spaghetti with gusto and eating broccoli with either gusto or trepidation.
- Multiple inputs give more precision in defining relationships.
- IsFanOf is identical to an isFanOf relation between sets P and R, where isFanOf ⊆ P × R.
- A relation is the set of ordered pairs, or tuples, for which a predicate is true.
