The quiz was about posn (x and y.)
I found the part where you had to figure out if a coordinate was above the diagonal line.
Basically, to do that, you would us this code:
(define (above-diagonal point)
(> (posn-x point) (posn-y point)))
A diagonal line would mean that x=y. If the x coordinate was greater than y, then that would mean that the point is above the diagonal.
I also found the part where you multiply or divide the x and y values.
-
Today's lecture was on networks and recursion.
Ring topology:
Basically, it's a network where computers are connected to exactly two nodes - forming a "ring." A "token" of information is then passed around the network.
Star topology:
It is a network where computers are all connected to one server. Server might be overwhelmed or break.
For example, there are 5 users in total (plus the server.) If user #1 wanted to send information to user #3, the server would transfer the information to user #3 without letting users #2, #4 and #5 see it.
Bus topology:
It's a network where multiple users are linked together on one connection. If one computer were to break/disconnect, the network will still run. If more than one user plans to send information at the same time, there would be a pause that would allow information to be transferred one-by-one.
No comments:
Post a Comment