instruction
stringlengths
35
29.1k
Given a turing machine which has unlimited memory and time, can it solve all problems or are there a class of problems that cannot be solved even with unbounded power. Is there a way to prove this?
I am trying to understand Multiway Cut, and basically how the Multiway Cut works. I am searching google many hours to find a good example to understand. A good example that I am trying to understand is this: http://crab.rutgers.edu/~rajivg/studentTalks/multiwayCut.pdf What I cannot understand, and here is the point I n...
A deterministic finite automaton without $\epsilon$ steps for the language $0^*1^*$ is required. Any nice picture ? I have created a NFA for this language which has 2 states $Q_1,Q_2$, both are accepting, $Q_1$ is initial, there is a move under $0$ from $Q_1$ to $Q_1$, a move under $1$ from $Q_1$ to $Q_2$ and finally a...
For even split binary search (repeated halving) number of queries is log with base 2. According to Skiena's Algorithm Design Manual, if the split in binary search is by ratio 1/3:2/3 instead of 1/2:1/2, then number of queries is log with base 3/2. Why is this so? Would someone please help me get an intuitive understand...
I think you can create the complementary language that is an element of DSPACE($f(n)$), where $f(n) \geq \log(n)$ by adding a step to the algorithm that reverses the answer. By that the function $f(n)$ does not change, therefore DSPACE($f(n)$) is closed under complement. I know that most likely my answer is wrong. Can...
Let $c\in(0,1/2]$ be a constant. Given a set of positive integers with sum $S$, is there a partition into two subsets such that both subsets have sum at least $cS$? If $c=1/2$, this is the famous partition problem which is NP-complete. What is known about the complexity for other values of $c$? I posted the question ...
Is the halting problem, only applicable for infinite languages? I assume that if the language is finite, then we can search over all words?
Below I will list a concrete example and the confusion it causes. Let's first say we have a decision problem, which is: "Is X <= 400?" We define the alphabet as the set of natural numbers. The language formed by this problem is $L = \{ w | w <= 400 \}$ We define a Turing machine, M, over the alphabet, that halts in an ...
I have the variable Si. How to express a variable Di in LP that satisfies: Di=100*Si if Si>=0 Di=-200*Si if Si<0 The objective function would be Min{Sum(Di)}
Is there an example of a "set of steps" that we thought was an algorithm, but later was shown not to be an algorithm because it could not be implemented on a Turing machine?
Is there a general framework for showing that a problem has no algorithm? For example, to show that two problems are equally as hard to each other, we use reduction. One example of where this was done, is Hilbert's 10th problem
This post concerns mainly non-bipartite graphs. Edmonds (1961) have proposed the Blossom algorithm to solve the maximum matching problem for undirected graphs. The best implementation of it is due to Micali and Vazirani (1980): $\mathcal O(|E|\sqrt{|V|})$ time. There is a version of the Blossom algorithm for weighted ...
I read about NPC and its relationship to PSPACE and I wish to know whether NPC problems can be deterministicly solved using an algorithm with worst case polynomial space requirement, but potentially taking exponential time (2^P(n) where P is polynomial). Moreover, can it be generalised to EXPTIME in general? The reason...
Given two deterministic parity automata $A_1=(Q_1,\Sigma,\delta,q_{01},c_1)$ and $A_2=(Q_2,\Sigma,\delta,q_{02},c_2)$ with the finite set of states $Q_i$, the finite alphabet $\Sigma_i$, the transition function $\delta_i : Q_i \times \Sigma \rightarrow Q_i$, the initial state $q_{0i}$ in $Q_i$, and the coloring functio...
For example, I want to evaluate the expression: $3^{3^{{3}^{3}}}$ so I used wolframalpha.com (it's free, and I don't own any software), which returned the scientific notation of the number above, namely: $ 1.258014290627491317860390698... × 10^{3638334640024}$ Which is huge. However, for the number below $4^{4^{{4}^{4...
If I am given a problem in P, to claim that I have solved it, I would need to give proof, right? For example, to show a number is not prime, if I use some deterministic algorithm, I can return the prime factors of that number. I am finding it weird that P does not require a witness/certificate in the definition like NP...
For example: If algorithm A takes an input of size n, and has a time complexity of O(a^n) and a space complexity of O(1) Is there a way to increase the space complexity to something like O(n^2) that would guarantee that the time complexity would decrease?
Maybe I am wrong, but I read that when we categorise problems in their respective complexity classes, we use worse-case analysis. Why don't we use the average case? I imagine we could have a problem in NP when we look at it's worse-case, but when we look at it's average-case we could have a really efficient algorithm. ...
Does every randomised algorithm have a corresponding deterministic algorithm solving the same problem? I'm going to guess that the deterministic algorithm will take more time, while the randomised algorithm although it has errors will generally be faster. This is from what I have seen of them so far. Let me know if thi...
Linear Bounded Automatons are just Turing Machines with finite tape, instead of infinite tape. But this causes them to not be Turing Complete? Why?
I have multiple camera in different points. I have their position and rotation as $(x,y,z)$ , $(\alpha,\beta,\gamma)$ or $( roll, pitch, yaw)$ . And I have output like this : Feed from camera-1, I know length of yellow and green. How can I calculate position of the object, in this case head in 3D space.
If a non-deterministic Turing machine can just "guess" the correct answer to a problem, does it do this in constant time/immediately? Also, does this also apply to problems in NP too?
Let's assume that we're working over a finite alphabet $\Sigma=\{a, b\}$. How can one prove that $$L_2=\{w_1w_2...w_m| m ∈ \mathbb{N}, ∀i(w_i ∈ L)\}$$ is a regular language, provided that L is regular? By the way, L is a fixed language in the problem that I am solving, but it's regularity is trivial to prove so I have ...
You are in a book shop which sells n different books. You know the price and number of pages of each book. You have decided that the total price of your purchases will be at most x. What is the maximum number of pages you can buy? You can buy each book at most once. Example: In: 4 10 4 8 5 3 //price 5 12 8 1 //pages O...
Am I correct in saying that there are two ways to categorise a problem in complexity theory: Find an algorithm that solves it. If the algorithm runs in polynomial time, then we can put it into P-class. If not, then we can put it into EXP. Provide a reduction that this problem is no hard than another problem, to which ...
From Savitch's theorem we have $NL^2 \subseteq L^4$, which is deterministic and thus closed under complement. From Immerman–Szelepcsényi theorem we have $NL = coNL$. Why then $NL^2 = coNL^2$
Morioka in his 2005 dissertation [1] referenced "On Uniformity within $NC^1$" by Barrington, Immerman, and Straubing. Using the following statement: Every $\mathbf{NC^1}$-predicate is computed by a Dlogtime-uniform family of polynomial-size propositional formulas This sentence is essential to defining a reduction fr...
I would like to generate a composite diagram of two Voronoi diagrams. I'm currently researching the cgal library for options, but I'm not sure if my precise application is covered. Basically, I have two sets of convex polygons (Voronoi diagrams) generated by two sets of overlapping coordinates. I want to overlay the ...
In Introduction to Automata Theory, Languages, and Computation, John Hopcroft mentioned[1] In fact the languages of one counter machines are accepted by deterministic PDA's although the proof is surprisingly complex. How to prove that? In contrast, is there a language that is accepted by some DPDA but can't be accept...
I am struggling on this problem since days: $L = \{a^nba^nba^nb \mid n \in \Bbb N\}$. I have to give for this language a context-sensitive grammar.
I have a group of logical conditions and need to deduce values that would NOT satisfy them. For example: City != New York && Location = Museum City = New York && Location = Store City != New York && Location != Subway Elevation = 100' So some values that would NOT satisfy any of those conditions are: City: New York...
I came across the following problem and the answer to that problem: Given $m$ balls and $n$ bins, find out how many ways to assign the balls to the bins. Notice the bins have no order: for example, $(1,2,3)$ and $(3,2,1)$ are considered the same. As an example, if $m = 3$ and $n = 2$, you should return 2, since there ...
There is a pseudo-code for Simplex algorithm in CLRS: The proof consists from three-part loop invariant: Proof We use the following three-part loop invariant: At the start of each iteration of the while loop of lines 3–12, the slack form is equivalent to the slack form returned by the call of INITIALIZE-SIMPLEX, for...
Given a flow-network $N=(G,c,s,t)$ and an edge $e=(u,v)$, I am trying to build an algorithm that finds a minimum $(S,T)$ cut in the given network, that includes e. So, I tried couple of steps, first, I know I must saturate $e$ so it could be in any min-cut. I tried to add a supersource that connects to $u$ (with infini...
The problem is this: Use the recursion-tree method to give a good asymptotic upper bound on $$ T(n) = 9T(\sqrt[3]n) + \Theta(1). $$ I am able to get the tree started and find a pattern with the sub-problems, but I am having difficulty finding the total cost of the running times throughout the tree. I cannot figure out ...
While reading Thorup's Algorithm to solve SSSP problem, I have one point that I can't understand: super distance. It says: "For each vertex we have a super distance $D(v)\geq d(v)$" $d(v)$ must refer the shortest distance from origin to $v$, but what is $D$ ? Is it just a distance value from origin while calculation un...
Something is Turing Complete if it can be used to simulate any Turing Machine. So, can a Finite Automaton simulate a Turing Machine? On the question Can regular languages be Turing complete? they say a Regular Language can be Turing Complete, but it does not make sense to me. I am not talking about the Language being p...
What is the exact statement of the Church Turing thesis? Is it fair to say anything computable in the physical world can be computed by a Turing machine? If so, how does a Turing machine handle continuous variable computations (for example, computing solutions to differential equations or storing/computing any real num...
In Wikipedia of Kuroda normal form, it says A straightforward technique attributed to György Révész transforms a grammar in Kuroda's form to Chomsky's CSG: AB → CD is replaced by four context-sensitive rules AB → AZ, AZ → WZ, WZ → WD and WD → CD. Why are four rules needed here? Aren't three rules: AB → AZ, AZ → CZ, ...
I'm studying artificial intelligence following the Russell & Norvig book. We did a search and planning part that for me is the same (at least on the representation). I'd like to know what is the difference between these two techniques, but I couldn't find it. Looking online I found this resource: Planning and Search, ...
I'd like some advice about the following problem (resolution methods, problem category, etc.). The context is about the coregistration of several images all-in-once ($n$ images, $f_{i,j}$ the function that maps coordinates $(x_i, y_i)$ to $(x_j, y_j)$. Let $f_{i,j}^k(x, y)$ a polynomial function of order $k$ from $\m...
I am working on a simple text query language. I am using the SLY parser, which itself is an LR parser/shift-reduce parser. I am running into problems with the following language specification, but I don't understand why. All I'm trying to do is appropriately group logical statements involving the operators AND and O...
I am trying to prove that the language $$ L=\{M\mid M\text{ is a TM and for all }x\in \Sigma^*\text{ with }|x|>2, M\text{ on }x\text{ runs at most }4|x|^2\text{ steps}\} $$ belongs to Co-RE but not R. Showing $\overline{L}\in$ RE is pretty much straightforward, but I also want to show that $L\notin$ R. My idea was a re...
I am learning genetic programming and to practice I want to write a simple algorithm which evolves a program that solves a simple function (say, square root). I intend to represent programs as abstract syntax trees. However, one of the functors is the while loop. Of course, in assesting a tree's fitness, I have to eval...
One often sees assertions that these are "necessary" for modern military and consumer computing applications. I presume that without these rare metals, the devices could be manufactured, but would be larger and/or more expensive. Is this true?
Suppose the root node‘s index is 1, what is the index of the leftest child of a node e in a k-nery heap? What is the parent‘s index of a node in k-nery heap? All questions regarding my problem I found talk about binary heaps, I just can’t think of a simple solution.
I am trying to write an online algorithm that can detect cliques of size k. I first start out with a set of vertices. For each iteration, I add an edge. The algorithm will detect the first time an edge would create a clique of size k. What is an efficient algorithm that can complete this task, and what is the time comp...
I am struggling with the following problem: Decide whether this problem is decidable or not: For two given Turing Machines M and N, there exists infinitely many words accepted by both machine M and machine N. In other words, is language { encodedMachine(M)#encodedMachine(N) | intersection of language of M and language...
In the List Coloring Problem (LCP), one is given an undirected graph $G(V,E)$, each vertex $v \in V$ is given a list of permissible colors $L(v) \subseteq \{1,2,\dots,k\}$, we want to find a coloring $c$ such that $c(v) \in L(v)$ for all $v \in V$ and $c(i) \neq c(j)$ for all $<i,j> \in E$. If such a coloring exists, w...
What is the difference between transition function delta ($\delta$) and extended transition function delta hat ($\hat{\delta}$) in finite automata? Both of them, when started at a state $q$ for a string $w$, will lead to the same state $p$. So what is the difference? See, for example, page 15 of the third edition of De...
Berkowitz algorithm provides a polynomial size circuit with logarithmic depth for determinant of a square matrix using matrix powers. Is there a polynomial size boolean circuit for $i$th bit of determinant and is it still logarithmic depth?
Edit 2019 June 27 Question 3 is new ... Definition A normal $k$-coloring of a cubic graph (3-regular graph) is a proper coloring of the edges with $k$ colors such that each edge an its adjacent edges are colored with either five colors, or with three. There is also the following Conjecture Every bridgeless cubic ...
I am new to algorithms. I need to know is it necessary to study discrete maths to understand algorithms. If so, why? In particular, is it necessary for understanding algorithms or is it only necessary for making your own algorithms (when you need to prove algorithm correctness).
I was wondering if there exists any algorithm for automatic construction of nautral deduction proofs. I'm interested in propositional logic and first order logic. If there is no algoritm, can you provide some proof of this fact? PD0: I'm not interested in any page for solving these kind of problems. My question is more...
Suppose we have a rules derived from a treebank. And in order to get a syntax tree of a given sentence we use the cyk algorithm. In order to use the cyk we should convert the rules into chomsky normal form, Such that all of my rules are A -> B C or A -> a (A,B,C are non-terminals and a is a terminal). From the cyk we g...
I'm struggling to prove Lemma 3 and Lemma 4 from an article about parallel version of push-relabel algorithm: A lock-free multi-threaded algorithm for the maximum flow problem. Lemma 3. Any trace of two push and/or lift operations is equivalent to either a stage-clean trace or a stage-stepping trace. And Lemma 4. Fo...
My prof was talking about how to augment a tree to efficiently find the key with a given rank. On the way to getting the right answer (store the size of the subtree rooted at each node), he proposed augmenting each node with it's rank. That way finding the node with a certain rank is a simple binary search. But he said...
People have made mistakes. For that reason, there probably is a demand by some people for a computer program that's easier to verify makes the calculations properly. I think that according to the conventional definition, for the 10's column, you add 10 times the digit, for the 100's column, you add 100 times the digit ...
I'm referring to a book where E and A were defined in text as follows The formula $A \phi$ states that all the executions out of the current state satisfy property $\phi$ whereas $E\phi$ states that from the current state, there exists and execution satisfying $\phi$ And formally, they were defined as $\sigma, i \mo...
I might unncecessarily overthinking here, but I had this weird possibly meaning less doubt: When grammar is neither LL nor LR, it means, both LL and LR parsing tables involve conflicts. LL parsing table may involve FIRST-FIRST and/or FIRST-FOLLOW conflicts, whereas LR parsing table may involve SR and/or RR conflicts. ...
MO'S algorithm is used to answer queries related to a given array by dividing it into blocks(https://blog.anudeep2011.com/mos-algorithm/) .Though i understood general MO'S algorithm but i am facing difficulty to understand MO'S algorithm with updates (https://www.youtube.com/watch?v=gUpfwVRXhNY) Since articles related ...
Suppose I have a universal Turing Machine (UTM) which accepts some input in binary. Is there a computational problem such that the answer to the problem is YES (accepting) for exactly one input (and hence NO for all others), but determining which input is the accepting one is undecidable? Or is there a fundamental reas...
I am current studying the Laplacian Pyramid as a compact image code by Peter J Burt and Edawrd Hudson. I understood all the concepts but I am having trouble with the equivalent weighting function. I understand how it works but i can't find the relation between $h(n,m)$ and $w(n,m)$. Here is the link for the paper. The ...
Series parallel graph is well-known and widely used. It has a single source and a single destination. The graph can be formed by means of recursive serial or parallel composition. I have a graph dataset that is of this type, and I have to enumerate all paths in the series-parallel graphs. Are there any existed algorit...
I'm following a course on data mining based on the lectures from Stanford University and the book Mining of massive datasets. On the topic of clustering, the BFR algorithm is explained with this video. I understand how the algorithm works, but I am unclear on the reason why the algorithm makes the strong assumption tha...
I was checking what Wikipedia has to say on reduce. It says: In functional programming, fold (also termed reduce, accumulate, aggregate, compress, or inject) refers to a family of higher-order functions that analyze a recursive data structure and through use of a given combining operation, recombine the results ...
I'm somewhat confused about IP addresses and subnet masks. Can a same IPv4 address have two different CIDR suffixes ? for example 95.100.252.115/28 and 95.100.252.115/26 ? If not, how is the CIDR suffix determined by the IPv4 address?
I am confused by the term "theoretical computer science". How can I distinguish which part of computer science are considered "theoretical" and which not? To expand further, take Machine Learning. Is the study of Machine Learning Theoretical Computer Science? To me it is, because we are studying the computational quali...
Given an array of $n$ elements with $k$ distinct elements, each appearing $n/k$ times, how can I show that the number of comparisons to the sort the array in the worst case is in $\Omega(n \log k)$?
Let f: N → N be a function where f(n) = number of Turing Machines over input alphabet {0, 1}, states: {0, 1, ..., n} and work alphabet {_ (blank), 0, 1, ... n} which terminates on a empty word. Is f computable? Let's call a TM which solves this problem K. It feels like this problem is uncomputable. If we can't even d...
Suppose we have two sets A,B of size n,k respectively, being sets of nonnegative integers each encoded with N bits, and we'd like to form a set of bitstrings of length 3N and [maximum] size n*k such that they represent all possible multiplication of integers, one taken from A and one taken from B. So if one set is {1,2...
I need a generalized formula for a set having size(s) having below restrictions, for ex. X = 2,7,11,17,26 I want only the first combination 2+7 & ignore all of the combinations that start from 2+? (2-num combinations only) same for 3-num consider 2+7+11 & ignore all 2+7+? Formula should be applicable for any set X wit...
The problem is this, say you have a set $E$ of elements $e$, and you have a list of elements you want to remove from this set. But for an element to be removed, one of its dependencies must stay in the set. The list of elements to remove is as follows: $e_1$ : $a, b, c, d$ ... $e_2$ : $e, f, g, h$ ... ... So in order...
Given tree is undirected graph. It has n vertices and n-1 edges. The algorithm should compute the sum of cost of all path between pair of unique vertices. Thus, there are total nC2 or n(n-1)/2 such pairs. The time complexity of the mentioned algorithm is n(n-1)/2. Please suggest an algorithm with better space and time ...
I have typeset in a Wikipedia draft this sorting algorithm. It is a comparison sort, yet can handle only numeric arrays. Basically, it marches through the input array and for each new array component it inserts it into a sorted doubly-linked list. It has two optimizations: each list node has a count; instead of addin...
I had a very quick question when it comes to CFG (more specifically the attributes of CNF). I've been browsing over some examples and I've come across a few that confuse me. One such example is this: $$\begin{align}S&\to XA|BB\\ B&\to b|SB\\ X&\to b\\ A&\to a\\ \end{align}$$ It is stated that this is indeed in CNF, but...
I was working on a proof to determine that a product cannot be done in AC0, how can a proof that can be done in AC1?
I have a feeling this might be wrong an I'm looking for a counter example, however, I couldn't find one yet.. can anyone guide me in the right direction?
I have an array of numbers [x1, x2, x3, etc] that is size is over 20 elements and I'm trying to put together an algorithm to sort the elements based on the "oddness" they have relative to the rest of the list. I'm defining the "oddness" as the distance from the barycenters, given some threshold T1. The barycenters are ...
I am a beginner in machine learning and I already have a good linear algebra/calculus background. I am interested in being able to eventually understand and implement convolutional neural networks, feature-based classifiers, and boosting algorithms. Where should I start, and what steps should I take to reach my goal? T...
Direct map cache uses a valid bit to effectively know if any data is present to a specific cache-slot (aka line/index). If this is the only use of this bit, then I believe, once a line has v-bit set, it won't be unset until power off. In addition, I wonder why similar optimization has not been done for associative (fu...
Given the regular expression: $r=ab+((a+\epsilon)c^*)^*$. Let A be a non-deterministic automaton that accepts the language of r. How many states are in A? Answer the question without building A explicitly, explain how you got the answer. I'm having trouble figuring this question out. The answer that was given is: $5*2+...
We have a function $T: \mathbb{N}\to\mathbb{N}$ defined recurrently: $$T(n)=\begin{cases} 0 &\text{ if } n=0,\\ 3T(\lfloor{n/2}\rfloor) + 2n^2 &\text{otherwise.} \end{cases}$$ Prove that for each $n\in\mathbb{N}_0$: $T(n) \leq 8n^2$ How can I prove such statement? I was thinking of using the Master Theorem to get asym...
I have a variable which increases/decreases from 0 to 255 every (X) millisecond. so: (X) x 255 = time in millisecond / 60000 = minute (X) millisecond is a variable which increases only by it self, for example after each button press: (X) + (X) x 255 = time in millisecond / 60000 = minute (X) + (X) + (X) x 255 = time i...
Given an NFA that accepts the regular language L, will its equivalent DFA which accepts the same language L always have unreachable states. If it does, why?
I have a working model that creates a disparity map using stereoscopic image processing using opencv. I am thinking of improving the disparity map by using illumination and stuck with different options in the light colors. I want to know if the color of illumination has any influence over the disparity maps.
I have a suspicion that Turing's famous proof that the halting problem is undecidable may not prove exactly what people assume that it proves. It may only prove that it is possible to limit the interface of a program such that it can't give you the most useful information about its inputs. This counterargument is moti...
This is an online question I am trying to solve. You are given a non-pipelined processor design which has a cycle time of 10ns and average CPI of 1.4.If a pipelined processor having 5 stages are 1ns, 1.5ns, 4ns, 3ns, and 0.5ns, what is the best speedup you can get compared to the original processor? Approach I: In a pi...
Within the internal logic of a feature I'm working on, I've run into a need for a solution to essentially this problem: $S$ is a finite union of $K \geq 1$ closed intervals, $$S = [a_1,b_1] \cup \cdots \cup [a_K,b_K].$$ Select $N \geq 2$ points $x_i \in S$, maximizing the smallest difference between any pair of points:...
Suppose I have a store and I have n units of item x. I want to sell all n units at the end of the day. I do not know how many customers will be coming in today. One customer could theoretically come in and buy all remaining units. This would not be desirable, as the next customer would not be able to buy this item, and...
I have a funcion $T: \mathbb{N}\to\mathbb{N}$ defined as: $$T(n)=\begin{cases} 6 &\text{ if } n=0,\\ T(n-1) + 6n + 6 &\text{otherwise.} \end{cases}$$ How can I apply the Master Theorem to this problem? I have only seen the M.T. in one of these two formats: $$T(n) = aT(n/b) + f (n)$$ $$T(n) = aT(n/b) + \Theta(n^c)$$ So ...
I've been around some research articles which talks about Contextual Algorithms. I want to know what is a contextual algorithm in computing in general.
How I use the pumping lemma to prove that the language $L = \{ a^{j!} \mid j \geq1\}$ is not context-free?
I have a collection $S$ of sets $S_i$. Each $S_i$ has a weight given by how many times this set was observed in some data. I now want to find the $k$ elements that maximize the cumulative weight of all sets that can be covered by those elements (that is, those sets that contain only elements from those $k$ selected). ...
Assume that we have a baseline software B and a new prototype P that I want to compare with B. Ideally, I want to show that P performs some orders of magnitude or X times faster than B (on average). I have m queries/problems that I run on each software with a timeout T. I record the raw running times $b_1,\dots,b_m$ of...
I have a funny aphametic problem: I A + I A ----- P B I have to find which are the values of the letters. I know I can try backtrack with forward research, MRV heuristic and degree heuristic. Yet I'm not sure how to apply them on cryptarithms/alphametrisms. My attempt I tried to find the letters values with backtr...
count the number of ways numbers 1,2,…,n can be divided into two sets of equal sum. This is my recursive algorithm, what is wrong here?: int f(int sum,int i){//sum is the current sum, i is the current indx (<=n) if(i>n){ return ((2*sum)==(n*(n+1)/2));//ie sum==totalsum/2 } int cnt=f(sum,i+1)+f(sum...
I need to solve the following LP $$\begin{array}{ll} \text{minimize} & c^T x\\ \text{subject to} & A x = b\end{array}$$ where $$A = \begin{bmatrix} 1 & 3 &1&0&0 \\ -2&-2&0&1&0 \\ 2&4&0&0&1 \end{bmatrix}, \qquad b = \begin{bmatrix} 2 \\2\\ 4\end{bmatrix}, \qquad c = \begin{bmatrix} -1\\ -1\end{bmatrix}$$ Matrix ...
This problem is related to ”Normal coloring of cubic graphs (part 1) - a previous post. We repeat the definitions, slightly modified so as to get to the point (we define normal edge 5 colorability, rather than the more general normal edge $k$ colorability). Definition A normal edge 5 coloring (or normal 5 coloring) ...
$L=\{w \mid w \in \{a,b\}^*$, $\text{the number of a's is at least the number of b's} \}$ I'm stuck trying to build an NPDA that accepts $L$.