So basically you can determine which of them are functions by using the vertical line test. If you can draw any vertical line that intersects more than one point of the relationship, then it is not a function.
I'm not complete sure about the discrete one but, hopefully it's right :).