































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
































is. Some of us think cs125 should be a prerequisite for this course.
The only algorithms you have as examples are mergesort and binary search.
R ⊆ AxB
Yes, a function is a special kind of relation.
A relation on AxA is transitive if (a,b) ∈ R and (b,c) ∈ R imply (a,c) ∈ R.
A relation on AxA is anti-symmetric if (a,b) ∈ R implies (b,a) ∉ R.
A “short cut” must be present for EVERY path of length 2.
Edge for every element of R
EVERY edge must have a return edge.
Edge for every element of R
No edge can have a return edge.
“divides”
Definition of “divides” Yes, for k=0.
Definition of “divides”
Yes, for k=-j.
Let R be a relation on A. Inductively define
Let R be a relation on A. Inductively define