Answer from cs61c-bx (Tuan Ha 16989532) for Question 1 Principle of Spatial Locality: A friend of mine is coming to visit me last weekend. He wanted to try some good foods. So, i took him to Asian Ghetto because i always eat there and i know every single restaurants in there. I didn't want to bring him to San Francisco because i've never tried any restaurants there. Moreover i don't know the way around SF. Principle of Temporal Locality: I found a new Thai restaurant that serves really good curry chicken, one of my favorites. So, i tends to go there and eat curry chicken. I eat there 5 times a week. Now i'm geting bored of the food. I'm thinking of going somewhere else to eat.