Problem Detail: I don’t understand why $n log log n $ is not $Theta (n)$. Suppose we give $n$ a value of $10,000$. Then $n log log n$ is $6020.6$. So isn’t $n log log n$ upper- and lower-bounded by $n$, Read More …
Author: ignougroup
[Solved]: Solving recurrence with logarithm squared $T(n)=2T(n/2) + n log^2n$
Problem Detail: $T(n)=2T(n/2) + nlog^2(n)$. If I try to substitute $m = log(n)$ I end up with $T(2^m)=2 T(2^{m-1}) + 2^mlog^{2}(2^m)$. Which isn’t helpful to me. Any clues? PS. hope this isn’t too localized. I specified that the problem was a Read More …
[Solved]: Does every DFA contain a loop?
Problem Detail: Is there a rule that either every DFA contains or not, a loop(cycle in graph terminology)? I do not seem to be able to generalize this idea in either direction. Also if either of these is true, can we Read More …
[Solved]: Description of resolution algorithm as it applies to SAT
Problem Detail: SAT [5] can be solved with resolution definitively, i.e. if the formula has a true assignment, resolution can find it, and if it cant be satisfied, resolution can show that no assignment exists (at least in exponential time/space.). [4] Read More …
[Solved]: What is the TAK function for?
Problem Detail: We covered this in class today. I understand the mechanics of it, but aside from being a nice example of recursion does it serve any purpose? Searching the web reveals lots of pages with the formula and it’s implementation Read More …
[Solved]: Why is compression ratio using bzip2 for a sequence of “a”s so jumpy?
Problem Detail: library(ggplot2) compress <- function(str) { length(memCompress(paste(rep(“a”, str), collapse=””), type=”bzip2″)) / nchar(paste(rep(“a”, str), collapse=””)) } cr <- data.frame(i = 1:10000, r = sapply(1:10000, compress)) ggplot(cr[cr$i>=5000 & cr$i<=10000,], aes(x=i, y=r)) + geom_line() The compression ratio starts out at 37 for Read More …
[Solved]: Call by need compared to pass by function
Problem Detail: SML uses pass‑by‑value, Haskell uses call‑by‑need. Unless I’m wrong (the purpose of this question), one can do call‑by‑need with SML, passing a function instead of a value; a function to be later evaluated when needed. Adapting a classical example: Read More …
[Solved]: Regular expression for the language where every a is surrounded by b’s
Problem Detail: I had a question on an assignment where we were supposed to write a regular expression for a language where every $a$ in $w$ is immediately preceded and followed by a $b$. My answer was $epsilon + (b + Read More …
[Solved]: Do Kernel-Mode Windows Services Considered Part of Kernel?
Problem Detail: I learned that there are two types of services in Windows , one called -service- which is in user-mode , other is called -driver service / device driver– which is in kernel-mode. What I wonder is , do kernel-level Read More …
[Solved]: Is the DPLL algorithm complexity in terms of # of clauses or # of variables?
Problem Detail: I’m a bit confused how worst case complexity is estimated for the DPLL algorithm. Is it in terms of number of clauses, number of variables, or something else? Asked By : Rich Answered By : Kyle Jones In the papers I’ve Read More …