instruction stringlengths 35 29.1k |
|---|
In my model checking class we have defined a bisimulation like this:
Let $K=(S,S_0,Act,R,L)$ and $K'=(S',S'_0,Act,R',L')$ be two kripke structures. A relation $B \subseteq S \times S'$ is called bisimulation if $\,\forall (s, s') \in B$ following points are true:
$L(s) = L(s')$
$\forall \,t \in S, a \in Act: (s,a,t) \... |
Input:I am provided with x and y.
x is a 32 bit non negative integer and y is some node-id of the tree.
So, I built a trie with 32-bit non negative integer values which are the keys associated with each node-id of the tree (DAG). Now, if I am asked to find the a node, whose key XOR x is maximum. This can be easily be d... |
Here in the given image, our question is to find regular expression from finite automata. I found three answers based on which state I am resolving. Are these answers in the photo correct? If any answer is incorrect then please provide me the correct answer.
|
I undetstand each part of the word group in this question. I have search for a while but I still can't understand what the whole question want me to do. I will state what I know and give an assumption of what I should do, I would be appreciate if someone can guide me.
First a boolean formula is satisfiable if it can be... |
The Vapnik–Chervonenkis (VC)-dimension formula for neural networks ranges from $O(E)$ to $O(E^2)$, with $O(E^2V^2)$ in the worst case, where $E$ is the number of edges and $V$ is the number of nodes. The number of training samples needed to have a strong guarantee of generalization is linear with the VC-dimension.
This... |
We have the problem $C = \{<G,S>| \text{ S is a minimal cover of G }\}$ and we want to show that $C\in coNP$.
I can easily show that there's a ND TM that decides $coC$ using a guess to check if the drawn vertices are a minimal cover and if they are, return false. But it seems like it's wrong since this can be done with... |
Input: $n$ item with sizes $s_1,...,s_n$, without lose of generality, all sizes are $\leq1$. In addition, $s_i < \delta$ for all $i$ for some constant $\delta$.
Output: Minimal numbers of bins to pack the items, where each bin has volume 1.
The scheme used is first-fit, where if the current used bins are indexed, we... |
AFAIK, malloc(sizeof(char)) is intended to allocate a 1-byte block of VM and strcpy requires that
the destination string dest must be large enough to receive the copy
That means theorically that if the length of src is strictly upper to 1, the strcpy operation fails, and it's impossible to copy more than one charact... |
Is that true that $Time(O(log(n)))=NTime(O(log(n)))$ iff $P=NP$?
It seems to me to be true, as I only need to take log on both sides, since log of a polynomial is $O(\log(n))$, but I don't know how to derive a proof from this intuition.
|
I'm trying to find a way to count distinct simple cycles in a graph in order to prove that $\#CYCLE \in \#P$, if I could represent a distinct cycle, then I'll have a witness.
I saw this question:
Number of cycles in a graph? they mention the reduction from HAM #CYCLE in Counting Complexity by Arora and Barak, but I do... |
Given a connected, undirected graph G, edge-weighted (positive), prove that
If G has a spanning tree T which, for each vertex r in G, is a shortest path tree from r, then G has a unique MST.
I know how to show that given a T like that, it is also a MST, but how can I show that it's unique? I tried to assume by contra... |
Consider two lists $A$ and $B$, both containing $n$ numbers. A comparison operation can be defined based on the probability of uniformly selecting an element $a$ from list $A$ and an element $b$ from list $B$ such that $a>b$.
More precisely, define
$$ Q(A,B) = \sum_{i,j} \text{sign}(a_i-b_j)$$
If $Q(A,B) = 0$, then we ... |
I'm a beginner and I don't understand what an Instruction Set Architecture is (I read the wikipedia page related to it).
Can anyone explain it to me in a simple manner please?
|
I was reading "Why Only Us" by Chomsky and Berwick, and it said:
If one subscribes to the Church-Turing thesis along with the
assumption that the brain is finite, then there is no way out: we
require some notion of recursion to adequately describe such
phenomena.
I find this sentence confusing. What does the C... |
A skip list
Let C(k) = the expected length of the path that raises k levels backwards.
Thus C(0) = 0
For any node P in the path, with k levels higher to go, there are two cases:
P is a node of level i and proceeds backwards to a node of at least level i and still k levels to go
P is a node at a level higher than i a... |
So, I'm familiar with two main strategies of having higher-ranked polymorphism in a language:
System-F style polymorphism, where functions are explicitly typed, and instantiation happens explicitly though type application. These systems can be impredicative.
Subtyping-based polymorphism, where a polymorphic type is a ... |
I'm trying to prove that if P(L,n) is true then L is regular, where P(L,n) is a property equivalent to the pumping lemma. This is in the context of single letter alphabet. Any suggestions how to do it?
|
What is the optimal algorithm (in terms of time complexity) that can transform any binary tree to a red-black tree, with the requirement that in-order traversal must yield the same values for the new tree?
Is iterative insertion of the original nodes sufficient, or can it be done with better complexity?
|
Can someone provide with the smallest (as small as possible) 3SAT example (w.r.t. number of variables and the number of equations) that is:
Unsatisfiable.
Not provable unsatisfiable by simply reduction (successive simplification and rewriting) of the equations by the process similar to as described below:
Example:
A... |
My question is: What tips or ideas do you have when you're gonna construct a CFG out of these instructions? If we only had 0 < i <= k, it'd be more straight forward if you ask me, but when we have an OR there, how should I approach it?
edit:
I just realized I could rewrite the language and then define the CFG
as S -... |
Two words $a$ and $b$ commute if $ab=ba$.
How to demonstrate that $a$ and $b$ commute if and only if they are powers of
the same word ?
$ab=ba \Leftrightarrow \exists \space \tau \in \Sigma^{*} \mid a=\tau^{k} and \space b=\tau^{k'}$
The demonstration in this direction is trivial:
$\space \exists \space \tau \in... |
I have to design a Turing Machine to do the following, but I don't really know where to start with this question. Any help would be very much appreciated.
I should design a Turing Machine accepting language $L = \{ a^p |$ p is not a prime number$\}$.
I know I should use some quality of prime numbers, but number theory ... |
For instance, take the example of this book here on page 30. About the formula $$ Q(x,x') = R(x), S(x,y), S(x',y), R(x') $$ described there, what do the commas mean? Is it the same as an "and" operation? Or a natural join maybe?
|
S -> aSb | A | B
A -> aS | a
B -> Sb | b
is this the language generated by this CFG? Or am I missing something?
|
I need to compute prefix product of an array. For this reason I want to use counter tree fenwick .
Hehe is what I have for the usual Fenwick tree:
An array $T$ indexded from $0$ to $n$. $T[i]$ stores the product of $[F(i)..i]$ segment, where $F(i) = i\ \ \& \ \ (i+1)$.
For the counter tree I need another array $T'$, $... |
Are any algorithms known that can compute the greatest common denominator of multiple (more than two) input values more efficiently than just an iterative application of the fastest GCD algorithm for exactly two input values? E.g. gcd(a, b, c, ...) vs. gcd(a, gcd(b, gcd(c, ...)))
If so, then what is such an algorithm?... |
I have to solve the following $n^2+n \in O(n^2−n)$.
I did it this way:
$n^2+n \in O(n^2−n) = n^2 \in O(n^2−n) = n^2 / n^2-n = 2n / 2n-n$ which is infinite.
I don't know if this is correct because the $-n$ in the $O$ notation is confusing me and I haven't found anything about it online. I know if this would be at examp... |
When I do my laundry I tend to make a pile of unmatched socks, putting new socks on the top of the pile and matching off pairs if two of the same sock are near the top of the stack. Since eventually socks will get buried deep in the pile I occasionally dump some of the sock pile back into the laundry pile.
I started t... |
What I understand about per-record timeline consistency is:
For a specific primary key all the insert/update/delete operations should
be read in the same order by all replicas.
Since all modifications to a specific primary key are causally related (a client reads it, then modifies or delete it), then per-record tim... |
I have been researching a bit lately and found myself thinking about the title question for some time now, but have found nothing conclusive.
For example, some problems require loops practically - making 10^100^1000^10000 repeated calculations (even no-ops) is not possible practically as the space necessary to store th... |
In my limited exposure, it appears that "successful" machine learning algorithms tend to have very large VC dimension. For example, XGBoost is famous for being used to win the Higgs Boson Kaggle competition, and Deep Learning has made many headlines. Both algorithm paradigms are based on models that can be scaled to ... |
I'm facing a graph problem and I'm looking to identify it, maybe as a special case of a more general problem, so that I can then find an approximation algorithm for its solution (I'm assuming it's NP-complete).
I have a graph $G$ with $|V|$ vertices. Every vertex has at least one edge connected to it. I want to find th... |
Given a set $S = \{s_1, \ldots, s_k\}$, find the minimum index $j$ such that $\sum_{i = 1}^j s_i \geq \frac{1}{2}\sum_{i = 1}^k s_i$.
I was reading in a paper about an algorithm for this problem that is described as follows:
The idea is to construct an array of size $k$, whose $j$th position contains $\sum_{i = 1}^j s... |
I was looking through some lecture slides on algorithm analysis and found that in general an array access counted as a basic operation, but it did not seem to count as one when accessing the first element (e.g. A[i] is a basic operation but A[0] isn't). Does only accessing the first element count as a basic operation, ... |
I am not so familiar with trees.
How is a tree stored in memory? what is the data structure type used for storing it?
As a string?linked list? stack (!)?
Or is there some kind of data storage model for trees?
|
Given a language:
$A = \{ <M> | M\ rejects\ the\ string\ "101" \}$
Can I prove it is undecidable using Rice's theorem?
See like the theorem conditions are met (there exists non trivial language that describes the machine language )
|
If I have the sum-of-products expression B~CD + ACD how would I convert this so it could be implemented using 3-input NAND gates through DeMorgan's Law? Would this not generate the expression: ~(~(B~CD) ^ ~(ACD))?
It would seem I could implement this and use a 3-input NAND gate with 3-C inputs to act as a NOT gate but... |
I am comparing execution efficiency of the same code compiled to JVM and Node, locally and on AWS Lambda. Not looking for precision, but just a rough notion of performance in difference virtual machines and execution environments.
I started with Fibonacci flavors (recursive, tail recursive, iterative, memoized, ...) ar... |
Is it possible for an approximation algorithm (for minimization optimization problem) to obtain smaller approximation ratios for inputs of larger size? For example, is $1/n$- or $1/\log n$-APX reasonable? If it is, do you know any natural problems?
|
We start with a given finite directed graph. It could represent transitive relations such as:
data transfer paths in social networks,
transportation connections, etc.
Let us use the notation
A->B to denote a directed edge from node A to node B and
A=>B to denote a path from A to B.
Example 1: Social networks. An ... |
How can one prove that the language below is not context-free using the pumping lemma?
$$\{ a^i b^m a^j b^m a^k b^m \mid i,j,k,m \geq 0 \}$$
|
$$ L=\{<M>|M\ is\ a\ TM\ ;\ ∃x,|x|<5 ;\ M\ rejects\ x\} $$
How can i prove that $L \notin R$?
I can't see how Rice's theorem be used here since the conditions are not met (The constrain $M\ rejects\ x$ is about the machine architecture and cannot be expreseed by a non-trivial language)
|
People all over the internet are asking "What are the different Memory Mapping Techniques in Cache", but i couldn't find anywhere the answer to "What is Memory Mapping exactly?".
Please tell what do you mean by memory mapping?
|
How can I construct a finite automata ,which accepts numbers which has sum of digits = 3 ? Alphabet = {0,1,2,3}
|
I would like to develop an application that outputs text from the audio of 2 possible languages.
For ex: Audio might be English or Spanish, it should return the spoken words.
Most speech to text APIs strongly rely on an input language for words retrieval, I would like to know if there's any tool or research paper that ... |
how would you draw a DFA for the language over {a,b,c} of all words where every occurrence of b is preceded and followed by a.
My thinking of this is that the regular expression for this is a* c* (aba)* a* c* although I am not too sure. Any help would be appreciated thanks
|
Someone could explain me in a simple way why Bruce Hayek theorem guarantee an optimal schedule for Metropolis algorithm?
For me is enough an informal explanation.
Thanks.
|
This question is extended from this Algorithm to generate integer sets fulfills restrictions, in the answer I learned the formal term of this problem, and the recursive algorithm described in that answer also gives me the desired sequence - as much large numbers located in the front as possible, for example, we will ge... |
What is known complexity of language {a | a = x^2}, is it possible there exist deterministic Turing machine (one input tape and one work tape) that accept this language in linear time?
|
Here is a question that I found into an old exam:
Describe an algorithm that, given a context-free grammar $G$, can determine if the language $L(G)$ produced by $G$ is finite or infinite.
Hint: use the pumping lemma.
While I found several possible solutions to the problem (mostly exploiting the presence or non-presen... |
Down below is a Term rewriting system where I am trying to find the critical pairs, decide if it is confluent and find the Normal terms. I think it's difficult to understand all these concepts and I am just mixing everything up, I think.
Problem
Consider the $TRS$
\begin{equation}
\begin{split}
(R_1)\quad x\cdot (y + z... |
I've been curious why machine learning algorithms with high VC dimension, such as XGBoost and deep learning, do well in practice. The answer appears to be regularization significantly restricting the parameter space, but the only justifications I've seen are references to Occam's razor.
Is there quantitative/theoretic... |
I have multiple questions actually..
a)What is a System bus? Is there any other buses in the computer?
b)Is it always the case that , the processor access the memory via the system bus?
c) I read that " another master requests the access ".. What are these masters exactly? Is processor the bus master by default?
P.S. I... |
I have known that:
A function $\Bbb N → \Bbb N$ is recursive if and only if its graph is a recursive subset of $\Bbb N^2$.
Now I am considering about the partial functions. Is it the fact that:
A partial function $f:\Bbb N\dashrightarrow\Bbb N$ is partial recursive if and only if its graph is a recursively enumerabl... |
Both the broadcast algorithm and the flooding algorithm seem exactly the same to me, some sites try to explain the difference but then other sites contradict their statements. At the moment I see both algorithms starting at a specific starting node. This starting node will send a message to all of its neighbors, and on... |
I'm working on a problem where I have a directed acyclic graph and I need to repeatedly flip all incoming (or outgoing, or both incoming and outgoing) edges from a single vertex. I think that resulting graph is still a DAG. Am I correct?
|
I am looking for an algorithm that given a PDA $M$ decides whether there exists $w \in L(M)$ for which there exists a decomposition $w = uvxyz$ that satisfies $|vy| \geq 1$ and $uv^ixy^iz \in L(M)$ for every $i \geq 0$.
|
I experience that my students are fixed to compute with concrete values and are not keen to think in terms of general solution like creating a mathematical function $f(n)$ , needed to write programming functions f(n).
What is a good method of teaching them this lesson, becoming able to think in abstractions like functi... |
There is a famous problem to generate a random permutation of elements in an array - it's called shuffling. My understanding of that problem is that I have to put every element in an array into a random position. So for each element in an array I can generate a random position and put it there by swapping:
for (let i =... |
Does Curry howard correspondence, apply to all Functional Program, e.g. in Haskell. i.e. Is it possible to write Equivalent Haskell programs, to COQ proofs?
|
I'm writing some notes about functional programming, so I'd want to describe some features of the category theory.
I visited wiki page about Category of Set, and I found this:
"The epimorphisms in Set are the surjective maps, the monomorphisms are the injective maps, and the isomorphisms are the bijective maps".
I'd wa... |
In most bibliography, only cut(v) is defined.
More properly, only cut(v,v.parent) is defined, where (v,v.parent) is an edge in the represented tree.
The pseudo-code and code for this is:
cut(x):
access(x);
parent(left(x)) = null
left(x) = null
void cut(Node *x){
access(x);
x->left->parent = 0;
x->lef... |
Let's say $\alpha$ is simple word if it couldn't be represented as $\beta^{n}$($n$ times concatenation of $\beta$), where $\beta \ne \alpha$
Consider two sets: $p_{N}(L) = \{\alpha^{n} | \alpha \in L ; n \in N\}$ and $SL = \{ \alpha | \alpha$ - simple word, $\alpha^{n} \in L; n \ge 1 \}$, where $N \subset \mathbb{N}$.
... |
A boolean-valued function defined in the set of positive integers, $\mathcal Z$.
$$f(n) = \begin{cases} 0, &n_{min}\le n < n\ast\\1, &n\ast\le n\le n_{max} \end{cases} ; n \in \mathcal Z $$
$f(n)$ is computationally expensive and it's analytical form (a closed-form equation producing these binary-valued outputs is unkn... |
given a Deterministic Finite Automata, I am looking for a formal construction of Push Down Automata with 3 states such that the languages of the DFA and the PDA are the same. How we can prove correctness?
Any help appreciated.
Thanks!
|
I want to learn Cryptography and so I am interested to master C-programming.
I know the basic concepts of C-programming like how to use an array,pointers etc.
I want to develop myself so that I can find the different loopholes in the security of different cryptosystems.
Basically I want to work in Attacking of Cryptos... |
You are given a minimum heap, with probability going to left is 50% and going to right is 50%. What is the probability that You will land up on a maximum element in the heap? For this scenario since going to right and left have equal probabilities we can state the answer to be
$(1/2)^{O(\log n)}$ .
As at each step we ... |
While I am reducing the following term, I encountered a little Problem:
$$(\lambda w x. w x)(\lambda w x. w x) \rightarrow_\beta (\lambda x.(\lambda w x. w x) x)$$
Now my first question: Why is it possible to reduce further after doing alpha conversion? Isn't the last x bound be the first lambda?
Second Question:
In ... |
I have the following task:
Given an array a holding positions and array b holding values,
order the elements in the array b according to the positions in the array a. For the
input:
a = [3, 0, 1, 2];
b = ['a', 'b', 'c', 'd'];
the output should be
[ 'b', 'c', 'd', 'a' ]
I have written a simple algorithm which s... |
I am given an $n\times n$ matrix, $M$, that denotes the outcome of a series of races between $n$ contestants. Each contestant $i$ races against every other contestant $j$ and we say $M_{i,j}=1$ if $i$ beat $j$ (note $M_{i,j}=1\Leftrightarrow M_{j,i}=0$.) We then say that racer $i$ placed in the tournament if they lost ... |
I am trying to show that $L^* \in P $ does not necessarily mean that $L \in P$. My idea was to find a language $L \notin P$ , apply $*$ operator and show that $L^* \in P$ by showing that $L^*$ can be decided with a polynomially bounded Turing machine, which will be a contradiction to $L^* \in P \Rightarrow L \in P$. Ho... |
I have a problem that I have no idea how to approach. I've been looking at using mapping reductions, but I can't find a way to apply it.
Assume some alphabet $\Sigma$ and two languages $A, B \subseteq \Sigma^*$.
Define the language $A / B = \{x \in \Sigma^* \mid xy \in A \text{ for some } y \in B \}$.
Prove that if bo... |
Most functions that generate random numbers are described as:
Returns a pseudorandom, uniformly distributed int value between 0
(inclusive) and the specified value (exclusive)
If I use it to generate a number in the range [0..9], does uniformly distributed mean that the probability for 3 and 8 is the same?
As I un... |
I made a Huffman algorithm for data compression: it takes the content of a file as an input and outputs a compressed string. More important, it generates optimal prefix codes (made of 0 and 1) for every possible character, that is to say for every number between 0 and 255.
While the size of a code cannot exceed 256, it... |
S-> AAB|ABA|BAA|epsilon
A->aS
B->bS
this is a grammar of the language L4 = {w ∈ Σ*: #a(w) = 2#b(w)} over Σ = {a, b}
Does the following examples shows that the L4 is ambiguous?
S->AAB->aSAB->aAB->aaSbS->aab
S->AAB->aSaSbS->aab
I'm not sure if these derivations are the same,
if they are not, what are the derivations th... |
Suppose you have a Turing machine, but with a countably infinite alphabet.
How does such a Turing machine differ from an ordinary Turing machine, either in terms of computability or of complexity classes?
Do complexity classes for ordinary Turing machines hold up in such a model?
Edit: quick addendum - it seems obvious... |
The Turing machine was invented by a human mind. Presumably, nothing less powerful than a Turing machine can invent a Turing machine.
However, a Turing machine has infinite tape, whereas the mind is situated in a finite universe, and thus can only be a TM with finite tape. A TM with finite tape can be simulated by ... |
Been having some trouble trying to come up with a CFG for this language: all binary strings that contain least 2 1's and at most 2 0's
So far, I've come up with this:
S --> T | 0T | T0 | T0T | 00TT | TT00 | 0T0T | T0T0 | 0TT0 | T00T
T--> 1T | V
V--> 11Z | 1Z1 | Z11
Z--> 1Z | epsilon
I realize this is mostly likely inc... |
finding the index of first zero entry in a binary string:
Input: binary string ($0$'s and $1$'s)
Output: index of first zero entry
Can you give a circuit for finding the index of first zero entry in a binary string with minimum depth and polynomial many processors?
1) Is this problem in $AC_0$?
2) Is this problem in $... |
How is tamper-proofing of software evaluated for effectiveness?
I've been implementing a few algorithms listed within Surreptitious Software: Obfuscation, Watermarking, and Tamperproofing for Software Protection. The algorithms include tamper-proofing of software by means of introspection (or computing a hash at runt... |
I am tring to prove the NP-completeness of the following Binary Integer Linear Program (BILP):
$$ \text{min}\sum_i\sum_j x_{ij}\\
\text{subject to} \sum_jr_{ij}x_{ij} \geq R,\ \ \forall \ \ i \in [L]\\
\sum_i x_{ij} \leq 1,\ \ \forall \ \ j \in [N]\\
x_{ij} \in \{0,1\}.$$
This a resource allocat... |
There is the original problem, and an equivalent problem.
The equivalent problem: construct a set $A$ that contains bit arrays of length $r-1$, where $|A|=2^{r-1}/r$ and $hamming \space distance (i, j) = 3 \quad \forall i, j \in A, \space i \neq j$.
Misha Lavrov gave an excellent answer on Math.SE that solves the origi... |
Say I have the following Standard-Dual linear program:
$$max<\vec b, \vec y>$$
$$s.t.:A^Ty \le \vec c$$
$$\vec y \ge \vec 0$$
Is there a way to transform it to a Canonical-Dual and equivalent linear program, i.e., that of the following form:
$$max<\vec b', \vec y'>$$
$$s.t.:A'^Ty' \le \vec c'$$
$$\vec y' \in \mathbb R^... |
I have the language $L = \{0^i1^j0^i1^j\ |\ i+j > 0\}$ I and want to prove that it is not context-free by using the Pumping lemma for context-free languages. I am new to this field and I am having some problems with the constant $n$ given by the Pumping Lemma. I do not know how to express $i$ and $j$ in terms of $n$. I... |
I was wondering if there is a statement about the spacecomplexity of F and FNP, like P subset of NP subset of PSPACE?
|
It's complexity is $\mathcal{O}(\log^6n)$ and $\log^6n$ is not a polynomial. Can we say that primality testing is strictly contained in $P$ then?
|
I'm thinking how I can insert an element into an ordered array. Assume the array has a capacity for one element. I've implemented two methods.
The one finds the position to insert, moves elements one position to the right and inserts the element into the position.
The seconds one which seems more intuitive to me is to... |
https://en.wikipedia.org/wiki/Busy_beaver#Proof_for_uncomputability_of_S.28n.29_and_.CE.A3.28n.29
So this is wikipedia's proof of why Busy Beaver Function is uncomputable. But I don't get two things.
How do you know that < Create_n0 | Double | EvalS | Clean > has $N$ states? I understand that < Create_n0 | Double | Ev... |
As I understand it encrypted emails have a high profile (detectable through pgp header / attachment).
Would it be possible to match the encrypted data with a wordlist to hide the fact that the email contains a encrypted message?
I know that the other person would need the same list of words for decrypting and the mes... |
Is there any computable real number which can not be computed by a higher order primitive recursive algorithm?
For computable real number I mean those that can be computed by a Turing machine to any desired precision in finite time. For higher order primitive recursive algorithm I mean common primitive recursive functi... |
I want to know the difference between Bandwidth and propagation speed. How are they associated with each other i.e. the impact on bandwidth if propagation speed varies or the impact on speed if bandwidth varies. I have gone through this difference between propagation speed and bandwidth in digital communication still I... |
EDIT: Seems like what this structure is nothing more than a 26-bit bitwise trie, as KWillets suggested in the comments! You can think of the words we insert the trie as 26-bit Bitsets where the i-th bit indicates whether the word contains the i-the letter in the alphabet.
As I was tackling an interview problem I came... |
In the proof of the predecessor subgraph property (page 14 of the following notes)
http://www.cs.sfu.ca/CourseCentral/307/binay/shortestpath.pdf
$d[v_i] \geq d[v_{i-1}]+w(v_{i-1},v_{i})$ is assumed true. Why is this? Shouldn't it be the other inequality: $d[v_i] \leq d[v_{i-1}]+w(v_{i-1},v_{i})$ by triangle inequality... |
So, I was reading about L-systems and it seems that L-systems are in many ways analogous to context-free grammars. Is there a corresponding automata for this? I can't seem to find anything on the Wikipedia page.
|
This question is similar to, but distinct from this one, in that I am considering a specific case that demonstrates an apparent inconsistency in how I see Big-O notation used. I would like to be sure I am properly evaluating the run time of this algorithm.
Imagine we have a list of strings, such as this:
words = ["eat"... |
I was reading the following paper on Robustness and Generalization (and covering numbers)and I was reading their example 1:
which didn't quite make sense to me. The reason it didn't make sense is that intuitively it seems to me that each region $X_i$ could have the label either +1 or -1, so it seems to me that the par... |
I'm following this article to do a formal proof on elliptic curve cryptography. My question here addresses only a property "easily proved by induction".
Definitions (the important part is the addition definition at the bottom)
Let assume the following hierarchy:
abstract class shf;
case class const(c: Integer) extends ... |
Given a string comprised solely of the characters $\text{a, b, c}$ we want to know the number of different $(i, j, k)$ triples such that $0 \leq i,j, k < n \text{ (here n denotes the length of the string)}$ satisfying the following two conditios :
$\bullet \text{ }s[i] = "a", s[j] ="b" \text{ and } s[k] = "c"$
$\bulle... |
A simple linear pipeline has three stages. The execution times in the stages are 10, 15, and 12 units respectively. If the pipeline is used to process 100 inputs, then the execution time is
(a) 1530 units
(b) 3700 units
(c) 1500 units
(d) 1537 units
I am not able to understand this question. can anyone help me to u... |
Designing following language $\{ w \mid w\in\{0, 1\}^* \mbox{ such that } |w|_0 = |w|_1\}$ is easy.
Note $ |w|_0 $ means number of occurrences of 0.
$$
S \to 0S1 \mid 1S0 \mid SS \mid \lambda
$$
Then how about this? Language $\{ w \mid w\in\{1, 2, 3\}^* \mbox{ such that } |w|_1 = |w|_2 + |w|_3\}.$
It is somewhat diff... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.