instruction stringlengths 35 29.1k |
|---|
Find a CFG for the following language:
$$L = \{a^i b^j a^n b^m \mid i + j = n + m\}$$
I'm not sure how I can do that context free. I know that I have to borrow one char from the left group for each char from the right group. but not sure how.
|
I found a code in the internet for Dijkstra's shortest path algorithm in PHP. The problem is it only shows one possible path. If there are several paths having the same distance, it only outputs one of them.
How can I modify this algorithm to produce all shortest paths?
//set the distance array
$_distArr = array();
... |
I need to Find grammar for the following language: $\{ a^{m_1}ba^{m_2}b\dots a^{m_k}bca^n \mid m_j = n \text{ for some } 1 \le j \le k \}$.
can someone help me to solve it? I am not sure how to start.
|
I have to do a project where I write a greedy algorithm to maximize a company's sales. There are 6 shelves, each with 8m length. I have to position 100 items whose length, value and max sales possibility I know on those shelves. My problem is, according to my instructions the max sales possibility changes according to ... |
Given a row of length N, and a set of 1D bars having lengths A[1...M], how many ways I can fill the row?
A is an integer array,
the bars are having dimensions $\{1\times A_1,1\times A_1,1\times A_1,..., 1\times A_M \}$
The row can also be considered as $1\times N$ grid.
2 Bars with equal length has to be considered... |
Assume you have a single-linked list of length n. The list is immutable. A node node has a method next and node.next() returns a reference to the successor of node. node.print() prints the value of node node or does some other stuff, such etails don't matter.
Is it possible to print the nodes of the list in reverse or... |
I was reading about Producer Consumer problem from Operating Systems by William Stallings where following code was given:
+----------------------------------------------------+-------------------------------------------------------+
| Producer | Consumer ... |
Question
I'm reading the FLP impossibility paper.
I think I understand the idea of the proof, and I don't have questions about it.
However, it seems like the assumption of having at most, a single faulty process is not used in the proof.
Put another way, if we remove this assumption and forbid process failure, the proo... |
Given a set $S$ of $n$ overlapping intervals, where each interval is in the range of [1..O(n)], preprocess $S$ so we can efficiently answer the following query:
Given an interval [i,j] output the interval from $S$ that has the longest overlap with [i,j] (i.e., their intersection is as large as possible). Note that [i,... |
If I have a constraint like $y_1 + y_2 +\dots + y_n = k$ for positive integers $y_i$, how would I minimize
$$\quad\frac{x_1 }{ y_1} + \frac{x_2 }{ y_2} + \frac{x_3 }{ y_3} + \dots + \frac{x_n }{ y_n}$$
if all of the $x_i$ are given?
One can assume that $n\le5\cdot10^5$ and $k\le10^{12}$.
|
Back in 2002, using this arctan formula for pi discoverd by Stoemer:
$$ \pi = 176 \arctan(1/57) + 28 \arctan(1/239) - 48 \arctan(1/682) \\ +
96 \arctan(1/12943)$$
and I assume using this series for arctan:
$$ \arctan(x) = x - \frac{x^3}{3} + \frac{x^5}{5} - \frac{x^7}{7} + \frac{x^9}{9} - \dotso $$
$\pi$ was gen... |
I have a list of problems which I don't know how to prove (non-)recursive (save, I think, for the first), where $\mathcal{M}_n$ is the Turing-Machine with the Gödel-number $n$:
$\mathcal{R}=\left\{n:\mathcal{M}_n\text{ does not move right for any input.}\right\}$
$\mathcal{R}_\mathcal{S}=\left\{n:\mathcal{M}_n\text{ do... |
The wikipedia page Powerset construction says that the DFA equivalent to this $(n + 1)$-state NFA (with $n=4$ here) "requires $2^n$ states, one for each $n$-character suffix of the input".
I understand that the author wants to say that the smallest DFA equivalent to this NFA needs at least $2^n$ states.
But I can find... |
Why the height complexity of a data structure, generally expressed in terms of $\log n$, do not contain a ceiling or floor ?
|
In general, there exists NFAs of size n whose smallest equivalent DFA requires 2^n states.
But if we restrict ourselves to NFAs whose graph is eulerian, is it possible to turn any such NFA of size n into a DFA of size at most O(n) ?
If so, does it hold also for a NFAs whose graph is strongly connected ?
I would appreci... |
I've heard some claims that the calculus of constructions without inductive types isn't powerful enough to express proofs by induction. Is that correct? If so, why isn't the Church-encoding sufficient for that?
|
This is the 24.1-5 question in CLRS. I'm having a hard time understanding the questions and also how to solve it. δ(u,v) is defined as the shortest path weight from u to v if there exist a path from u to v.
Let G=(V,E) be a weighted, directed graph with weight function w:E→R. Give an O(VE)-time algorithm to find, for e... |
$$L = \big\{ (0^{m^2})^* \ \big \vert \ m \ge 1 \big\}\,.$$
I've given answer as regular but i am not sure. How? Please explain.
|
This question might be redundant but I want to verify my understanding further. Suppose I have this linear directed graph:
$$S \overset{2}{\to} A \overset{1}{\to} B \overset{3}{\to} E \overset{1}\to D.$$
Here, $S$ is the source, $D$ is the target, and numbers indicate to edge weight:
When taking about shortest path, d... |
I am designing a DSL for writing numerical simulations. I am working on a specific issue related to returning values from functions, and I am wondering if any other existing language solves the same problem.
A toy example of a basic "simulation kernel" in my DSL looks something like this:
function MySimulationKernel()
... |
I wanted to clarify my understanding that both the theorems of Barron about approximating functions by neural nets are about one hidden layer net. Is this right?
Is there any Barron's theorem for high depth neural net?
Is there any lecture notes or such which gives a detailed exposition of the Barron's theorem? I ... |
I am trying to de-knot a point of confusion in my mind regarding "turing-completeness" and the "universal approximation theorem".
The context here is deep neural nets: So, consider two types of networks: a recurrent neural net, (RNN), and a feedforward net, say a pure convolutional neural net (CNN).
I understand that... |
I'm trying to understand Chord algorithm (for Peer-to-Peer systems) but I can't understand how it maps the documents to the nodes.
I have one example where we have:
keys with 4 bits
5 active nodes with the following identifiers: 1, 5, 7, 10, 13
After mapping the documents to the nodes, we have:
Key 0 - Node 1
Key 2 -... |
Backus-Naur Form specifications for the grammars of languages like like C or C++ build up expressions with counter-intuitive definitions. For instance, a multiplication expression like
5 * 3
is also a logical-or-expression and an equality-expression and a bunch of other things it doesn't actually look like, because th... |
The following context-free grammar presents a "dangling else" type ambiguity (imagine that $a$ stands for if expr then and $b$ stands for else and $c$ stands for some other kind of instruction or block):
$$
\begin{aligned}
S &\rightarrow aSbS \;|\; aS \;|\; c\\
\end{aligned}
$$
For example, $aacbc$ can be parsed as $(a... |
The modified max product problem is as follows: given integer string $z_1\ldots z_n$, and an integer $k \leq n - 1$, what is the maximum product that can be formed by placing $k$ multiply signs in between the numbers, in the best possible configuration.
This has ${n-1 \choose k-1} = \frac{n!}{(n-k)!k!}$ configuration... |
I have two bitstrings that are 100 bits long. Bitstring A has a Kolmogorov complexity (KC) of 90 and bitstring B has a KC of 10. Intuitively, I think bitstring B is probably easier to compress than bitstring A.
"Easier to compress" means a larger proportion of 100 bit bitstrings with B's KC can be compressed by a sta... |
Let $a_{kn}$ be positive real numbers for all $k\in\{1,\dots,K\}$ and $n\in\{1,\dots,N\}$ and let $t>0$. I need to find a subset $S$ of $\{1,\dots,N\}$ of minimum size
such that:
if $|S|=1$ then $a_{ki}\geq t$ for all $k\in\{1,\dots,K\}$ and $i\in S$.
if $|S|>1$ then for all $k\in\{1,\dots,K\}$, there must exist some... |
Is there a good algorithm for generating all and only the unique permutations of a finite set respecting some kind of symmetry? For example, in Klondike solitaire, the two black suits are interchangeable, the two red suits are interchangeable, and the black suits are interchangeable with the red suits. This results in ... |
am I right in the assumption that both linear and logistic regression algorithms can be represented as the simplest form of neural networks,a perceptron, which consists of a two layers, an Input and an output, that combines all the input each with it's own respective weight to produces a prediction or classification po... |
I have two sequences - $A$ (of length $n$) and $B$ (of length $m$). They consist of numbers from the alphabet $\{1, 2, ..., k\}$. How want to find the shortest sequence $C$ such that $C$ is not a subsequence of $A$ and $C$ is not a subsequence of $B$? It should be made from numbers from $\{1, 2, ..., k\}$. For example ... |
How would you solve the following problem...
Theres a table filled with data like this:
Data1: 50 51 48 55 50
Data2: 51 49 52 50 51
Data3: 49 53 50 51 48
Data4: 48 50 52 51 53
Data5: 47 50 51 54 49
Data6: 50 48 50 49 52
Data7: 51 50 51 49 51
Data8: 48 51 49 50 50
...
The goal is to create pairs from the table, based o... |
Let $G = (V, E, W)$ be a weighted graph with positive and negative weights. I would like to find the set of vertices $V^\prime$ such that the sum of the weights of the edges that they share is the maximum you can get from $G$. I suspect that this is an NP-complete problem, so my question is whether this can be reduced ... |
Could you proof it to me that A(A+B) = A?
AA + BA [AA = A]
A + AB
Then what?
|
Context:
This question rises from the paper "Methods for Visual Understanding of Hierarchical System Structures" by Kozo Sugiyama, Shojiro Tagawa and Mitsuhiko Toda, which lays out a framework (the Sugiyama framework), for hierarchical graph drawing.
In the paper, Sugiyama et al. introduce the Barycenter Method for re... |
From pg. 35 of Lambda Calculus and Combinators An Introduction:
Corollary 3.3.1 in $\lambda$ and $CL$: for every $Z$ and $n \ge 0$, the equation
$$ xy_1 \ldots y_n = Z $$
can be solved for $x$. That is, there is a term $X$ such that
$$ Xy_1 \ldots y_n =_{\beta, w} [X/x]Z. $$
Proof: Choose $X \equiv \mathsf{Y} (\lambda... |
While doing research on expert systems, I notice that it is rare to see this term used in the last 20 years. For example, a recent paper was:
Wang, Hao, Naiyan Wang, and Dit-Yan Yeung. "Collaborative deep learning for recommender systems." Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discov... |
Suppose I have a string that goes like "abcabcdeaabcdef", where each character is either one more than the previous one or a.
If the character at position i is "c", I know that it is preceded by "ab".
I want to find the number and length of all sequences (substrings that contain sequential characters). For example, the... |
The question is to show that there are $(n-1)!/2$ distinct tours for a Euclidean traveling salesman problem (ETSP) on $n$ points.
My attempt was using induction. So I start by:
If $n=3$, then we have a triangle and there is only one tour.
Assume that there are $(n-1)!/2$ distinct tours for a ETSP on $n$ points. Prove ... |
How can we compute the shortest-path tree of minimum total weight for a given connected graph?
I am using Dijkstra's algorithm to find the shortest-path tree, but there may exist more than one shortest-path tree with different total weights.
The above picture shows one such example (where $a$ represents the starting v... |
I am practicing for an exam and one of the exercises is:
Find an example sequence where FFD (offline) performs better than BFD (offline).
Intuitively I would say no such sequence exists as the sequence is sorted, but I have not managed to find a counterexample or proof.
|
Is there any systematic (algorithmic) method to convert a regular expression like
$(a^*)(b)(b^*)(a^*)c$
to an automaton (let's say a Buchi automaton)?
|
I'm reading a paper entitled "Succincter" which discusses a compression scheme that involves encoding a value as a sequence of $M$ bits, along with a "spillover" value which can be recursively encoded.
The details of the encoding scheme are not really relevant for the purpose of this question. Rather, I am specificall... |
During the fetch, decode, execute cycle, the Program Counter (PC) increments after the operand is copied from the Memory Data Register (MDR), and then carries on with the processing of the instruction.
Why does the PC increment in the middle of the cycle rather than at the end?
My only guess would be that it relates t... |
I have a binary vector $v \in \mathbb{F}_2^m$ and a set of binary vectors $Q=\{q_1,q_2,\dots,q_n\}$ each belonging to $\mathbb{F}_2^m$ and I know that $v \in \text{span}\{Q\}$ but I want to know if there exists a subset $Q_k \subset Q$ of at most $k$ vectors ( i.e. $|Q_k| \le k < n$ ) such that $v \in \text{span}\{Q_k\... |
We have the following
i <- 0
j <- 0
x <- 1
y <- 1
z <- 1
c <- 1
u <- 1
while i<n do
i <- i+1
j <- i
x <- x*i
z <- x
y <- i+1
y <- x*y
while j<2*i do
j <- j+1
z <- z*j
od
c <- z div (x*y)
od
I want to find the loop invariant for both while-loops.
I applied th... |
Can you explain in step-by-step basis of how motion capture system work? Especially the part, that enables the 3D models to mimic the movement of the actor.
|
I just starting taking a course on Data Structures and Algorithms and my teaching assistant gave us the following pseudo-code for sorting an array of integers:
void F3() {
for (int i = 1; i < n; i++) {
if (A[i-1] > A[i]) {
swap(i-1, i)
i = 0
}
}
}
It may not be clear, bu... |
Community,
I'm working on a project lifting assembler code to a AbstractSyntaxTree-like structures like these:
In order to be able to evaluate the final value of a tree given only leafes with constant values, I implemented an recursive approach: Each node class has its own value function. For all nodes except constant... |
I have an undirected weighted graph with $V$ vertices and $E$ edges. Weight of a path is a xor of weights of the edges on this path. Paths can pass through the same vertices and edges many times. Given two vertices $a$, $b$ and some number $x$ I want to tell if there exists a path of weight $x$. What is the fastest alg... |
In Michael Sipser's book language is defined to be in NP iff it is decided by nondeterministic polynomial time Turnig machine. Why can't we use same machine to decide if language $L^c$ is in coNP? Just run every string x on same NDTM and if it accepts x then x is not in $L^c$ and if it rejects x then it is. What am I m... |
I'm a little unfamiliar with graph theory, and I found an interesting problem in my work that I do not know if its already well-known or can be easily mapped to another one. If I were to express the problem more formally:
Given a directed unweighted graph $\langle V,E \rangle$, find a total order between vertices $v_1 ... |
I'm having trouble reasoning about the time complexity of these mutually recursive functions. This was asked on SO here but the answer there didn't help me. I tried substituting one of the recurrences in the other but because they are mutually recursive I got stuck. I tried writing out the function calls for x=10 but I... |
Algorithms are generally studied in terms of average case complexity and worst case complexity? Is there also a kind of analysis called "average worst case" complexity?
|
Functions are relations but all relations may not be functions.Can there be an algorithm for a relation which is not a function?What has theory of computation got to say about relations in general.
|
Is there any systematic (algorithmic) method to convert an $\omega$-regular expression like
$
(a^∗)(b)(b^∗)(a^∗)(c^\omega)
$
to an LTL property?
|
So I have a few questions about determining which formula it is:
So if a binary predicate symbol $X$ denotes an edge between two variables, say $x$ and $y$, for the following formulas
Why is $\forall x \exists y\,(X[xy]\lor X[yx])$ universal and $\exists x \forall y\,(X[xy]\lor X[yx])$ existential? I mean for the seco... |
I had this question on my final exam so sadly I don't have the question but as far as I remember, the question was saying:
How many minimum spanning trees does a graph with 20 edges have.
I know that we can find minimum spanning trees with algorithms like Prim's algorithm etc. But how can we know the total number of ... |
Assume that we wish to solve some problem that has a information theoretic memory lower bound of $\mathcal B$ bits.
In computer science, there are a few classes for data structures which are close to the memory lower bound of the problem that they solve:
Compact data structure is one that uses $O(\mathcal B)$ bits (i.... |
I'm having some trouble doing SICP exercise 2.15. Please note that this question is not closed related to Lisp. Instead, it's closely related to numerical analysis.
Exercise 2.15. Eva Lu Ator, another user, has also noticed the
different intervals computed by different but algebraically equivalent
expressions. Sh... |
I have proven the foldr Fusion Law as follows:
Given f is strict, f a = b and f (g x y) = h x (f y) for all x and y, than
f.foldr g a = foldr h b
Case []:
(f . foldr g a) [] = foldr h b [] -- Remove . notation
f (foldr g a []) = foldr h b [] -- definition foldr
f (foldr g a []) = b -- definition foldr
... |
Here is the thing, I am solving an problem, and I think, say, I am pretty sure that I have the correct algorithm but I haven't been able to prove it because of my lack of practice prooving greedy algorithms.
The problem says: I need to sort an array of $n$ numbers, but the only operation I am able to do is to move an ... |
With the use of Merkle Trees, you can prove the presence of an element of a very big list, with an amount of information close to just logarithm of the size of the whole tree. Merkle proofs, thus, probabilistically confirm the result of this specific fold:
isMember :: ∀ t . List t -> Bool
isMember e = foldr (\ h t -> h... |
I'm currently learning things like algorithms, data structures, machine learning and some programming languages. Should i distribute my work or should i focalized for a certain period on one thing, and then switch to another?
|
I am trying to reduce a Knapsack problem to a problem I need to solve, and I am suspicious of its NP-Completness.
The problem recieve an array of elements $v_1,v_2,...,v_n$ sorted in some order from left to right and not necessarily following the value $v_i$ (meaning the sort order is implicit),(assume those values ar... |
Wiki says
a numeric algorithm runs in pseudo-polynomial time if its running time is polynomial in the numeric value of the input, but is exponential in the length of the input – the number of bits required to represent it.
This answer very well explains why primality test algorithm of running time $O(n)$ is actually ps... |
So I'm trying to practice (and learn, clearly) use of the Pumping Lemma, and this is my current equation. It's clearly regular- it can be simplified:
$a^{2+n}a^{n} = a^{2+2n}$ and from there it's fairly easy to derive the regular language $aa(aa)*$
However, I'm trying to explicitly solve this through the Pumping Lemma-... |
Given a cryptographic fingerprint of a collection, K == hash(X), an arbitrary function F, and a value Y, is it possible to build a short proof that F(X) == Y that doesn't require having X? I.e., a proof that Y is the result of applying F to some X such that hash(X) == K?
|
Suppose that you have a huge (terabytes worth) collection of numbers, and you know that you will, in a future, need to run some statistics of it. In order to cut future work, you notice that, by pre-computing some key statistics, you can make other statistics be computable in sub-linear time. For example, if you store... |
I would like to know how to modify DFS/BFS in order to return the number of the trees present in a graph. I know that a tree is an acyclic connected graph, and I think that I have to initialize a counter somewhere, but I don't know where. I made the procedure "is-tree(G)" where G is the graph. It returns true if the su... |
An admissible heuristic for an n-puzzle is the Manhattan distance. Now if the cost of a transition is equal to the number of the piece that is moved, is it true that the Manhattan distance is still an admissible heuristic?
In my opinion yes, because during the search, for any node, we won't have any overestimation as a... |
If I have an NP-complete graph problem $P1$ whose instance, say, a graph $G$ and a positive integer $k$ and I have another graph problem $P2$ whose instance is a graph $G'$ and a positive integer $k'$. I would like to prove that $P2$ is NP-complete. The reduction is as follows:
set $G'= G$ and
set $k'= f(k)$.
$P1$ is ... |
In a BST, Let x be a leaf node, which is a left child of node y. Prove that if x has a predecessor, this predecessor has a right child.
How can I tackle this question? I'm not even sure from where to start.
|
The problem
Suppose we have a simple graph $G = (V,E)$, edge weights $c: E \to \mathbb{R}_+$ and node rewards $w: V \to \mathbb{R}$.
Given an integer $K$, positive scalar $B$ and a scalar $\gamma$, I would like to find a set of up to $K$ paths (either simple or not, whichever is easier to compute) such that the cost is... |
I just recently learned a little about the lambda calculus, from the brief intro in the text Programming Language Pragmatics and this outstanding 4-video sequence from Adam Doupé. Basically I learned the gist of lambda calculus, $\alpha$-conversion and $\beta$-reduction, a bit of Church numerals, addition/subtraction, ... |
Assume I have a DFA with 20 states, is it possible to know the maximum number of states of the NFA which it was converted from?
I know that the minimal number of states would be 5 (because you cannot have created a DFA with 20 states from an NFA with 4 states).
But I don't really understand how can I know if there's a ... |
The following algorithm generates the next permutation lexicographically after a given permutation. It changes the given permutation in-place.
Find the largest index k such that a[k] < a[k + 1]. If no such index exists, the permutation is the last permutation.
Find the largest index l greater than k such that a[k] < a... |
What happens if we increment binary semaphore $x$ when it is equal to $1$.
E.g A process executes $V(x)$ when $x==1$;
What are the possible cases then-
Process would be blocked till $x$ becomes $0$. The moment $x$ becomes $0$,it is incremented.
Process would be blocked and no present or future changes will be there ... |
$M$ is also a variable.
\begin{equation}
T(n)=
\begin{cases}
16T(n/2)+\theta(1), & \text{if}\ n^2> M \\
M, & \text{if}\ n^2\le M \\
\end{cases}
\end{equation}
|
Is mappings optimization problems onto neural networks still a thing? I only found papers are written prior to 1999. These old papers mostly deal with Hopfield network, which i read is obsolete and only for theoretical properties. So is there any progress with neural networks (maybe different ones to Hopfield) and solv... |
Prove that the language
$$ L=\{\langle M \rangle \mid \exists M_1, M_2 : L(M_1)=L(M_2)=L(M) \text{ and } |\langle M_1 \rangle| < |\langle M \rangle| < |\langle M_2\rangle| \}$$
is not recursive.
|
The task
Find a pushdown automaton $M$, so that $L(M)=\{w \in \{a,b\}^*\ |\ |w|_a=|w|_b\}$, where $|w|_a$ denotes the number of $a$s in a word $w$.
My solution
I'm using the Wikipedia notation.
$$M = (Q, \Sigma, \Gamma, \delta, q_0, Z_0, \{q_0\})$$
$$Q=\{q_0\}, \Sigma = \{a,b\}, \Gamma = \{Z_0, A,B\}$$
$$\delta\text{... |
I have couple of questions about Turing machines:
What is the definition of the "reject" state in TM?
If the input was very small and, after one step, the machine gets to the end of the input, but it stands on regular state, it counts as "reject"? Or there is a special "reject" state, and if it won't get to this/those... |
Setup: Suppose you have a dog running around in a fenced yard (2D). Every x seconds, you mark down the coordinates of the dog. This dog is a puppy - easily distracted, full of energy, and very speedy :) Expect quick, jagged motions, running in circles, and periods where he needs to catch his breath :)
Problem: At any p... |
I am reading the transcription of a lecture from a professor Scott Aaronson, specifically the section titled Turing Machines. In this section he describes Turing's proof of the Halting Problem.
But can we prove there's no program to solve the halting problem? This
is what Turing does. His key idea is not even to try... |
I have a set of images. The length is variable. It could be anything up to about 30 images. Each image can have up to 10 tags. Images may share some, all or none of their tags. I need to select a random 5 from this set of images. This selection should follow the following rules in order of high priority to low:
Two im... |
A leftist tree is a variant of a binary heap, where the height of the left side of the tree is usually greater than the right side. Can a leftist tree's height ever increase after extracting the root? I am pretty sure it is impossible. How can a tree's height increase after taking away a node?
|
Lets say I have the below language:
S = {a, b}
So if we apply Kleene plus to that language, it is something like:
S+ = {a, b, aa, bb, ... ..}
If we apply Kleene plus to above language again, It is something like:
(S+)+ = {a, b, aa, bb, aaa, bbb ... ..}
What are the best words/way to describe that (S+)+ = S+?
Obv... |
Given a $n*m$ grid, some $1*1$ squares are blocked(can't be entered) and some are unblocked(can be entered).
What is the algorithm which prints the shortest path, such that the path covers all unblocked $1*1$ squares in a $n*m $ grid ?
The starting point is given to be :$(startx,starty)$.
A $1*1$ square can be visited ... |
The multiplexer is a device that selects one of several analog or digital input signals and forwards the selected input into a single line.
Please consider a, for example, four data input multiplexer.
If I am not wrong, the last OR gate can produce as output only 1 and 0. How are these outputs interpreted as result of ... |
I have a question:
Does for every NFA $N$ exist NFA $M$ that has maximum 3 final states and $L(N) = L(M)$.
I can answer no for DFA for below language and its minimal DFA that has 4 final states .
$L_1 = \{ax_1,bx_2,cx_3,dx_4 | x_1 \in \Sigma^* ,x_2 \in (a+b)^*,x_3 \in (b+c)^* ,x_4 \in (a+b+c)^*\}$ , $\Sigma = \{a,b,c,d... |
With regard to this explanation in finding Round Trip Time I tried attempting the following question
Question
Frames of $1000$ bits are sent over a $10^6$bps duplex link between two hosts. The propagation time is $25$ ms. Frames are to be transmitted into this link to maximally pack them in transit (within the link).
L... |
A definition of data type I've seen is along the lines of "a set of values and a set of operations".
What exactly does an operation in this set comprise?
For instance, might an operation be considered as:
an identifier (e.g. integers have an operation, +)
an identifier with signature (e.g. + operates on two integers a... |
I asked a pretty vague question. I wasn't able to make it precise, but I can now. It seems to be out of the scope of the previous question, so I open another one.
In dependently-typed languages such as Agda or Idris, it's possible to define a universe inductive-recursively. However, W-types are known to have bad comput... |
Are there countable infinte decision problems or uncountable infinite?
Thank you
|
I have a problem that I need to prove its np-completness: My original question
I need to reduce it from some problem, i´m trying to do it from some other than knapsack, that´s why I ask again. I need two sets $A$ and $B$ of equal cardinality $|A|=|B|$ and $\sum{A}\leq V$ and $\sum{B}\leq V$.
It is like Partition, but ... |
I am trying to solve this recurrence relation for a while but not getting anywhere. Actually, the sequence is given as,
F(n) = F(n-1) + F(n-2) + F(n-1)*F(n-2)
where, F(0) and F(1) will be given. I added 1 on both sides to factorize it. I tried to solve it by taking log on both sides but unable to come to a conclusion... |
What does it mean when one complexity class has another complexity class superscript?
For example, sometimes in papers I see $P^P$ or $P^{NP}$.
|
Given the outputs of the pseudorandom numbers generator how can one determine the type (e.g. Linear Feedback Shift Register), Multiply-With-Carry, Linear Congruential Generator etc.) and recover the function and the seed?
The given array of numbers is for sure generated by PRNG (not Cryptographically Secure) - this is ... |
I recently found this music video. While the music is mislabeled, the video part caught my eye. It seems to be transitioning between two images based on shape? I think its a fade-in/fade-out with the images being streched and transformed, but it seems to be specific on the shape in the image. This may be manual, but an... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.