instruction stringlengths 35 29.1k |
|---|
Problem
When train my linear chain CRF with annotated observations, I feed it with a number of sequences containing observation values and a "ground-truth" label for each observation. I'm currently using the hCRF Matlab interface. (see 1)
In my case I have 4 continuous observation values (some in the interval [-1,1], s... |
As in the title, is it possible to find a clique with more than 2 nodes in a bipartite graph?
|
I'm reading William Stalling's Operating System Design and internals. Talking about memory, the following tradeoff was introduced:
As might be expected, there is a tradeoff among the three key characteristics
of memory: namely, capacity, access time, and cost. A variety of technologies are
used to implement memory... |
R is a regular language over $\Sigma=\{0,1\}$
$Sub(R)=\{0^i1^j \mid \exists w\in R.|w|=i-j \}$
I need to prove that Sub(R) is context free.
I know that the quotient of a context free language with a regular language is context free
but I can't seem to continue for there..
|
Given a predefined set of phrases, I'd like to perform a search based on user's query. For example, consider the following set of phrases:
index phrase
-----------------------------------------
0 Stack Overflow
1 Math Overflow
2 Super User
3 Webmasters
4 Electrical Engi... |
This seems related to these questions at a glance:
What are some problems which are easily solved by human brain but which would take more time computers?
What would show a human mind is/is not reducible to a Turing machine?
But not quite, I am not asking about "time", but power. Also, I am not interested in the turing... |
I'm reading Wadler's 'Theorems for free'. In section 3.5 he states that $m_{AA}(I_A)$ is a rearranging (i. e. injective) function. $I_A$ is the identity function on the type A.
$$m : \forall X.\forall Y. (X \rightarrow Y) \rightarrow (X^* \rightarrow Y^*)$$
How does he use section 3.4 to prove this without any $\forall... |
I've got these arithmetic expressions
a ::= n | x | a1 + a2 | a1 ? a2 | a1 − a2
which are a part of language.
An undefined element is allowed ⊥ which extends the set of intergers to Z∪{⊥}.
Problem:
I need to define the function
A: Aexp → (State → Z∪{⊥})
by defining equations for each form of the arithmet... |
Suppose $C_1, \ldots, C_m$ are subsets of $\{1, \ldots, n\}$. The goal is to find the smallest subcollection of $C_1, ..., C_m$ such that each element of $\{1, \ldots, n\}$ appears at least $k$ times in this subcollection.
If $k=1$, this is set cover. I would be interested to learn how to prove NP-hardness for $k=2$ a... |
I am trying to see if infinite languages are always decidable. I believe it is not always decidable because there will not be a maximum length of string for the Turing machine to halt. Am I on the right path? I am having difficulty coming up with an example infinite language That is decidable.
|
Question: How many 32 bit integers can be stored in a 16 bit cache line.
Answer: 4
can somebody please explain for me why the answer is 4 i did not understand the reason and i think they should give us more given like the number of blocks in the cache..
|
From Compiling Pattern Matching to Good Decision Trees (Luc Maranget, Proceedings of ML '08, pp. 35–46. ACM, 2008.)
We also consider the usual occurrences. Occurrences are sequences of integers that describe the positions of subterms. More precisely an occurrence is either empty, written $\Lambda$, or is an integer $k... |
Im currently learning about removing left recursion. Ive watched a few youtube clips and understand the basics. For example, i can remove left recursion for the following;
$E \rightarrow E+T \mid T$
Answer
$E \rightarrow TE'$
$E'\rightarrow \varepsilon \mid +TE'$
Ive been given the following question which has sort of ... |
It seems to me that there are two different situations which get called ``PH collapse",
(1) That $\exists i \geq 1$ s.t $\Sigma_i ^p = \Sigma_{i+1}^p$
(2) That $\exists i \geq 1$ s.t $\Sigma_i^p = \Pi_i^p$
Are these two different independent situations?
AFAIK the only natural relation is that $\Sigma_i^p \subseteq... |
The part I want to modify:
B -> F | B A | A
What is the correct way to remove this left recursion?
I was thinking
B -> F R | A R
R -> A R | ε
But I've been told this is incorrect
|
Suppose we have $N$ arrays of pairs, e.g. for $N=3$:
$A_1 = [ [3,2], [4,1], [5,1], [7,1], [7,2], [7,3] ]$,
$A_2 = [ [3,1], [3,2], [4,1], [4,2], [4,3], [5,3], [7,2] ]$ and
$A_3 = [ [4,1], [5,1], [5,2], [7,1] ]$.
We can assume that the pairs in every array are sorted by the first number, and then by the second number. Al... |
How do we solve the weighted interval scheduling problem if given a maximum weight? I understand the solution for the problem when we are simply interested in the maximum weight possible, but how do we solve it when we need to find the maximum weight that cannot exceed a given weight?
Formally:
Given n tasks with start... |
I've got the following definitions:
$$\mathrm{Interleave}\,(x,y) = \{w_1\dots w_n\mid w_i\in\{x_i,y_i\} \text{ for }i=1, \dots, |x|\}$$
when $x$, $y$ and $w$ are words with $|x|=|y|$ and $w_i$ means the $i$-th letter in $w$.
$$\mathrm{Interleave}\,(L_1,L_2)\ \ = \!\!\!\!\bigcup_{\substack{x\in L_1,\ y\in L_2,\\ |x|=|y... |
I am getting ready for my end of year exams and I got stuck on this question.
Consider the following 3-process concurrent program which uses semaphores S1,
Process 1
L1:
P(S3);
print("N");
V(S2);
goto L1;
Process 2
L2:
P(S1)
printf("O");
V(S3);
goto L2;
Process 3
L3:
P(S2);
print("C");
V(S1);
gotoL3;
Are th... |
I'm trying to understand a small proof in an article about computing lumpability on Markov chains. There is a small detail that I cannot understand, i.e. I don't think it follows from the argument.
The article is Simple $O(m\log{n})$ Time Markov Lumping written by Valmari & Franceschinis.
Given a weighted graph they de... |
As a student, back in the day, I was exposed to high level programming languages that not only had a GOTO statement, but on which its use was common. I also did my fair share of programming in assembly code, but always had the impression that my understanding of the semantics of subprograms was enormously facilitated b... |
Intuitively, recall what 3CNF formulas mean:
Its a boolean formula with conjunctive normal form (i.e. formula of ANDs of clauses with ORs) with no more than three variables per conjunct.
I was reading a paper that said:
under a widely believed assumption that refuting random 3CNF formulas is hard, it is impossible to ... |
I have been drawing some binary comparison trees, which correspond to compares made to sort an array, and I was wondering if there is any formula to determine the height of a comparison tree for an array of N values, in Sedgewick's algorithms 4th ed. book for N = 3, the height of a comparison tree is 3.
He draws his c... |
If 'S is a set complement of S, then a set complement of a superset of S' is a subset of S.
Just want to verify that above is true just based on the definition of set complement and superset.
|
Languages like Coq and Agda enforce that their inductive types occur "strictly positively" in their definitions. That is, the type should not occur to the left of an arrow of an argument of a constructor. This is because if no such condition were made the fixed point combinator could be written and the systems would be... |
I am trying to understand the existence of non-recognisable languages. To get this, I need to know why a Turing machine recognises only one language, not multiple. Why is this?
|
Does Kruskal's and Prim's algorithm work on directed graphs? I want the two algorithms to find a minimum spanning tree. For further enlightenment, I would like to know what other problems Kruskal's and Prim's can solve. So far, I only know they can solve minimum spanning trees. If it turns out there are an infinite num... |
This is not an assignment, but it is related to my Data Structures class.
I just wrote this Python code to merge two ordered python lists. I do know that I could do something like this: list1 + list2. I still want to know the answer for my question - it seemed important to my professor that we learn how to write good r... |
Question:
Let $A \subseteq $ {0,1}$^* $ be a language which satisfies $|A \cap ${0,1}$^n|=n^3 $ for all $n\ge 10$ Prove that $A \in NP$ implies $A \in coNP$.
Thoughts
I've been having difficulty with this problem. My idea is somehow showing that each set of $n^3$ words cannot be a verifier for A and therefore A is in ... |
Can a valid Huffman tree be generated if the frequency of words is same for all of them?
Example :
Value | Frequency
--------------------
Google | 2
Yahoo | 2
Microsoft | 2
Amazon | 2
|
I have a problem in algorithm subject.. I have to decide whether 127n^2+n^3−4745n^2 is Ω(n^2) or not. How can I do this? Thanks very much!
|
3 address code is a very common topic in many of the CS theories. I encountered it while studying Compiler Design. According to the Wikipedia article, it says -
Each TAC instruction has at most three operands and is typically a combination of assignment and a binary operator.
Now my query, does that mean I can assig... |
Is the empty set a dominating set?
I don't think it is, because in an empty set there are no vertices to dominate.
Is my reasoning correct?
|
Which algorithm would be suitable for finding or estimating the vector
$$\mathbf{s}_{opt}=\begin{bmatrix}
s_1 & \cdots & s_N
\end{bmatrix}=\arg\max_{\mathbf{s}}\sum_{n=1}^{N}p_{s_n,n}$$
under the constraint
$$\sum_{n=1}^{N}l_{s_n,n}\leq L_{max}$$
given known values for the integer $N$, the vector
$\mathbf{p}_n=\begin... |
My google skills have failed me during research for a college project. Our task is write a program that describes an image in spacial terms, e.g. "Cat on the left of a chair", or for a simple image "Two triangles over a large circle, and a sqaure underneath it".
Suppose that after analysing an image I have a set of ob... |
Consider the infinite two-dimensional grid with integer co-ordinates. A walk in the grid can be represented by a string over the alphabet $\{u,d,l,r\}$, where the letters stand for moving one square up, down, left and right, respectively.
Now consider the langauge of all strings representing closed walks (walks that e... |
If you had a circular graph e.g. A->B->C->D->E->A, and a legal coloring system with 3 colours (e.g. Red, Green Blue), where each node is assigned a colour and no node can be connected to another node of the same colour, what is the easiest way go about producing a Conjunctive Normal Form of node states (e.g. AR means A... |
How is 4G LTE faster than any ordinary internet connection? What is the mechanism behind it?
|
I recently asked a similar question, however, I'd like to address it in a more mathematically precise setting.
In that paper, on page 5, it talks about a rigorous definition of what it means to $\epsilon$-refute random 3CNF formulas. For that, I will provide a screenshot of the exact part I want to address:
The proble... |
In Kuhn's algorithm for the maximum bipartite matching problem we iterate through the vertices of one partite set and try to build the increasing chain, starting with the current vertex. Once the traversal is completed, we claim that the maximal matching is found. But why don't we need to check again the vertices for w... |
I know to prove a language to be Recursively Enumerable, it is ideal to represent a Turing machine for it. Let L be set of strings which have alphabet {u,d,l,r}, where u is up 1, d is down 1, etc. L is representing paths on the Cartesian plane which can begin and end at any point so say begin at (1,3) and end back at (... |
Given a single SAT clause with its 3 literals coming from 3 different variables it is obvious that a random assignment of values will satisfy it with probability 7/8
But I do not understand how from the above argument it follows that given a $m$ clause SAT instance the probability of satisfying at least $7/8 - 1/2m$ ... |
Suppose I have N sets of numbers (10 numbers per set) {a1, ....., a10}. I form a sum by taking one number at random from each set. SUM = num from set 1 +......+ num from set N. If I do this a large number of times I will generate a large number of different values for the SUM variable. How can I estimate the distributi... |
In his talk The Future of Programming, in the third section of the talk about "programming using goals", Bret Victor says this:
https://vimeo.com/71278954 [15:20]
What won't work, what would be a total disaster, is---I'm gonna make up a term here---an API. This notion that you have a human
programmer that writes aga... |
I'm working with road networks, in which each edge is a physical street segment with a length attribute. Nodes represent junctions. However, my question should be generalizable to any weighted graph.
I'm interested in a specific measure of 'branchiness' that I have devised to normalise a density estimate. I would lik... |
An Intel 64 bit CPU uses a four-level hierarchical page table. Each of the four levels of the page table can contain 512 entries, and the page table size is 4KB. You should be able to see that it cannot actually address 2^64 bytes of virtual memory. If a process on the system used 12MB of text, 5MB of heap and 7MB of ... |
I am trying to prove (without converting it into Automata, through just simplification) that the following two regular expressions are equal:
$ (\epsilon + 0^*1^+0)^* = \epsilon + (0+1)^*10 $
here is what I have got so far:
$$ (\epsilon + 0^*1^+0)^* = \\
(0^*1^+0)^* = \\
(0^*1^*10)^* = \\
\epsilon + (0^*1^*10)^+ = ... |
I'm trying to solve an optimization problem which can be described as follows.
There are four sets objects. For simplicity, let's call them :
Apples
Oranges
Pears
Lemons
The sets can contain unequal numbers of their respective objects
These objects must be organized into groups containing exactly one of each object... |
I am reading "Formalization and Implementation of Modern SAT Solvers", by Filip Marić.
My question is about how backjumping is defined. In an example [1], there is a conflict clause C equal to
[-1,-2,-3]
that has already been explained and learned. The decision trail is
|6, 1, 2, |7, |3, 4, 5,
where true decisions are ... |
What methods are there to prove a language is NP-complete? I already know the reduction method, but are there more sophisticated/advanced methods to prove this?
|
For a deterministic finite automaton (DFA), some output tasks are easy when done in one direction, but difficult (or impossible?) when done in the reverse direction. Let's take a simple example of outputting a word lower-case, or upper-case, depending on a control sequence included in the input. So the task
l:aNNa sho... |
I am trying to come up with a formal definition for functional purity in a simple programming language (think JavaScript). What I've got so far is this:
DEFINITION: A statement is impure if
it is an assignment, unless it assigns to a local variable
OR, it evaluates a call to a function, unless that function is pure
O... |
How to simulate a non-deterministic PDA with a turing machine?
|
In a course of computer science it is common to study the hierarchy of formal languages, grammars, automata and Turing machines. I wonder what is the relationship of these objects with formal systems.
For example, lambda calculus is said to be a formal system. Would its grammar also be considered a formal system?
|
How should I go about showing that the following problem is decidable:
Given DFAs M1 and M2, is L(M1) ⊆ L(M2)?
What is the general strategy to prove that a problem is decidable or undecidable?
Thanks in advance.
|
It seems to me that the problem of $s$, $t$ connectivity in a DAG should still be NL-Complete.
I am aware that ST-CON without the DAG restriction is complete for NL, so obviously the DAG restriction is still in NL, but I believe hardness follows as well:
For a turing machine that runs in space $s(n)$, its configuration... |
Given a Turing machine, how can I identify the language it accepts and write a set notation for L(M)?
|
In safety games there are these mathematical notation about greatest fix points and least fix points but I don't get it. How would we describe them plain English without mathematical symbols.
|
In literature, is there an algoritm to convert a monoid into an atomaton?
I am looking for references/applications.
|
What we know is that π is infinite and quite likely it contains every possible finite string of digits (disjunctive sequence).
I've seen recently some prototype of πfs which assume that every file you've created (or anybody else) or you will create, it's already there so it's a matter of extracting it. There is also pi... |
I'm working on an exam question that asks me to run the Double-Tree Heuristic algorithm on the following graph:
This algorithm starts by finding a minimum cost spanning tree.
My solution:
Minimum spanning tree contains edges ec, cb, dc, da
Doubling these edges to find an Euler tour: a, d, c, b, c, e, c, d, a
Removin... |
I have read that from Fourier transform we obtain magnitude and phase spectrum. The magnitude spectrum tells you how strong are the harmonics in a image and the phase spectrum tells where this harmonic lies in space.
I have used Matlab to compute the magnitude and phase spectrum of the 2 grayscale images of babies usin... |
I'm new to regular expressions and I'm currently working on some exercises on converting DFA's and NFA's into their equivalent regular expressions.
I have the following NFA:
I'm using the state elimination method to obtain the regular expression for the NFA. So I first introduced two new states, $q_{start}$ (the new s... |
So, you see in the image the question and its answer (proof below the black line).
I get the entire proof until the last formula. It basically says that if length of a string is larger than number of states then one or more states need to be re-visited (at least one more times).
Formula for the L makes also perfect se... |
Under what operations are linear context-free languages closed? Suppose $L_1, L_2$ are two linear context free languages. Are there any guarantees about $L_1 \cup L_2$, $L_1 \cap L_2$, $\overline{L_1}$, $L_1 . L_2$, etc.?
|
I start to work in the field of computer vision and read a paper in which the author states "When suitable correspondences between salient image structures have been established, the 3D uncerntainty of these structures mainly depends on the triangulation angle between the oberservations and the 3D structures". So what ... |
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 use an algorithm that could err. I ... |
If $a,b,c,y$ are all scalar doubles, then $y = a\cdot b$ would result in 16 bytes from loading $a,b$ and 8 bytes for storing $y$, a total of 24 bytes transferred. Likewise, $y = a\cdot b + c$ results in 24 bytes from loading $a,b,c$ and 8 for storing $y$ hence 32 total bytes transferred. Now let $\boldsymbol{X},\boldsy... |
I'm a business informatics student so I am taking introduction to computer science and computer programming, and so far I hate everything that has to do with this major aside from these 2 courses which I am really enjoying so far, so I am considering changing to a computer science and engineering major, but I want to m... |
Are there real-world applications of the Steiner Tree Problem (STP)?
I understand that VSLI chip design is a good application of the STP. Are there any other examples of real world problems that people can suggest of that could be formulated in terms of the STP?
Background: I am beginning my PhD research and I am look... |
Consider the following problem: given a Turing Machine $M$ and an input string $w$, does $M$ enter each of its states during its computation on input $w$?
How to prove that the problem is undecidable?
I was trying to prove undecidability by Rice's theorem which states that languages having non-trivial property are unde... |
I'm wondering if there is a polynomial algorithm for "2-SAT with XOR-relations". Both 2-SAT and XOR-SAT are in P, but is its combination?
Example Input:
2-SAT part: (a or !b) and (b or c) and (b or d)
XOR part : (a xor b xor c xor 1) and (b xor c xor d)
In other words, the input is the following boolean formula:
$$(a... |
So based on the Chandy/Misra section in this Wikipedia article we've got 5 philosophers numbered P1-P5.
Based on this quote:
For every pair of philosophers contending for a resource, create a fork and give it to the philosopher with the lower ID (n for agent Pn). Each fork can either be dirty or clean. Initially, all ... |
I have googled a lot to find the answer and found some links like this, this and this and even in a book Understanding Computers Today and Tomorrow (13th edition) couple of paragraphs are written as given below:
Some input and output devices are exceedingly slow, compared to today’s CPUs. If the CPU had to wait for th... |
In the paper, Paxos Made Simple, a proposer asks an acceptor to respond to a prepare request with:
A promise never to again accept a proposal numbered less than n, and the proposal with the highest number less than n that it has accepted.
Therefore:
[An acceptor] can receive two kinds of requests from proposers: pre... |
I'm sorry if this question seems too naive.
I've read the Shor's algorithm of factoring big number using quantum computer on Wikipedia. It says,the key step is to find the cycle of the function defined on positive integers:f(x)=a^x mod N, where a and N are positive integer,and N is very large.
What I would like to do ... |
How many instructions as a function of the input size N?
int count=0;
for (int i=0; i<N; i++)
for(int j=i+1; j<N; j++)
if(a[i] + a[j] ==0)
count++;
# of "less than" compare instructions = 1/2(N+1)(N+2) Can someone pl. explain why there is 1/2 multiplier?
# of "equal to" compare instructions = 1/2 * N ... |
There's a problem which I had on a number of unrelated occasions which I usually work around in some way or another. Deep inside, though, it bothers me that I haven't ever found a “proper” solution to this:
Given an n-tuple of integers, how do I derive a stateless pseudorandom number / hash value in the half-open inte... |
We know that the "subset product problem" is NP-complete, as Gary and Johnson mentioned in their book, and the proof is by reduction from X3C.
I wonder if we can prove that this problem, i.e., the subset product problem is NP-complete even where all the given numbers are distinct powers of 2?
It seems to me it has to ... |
Since reading Ken Thompson's Reflections on Trusting Trust I am trying to formalize the idea of a program which mutates its own behaviour; specifically, a program that would be self-reproducing except that it would reproduce itself with a mutation. With this definition I wish to differentiate this kind of program from ... |
By $c$ character I mean the numbers $0,\dots,c-1$ and the blank symbol $b$, and by $n$ states I mean $n$ non-accepting states, reject and accept.
We can assume every $n$-state Turing machine has $(c+1)n$ transitions going to either another non-accepting state, reject, or accept, that is that it has a transition for eve... |
Modern SAT solvers use the notion of "watched literals": when a value is chosen for a literal $l$, the solver only checks whether that falsifies clauses with $l$ in them if $l$ is one of the watched literals in the clause. This prevents checking every clause for every newly assigned literal.
The correctness of the sche... |
This is probably a stupid question, but I just don't understand. In another question they came up with Schaefer's dichotomy theorem. To me it looks like it proves that every CSP problem is either in P or in NP-complete, but not in between. Since every NP problem can be transformed in Polynomial time into CSP (because C... |
It is always claimed that Cook and Levin gives the very first NP-complete problem and proof of it.
But when I look at the actual proof I think what Cook and Levin did was reduced (or transformed) SAT to "P-bound NTM acceptance" problem.
Formally, we define
A P-bound NTM is a non-deterministic Turing machine that was g... |
I've been thinking about conversion from CNF to DNF. Assume a "worst case" CNF formula with $k$ disjunctions, each containing exactly $l$ elements and no variable is used twice. Example with $k=3$ and $l=2$:
$(a \lor b) \land (c \lor d) \land (e \lor f)$
Obviously, this will result in a DNF of length $k^l$, as all poss... |
I heard that it's possible to model a bounded-memory RAM as a Finite State Machine.
I'm curious about the method of how we would do that.
How would you model a bounded-memory RAM as a Finite State Machine?
Thanks in advance
|
I suppose this is both easy and false.
Let $\phi$ be propositional boolean formula on variables
$x_1 \ldots x_n$.
Suppose in all satisfying assignments of $\phi$,
all pairs of variables $(x_i,x_j),i \ne j$ can take all possible
values, i.e. any of $\{(F,F),(F,T),(T,F),(T,T)\}$.
Is $\phi$ tautology?
In case the answer... |
It seems to me that any problem whose solution requires finite memory can be emulated on a Finite State Machine . This would make those problems that can't be solved by a Finite State Machine to require infinite memory ( like general multiplication of integers ).
My question is what "infinite memory" really means if ... |
This is based off of my question here, where I was helped to find the number of Turing machines with restricted states and characters which is $(3(c+1)(n+2))^{(c+1)n}$. Now I'm wondering how many of those are unique, when I asked on IRC it was suggested that most of them are duplicates. Unique and valid in this case me... |
My teacher asked me to convert the regular expression $(a | b)^*$ to an NFA using Thompson's algorithm – well, I'm well aware of how this algorithm works, but since I'm not good at memorising details, I produced a slightly different NFA, and the teacher said it was wrong. Yeah, I know that it's not what the algorithm p... |
A friend and I have been discussing turning a $O(n^2)$ graph problem's algorithm into $O(n\log n)$, or at least less than $O(n^2)$. And no - this is not a homework question. We've narrowed it down to the following subproblem:
Let $A,B,P,$ and $Q$ be a group of 4 nodes, with coordinates $(x_A,y_A),(x_B,y_B)$,etc... such... |
My instructor asked me to prove that strongly connected component of a DAG is also a DAG. I don't get it. How can a graph be DAG and strongly connected at the same time?
Consider a graph on two vertices "u" and "v" and assume that it is strongly connected as well as a DAG. A path from u to v exists as well as a path f... |
Can anyone give an example of two non-regular languages $A, B \subseteq \{0, 1\}^∗$ for which the language $AB$ is regular?
|
I was reading Alan Turing's paper "On Computable Numbers with an Application to the Entscheidungsproblem".
I was reading well until I encountered "4. Abbreviated Tables", page 235-236, where Turing uses a new way of writing a computation table for a machine. I am totally lost here. I don not understand the examples he ... |
Would it be possible to build a progress bar that estimates progress using entropy?
Consider a web browser that is downloading a large file (for instance), which displays a progress bar indicating the amount of progress in the download. Let $X$ denote the value of the complete file; it is not known until the download ... |
I'm a total beginner in Coq and I'm trying to implement some category theory stuff as an exercise.
I surfed a little among git repos of the many avaible such implementations (HoTT, Awodey's Coq companion, etc.) it seems that every single project implements something like that
Record Category : Type :=
mkCategory{
... |
what is the worst case of insertion sort ?
|
I'm trying to implement a Inventory Routing Problem with Branch-and-Cut. But I'm facing with an issue regarding subtour elimination. (http://www.danflash.com/files/irp.pdf)
The paper describes the constraint like this:
$$\sum_{i \in S} \sum_{j \in S, j<i} y^t_{ij} \le \sum_{i \in S} z_{it} -z_{kt} \quad S \subseteq M \... |
I want to convert below NFA into DFA:
I prepared below tables and finally the NFA:
NFA
However I feel I am wrong here, since original NFA does not have any transitions defined for state C and my final DFA does not have any dead state. However I dont understand where I am going wrong.
|
I'm trying to understand Ogden's lemma, and I know there are 4 cases, but in the next example I can only find 3:
Assume A = {$0^n1^m0^k$ | k = $max${n, m}} is CF:
Choose z = $0^k1^k0^k ∈ A$, z = xuvwy (with uw containing at least one 1):
u or w contains one 1 and one 0, so $xu^2vw^2y ∉ A$
if w = ε, then u = $1^n$ so ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.