Problem Detail: As title. When we want to request following page numbers 2,4,4,2,5,2,1,1,3,1, is clock replacement better? What are the advantages and disadvantages of them? Thanks~ Asked By : Echo0831 Answered By : Rick Decker Coincidentally, for your reference string, both LRU and Read More …
Category: Uncategorized
[Solved]: Proof of Karp-Lipton theorem
Problem Detail: I am trying to understand the proof of the Karp-Lipton theorem as stated in the book “Computational Complexity: A modern approach” (2009). In particular, this book states the following: Karp-Lipton theorem If NP $subseteq$ $P_{backslash poly}$, then PH $= Read More …
[Solved]: Probabilistic algorithm with two-sided error
Problem Detail: I am currently studying probabilistic algorithms and came across three major complexity classes: BPP: worst-case polynomial time, two-sided error RP: worst-case polynomial time, one-sided error ZPP: average-case polynomial time, no error At first I couldn’t understand why one would Read More …
[Solved]: Counter example to graph coloring heuristic using BFS
Problem Detail: I am considering the following heuristic for the graph coloring problem (i.e. to color a graph $G$ using a minimal number of colors so that no two adjacent vertices have the same color): Explore the vertices of $G$ in Read More …
[Solved]: Complement of CFL is Recursive
Problem Detail: If CFL are not closed under complementation, it means that if a language ‘$L$’ is CFL then its compliment $L^C$ is not CFL. Then how can we discuss about $L^C$ being recursive? My doubt arose because I think if Read More …
[Solved]: Why does quicksort work well with virtual memory?
Problem Detail: Introduction to Algorithms said that quicksort “works well even in virtual-memory environments,” but didn’t explain why. I’ve tried looking an Wikipedia and Stack Exchange, but found no reason why. Is it just because quicksort sorts in place? Asked By Read More …
[Solved]: Number of Hamiltonian cycles on a Sierpiński graph
Problem Detail: I am new to this forum and just a physicist who does this to keep his brain in shape, so please show grace if I do not use the most elegant language. Also please leave a comment, if you Read More …
[Solved]: Operations on OBDD: negation through Shannon’s expansion
Problem Detail: I have a problem with the application of the Shannon expansion for to obtain the negation of a formula boolean, than will need for implement the negation operator on OBDD (Order Binary Decision Diagram) that is, show that: $qquad Read More …
[Solved]: High maths for game theory
Problem Detail: I am a starting Ph.D. student in computer science, and I am trying to understand some classic game-theory papers, such as those by Nash, Kalai and Smorodinsky. But I find it hard to understand the mathematical parts. It seems Read More …
[Solved]: A lambda calculus evaluation involving Church numerals
Problem Detail: I understand that a Church numeral $c_n$ looks like $lambda s. lambda z. s$ (… n times …) $s;z$. This means nothing more than “the function $s$ applied $n$ times to the function $z$”. A possible definition of the Read More …