instruction stringlengths 35 29.1k |
|---|
For A,B that are not decidable, does AB U BA not necessarily decidable?
I think that the answer is NO. Not necessarily.
I thought about the following example, but it does not refute exactly:
If we take A and A complement, and without losing generality the empty word is in A, than every word in A' is also in AA' U A'A, ... |
In the Figure 24.13 of Data Communications and Networking, 5/e the first ACK message from the server holds y-1 in it's Sequence no. field. Note that the first FIN message from the client message had y in it's Acknowledgement no. field. So shouldn't the first ACK message from the server be holding y in it's Sequence no... |
I cannot see whether the implication in my question title holds. To me, it sounds reasonable to assume that, but I cannot find any source stating that this is true, false, or unknown at the moment.
So, does $\mathcal{P}\neq\mathcal{NP}$ imply $\mathcal{NP}\neq\mathcal{NP}^{\mathcal{NP}}$?
|
Given a Binary Search Tree and two elements $e1$ and $e2$ which are in the tree, find the length of the shorted path between them. Give the representation of the Binary Search Tree(use a linked representation with dynamic allocation without an attribute for parent or height). Implement the required operation and specif... |
Let's consider an undirected graph with two special vertices: start and finish. The graph is relatively sparse. The edge count is expected to be three times or four times higher than the vertex count.
I am looking for an algorithm that decides whether there exists some path between start and finish and if it is unique.... |
The problem is that you want to travel from the top left corner of a grid to the bottom right corner (You are initially at the top left corner). Now, there are some walls in some cells, and you have a magic wand which you can use $k$ times to destroy a wall. How do we find the shortest path from the top left corner to ... |
I'm struggling to understand one part from the book "Cracking the coding interview".
The author states inserting an element in a dynamic array is $O(1)$ most of the time, except when the array is full and we have to reallocate.
Inserting $X$ elements take $O(2X)$ (because $\frac{X}{1} + \frac{X}{2} + \frac{x}{4} + \ldo... |
While proving the correctness of the Bellman-Ford algorithm, we prove the following lemma:
After k (k >= 0) iterations of relaxations, for any node
u that has at least one path from s (the start node) to u with at most k edges, the distance of from s to u is the smallest length of a path
from s to u that contains ... |
(Practice exam question in computational models)
Definition: A word $w\in \{0,1\}^*$ is called balanced if it contains the same number of $0$s as $1$s.
Let $L = \{w\in \{0,1\}^*\mid |w|$ is even and the first half of $w$ is unbalanced$\}$. Determine whether or not $L$ is context-free and prove your answer. You may do s... |
I want to stress that i am not looking for a proof of this question, but rather if someone(that is familiar with the proof and it's context) can explain to me what the symbol 'e' means in the context.
the letter 'e' first appears in line 6:S $\rightarrow $e...
This is crucial for me, because i am not able to deduct fr... |
My professor taught us that channel capacity of AWGN channel is infinite without any input power constraints. The noise is $Z \sim \mathcal{N}(0,\sigma^2) $. There is no constraint on input signal. I don't understand how the professor can directly say the channel capacity is infinite. Don't we need to maximize mutual i... |
I know that Median of medians itself is $O(n)$.
With a good pivot, QuickSelect is $O(n)$, too -- but with a bad one, it's $O(n^2)$.
But if I now were to use the element gotten through median of medians as the pivot for QuickSelect, what would the new worst-case runtime of QuickSelect be? Would it be $O(n)$ guaranteed t... |
I'm working on an optimization algorithm that I think could be considered machine learning, but I'm not sure. Basically I have a model that I want to optimize by adjusting its parameters. I don't have any target data to compare the output of my model to, so I don't know the loss factor. However, I'm able to generate... |
I have $m$ equations of the following form:
$$x_1+x_2+\cdots+x_n=s,$$
where each variable is either 1 or 0, and the total number of variables is $m\approx3{,}000$. So I’m thinking of modeling each variable as a binary variable and each equation as a CNF formula so that, once I combine all formulas into one CNF, I can s... |
Consider a TCMP system with, say, a 4x4 mesh Network on Chip (NoC) where each tile has a superscalar processor. It is given that that the TCMP uses 64-bit words and the inter-router link bandwidth is 128 bits. So, the size of each flit passing through this network would be equal to 64 bits or 128 bits? I know that flit... |
Special Turing Machine is defined just like standard Turing Machine, only that each step is made according to the content of the tape starting from the left edge to the head position in tape.
(The transition function in this case belongs to Q X Γ* -> Q X Γ X {L,R})
Which of the following is true:
A. Every language L ha... |
Let a changing TM be a TM which is not able to write the same symbol which is being read.
Formal: $M^*=(Q,\Sigma,\Gamma,\delta,q_{accept},q_{reject})$,$\delta(q,a)=(q^*,a^*,c),a \neq a^*$ with $q,q^* \in Q, a,a^* \in \Gamma, c \in \{R,L\}$ .
Now I need to proof that a changing TM is equivalent to a normal TM.
My g... |
I have the following question:
Given graph $G=(V,E)$ with given order on its vertices, I mean $v_1<v_2<...<v_n$ I need to find minimal colors ordered paining of the graph vertices s.t neighbor vertices don't have the same color, I mean:
$(v_1,v_2,...,v_j)$ - painted in fist color and non of them are neighbors.
$(v_{j+1... |
I think I can't understand the meaning of language being decidable.
The next case makes no sense to me:
Considering I have language L1 which is regular, and language L2 which is in RE\R (in particular, it cannot be decided).
The right-division of any regular language with some language is regular, and in particular in... |
Given these in-order traversal lists:
1. 53, 1, 64, 23, 3, 29, 17, 2, 9, 19
2. 49, 32, 51, 71, 32, 10, 21, 8, 13, 11, 41, 17
I need to determine whether each one of those lists represent a valid BST / min or max heap, or none.
I was trying to figure how to approach this, but besides brute-forcing every possible option... |
In s-grammar all productions are in form of A → , A∈V , a∈T , ∈V*
"... and any pair (A, a) occurs at most once in P." [P. Linz, 6th ed. , p. 144]
s-grammar is Unambiguous and i think (not sure) we can describe all Unambiguous-CFL by s-grammar. I want to know can s-grammar describe all possible DCFL or not ? accordi... |
The task is to create a PDA for this language. The |u| a reffers to the number of a's in that word. I have tried working on it as two separate languages that I can later combine, but I fail to even do any of the two.
I would appreciate any help.
|
Is the travelling salesman problem (TSP) $FNP$-complete or is it $FP^{NP}$-complete?
|
In the Theory of Computation tutorial offered by Complexity Tree (I just began the 2nd video), it talks about how the Halting problem was developed to show that mathematics could not be automated. Lately, I've heard quite a bit about automated/automatic theorem proving--some people are even positing that some day math... |
Important note
I know that this question may seem too simple for you scientists; however, here is the best place that I know to post it.
Question
Suppose we have an int with all bits being 0, except for the last which is 11101000. How does my computer understand to return its two's complement i.e. -24 as value and not ... |
I'm interested to visualize how a simple quantum computation can be done, step by step. Can you help me?
I need any simple example of how qubits can be used to make a computation.
|
Given an undirected graph, We need to convert it into a connected graph by adding/removing the edges keeping the summation of absolute difference of change in degree of nodes minimum.
There can be multiple edges.
Formally, we need to minimize: $$\sum_{i = 1}^{i = n} |d_i - e_i|$$
Where, $e_i$ is the new degree of nod... |
I would like to design an algorithm to pack closed paths into a rectangle. An example of one of these paths is below:
The rectangle will have a fixed width, but the height will expand to accommodate the paths.
A Simple Approach I Already Tried:
Calculate the smallest rectangle that inscribes the path. (Results were lat... |
Suppose I have an array of n values I want to apply nested for-loops over to an arbitrary depth m.
const array = [1, 2, 3];
// 2-depth for-loop
for (const i of array) {
for (const j of array) {
// do the thing
}
}
// 3-depth for-loop
for (const i of array) {
for (const j of array) {
for (const k of arra... |
I'm learning the dynamic programming approach to solve the coins change problem, I don't understand the substitution part
Given: amount=9, coins = [6,5,1],
the instructor simplified it with this function:
minCoins = min {(9-6)+1 , (9-5)+1, (9-1) +1} = min{4, 5, 9} = 4
I don't understand the logic of this min method: w... |
It seems to me that Unicode is the "final" character encoding. I cannot imagine anything else replacing it at this point. I'm frankly confused about why UTF-16 and UTF-32 etc. exist at all, not to mention all the non-Unicode character encodings (unless for legacy purposes).
In my system, I've hardcoded UTF-8 as the one... |
for $L1$ regular language, $L2$ some language, $L1$ \ $L2$ is regular, decidable. yet, the next transition function might not even be computable:
$F′=${$\,q:δ(q,w)∈F \, for\, some\, w∈ L2\,$}$.$
$F$ is the accepting states group of DFA accepting $L1$.
$F'$ is the accepting states group of DFA accepting $L1$ \ $L2$
$HAL... |
I would like to know what is the VC dimension of the following hypothesis class.
$$H=\left\{f_{\theta_{1}, \theta_{2}}: R^{2} \rightarrow\{0,1\} \mid 0<\theta_{1}<\theta_{2}\right\}$$
where $f_{\theta_{1}, \theta_{2}}(x, y)=1$ if $\theta_{1} x \leqslant y \leqslant \theta_{2} x,$ else $f_{\theta_{1}, \theta_{2}}(x, y)=... |
I'm working through the "Properties of Relations" chapter of Software Foundations, but have got stuck on one of the exercises, lt_trans'':
Theorem lt_trans'' :
transitive lt.
Proof.
unfold lt. unfold transitive.
intros n m o Hnm Hmo.
induction o as [| o'].
(* FILL IN HERE *) Admitted.
The base case for the i... |
I recently came across the iterated algorithm function denoted as $\lg^* n$.
But I am having a hard time understanding this statement:
$\lg^* n = \min \{i \ge 0: \lg^{(i)} n ≤ 1\}$
I could not understand what $\min$ set is used to signify.
Also, could someone please provide an example of how this works.
I also came ac... |
How many binomial trees are in a binomial heap with 27 elements and how would you find this number?
|
Consider the following problem:
Let $A = \{a_1,...,a_n\}$ and $B = \{b_1,...,b_m\}$ be
two finite sets over $\mathbb{N}$. The sequences $a_1,...,a_n$ and $b_1,...,b_m$ do not have to be sorted.
Given as inputs the strings $a_1,...,a_n$ and $b_1,...,b_m$, determine if $A \subseteq B$.
What is the time complexity o... |
I've been reading a book about turing machines and it has a challenge about a building a Turing Machine that has as many 0s as many 1s but that can appear in any order.
I don't understand how do you set the reading to the beginning and then make a transition to the beginning.
But it deals with only 0s that shows up be... |
I was given the following problem to solve:
Consider a system that has 128 compute units of the same type. Suppose that a program runs for 1025 time units on a single compute unit. The total amount of serial work for this program is 1 time unit. Compute the maximum speedup achievable for the given system.
I am confused... |
What complexity class results would be implied by a proof of the existence of one way functions. (Apart from the obvious $P \neq NP$)
I thik it would imply $P \neq UP$, but what else?
|
Arr is an array that contains $ n$ numbers.
Suggest the most efficient algorithm for each case and analyze the runtime.
Explain why the algorithm you chose is the best one.
Arr contains exactly $\frac{n}{5}$ distinct values.
Arr contains integers in the range $[0, … , ^7 − 1]$.
There are exactly ( − √) integers in... |
I've been searching a few hours for a proof to Max independent set in planar graphs beeing in PTAS but I couldn't find anything, I'm searching for one without any reductions and I wonder if anyone here can help me find one.
Thanks in advance.
|
I think that the next language is not decidable but I can't think of reduction to show it.
I would appreciate some hint or intuition
$EQ = $ { $<M1,M2>$ |$ M1\,\,\, and\,\,\, M2 \,\,\, are\,\,\, TMs\,\,\, and\,\,\, |\,L(M1)\,∩\,L(M2)\,|\, $$= 2020\, $}
|
I recently learned that regex support backreference which enables referring to a matched group in the pattern itself. E.g. a regex (.)\1{2,} matches two or more consecutive appearances of the same character like 'aa', '...', '------', etc. However, such feature seems exceeds the capability of finite state machine which... |
I'm given a (not necessarily binary) tree. Now every node can have a signal with range $i$, reaching all nodes being at most $i$ edges away. The cost of a signal is determined by a function $f(n, i)$ with $n$ being a node and $i$ being the signal strenght. The cost for each node may vary, the only assumption one can ma... |
As we all know, in offline problems it is common practice to calculate the integrality gap to get some bound on the approximation ratio of the integral solution.
Now this gap ($IG:=\frac{OPT_{frac}}{OPT_{int}}$) relies on the fact that we can compute the fractional optimum by just solving the relaxed linear program of ... |
Say, I have a database table with $N$ columns. What is the (theoretical) maximum number of indices I can create on that table? For $N = 1,2,3$ it's easy enough to calculate the answer $(1, 4, 15)$, but is there any formula? Also, is there a "name" for this number?
|
I'm having a hard time wrapping my head around the proofs Lemma 11 and Lemma 10 (Pages 10 and 11) in this paper called: Preemptive and Non-Preemptive Real-Time UniProcessor Scheduling.
Generally the proofs have very few steps in between and I can't seem to understand how the author continues from one step to another. ... |
I am looking for an efficient algorithm to compute $$f(x) = x^a, x\in[0, 1] \land a\,\text{constant}$$
If it helps, $a$ is either $2.2$, or $1/2.2$. Knowing valid values for $x$ and $a$ could make it possible to take some shortcuts a general pow function cannot make.
General tailor series expansion has some serious con... |
Almost every time I see an article about time or space complexity, people are expressing the complexity with Big O, whereas it should be $\Theta$.
From the book "Cracking the coding interview":
"In industry (and therefore in interviews), people seem to have merge Θ
and
together. Industry's meaning of big O is ... |
I get that complexity theory will be helpful to decide whether the resources at hand can deal with a mathematical function, but when presented with a non-purely mathematical problem - like building a robot that can cook, drive or make beds - how can we know whether it's feasible?
|
Can we proof the number of NFSTs with $n$ states : $n.2^{mpn}.2^{n}$ where $p$ is the cardinal of input alphabet and $m$ the cardinal of output alphabet.
|
I'm trying to solve the following exercise:
Given N data items and memory that can hold M/B blocks of size B.
Describe a data structure that needs at most N/B blocks of external memory and allows us to answer questions of the form "$s \in S$?" using $\log_BN$ I/O operations.
We may assume a static set, i.e. we do n... |
If a given time complexity, such as these:
$(n + \log n) * \sqrt{n+\log n}$
$n * (200 + \log^2 n)$
$(7+n^3)\log(n^5)$
is not determinable by just looking at it whether is it in class $O(n^2)$ or not, how do I decide? If a time complexity is given, and in it there are more types of expressions (exponential, logarithmi... |
I am interested to know what is the fastest algorithm (complexity wise) known to us to solve the following linear program. Due to its simplicity, I hope for a very fast algorithm. Your help is greatly appreciated and I would appreciate you providing me with relevant papers as well.
Context: I am trying to give an algor... |
When can we say that a Monte Carlo algorithm solves a problem?
To quote from Wikipedia on Monte Carlo algorithms
For instance, the Solovay–Strassen primality test is used to determine whether a given number is a prime number. It always answers true for prime number inputs; for composite inputs, it answers false with p... |
I am citing the definition of the Hitting Set Problem from (Gardy & Johnson, 1979):
INSTANCE: Collection $C$ of subsets of a set $S$, a positive integer $K$.
QUESTION: Does $S$ contains a hitting set for $C$ of size $K$ or less, that is, a subset $S' \subseteq S$ with $|S'| \leq k$ and such that $S'$ contains at least... |
Introduction to computer science Level 109
I don’t understand the question
|
My question is whether a specific decision problem—finding a computation path through a "leapfrog automaton"—is in P or not. It's straightforwardly in NP, and it resembles the hamiltonian path problem in some respects, but it also seems a little easier and I haven't been able to find a reduction.
Definition. A leapfr... |
Can anyone help me understand why the Ford-Fulkerson algorithm does not work in the case of irrational capacities?
|
So the way I understand it, if station A and station B, for example, try to transmit a frame at the same slot, a collision occurs, leading to an attempt at the next slot. But wouldn't the algorithm just repeat itself? The same two stations would try again on the second slot and it would still cause a collision. Also, i... |
How would you write a method to change the value of a min heap where bool changeKey(int oldKey, int newKey). The keys are unique, no duplicate keys are permitted. If there is a key in the heap with value oldKey, and no existing entry with key newKey, it will change it to newKey, keeping the the heap properties and retu... |
You have two arrays, a and b
Both contain n elements, all positive and distinct.
you have to create a pair, by taking one number from each array, such that the sum of the differences of the pairs are minimized.
for example, a = [1, 2, 3], b = [4, 5, 6]
one possible set of pairs = (1, 4), (2, 5), (3, 6)
sum of differen... |
Every introductory CompSci resource I can find goes through how 8 bits are in a byte, etc. So a byte can store some 2^8 values in binary. Then when asking about four bytes, we can assume this is (2^8)^4=2^32.
But I can't find anywhere if this pattern holds up until the total amount of hard drive or memory storage. For ... |
In the book 'Computational Complexity' by Arora and Barak the following question is posed (exercise 2.20.):
Let REALQUADEQ be the language of all satisfiable sets of quadratic equations over real variables. Show that REALQUADEQ is NP-complete.
I know how to show NP-hardness, but I'm stuck when it comes to proving tha... |
I fail to find much about how to efficiently calculate whether a propositional formula entails another.
Considering the following two points...
We can check, for each truth assignment which makes the first formula true, whether it also makes the second true. If all of them do, the first entails the second. It works fo... |
I have to prove that the function $f\colon \mathbb N × \mathbb N \to \mathbb N$ defined by $f(x, y) = x + y$ and $|x| = |y|$ isn't a one-way function. How do I go around doing that?
|
The function:
for (int i=1; i<n²; i++)
for (int j=i; j<n; j++)
print(j)
Putting it into a relation, I got:
$C1 + \sum_{i=1}^{n^2}(C2+\sum_{j=i}^n(C3))$
After solving it
$C1+C2n^2+C3n^3-(C3\frac{n^4}2 + C3\frac{n^2}2)+C3n^2$
What I can't figure out is the complexity of this relation.
Solution (... |
I can't seem to find an answer to this. For instance, I have this question:
Show that, if $P=NP$, there aren't any pseudo-random generators (even with amplification factor $n+1$).
My gut tells me this is because, in a world where $P=NP$, pretty much any process can be efficiently inverted so there aren't one-way functi... |
I'm trying to learn Computational Geometry and this formula isn't obvious to me.
Hint: cross is related to the cross product of two vectors.
# Returns intersection of infinite lines ab and pq (or undefined)
point intersect(point a, point b, point p, point q):
d1 = cross(p - a, b - a)
d2 = cross(q - a, b - a)
... |
Just like the title says. I want to prove that given two languages $L_1,L_2 \in BPP$, $L_1 \cup L_2 \in BPP$ and $L_1 \cap L_2 \in BPP$
|
Like the title says. I can't figure out how to prove this.
I think it probably has to do with the polynomial hierarchy collapsing but I'm not sure.
|
Suppose I have an edge-weighted connected rooted DAG $G = (V, E, r \in V, w \in E \to \mathbb{Z})$ where there exists a sequence of nonempty sets (called "levels") $L_0 = \{r\}, L_1 \subset V, \ldots, L_n \subset V$ such that $L_0 \cup \ldots \cup L_n = V$ and the outgoing edges of the nodes in $L_i$ only connect to no... |
I have a hard time understanding how to convert the following context free grammar to Chomsky Normal Form:
S $\rightarrow$ aSX | B
B $\rightarrow$ bBX | ε
X $\rightarrow$ a | b
I have a solution
S $\rightarrow$ EY | EZ | FY | FZ | ε
E $\rightarrow$ YS
F $\rightarrow$ ZB
Y $\rightarrow$ a
Z $\rightarrow$ b
that does not... |
I am fairly new to algorithms and I am dealing with a problem I cannot fully translate into mathematical language.
So, I am given the array [1,1] and I can only perform one sum between their numbers per step, ie you can only pick between:
[x(s+1), y(s+1)]=[x(s)+y(s),y(s)]
or
[x(s+1),y(s+1)]=[x(s), x(s)+y(s)]
but not ... |
Let M a finite state transducer define as : $M=<X,Y,S,\delta,\lambda>$
What we mean by quasi-linear finite automata?
|
Is it true that $2 S A T \subseteq S A T ?$ and in general is $k S A T \subseteq S A T $ where k is any positive integer is true?
Thanks.
|
Consider a MAC protocol (ALOHA, CSMA, TDMA, etc.) that, even for very high loads, always results in a throughput of 1 (normalized with respect to the channel speed).
Why is that not good if the throughput is equal to 1?
|
The 3D-matching problem is known to be NP-complete even if all elements occur at most three times (see Garey&Johnson). My question: Is it also NP-complete if all elements occur in exactly three triples?
The 3D-matching is defined as follows: Let $W, X, Y$ be disjoint sets with $|W|=|X|=|Y| = q$. Let $M \subset W \times... |
Assume generating means that for all $k$ there exists $N_k$ such that after $N_k$ steps the $k$th cell on the tape consists of the $k$th digit of $\pi$'s binary expansion and will stay there forever.
Can such a machine exist? can it not?
EDIT
Is this true for every irrational number?
So this is true for $\pi$ since the... |
We are given a Boolean circuit $C(x_1, \dots, x_n,y_1, \dots, y_n)$ with $2n$ inputs and we have to determine if the graph $G_C = (V_C, E_C)$ (specified below) is connected:
$$V_C = \{0,1\}^n, \\ E_C = \{((a_1, \dots, a_n), (b_1, \dots, b_n)) : C(a_1, \dots, a_n,b_1, \dots,b_n) = 1\}.$$
To which class this problem belo... |
Just like the title states.
If I have a pseudo-random generator $g\colon \Sigma^n \rightarrow \Sigma^{2n}$ and a one-way function $f$, is $g'(x)=f(g(x))$ a pseudo-random generator? And why?
My instinct tells me it is, but I can't really explain why.
|
Let $G = (V,E)$ be any undirected graph. Let $k$ be some number and $C = |u \longrightarrow v|$ where $u \longrightarrow v$ means there is a path from $u$ to $v$. We want to add $k \subseteq V \times V\ E$ edges into $G$ such that $C$ is maximised in the new graph.
Question : What is the fastest algorithm for this prob... |
I have to prepare 30 minutes of oral examen about the subject called parsing. Where I have to talk about it. And then I shall hand in like 30 pages (including code and figures etc).
I don't know how to structure it and what I can talk about. So what I really need is a disposition! What I have thought about this far:
L... |
In Fiesler (1994) Neural Network Classification and Formalization, he talks a lot about a more general version of neural networks, one that is not ordered into layers, but rather the network is called slabbed and the "layers" are instead called clusters. Unlike for feed-forward networks, slabbed networks may be cyclica... |
Is there a way to enumerate, by size (the size of a pair is ||+|| but if the enumerator represents them in some different way than simply concatenating them (like via some different encoding) then we are just talking about the size || of the string in the enumeration that encodes the pair (,)), from biggest to smalles... |
I'm confused about the point of adaptive arithmetic coding.
I understand that static arithmetic coding involves using preset probabilities of symbols that remain static during the whole process. I also understand that adaptive arithmetic coding involves change all probabilities after each symbol encountered.
However, w... |
Can an $NDTM$ perform a set of operations on all strings of a given length $b$, at the same time? Aka can it operate on all strings of a given length by doing something like: spawn $2^b$ branches then operate on each string of length b on each branch?
How could it do this tho if the branches can't communicate? That's w... |
Under section 5.4 Quality of Service on page 404:
Multimedia applications in particular, often need a minimum throughput and maximum latency to work.
Isn't this statement incorrect? Shouldn't it be :
Multimedia applications in particular, often need a maximum throughput and minimum latency to work.
|
I am studying the computational complexity of the following decision problem related to 2QBF:
Input: a 3-CNF formula $\varphi$ over $X \cup Y$, where $X$, $Y$ are disjoint sets of propositional variables, and an integer $k \geq 0$.
Question: does there exists an assignment of the variables from $X$ such that all assig... |
Here is an excerpt from Andrew S. Tanenbaum, Computer Networks, 5th edition, Chapter 5 (The Network layer), Page 455:
My question is on the second paragraph. From what I understand, basically this part talks disadvantage of using NAT(Network Address Translation). I don't understand what second paragraph is trying to s... |
I've come across the following problem on leetcode & tried to solve it with the following code however there seems to be an even better solution that takes advantage of XOR. Leetcode has a description for XOR solution however I can't grasp it in its entirety.
I just can't wrap my head around why we need to initialize m... |
I have an if-then-else condition with three binary variables A, B and C:
if A + B = 1 then C = 0
How do I express this as an integer linear program with equality constraints?
|
I recently attented to some computational complexity talks (or complexity theory, I am not sure which is the correct name) and I fell in love with it. I would like to find some books, online courses... in general resources of any kind to self-study this (securely) wonderfull subject.
My backgrund is pure mathematics wi... |
For a kernel function, we have two conditions one is that it should be symmetric which is easy to understand intuitively because dot products are symmetric as well and our kernel should also follow this. The other condition is given below
There exists a map $φ:R^d→H$ called kernel feature map into some high dimensional... |
Any idea is appreciated. A generic approach that works for any system would be best but if you want more info about what I'm looking for, the equations are usually short (having few variables, from 1 to 4 at most), but in exchange, there are a lot of equations (30-60).
The system is known to always have these propertie... |
I have a problem understanding the difference between complexity of enumeration and counting. We can solve every counting problem using enumeration algorithm.
Now, I have problem with the following. Let say that we have to count the number of positive integers less or equal than positive integer $N$. We know that the a... |
I have an idea of how to approach the problem, but I'm not sure about it.
Given a Turing Machine, I can check how many states the machine has, and somehow by the number of states to know if the run uses endless cells of the tape.
However, I am not sure how I can use the number of states and what I should check.
What co... |
In Quantum Information and Quantum Computation by Nielsen and Chuang, they define the complexity class NP as follows (page 142):
A language $L$ is in NP if there is a turing machine $M$ with the following properties.
If $x\in L$ then there exists a witness string $w$ such that $M$ halts in the state $q_Y$ ("yes state... |
I have two 2D arrays: $P[n][s]$ and $C[n][s]$, $s \leq n$.
P contains sets of nodes and $C$ the cost of a set in $P$, e.g. the cost of $P[2][2]$ is $C[2][2]$ and a set $p \in P = \{ s_0, s_1, ..., s_{n-1} \}^q, q \leq n$, e.g. $p=\{s_0, s_3\}$.
For every row I can pick at most one set but in the end the union of the pi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.