Problem Detail: The basic idea is to have one or more symbol that clearly indicate the end. For example: Non-ambiguous: $ab^*c$ $(a|b)c$ $ab^+c$ $ab?c$ $a(b|c)$ $c(ab)^*ccc$ $acc^*d$ $abc|bcd$ Ambiguous: $abc^*$ $abc^+$ $abc?$ $acc^*$ or $ac^*c$ An alternative definition of a non-ambiguous Read More …
Category: Uncategorized
[Solved]: Can exactly one of NP and co-NP be equal to P?
Problem Detail: Maybe I am missing something obvious, but can it be that P = co-NP $subsetneq$ NP or vice versa? My feeling is that there must be some theorem that rules out this possibility. Asked By : aelguindy Answered By : Boris Read More …
[Solved]: Is there any nongeneral CFG parsing algorithm that recognises EPAL?
Problem Detail: EPAL, the language of even palindromes, is defined as the language generated by the following unambiguous context-free grammar: $S rightarrow a a$ $S rightarrow b b$ $S rightarrow a S a$ $S rightarrow b S b$ EPAL is the Read More …
[Solved]: Distinguishing between uppercase and lowercase letters in the “move-to-front” method
Problem Detail: Is it not necessary to encode both the uppercase and lowercase letter while encoding a message with the move-to-front transform? From an old computer science course exam, the problem was to encode Matt_ate_the_mat starting with an empty list. Using Read More …
[Solved]: Amdahl’s Law and Computer Science
Problem Detail: I would like to learn more about Amdahl’s Law and other similar topics. In what branch of computer science would one place Amdahl’s law? Could someone point me to a textbook or further reading (aside from Wikipedia or other Read More …
[Solved]: Real life description for (~A->A)->A
Problem Detail: It can be shown that the logical preposition [ :- (~A->A)->A ] is a theorem (always true). I want to know if anybody knows a real life description for the preposition above? I mean an expression in computer, economics, Read More …
[Solved]: What is the complexity of depth first traversal that don’t label nodes as discovered?
Problem Detail: I’ve found an algorithm that acts like a depth first traversal that don’t recognizes nodes that have been visited before. A / B C / D | E If run on this graph, the algorithm will traverse in this Read More …
[Solved]: Lexing and parsing a language with juxtaposition as an operator
Problem Detail: Normal human math notation treats juxtaposition as implied multiplication, e.g., $2x$ means $2$ multiplied by $x$. This does not seem to be a common feature of computer languages, although it was, for example, supposed to be included in the Read More …
[Solved]: What’s the time complexity of Monte Carlo Tree Search?
Problem Detail: I’m trying to find the time complexity of Monte Carlo Tree Search (MCTS). Googling doesn’t help, so I’m trying to see how far I get calculating it myself. It does four steps for n iterations, or before the time Read More …
[Solved]: Finding squares touching points
Problem Detail: I am looking for an algorithm to solve the following problem: INPUT: a set of $n$ points in the plane, $(x_1,y_1),…,(x_n,y_n)$. OUTPUT: a set of $n-1$ axis-parallel interior-disjoint squares, such that the boundary of each square contains at least Read More …