Client Client Client Client Cache Cache A Cache stores previous results. If the result is already known from the same request recently, it returns that result. Problem: how do Clients and Routers know which cache to try?
key (which could be any value) and a table size to a number between 0 and Size – 1. This is the position in the table where the Key should be stored. Index Key Value 0 1 2 3 4 5 6 7 8 yahoo.com 98.139.183.24 9 10 11 Python: Dictionary type Java: HashMap, Hashtable
key (which could be any value) and a table size to a number between 0 and Size – 1. This is the position in the table where the Key should be stored. Index Key Value 0 1 2 3 4 5 6 7 8 yahoo.com 98.139.183.24 9 10 11 Python: Dictionary type Java: HashMap, Hashtable Problem: assumes everyone knows the size of the table!
true Danny form, he fought back against the terrorists in an effort to defend the stewardesses and the cockpit. To this day, those of us who knew him well can't figure out how only five terrorists managed to overpower him. Tom Leighton’s Remarks
and operations on those values • Nearly always infinite • Unbreakable abstraction: abstract, mathematical objects Programming Languages • Defines a set of possible values and operations on those values • Always finite (in practice), but often views as infinite • Represented in concrete way; may be abstract or exposed
members of themselves Is @ABHIJKLA@BMN@N@O ∈ @ABHIJKLA@BMN@N@O? Russell’s Paradox! Yes means @ABHIJKLA@BMN@N@O ∈ @ABHIJKLA@BMN@N@O , so @ABHIJKLA@BMN@N@O is a member of itself and should not be in @ABHIJKLA@BMN@N@O . No means @ABHIJKLA@BMN@N@O ∉ @ABHIJKLA@BMN@N@O , so @ABHIJKLA@BMN@N@O is not a member of itself and should be in @ABHIJKLA@BMN@N@O .
members of themselves Is @ABHIJKLA@BMN@N@O ∈ @ABHIJKLA@BMN@N@O? Russell’s Paradox! Yes means @ABHIJKLA@BMN@N@O ∈ @ABHIJKLA@BMN@N@O , so @ABHIJKLA@BMN@N@O is a member of itself and should not be in @ABHIJKLA@BMN@N@O . No means @ABHIJKLA@BMN@N@O ∉ @ABHIJKLA@BMN@N@O , so @ABHIJKLA@BMN@N@O is not a member of itself and should be in @ABHIJKLA@BMN@N@O . Be very disturbed! (We’ll get back to this later…or at least in cs3102)
Relations (MCS 4.2-4.4) • Enjoy today’s fast Internet and remember Danny Lewin’s contribution to it • Later (and in cs3102 and cs4102): what it means to convert problems to 3SAT Daniel Lewin 14 May 1970 – 11 September 2001