44 77 3 9 15 12 32 24 51 19
Do NOT write code. The description, diagram, etc. does not have to follow the algorithm to the end of sorting, just highlight the main aspects.
a) FIFO does not behave the same as LRU.
b) FIFO does not behave the same as MFU.
c) FIFO does not behave the same as LFU.
d) LRU does not behave the same as LFU.
In each case, show the contents of memory as each page is referenced.
a) Explain why a compiler should not accept this expression. (Note that the language has not been specified so you cannot just say, "It's a syntax error in C++/Java".) In particular, what are the issues regarding the binary operator "<"?
b) Explain how a prefix operator could be introduced so the expression can be successfully processed.
i) f ∈ ο(g) ("little-oh")
ii) f ∈ Θ(g) ("big-theta") .
b) Let h1(n)=(n+1)! and h2(n)=n!.
Exactly one of the following statements is true:
i) h1 ∈ ο(h2)
ii) h1 ∈ Θ(h2)
iii) h2 ∈ ο(h1).
Which one of the 3 statements is the valid one? Prove that your selection is correct. (Do not prove that the other 2 statements are incorrect.)
L1 = {w : w contains the substring 010}
L2 = {w : w does not contain the substring 000}
Give the state diagram for a Turing machine that decides the language L1 ∪ L2.