instruction stringlengths 35 29.1k |
|---|
Imagine a person called Albert. Albert lives in Europe and would love to move to America. One day he got his wish come true. A person called Margareta gave him a key. The value of the key is the same as the address for a house in USA. Albert doesn't have that much money to travel to America to confirm whether the key i... |
I have a list of sets $L$. I want to partition the sets in $L$ to produce a new list $L'$ that is a Laminar Set Family
Concretely:
For any $L'_i, L'_j \in L'$ if $L'_i \not\subseteq L'_j$ and $L'_j \not\subseteq L'_i$ then $L'_i \cap L'_j \equiv \varnothing$.
I want a minimal length $L'$ (which is equivalent to sayi... |
Let $L_1 = \{a^nb^nc^n\}$
and $L_2 = \{a^ib^jc^k \mid i\ne j\text{ or }j\ne k\}$ (which I think is a non Context free but I am not sure)
So, $L_1 \cup L_2$ will give $L_3 = \{a^*b^*c^*\}$ which is a CFG.
Is this correct?
|
In Introduction to Algorithms, the stack data structure's enqueue operation has the following pseudocode
ENQUEUE(Q,x)
Q[Q.tail] = x
if Q.tail == Q.length
Q.tail = 1
else Q.tail = Q.tail + 1
I started writing it in Swift and figured the queue should be modeled as a structure
struct IntQueue {
var items = [Int](... |
I am unsure of how to prove this language is non-regular. I do not even know where to start to develop a string that would prove the language is non-regular by contradiction. Any help would be appreciated.
I understand that the string has to have a length greater than the pumping length of L. What does that even mean ... |
The question is:
There is a n x n grid (Maze) which has either 0, 1 or 2. 0 means a path
exists, 1 means the cell is blocked and 2 means there exists gold in
that cell. Task is to start from 0, 0 and cover the grid such that
all the gold is collected and then returned to a specific cell (x, y)
in the grid. Th... |
What if an $L$-complete problem has $NC^1$ circuits? More generally, what evidence is there against $NC^1=L$?
|
Given strings s1 and s2, consider the problem of converting s1 to a palindrome string p such that s2 is a substring of p,
where the only operation allowed on s1 is replacement of any character with any other character.
What is the minimum number of operations required for this task?
|
Suppose that $P \neq NP$, and $P = BPP$.
Assume one is given a decision language $L \in NPC$, and she has only polynomial time turing machines. Additionally, she can't use randomness (not sure that's relevant since I assumed $P= BPP$).
How can she compare between two algorithms $A_1, A_2$? Clearly, $A_1$ and $A_2$ cann... |
can any one explain why the greedy algorithm solution i.e sorting according to finishing time is optimal in the interval scheduling algorithm ?? I want proof in layman's language. I was watching this video and i am not able to understand the proof
|
Could somebody please help me understand what is going on here (in plain English)? I think that $(k \mathbin{\&} 63)$ has the effect of modular division. Is that right? How are the primes encoded / how can I know exactly where a number starts and ends by moving my finger across each 64-bit word?
2, 3, 5, 7, 11, 13, 17... |
A Question from CLRS book:
(CLRS 11.1-4) We wish to implement a dictionary by using direct addressing on a
huge array. At the start, the array entries may contain garbage, and initializing the
entire array is impractical because of its size. Describe a scheme for implementing a
direct-address dictionary on a hu... |
The standard implementation of breadth-first search looks like
queue = [root]
while queue:
node = queue.pop()
visit(node)
for_each child in node.children:
queue.push(child)
Just by switching the queue to a stack:
stack = [root]
while stack:
node = stack.pop()
visit(node)
for_each child ... |
Premise: Let $A := [ k(1), k(2), ..., k(n) ]$ and $B:=[ l(1), l(2), ..., l(n) ]$ be two Arrays where $k$ and $l$ are permutations. (What I'm trying to express: $A$ and $B$ contain the same elements in different orders.)
$A$ and $B$ are of different types, thus it is not allowed to mix them in the same data structure.
... |
It’s Friday night and you have $n$ parties to go to. Party $i$ has a start time $s_i$ end time $t_i$ and a value $v_i \ge 0$. Think of the value as an indicator of how excited you are about that party. You want to pick a subset of the parties to attend so that you get maximum total value. The only constraint is that in... |
Given a matrix $A$ with entries $a_{ij} \in \{0,1\}$, the matrix $B$ is formed by $b_{ij}=a_{ij} + a_{i+1,j} + a_{i,j+1} + a_{i+1,j+1}$. $B$ has one row and one column less than $A$. The problem is given such a matrix $B$ to find one possible matrix $A$ that produced $B$. This can be done by reducing the problem to 2-S... |
Recall that an NFA $N = (Q,\Sigma,\delta,S,F)$ accepts $w=w_1w_2\ldots w_n$, where $w_i \in \Sigma$, if one of the following holds:
(a) $\hat\delta(S,w) \cap F \neq \emptyset$, where $\hat\delta\colon P(Q) \times \Sigma^* \to P(Q)$ is given by
$$
\hat\delta(Q',w) =
\begin{cases}
Q' & w = \epsilon \\
\bigcup_{q \in \... |
The wiki for the subset sum problem found here it states that you take the list of N elements and split it into two lists of N/2 elements. You then generate all the subsets for each list (each having $2^{N/2}$ subsets). It then states...
"Each of these two lists is then sorted. Using a standard comparison sorting alg... |
Consider a language $L$ such that $L \subseteq \Sigma^*$, where the cardinality of $\Sigma$ is $1$ (i.e. the alphabet has only one symbol). E.g. $L \subseteq \{a\}^*$.
Can anything be said about the time complexity of $L$? Is it the case that $L \in P$?
I can't come up with any example of a language with a single symb... |
I have a optimization problem:
$$\max_z\ \sum_{i=1}^n \frac{W_i}{D_i - z_i} \quad \text{s.t.}\ \sum_{i=1}^n z_i \leq k, z_i \in [0,k],$$ where each $W_i$, $D_i$ are constants and $z_i$ are integer variables. Assume each $D_i >k$.
The optimal solution obviously satisfies $\sum_{i=1}^n z_i =k$.
But it seems there is no e... |
I have a schema R = {A,B,C,D,E} and the set F of FDs:
F = {A --> BCDE, CD --> E, EC --> B}.
Candidate key = A
Non - Prime Attributes = BCDE
Prime Attributes = A
According to me, there is no partial dependency because no non-prime attribute is dependent on part of CK.
E and B are transitively dependent on A so the schem... |
A language is called semi-decidable if there is an algorithm for identifying members. There are well-known examples of semi-decidable languages where identifying non-members is equivalent to $\emptyset'$, such as the Halting Problem.
My question is: how hard can identifying non-membership be?
|
I have a relation R = {A,B,C} and F={AB -> C , C -> B}.
In order to check if R is in BCNF.
I checked if AB and C are both superkeys and since C is not a superkey I conclude R is not in BCNF.
After decomposing R into BCNF, I have two relations :
R1(C,B) F1{ C -> B}
R2(A,C) F2{ A -> C}
Now since A and C are both su... |
While reading on randomization for online learning from the text "Online Learning and Online Convex Optimization" by Shai Shalev-Shwartz, I found the following statement (Pg 115)-
"The adversary can still know the learner’s forecasting strategy and even the random bits of previous rounds, but it doesn’t know the actual... |
Came across this interesting problem in one of my interviews. Suppose you have a circular turing tape, i.e. simply a circular array. You do not know the size i.e. the number of cells available in that circular array.
The array consists only of binary digits. Lets say you are currently at one of the cells. You can read... |
If my grammar does not have productions of the form $A\rightarrow\lambda$ and $A\rightarrow B$ for some variables $A$ and $B$ then I know that each step in the derivation must involve an increase in the sentential length. Therefore if I do an exhaustive search for some word $w$ then I know I can stop searching after $|... |
For every nondeterministic finite state automata (NFA) that has self-loop(s), there exists an equivalent NFA that does not have any self-loop.
How do I prove this?
|
Is there a notion of a context-free complete language (in the analogous sense to a $NP$-complete language)?
|
The task is to find a efficient algorithm to the following problem. There are n boys and n girls who need to be divided to pairs. You get a list with all possible pairs that could be made. It means that if the pair (a,b) is in the list then the boy a can be paired with the girls b.
It is known that each boy appears in ... |
What is the $NP$ problem whose status in $P$ or $NP$-complete is still unsettled, as of 2018?
This question is inspired by the following two recent breakthroughs:
The work of Mulzer et. al on $NP$-completeness of min-weight triangulation.
Recent quasi-polynomial algorithm of Babai for graph isomorphism. The link is to... |
As far as I understand correctly, to say that a decision problem $X$ is in P means that there exists a polynomial $c\cdot n^p$ such that as $n$ goes to $\infty$, the steps required to solve $X$ is bounded by $c\cdot n^p$.
But strictly speaking, this doesn't restrict the complexity for finite $n$ in any way. Strictly sp... |
Let $\to_\beta$ be $\beta$-reduction in the $\lambda$-calculus. Define $\beta$-expansion $\leftarrow_\beta$ by $t'\leftarrow_\beta t \iff t\to_\beta t'$.
Is $\leftarrow_\beta$ confluent? In other words, do we have that for any $l,d,r$, if $l \to_\beta^* d\leftarrow_\beta^* r$, then there exists $u$ such that $l\leftarr... |
I have been reading a book about Decision Trees and it caught my attention the following part:
In case of numeric attributes, decision trees can be geometrically
interpreted as a collection of hyperplanes, each orthogonal to one of
the axes
I tried to look for information about this in Internet, but I did not fin... |
Given a weighted graph (negative weights are allowed) and two vertices $u$ and $v$, can we find the simple min-weight path between $u$ and $v$? There can be a negative cycle on the path from $u$ to $v$, but we want to ignore that, and calculate the weight of a simple path between them. Can this be done in polynomial ti... |
We already know that $NEXP\subseteq EXP/poly\implies NEXP=EXP$. What if we change $EXP$ to $NEXP\cap coNEXP$.
As the title states, prove the statement in the title.
The original proof use the self-reducibility of the searching problem. For a language $L\in NEXP$, the corresponding search problem has its decision versio... |
What are the properties of summation with Big Omega? I have been looking online but cannot find any sources on summation with Big Omega, only for Big Oh. For example, my main inquiry is if this statement is true or not, If $a(x) + b(x) ∈ \Omega(c(x))$, then $a(x) ∈ \Omega(c(x))$ or $b(x) ∈ \Omega(c(x))$.
|
I am having trouble to understand dynamic programming. Mainly because of its name. As far as I understand, it's just another name of memoization or any tricks utilizing memoization.
Am I understanding correctly? Or is DP something else?
|
There is a controversy about Monad implementation in S.O .
The original question is,
What's so special about Monads in Kleisli category?
Is there any counterexample that Functors cannot do what Monads can do except the robustness of functional composition by flattening the nested structure?
What's so special about Mon... |
When solving the problem of coin exchange by greedy algorithm, why will we will always have the correct result if the coin values are $1, a, a^2, \cdots, a^n$, where $a\ge 2$ and $n\gt 0$?
For example, if $a = 3$, $n =3$, we get the following coin values: 1, 3, 9, 27. When total exchange is 16, answer is 4 coins, as re... |
I am wondering, from where static and dynamic scoping got their names.
After understanding the concept of static and dynamic scoping in C, what I assume is that whenever we failed to find out the declaration of the variable within the scope of the function than in order to resolve this name, we refer the global variabl... |
I have a method Func() that has two inner methods Func1() and Func2().
Func1() has a running time of $O(k\lvert M^2 \rvert (\lvert L \rvert +\lvert M \rvert \log \lvert M \rvert))$ and Func2() has a running time of $O(k \lvert K \rvert \lvert V\rvert)$.
What is the running time of Func()?
Is it $\max \{ O(k\lvert M^... |
Does anyone know how many solutions there are for a XOR-SAT formula? And how do the variables in solutions distribute? For example, if (x0=1, x1=0, x2=1) is a solution for a XOR-SAT formula, how does x0 distribute in different solutions? Thanks!
|
Let me define a volatile graph first:
It is an undirected graph in which the weight of each
edge varies every time we query it. That is, when we request the weight
w(e) of edge e, we obtain an approximate value ˆw(e) defined as follows:
wˆ(e) = w(e) + η, where η ∼ N (0, σ).
Here, N (0, σ) is a Gaussian distribution wit... |
I have always read that Turing machines can simulate any algorithm, without changing the time complexity of the algorithm, and hence it is easier to study the Turing machine equivalent of the algorithm while doing proofs.
However, I am unable to find a proof for this statement. Is there a formal proof of why the Turin... |
In a communication link out of p packets one packet will be lost. If stop and wait protocol is used then expected number of retransmissions for a packet?
(A) P/(1-P)
(B) P
(C) 1/(1-P)
(D) 1/P
I am getting option a) as answer. Anyway to solve this?
|
How to show that the following language is not regular with the pumping lemma?
$$L=\left\{0^{n\lceil\log_2 n\rceil} \,\middle|\, n\in \mathbb{N}-\{0\}\right\}.$$
|
i have an arbitrary "reshaping" function which, given a linear sequential array can "reshape" it to 2D or 3D. the order in which the X-dimension, Y-dimension and Z-dimension may all be changed, as well as the size of the X, Y and Z dimensions, may all be changed, at runtime. consequently it is not possible to use sta... |
Let $f:\mathbb{N} \to \mathbb{N}$ be a computable partial functions and $T$ a Turing Machine which computes it. By this I understand that $T$ writes $f(n)$ on its tape and halts when $n$ is an input on which $f$ is defined. But then what should $T$ do on inputs from $\mathbb{N}$ for which $f$ is undefined, and what sho... |
I am given the following grammar:
$
S \rightarrow AabAba
\\
A \rightarrow a | \epsilon
$
and I have to prove it is LL(2).
I know what LL(k) means - one can choose a production based on k characters from the input.
So consider the input $ababa$. Of course we start with $S$, so we apply the production to $AabAba$. Now we... |
Given two sets of elements S and R, with p elements and q elements respectively. 1 <= p,q <= n. Now, the number of ways to choose same number of elements from set S and R is $$\sum_{i=0}^{\min(p, q)} pCi * qCi$$. I want to calculate the result for all possible combinations of p and q. I can think of a O(n^3) solution b... |
I just started learning about circuits in Chapter 6 of "Computational Complexity". There is an emphasis on the fact this model of computation allows different circuits for different input sizes of the problem. The authors refer to this as a nonuniform model of computation.
My question is: why do we need to use circuits... |
I need to create a HDL which will use logic gates to demonstrate if something is a negative number in two's complement. The input is 8 bits, while the output is 1 bit, and if the input is a negative number then the output should be true, and in any other case, the output should be false.
I've noticed that all the negat... |
I'm having issues using the pumping lemma to prove $L_2 = \{a^ib^j \mid i > j \}$ is non-regular. It's obvious to know that the language is non-regular as there is no way of tracking $a^{i's}$ and $b^{j's}$
So I've done some digging.
On page 2 here I found a proof. However, it doesn't make sense to me.
Here is the pr... |
So the question is to convert the following expression to postfix:
(a+b)^(p+q)^(r*s*t)
The answer I get when I calculate is: ab+pq+^rs*t*^
But the answer is given to be ab+pq+rs*t*^^
I assume that the step when you need to push second '^' into stack when there is already a '^' in the stack is where I went wrong (I pop... |
Let say we have a relation with 5 attributes {A, B, C, D, E}. Let say we have two candidate keys as A and B,C. Let us say we have a partial dependency as B -> E with regards to the candidate key B,C. The database designer decides that A will be the primary key of the relation. Now since we had B -> E, will it be called... |
I'm trying to prove, that the following statements are either true or false. Unfortunately, I'm having a hard time finding formal proofs for my answers. I hope you can help me out a bit.
Let $A,B$ be two subsets of $\{0,1\}^*$
If $A$ is regular pumpable and $B \subseteq A$, then B is regular pumpable too.
If $A$ not ... |
I want to minimize DNF formula which has ~200k products combined into a sum.
The depth of that formula is 2 - first level is the OR, and second level is AND for all conjunctions.
I have tried using the Espresso program to minimize it, but it only reduces the number of products from 200k to 50k. Espresso still retains t... |
Assume a regular language contains all the strings that are ended with "01". We can draw the following DFA for it:
And I reversed the DFA according to this answer (designing a DFA and the reverse of it)
I expected this DFA to accept all strings that start with "10" but it is not. What is my mistake in drawing the rev... |
Suppose $ R $ is a regular language, let $ f(R) = \{ w \mid \exists x \text{ such that } |x| = f(|w|) \land wx \in R\}$, prove that $ f(R) $ is regular for $ f(n) = 2^n $ and for $ f(n) = n^2$. I've been on this question for a while now, and I'm not really sure how to approach it. I only really know elementary techniqu... |
$S$ is a subset of the class of all recursively enumerable languages over some finite symbols then $S$ is recursively enumerable iff
If $L$ is in $S$ and $L'$ is a language such that $L ⊆ L'$ and $L'$ is recursively enumerable, then $L'$ is in $S$
If $L$ is an infinite language in $S$, then there exists at least one f... |
Assume a Forth-like environment with two stacks, a main one and an auxiliary one.
The following operations can be done on the main stack: DUP (duplicate the top element), SWAP (swap the top two elements), DROP (drop the top value), PUSH (move the top value to the auxiliary stack) and PULL (move the top value of the aux... |
I read somewhere that given two languages $A$ and $B$, if $A \le_{\log} B$, then $A \le_P B$ (with $\le_{\log}$ the log-space reduction and $\le_P$ the polynomial time reduction), but I'm not sure about the proof.
Could someone help me with that please.
|
I want to develop a genetic program that can solve generic problems like surviving in a computer game. Since this is for fun/education I do not want to use existing libraries.
I came up with the following idea:
The input is an array of $N$ integers. The genetic program consists of up to $N$ ASTs, each of which takes in... |
We have seen various languages proven to be outside of REG and CFL by corresponding pumping lemmas.
Has something similar been done for SAT?
|
How to prove that given convex sets A and B, the erosion of A by B will result in C - a convex set, too?
I was given this question as a test-preparation, and I think it shuold be a proof, but I don't know how to prove it.
A convex set is a set where every line connecting 2 dots in the set, must be part of the set, too.... |
CLRS gives the following implementation for a queue's enqueue and dequeue operations
head = 1
tail = 1
ENQUEUE(Q, x)
Q[Q.tail] = x
if Q.tail == Q.length
Q.tail = 1
else Q.tail = Q.tail + 1
DEQUEUE(Q)
x = Q[Q.head]
if Q.head == Q.length
Q.head = 1
else Q.head = Q.head + 1
return x
but I'm having trouble under... |
I understand that a 64-bit processor can hold a 64-bit long address and that a 64-bit address can represent $2^{64}$ different values. But I don't understand why that processor can address $2^{64}$ different locations in memory at one time and thus process billions of billions of GB at a time (theoretically).
I haven'... |
This is a HW question, so I'm not expecting any answers, just a general guidance/help.
Definition. Given $\underset{\neq0}{\underbrace{s}}\in\left\{ 0,1\right\} ^{n}$, a function $f:\left\{ 0,1\right\} ^{n}\to\left\{ 0,1\right\} ^{n}$ will be called s-difference-preserving if for all $x,y\in\left\{ 0,1\right\} ^{n}$ s... |
Consider the following CFG:
$S\to AED | F \\
A \to Aa | a\\
B \to Bb | b\\
C \to Cc | c\\
D \to Dd | d\\
E \to bEc | bc\\
F \to aFd | BC$
The CFG produces $a^*bbb...ccc...d^*$ (equal number of b,c) and $aaa...b^*c^*ddd...$ (equal number of a,d)
There is ambiguity since $abbccd$ can be derived respectively by $S\to A... |
I'm trying to create a formal algorithm in order to determine whether
two given regular expressions $a$, $a'$ define identical/equal or
unequal languages and if those languages are subsets of each other?
(I'm not sure if following thoughts are correct and formal enough and I'm glad if you spot mistakes and improv... |
I am working on the following problem-
"Finding the matching among all possible matching such that the sum of edge weight is minimum in the matching."
Please note that I like to search over all possible matching (that includes maximum matching and other matchings as well). As per my knowledge, Hungarian algorithm searc... |
I cannot seem to find a precise definition of what "super-exponential" is supposed to refer to when one's talking about an algorithm's time complexity.
For instance, if an algorithm runs for $nC(n-1)$ steps, where $C(\cdot)$ is the Catalan number, is this algorithm super-exponential in $n$?
|
I am watching this video (https://www.youtube.com/watch?v=aZjYr87r1b8) and up to the ~6 minute mark, he explains the disk structure and how when you want to read a block, the spinner spins to the correct sector and the arm to the correct track. How do the spinner know where the correct sector is? How does the arm know ... |
So this was an interview question I had a few weeks back that I just haven't been able to think of how to solve...
Given a random number generator that returns 0 or 1 with a 50% chance of either, describe how you would implement a function that returns 1 with a probability $p$ and 0 with a probability $1-p$
So you c... |
I understand intuitively why the pumping lemma for regular languages must hold. That is to recognize a infinite string with a finite amount of states you must repeat states and you can "pump" those repeated states as many times as you wish.
However for the context free language version I can't seem to come up with the... |
Given an undirected graph $G(V,E)$, our problem asks whether $G$ contains $2$ simple cycles which differ by $1$ in length.
What is the complexity of this problem?
|
It should be obvious that a Turing machine is capable of computing the sum of two integers. However, what is the simplest automaton that can compute the sum of two integers of arbitrary length?
I have a proof scratch that the automaton in question should be no more complex than a non-deterministic PDA:
Let addition be ... |
I came across this question while studying for an exam:
T/F: Suppose we can show for some fixed $k$, an NP-complete problem P has a time $O(n^k)$ algorithm. Then every problem in NP has a $O(n^k)$ time algorithm.
I think the answer is false, since we can't reduce NP-complete to NP-hard in linear time, right? Or am I ... |
The title was difficult to formulate (I am open to suggestions). Two things bug me about this:
"is almost any" is imprecise, which goes against Volume 1's statement on definiteness.
When he writes, "in other words", this means Prof. Knuth explained it to me in two ways and I still do not understand it.
What is going ... |
If so, what are the similarities and differences between the two? I’ve only worked with properties while programming.
|
Let
\begin{align*}
&P=2^{\log_2 N}\\
&\Rightarrow \log_2 P = \log_2 N\\
&\Rightarrow P=N\\
&\Rightarrow 2^{\log_2 N}=N\,.
\end{align*}
I don't understand how can you just drop the logs and go straight to $P = N$. Can someone please explain this to me? Am I missing a log rule?
|
How could you prove:
An edge (u,v) is part of an undirected graph G. If post(u) $<$ post(v) (i.e. the post number of u is smaller than that of v) then it implies that v is an ancestor of u in the DFS tree.
So far I have understood that it does in fact imply that so I need to prove this. I have thought of doing it by ... |
I have a simple question. In signal encoding we have B8ZS (Bipolar with 8 zeros substitutions) technique which encodes every 8 sequencial 0 bits with 000+-0-+ or 000-+0-+ depends on previous voltage level. Can we do this with 7 seven bits like 0+-+0-+- and 0-+-0+-+ in order to decrease number of 0s and to prevent from ... |
Flynn's taxonomy contains three interesting computer architectures: SISD, SIMD, MIMD.
For the SISD architecture, we have RAM computational model that simulate real SISD systems very well;
For the MIMD architecture, there is PRAM computation model that is capable to highlight main benefits of the parallel processing u... |
So I watched a couple of videos regarding this and the divide and conquer made sense to me. But I am still not convinced as to how recursing on the side with the larger number guarantees us the solution.
Please can someone explain it Mathematically.
|
What is the first problem that was demonstrated to be NP-Complete?
|
In this link https://techdifferences.com/difference-between-bubble-sort-and-selection-sort.html it says that the best case of bubble sort is order of n due to the fact that there would be only comparisons and no swaps in the inner loop.
But is that correct? Are comparisons not counted in the complexity ? Only swaps?
... |
I have got a confusion in PCA:
Is the concept of weight same as Eigenvalues as discussed in the research paper Eigenfaces for Recognition by Matthew Turk and Alex Pentland:
efficient way to learn and recognize faces would be to build up the characteristic features by experience over time and recognize particular face... |
There's a famous question posted on this site which asks about finding the $k$th largest element. Many answers are written there which optimized it and found algorithms with expectation of $O(n)$.
The thing I don't understand is.... Those algorithms wouldn't work if $k$ is dependent on $N$. Therefore $k$ must be a co... |
Shapes
Let $C$ be the unit hypercube in $\mathbb{R}^{n}$.
Let $\vec{o}$ be a point in $\mathbb{R}^{n}$.
Let $B$ be a $n \times m$ matrix. The columns of $B$ are a set of linearly independent vectors in $\mathbb{R}^{n}$.
$m \le n$
$n$ is about 15 to 20.
Let $O$ be a $m$ dimensional coordinate with columns of $B$ as axe... |
Having the alphabet $\{a, b\}$, how can I generate a regular expression for the language that does not have substring of three or more consecutive same symbol?
For example, I can't have ${baaab}$ nor ${abbba}$, but I can have ${abbaabba}$.
|
I've constructed an algorithm on (rooted) binary trees, where the running time at a node depends on the size of its smaller subtree, where we compute from each leaf upwards towards the root.
More specifically, at each node, a constant amount of time is required for each node in the smallest of its 2 subtrees.
The runni... |
Let's say I have a program P, in form of a binary code for x86 architecture.
I want to find a Boolean formula F (in form of CNF, or something like that), such that
F(input,output) = true iff P(input) = output
So to answer a question "what output does the program produce on given input" I will only need to run a SAT/... |
I was reading a paper about a transposition and single deletion error correcting code and they claim that the redundancy of the code was only $\log(6n-3)$ bits.
But what does that means? I was trying to get that from the proof of that fact but what they proved instead was that
there exists a such (with the structure... |
I am studying PCA. I have a problem in understanding the following concept:
What is meant by transforming "correlated attributes into a set of values of uncorrelated attributes" in Principal Component Analysis?
Principal Component Analysis (PCA) is a mathematical procedure that uses an orthogonal transformation to con... |
My question concerns link/cut tree structure after an access operation. I am assuming an implementation with splay trees. As far as I can tell, once you access a node v and splay it to the root, it no longer has a preferred child and therefore no longer has a right sub-tree. Furthermore, you move this tree up to the ro... |
I'm trying to understand this paper on computer vision (http://persci.mit.edu/pub_pdfs/elements91.pdf) and it talks about building a periodic table of things we can get from the plenoptic function. It says that by taking the partial derivative of it with respect to x you can get "vertical
"edge"" but I have no idea wha... |
So I am working on a question that requires me to find the linear address.
Here's some information:
Main memory size is 8GB, which translates to $2^{3} * 2^{30} = 2^{33}$.
Block size is 16KB each, which translates to $2^{4} * 2^{10} = 2^{14}$.
I was then required to find:
(i) The number of blocks in main memory:
$2^... |
Please let know if this is not the correct forum to ask this question. If not can anyone please tell where can I ask this question?
I am trying to understand the difference between the paper :
https://pdfs.semanticscholar.org/59ee/e096b49d66f39891eb88a6c84cc89acba12d.pdf
and the paper http://users.cecs.anu.edu.au/~will... |
Let $G$ be an arbitrary graph with $n$ vertices and we want to find a simple cycle with $\log n$ length. Is there exists a known polynomial algorithm for this problem?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.