instruction stringlengths 35 29.1k |
|---|
Let's say I have this language: $(a + bc)^∗((b + c)a^ω + (abb^∗)^ω)$
It seems pretty complicated, where should I begin with if I were to construct a Büchi automaton?
I've been doing it the following way with smaller language sets:
a $^*$ operator is usually a path coming from a node to the same node.
a $+$ draws 2 ... |
I was learning self organizing feature maps the other day. I want to intuitively understand it because I'm not that good at math. But I still am not very clear about it. I can easily understand choosing a winner neuron and adjusting it's weights according to the sample. But what I cannot understand is the idea of the n... |
I am not sure how to get the key for the following Monoalphabetic Cipher question. This is a textbook question and I know the answer, but I juts dont know how they got the key.
Question:
Decrypt the following Cipher texts, and give the key. (Note that the correct key is the Encryption key, so if F changes to H and F ... |
Distance of a Stabilizer code($S$) is defined by minimum weight of an element in $N(S)-S$ .
Why 9 qubit Shor code has distance 3?
Is there a way to directly see $N(S)-S$ from $S$?
|
So my problem is how can I show that this TM does not decides this language.
$$L = \{a^nb^nc^n\ |\ n \geq 0\} $$
It might be a basic problem and seem silly to you but still I do not know how to prove that this TM does not halt for any input
|
What do we mean by running time of algorithms? when we say running time of bubble sort is O($n^2$), what are we implying? Is it possible to find the approximate time in minutes/seconds from the asymptotic complexity of the algorithm? If so, how ?
|
Say I have $n$ vectors $\{ z_i \in \mathbb{R}^D\}_{i=1}^n$ (where $n$ is very large and hence I can't do any calculation which scales as $n$) and I want to create $n$ vectors $\{x_i \in \mathbb{R}^d \}_{i=1}^n$ with $d$ as small as possible, such that $\forall i,j <z_i,z_j>$ is either very close to $<x_i,x_j>$ OR w.h.p... |
Lots of processor renaming their register to achieve the goal of out-of-order,but how to track the instruction's flag,such as carry flag,overflow flag,etc?
|
I am currently studying for a midterm tomorrow and my professor gave us links to backtests online. This is problem #3 in the following back quiz:
http://www.myoops.org/cocw/mit/NR/rdonlyres/Electrical-Engineering-and-Computer-Science/6-045JAutomata--Computability--and-ComplexitySpring2002/5C8B3587-B7B6-4D5B-A285-06F655... |
Input: a set of 2D vectors $S=\{v_1,v_2,\dots,v_n\mid v_i\in \mathbb{Z}^2 \}$
Question: name $P=\{\sum_{v_i\in S'}v_i\mid S'\subseteq S \}$
for all subsets of $S$ (obviously $|P|=O(2^n)$). In
words, $P$ is the set of all possible vectors we can form by adding
vectors from $S$.
What is the length of the long... |
I have a degree sequence and I want to generate all non-isomorphic graphs with that degree sequence, as fast as possible.
The only way I found is generating the first graph using the Havel-Hakimi algorithm and then get other graphs by permuting all pairs of edges and trying to use an edge switching operation (E={{v1,v2... |
schema(author)={name, newspaper}
The table contains a list of authors. Each author works for a newspaper. So a single newspaper may employ multiple authors. How can I get the names of the newspapers that have at least two authors working for them? My algebra consists of:
Ω = { π, σ, ⋈, ⋉, β, x, ∪, ∩ , - }
There is no... |
Consider a sorted array. We can get the $k$-th largest element in $O(1)$, but insertions and deletions cost $O(n)$.
Consider an order statistic tree. Insertions and deletions cost $O(\log{N})$, but getting the $k$-th largest element costs $O(\log{N})$.
I can't think of any way to create a data structure with the best ... |
Some confusion about time-complexity and A*.
According to
A* Wiki the time-complexity is exponential in the depth of the solution (shortest path):
The time complexity of A* depends on the heuristic. In the worst case of an unbounded search space, the number of nodes expanded is exponential in the depth of the solutio... |
So, I am implementing a context sensitive syntactic analyzator. It's kind of an experimantal thing and one of the things I need are usable syntactical contructs to test it on.
For example, the following example isn't possible to parse using standard CFG (context free grammar). Basically it allows to declare multiple va... |
Given that:
B = n/R blocks in the file
2d index records per block (blocking factor): 2d > R
an extra block access from the index to the datafile
I am not able to wrap my head around as why the lookup would incur an cost[number of block accesses] of
less than or equal to
2 + log(base to d) (n/2)
|
Recently, Canada's Prime Minister - Justin Trudeau - gave an impromptu explanation of Quantum Computing, much to the crowd's astonishment. I certainly thought that I "got" Quantum Computing a little bit more, even though it was a simplified explanation.
Here's the YouTube link to the actual press conference.
https://ww... |
Suppose you're writing a video game that takes place on a large rectangle (2d). You have a large list of entities (monsters, spells, and so forth, represented as points) living on this rectangle, and you need to know which pairs are within Euclidean distance 1 of each other, and for each such pair, what their distance... |
Given an adjacency matrix, what is an algorithm/pseudo-code to convert a directed graph to an undirected graph without adding additional vertices (does not have to be reversable)?
similar question here
|
Given the theorem that max flow <= min cut,
Would incrementing the min cut edges by 1 increase the max flow by 1 as well?
|
I want to find the longest substring which is repeated without any gap between the repetitions. That is, given a string $x$, I want to find the longest $y$ such that $yy$ is a substring of $x$.
What I mean is the following cases:
In "aa" I want "a" with a position of 0 and repetition of 2
In "aaab" I ... |
This is my first time working with peer to peer connections, Im using WebRTC. If possible I'd like to design my multi-peer connection (session) so that there's no limit to the number of peers who could potentially connect to this session.
The session handles the following data transfer:
video data from one of the pee... |
Are there any measures to compute similarity (or distance) between two DFAs?
If yes, which are the main references?
I need a measure of similarity, not only a (binary) equivalence test.
"Similarity" is an intuitive concept. There are different ways to formalize it; i'm looking for ready-to-use formalizations with regar... |
One of the most popular question from data structures and algorithm, mostly asked on telephonic interview.
|
So I have the received transmitted message in polynomial form as
$$T'(X) = X^{15}+X^{13}+X^8+X^7+X^4+X^3$$
and the error polynomial as
$$E(X) = X^{16}+X^{13}+X^3$$
and the generator polynomial as
$$G(X) = X^4+X^3+X+1.$$
I am trying to find $T$ before it is transmitted. It is my understanding that the received tra... |
Is it possible to delete duplicates from a sorted array in $O(\log N)$ time and $O(1)$ space?
|
Just out of interest I tried to solve a problem from "Recent" category of Project Euler ( Digit Sum sequence ). But I am unable to think of a way to solve the problem efficiently. The problem is as follows ( in the original question sequence has two ones in beginning , but it does not change the sequence ) :
The Digi... |
I have a question on the multiplication of sets of words as it is defined in Cohen's Intro To Computer Theory. He gives the definition: if S and T are sets of strings of letters, the product of the sets, ST = {All combinations of string from S concatenated with strings from T}.
The definition is easy enough to understa... |
Consider the following Bayesian network:
I want to impose constraints that state that a node can only be true (1) if at least one of its parents are true (1). So, for node $C$, the constraint takes the form $P(C=1|A=0,B=0) = 0$.
Now I want to take into account time. So it seems like the logical thing to do is to const... |
Why does Dijkstra's algorithm not re-evaluate/re-expand nodes who have been expanded and later had their weight changed?
For example, in the accepted answer of this question (link), if the algorithm simply understands that d(b) has been updated and it should re-expand b, the shortest cost would be found.
Am i missing s... |
The Von Neumann entropy $S$ of a density matrix $\rho$ is defined to be $S(\rho)= -\text{tr}(\rho \lg \rho)$. Equivalently, $S$ is the classical entropy of the eigenvalues $\lambda_k$ treated as probabilities. So $S(\rho) = -\sum_k \lambda_k \lg \lambda_k$.
Clearly the Von Neumann entropy can be computed by first extra... |
I am reading about Cellular Automata and Computational Complexity and i found a related paper by F. Green, NP-Complete Problems in Cellular Automata.
In the 2nd page he lists three NP-Complete problems related to CA, the first problem is:
CA preimage : Given a subconfiguration of length $K$, is there a configuratio... |
This is the problem: https://i.stack.imgur.com/rl6qx.png
This was a problem I saw and I really have 0 clue what the Language means the (**) part, and its solution.
I was wondering if anyone could please help me?
I do know what grammars are and how to read them, but this one was confusing and what I really want to know ... |
Let's say we have a data set with following features
[age, sex, country, city, annual income]
[35, male, USA, New York, 73000].
I came across the article which explains how to deal with strings as an NN input.
Article example showing how to standardize data:
[0] 30 male 38000.00 urban democrat
[1] 36 female ... |
If the following is given:
CPU uses a four-level hierarchical page table, each level can contain 512 entries
the page size is 4KB.
virtual address is 48 bits
How do i get the size of the virtual memory (in terms of pages or bytes). Do i just use the number of page table entries 29*4+12 ?
And can i get the size of ... |
Let's say that I have a digital circuit made up of XOR and AND gates.
Is there any way to describe the complexity of that circuit?
I could just use the total number of gates, but gates being in parallel are not quite the same thing as them being in series when things like latency are concerned.
Also, if at all relevant... |
I understand that a process may have multiple threads, and that a processor may have multiple cores to run processes in parallel.
But I can't understand how a core may allow multiple threads, what does it change from a core with one thread support?
|
I wanted to clarify if this is possible, so I thought about a possible vertex cover that can also serve as an independent set:
So, to clarify, am I right to say that the nodes in red are both (i) a vertex cover, and (ii) an independent set?
Edit: I was confused by the theorem that states "If G = (V,E) is a graph, the... |
I'm gathering examples from everything that I've read about Dependent Type Theory mainly from Dependent types at Work paper.
This is my list so far of some dependent types (with abbreviations of mine):
[NVec]: $A^n$ vectors of length n with elements of type $A$
[NMMAtrix]: $A^{m\times n}$ matrices
[Fin]: Finite sets... |
Of course, normally a fully-functional computer will calculate 1+1=2. However, the physics governing the behavior of a chip is quantum mechanical. So in principle there is a certain probability that something goes wrong and we get the result 1+1=x where x≠2. In my opinion this probability should get bigger the smaller ... |
Let $\mathcal{R}$ be a transitive and antisymmetric relation defined over a finite set $X$.
For any set $S\subseteq X$ define $\Gamma(S)=\left\{y\in S \mid \not \exists x\in S . (x,y)\in\mathcal{R}\right\}$. (Thus, $y \in \Gamma(S)$ if it belongs to $S$ and no other element in $S$ "dominates" it.)
Suppose that each ... |
I have been trying to understand the polytope model used for loop nest optimizations. Now while going through some of the thesis written on this, i came across the term/phrase "linear code" a number of times in relation to whether a particular loop can be executed in parallel. The following is a text from one of the th... |
In the figure below, cells are labeled row wise, and edges are labeled counter clockwise. That is, vertices 1' and 2' form edge #1, vertices 2' and 5' form edge #2, vertices 5' and 8' form edge #7, etc.
vertices 1' and 2' form edge #1
vertices 2' and 5' form edge #2
vertices 4' and 5' form edge #3
vertices 1' and 4' ... |
Im studying for OS-finals and I cant figure out the difference.
A page is a chunk of addresses e.g 0-4095. This maps to 4kB of memory.
This page is 4kB big. But according to the litterature the Page table entry is around 4 Bytes big. I thought Page Table Entry are the same as a page.
|
Formal grammars like regular expressions (REs) or context-free
grammars (CFGs) specify languages, i.e. sets of strings over an
alphabet.
Grammars themselves can be seen as languages, e.g.
the set of REs over $\{0, 1\}$. In that sense we
can specify a grammars by means of a meta-grammar. For example the language of all... |
In Robin Milner's book "Communicating and Mobile Systems: the $\pi$-Calculus", on page 87, the set of expressions of the $\pi$-Calculus is defined as
$$P ::= \sum_{i\in I} \pi_i.P_i\ {\huge|}\ P_1|P_2 \ {\huge|}\ \operatorname{new} a P\ {\huge|}\ !P$$
So in Milner's formulation, the summation of processes is included, ... |
For days, I'm trying to figure out, whether it is possible to find an item in array which would be kind of weighted median in linear time.
It is very simple to do that in exponential time.
So let's say that we have an array, each item $x$ of this array has two attributes - price $c(x)$ and weight $w(x)$. The goal is to... |
I wrote a branch and bound algorithm for the bin packing problem and now I would like to know when exactly it stops giving solutions in a polynomial time.
I have N items (each item i has a volume Vi) and each bin has a volume V.
I tested the output of the algorithm and the execution time while varying the number of it... |
So I've been looking into lambda calculus on and off for months simply trying to understand the numerical system and the successor function. I understand that it's basically just argument evaluation, but the syntax confused me for the longest time. Finally, I found this:
S0 = (λ abc.b(abc)) (λ sz.z)
= λ bc.b((λ ... |
I am going through Normal Subgroup Reconstruction and Quantum Computation Using Group Representations by Hallgren et al.
In the proof of the theorem $6$ of the paper on page 632, the authors go on proving the difference between the probabilities of sampling all irreps, $|p - q|_1$ of a subgroup inside the symmetric gr... |
I am going through Normal Subgroup Reconstruction and Quantum Computation Using Group Representations by Hallgren et al.
In the proof of the theorem $6$ of the paper on page 632, the authors go on proving the difference between the probabilities of sampling all irreps, $|p - q|_1$ of a subgroup inside the symmetric gr... |
Is there an easy way to see why NP is in EXPTIME? It seems to me a priori conceivable that there could be a problem which requires super-exponential time to solve, but whose solution could be verified in polynomial time.
|
I've recently encountered a new (for me) notion from computational complexity theory called 3-SUM hardness which is based on the conjecture that 3-SUM problem can not be solved in $O\left(n^{2-\varepsilon}\right)$ time where $n$ is the number of reals among which we should check whether three of them sum to zero. By gi... |
I've just read about R-Trees:
The key idea of the data structure is to group nearby objects and represent them with their minimum bounding rectangle in the next higher level of the tree; the "R" in R-tree is for rectangle.
This seems to be a Bounding Volume Hierarchy (BVH) with axis-aligned bounding boxes (AABBs):
A... |
I have been reading/studying on genetic algorithm/programming, and have implemented Traveling salesman problem.
TSP is basically a permutation/combination problem, and I can understand how GA helps to narrow down to the solution.
As far as I see GA is helpful in finding solution to
similar permutation/combination pro... |
Define the $\newcommand{\MOD}{\text{MOD}}\MOD_q$ function from $\{0,1\}^n \rightarrow \{0,1\}$ as follows:
Let $x_1,\cdots,x_n$ be the input. Then $\MOD_q(x_1,\cdots,x_n)=0$ if the number of 1's in $x_1,\dots,x_n$ is divisible by $q$; $\MOD_q(x_1,\cdots,x_n)=1$ otherwise.
I want to compute $\MOD_4$ using a constant de... |
I have a language $ L= \{ w \in \{a,b\}^* ; |w|_b=2i, i \ge 0 \}$ that is a language with even number of b's.
I found a grammar for it with these rules:
$S \rightarrow aS \ | \ bL \ | \ \lambda $
$L \rightarrow aL \ | \ bS \ $
How could I show that this language cannot be generated by linear grammar?
According to ... |
Hello thank you for taking time looking at this question. Is it possible to determine the keystroke patterns for a certain user?
My idea is that, when the user enters their username & password it must contain a specific keystroke pattern that when analyzed it could probably predict the actual user and able to different... |
Please help me understand how I would prove the partial correctness of the below pseudocode with respect to the following predicates:
Pre: {n>=0}
Post: {a^2 <= n and n < (a+1)^2)
That is,
{Pre}
begin
x:= 0;
y:= 1;
z:= 1;
while y <= n do
x:= x+1;
z:= z+2;
y:= y+z;
a:= x;
end
{Post}
An e... |
Suppose I have to design database for learning management system. Which will going to have user having roles such as admin, teacher, tutor, student etc. In a system student can submit solution for an assignment in a course and teacher or tutor can provide the grade for it.
Now while implementing is it good idea to not... |
Please correct me if at any time my definitions are wrong.
Suppose we have a programming language $L$ over some set $D$ with semantic (partial) n-ary functions $\varphi^n:D \to (D^n \to D)$. Assume $L \subseteq D$ (so programs are data as well).
We say that $L$ is turing complete if a function $f:D^n\to D$ is Turing ... |
Problem: Given a set of points $S = \{x_1, x_2, x_3, ..., x_n\}$ from $\mathbb{R}^m$ and an offset vector $v \in \mathbb{R}^m$, find a set $Z \subseteq S \times S$ containing $k$ pairs of points $(x_i, x_j)$ such that the quantity $|x_i-x_j-v|$ (Euclidean norm) is smaller for any pair $(x_i,x_j) \in Z$ than that of any... |
I am going through Warshall and Floyd algorithms and I read that Floyd's algorithm does not hold if a graph has negative circle. I have not been able to fully figure out what negative circle means. Therefore, I would like to know more about positive and negative circles.
|
So I have read the posts on this site involving recurrence relations, however this problem is a little different, because of the constant a involved with the recursive portion. I'm trying to solve this recurrence relation by expanding it out and here is what I have so far:
I'm not sure where to go from here and how to... |
I am a novice to parallel computing. I would like to solve the traveling salesman problem (TSP) using a parallel genetic algorithm (GA). I need to write a simulator of a parallel computer (for example, a multicore workstation) that will implement the parallel version of the GA. But the simulator should run on a serial ... |
Suppose that you need to give a problem specification of some problem P and you have an implementation of P, in C.
I have 2 questions:
Can you obtain the formal specification of the problem if you compute the invariant of the external for cycle?
What is the relation between the specification and the C code invariant?
... |
I have a meta-complexity question: Are there reasons to believe that it is more difficult to prove P != NP than, say PSPACE != EXPTIME or BPP != BQP?
|
I am trying to understand the use of symmetry in pattern databases (Heuristics, single agent search). This is too specialized of a topic to find common videos or explanations in general. I read the paper Pattern Databases by Joseph C. Culberson and Jonathan Schaeffer (University of Alberta) in Computational Intelligenc... |
Let's say you have sorting function. It is allowed to exit with failure (but if it does not it must return a correctly sorted sequence). It is also $\mathcal O (n)$.
What kind of bounds can we place on the success rate of such an algorithm? It obviously can't succeed 100% of the time, since then it would just be an ord... |
If we employ quicksort by selecting the pivot as the median of three elements viz., the first element, the middle element and the last element, then when will the algorithm hit worst case? and also can anyone give an example including integers?
Thanks.
Note: I have searched online for quicksort's worst case, but all of... |
What is the big O running time for following method() by counting the approximate number operation it performs. How can I identify the running time of each line? I mean when is 1, n or n^2..?
static int do(int n) {
int count = 0;
int j = 0;
for (int i = 0; i < (n-1); i++) {
j == i;
while (j ... |
The Polya conjecture is a disproved conjecture that states over half the numbers less than any number has an odd number of prime factors. It first fails at $n = 906,150,257$, thus being a good example that testing very many cases is not always enough.
I have been giving "disproving the Polya conjecture" as an exercise ... |
I follow a course on CPU architectures and I'm making exercises at the moment. Now I encountered the word "depth of a pipeline" in one of the exercises, but I don't know what's meant by the depth of a pipeline. Is it the number of stages of the pipeline or something else? I can't find it anywhere in the syllabus.
|
How do I tell whether a particular IEEE 754 floating point number is a normalized floating point number? Is there some way to recognize an IEEE 754 normalized floating point number?
|
Last time I posted this question I got criticised for not being specific enough, hence this is my second attempt at trying to understand what it means to have a continuous action space.
Please refer to this paper, page 5 (A Survey on Policy Search for Robotics
by Marc Peter Deisenroth, Gerhard Neumann and Jan Peters. F... |
Design the grammar for the following:
L = (a^n)w(w^r)(b^n) where n>=0 and w={a,b}
|
I came to know that the important difference between algorithm and procedure is that the algorithm halts and procedure doesn't halts(stops). But i am not able to understand the concept. Please can any one explain with the example?
|
I've begun learning about AVL trees. It seems that the assertion with this data structure is that with every insertion/deletion, the only nodes whose height changes are nodes on the path towards the root (from the inserted/deleted node). How exactly is this 'proved'? I've gone through many examples and it would appear ... |
In my class my teacher calculated the time complexity for this algorithm, relative to the number of sum operations executed:
She represented the cost of the algorithm by the following sum:
$\sum\limits_{i=1}^n \sum\limits_{j=1}^i\sum\limits_{k=1}^j 3 = \frac{n^3}{2} + \frac{3n^2}{2} + n $
The step by step used to so... |
I've seen a few questions on this site about Deep Dream, however none of them seem to actually speak as to what DeepDream is doing, specifically. As far as I've gathered, they seem to have changed the objective function, and also changed backpropagation so that instead of updating weights they update the input image.
I... |
Let's say for the following weighted, undirected graph:
I am given the adjacency matrix A[5][5]:
[0][3][4][0][0]
[3][2][0][0][0]
[4][0][0][6][5]
[0][0][6][0][1]
[0][0][5][1][0]
What is a simple algorithm to convert the adjacency matrix A to a CSR (compressed sparse row) graph in the format of three lists:
row_ptr[]
c... |
In the context of the reinforcement learning domain, the dichotomy between model-based (learn a model and used it to determine a controller) and model-free (learn a controller without learning a model) approaches is a contested one.
There are many algorithms that have been developed for both approaches.
My question i... |
I am trying to understand what that sentence means. Intuitively, its obvious a radius ball means in a $ \mathbb{R}^{n}$ with respect to some norm. Its just the following set:
$$ B(v, r) = \{ x \in \mathbb{R}^n : \| v - x\| \leq r\}$$
i.e. its just all the points that are distance $ \| v - x\|^2 $ away from the center w... |
I've defined the identity function in Agda as follows:
idd : (∀ {ℓ} {A: Set ℓ}) → A → A
idd a = a
I want to ask you if the following reasonings are correct:
The type of this function is A -> A.
idd is a polymorphic function, where (∀ {ℓ} {A: Set ℓ}) matches any type.
Because is a polymorphic function, I can say idd ... |
$E \rightarrow UV \bracevert EBE \bracevert V \bracevert [E]$
$V \rightarrow a \bracevert b$
$U \rightarrow < \bracevert > $
$B \rightarrow ? \bracevert ! \bracevert @ $
Order of precedence: $?$ < $!$ < $@$, with unary operators ($<, >$) being the highest
$?$, $!$, $@$ are right associative.
My attempt:
$E \rightarrow ... |
Consider the languages $L_1, L_2 \subseteq \sum^*$, where $\sum=\{a,b,c\}$. Define
$$L_1/L_2 = \{x : \exists y \in L_2\ such\ that\ xy \in L_1 \}$$
Let $L_1 = \{a^nb^nc^{2n}: n \ge 0\}$ and $L_2 = \{b^nc^{2n}: n \ge 0\}$.
Justify whether $L_1$ and $L_1/L_2$ are regular.
$L_1$ will not be CFL also as it needs more tha... |
I'm trying to figure out how to get all combinations of putting x*n balls into n boxes.
There should be the same number of balls in each box.
If it was about putting n balls into n boxes, the result would be n! and the pseudocode:
for b1 in set:
for b2 in set-b2:
for b3 in set-b2-b3:
results.append(... |
What are the major differences between Deterministic Push Down Automata and Non-deterministic Push Down Automata? Which one is faster and how? Also what are the drawbacks of DPDA with respect to NPDA.
Can anyone quote an example and explain these concepts.
|
While learning binary tree's properties, I came across internal path length and external path length, number of comparisons required for successful and unsuccessful search.
My book specifies some facts about these as follows:
$S_n=1+\frac{U_0+U_1+...+U_{n-1}}{n}$
For large $n$, $S_n=2 \log_en$
Internal path length $I... |
Zookeeper is based on the Zab (which is slightly different to Paxos) system.
We can do Atomic locks on top of a Zookeeper cluster.
Zookeeper provides eventual consistency.
Zookeeper provides durability.
(I'm aware that Zookeeper sacrifices Availability for Consistency and Partition Tolerance - making it CP - but I'... |
I'm trying to solve a classification problem from the KDD cup archive of 2004.
Details can be found here: KDD 2004 Archive
I'm only dong the particle physics part.
The description of dataset is as follows:
Each line in the training and the test file describes one example. The structure of each line is as follows:
The ... |
I want to show that a problem is NP-hard by reducing a known NP-complete problem to it. However, I will have to use a special case of the NP-complete problem for the reduction to work. I'm pretty sure that the special case version is also NP-complete but I have no idea how to prove that. Are there any general guideline... |
It's not that i dont know how to remove εproduction but when complex problem arises i get confused for example
S-->Aa/aaB
A-->a/ε
B-->bbA/ε
CFG without ε production for the above question is
S-->Aa/aaB/a/aa
A-->a
B-->bbA/bb
here i replaced A,B with ε in all productions to obtain the result
But for questions like this ... |
S-->ABCDE
A-->a/ε
B-->b/ε
C-->c
D-->d/ε
E-->e/ε
i have solved first for above question but a little clarification is required
first(S)=
first(A)=a/ε
first(B)=b/ε
first(C)=c
first(D)=d/ε
first(s)=e/ε
the first for C is c (why is it not c/ε like the rest did i miss something) and i am not able to get proper first value ... |
Notes on lambda calculus (part 2.7) and book Programming Distributed Computing Systems: A Foundational Approach by Varela present the sequencing combinator for normal order reduction:
$$\mathit{Seq} = \lambda x. \lambda y. ((\lambda z.y) \: x)$$
In the following example
$$((\mathit{Seq} \; (\text{display "hello"})) \; ... |
I'm wondering if anyone could help me find my footing in an approach I am taking with a student in my audio programming class for creating more accurate pitch detection algorithms. But the approach is not limited to pitch detection and in fact seems seems similar to Newton's Method, Euler's Method, Horner's Method, and... |
So I am reviewing my notes for this problem, and I cant seem to understand how this problem works. Say we have M, and M accepts an input that makes it visit every non-halting state.
I convinced myself that this problem is decidable, but I am having trouble proving so. A rough outline of my answer would be : Assume we h... |
In 1937 how was Alan Turing so sure that all that can be done using algorithms can be implemented using a Turing machine?
Since that period many new algorithms were implemented. What was his hypothesis behind this theory ?
|
In undergraduate CS, Dynamic Programming problems are often related to Overlapping Optimal Substructure (https://en.wikipedia.org/wiki/Optimal_substructure).
Dynamic Programming is also often used in Convex Optimization. Under the context of Dynamic Programming or in general, does Optimal Substructure implies convexity... |
What is an intuitive way of understanding what a push down automaton is capable of computing?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.