Problem Detail: Let a input string be given as $w_1w_2…w_n$. Then if a NFA is currently in state $r$ ( and has read the input upto alphabet $w_i$ ) then before reading the next input symbol the NFA splits into two Read More …
Category: Uncategorized
[Solved]: Machine Learning algorithms based on “structural risk minimization”?
Problem Detail: Which machine learning algorithms (besides SVM’s) use the principle of structural risk minimization? Asked By : Classifire Answered By : jmad The structural risk minimization principle is a principle that is at least partly ‘used’ in all machine learning methods, since Read More …
[Solved]: Double, down facing arrow in operational semantics
Problem Detail: What is the meaning of the double, down facing arrow $Downarrow$ in the context of operational semantics? Here’s the example formula that uses it: $$frac{s_0 vdash M_1 Downarrow P_1, s_1 ; … ; s_{n-1} vdash M_n Downarrow P_n, s_n}{s_0 Read More …
[Solved]: Reduction examples from the strongly NPC problem 3-PARTITION
Problem Detail: 3-PARTITION is strongly NP-complete, i.e. it remains NP-complete even if the input is given in unary. I’m searching two or three examples of (possibly well-known) non-numeric problems that have been proved to be NP-complete using a reduction from 3-PARTITION Read More …
[Solved]: confused about XORing and addition modulo 2
Problem Detail: it’s my understanding that when you XOR something, the result is the sum of the two numbers mod 2. why then does 4^2 = 6 and not 0? 4+2=6, 6%2 doesn’t equal 6. I must be missing something about Read More …
[Solved]: If L is regular show that even (L) is also regular
Problem Detail: I am stuck on the following question If L is regular show that even(L) is also regular where even(L) = {even(w) : w ∈ L} w is a string in L even(w) is the string obtained by extracting from Read More …
[Solved]: Are there adversarial inputs for randomized quicksort?
Problem Detail: Someone recently claimed that there’s an adversarial input for randomized quicksort; he referenced this paper. This defies my intuition because there are results that say that randomized quicksort runs in $O(n log n)$ time with high probability. (See, for Read More …
[Solved]: Create cfg and npda/pda for Language {ww}
Problem Detail: I’ve been trying to make a CFG, and npda/pda for this language (to construct an npda for accepting the language): L(M)={ww:w∈{a,b}∗,|w| is even}. i had already solved the reverse of the language (like this): L′={wwR:w∈{a,b}∗}, Please check this snapshot Read More …
[Solved]: Whats is the meaning of polynomial run-time in input size ?
Problem Detail: If an algorithm runs in exponential time with exponential input then we say it runs in polynomial time ? Why ? Doesn’t the algorithm run in exponential time anyway ? How the input size affects ? Thanks. Asked By Read More …
[Solved]: Detect if a sentence is in passive voice
Problem Detail: Given an English sentence, I am looking for a programmatic way to tell whether the sentence is written in passive voice. Currently, I just check if there is a was or were inside the sentence. If yes, then the Read More …