instruction
stringlengths
35
29.1k
What is the difference between absurd reasoning and contraposal reasoning? To show that a language is not regular
I would like to seek help on the complexity of the following problem. Given positive integers $m$, $n$ and $D$, find all sequences $0 \lt a_1 \lt a_2 \lt \dots \lt a_n$ are there such that: each $a_i\in\{1, \dots, m\}$ $\sum_{i=1}^n a_i = D$ I want to know the complexity with respect to $m$, $n$, $D$. To what exten...
I'm trying to prove $L = \{ w : w \neq w^R \}$ over $\Sigma = \{0,1\}$ is CFL. Define $G = ({S,T}, \Sigma, R, S)$ where $R = S \to 0S0|1S1|0T1|1T0, \; T \to 0T|1T|\varepsilon$. Now I want to show that $\mathcal{L}(G) = L$. One direction is fine, where given $w\in \mathcal{L}(G)$, it must've deduced using $S \to 1T0|0T1...
I've read many literature papers, but I still cannot understand their exact formalization definitions. Is their any difference among them or is there any relationship among them?
I’m asking this because, I’m thinking that it is possible to make a CD or ps vita cd to have an infinite space storage so that new updates will come. And, it is possible for the company Sony to make the new memory of ps vita to be infinite space storage? Can anyone tell me if it is possible for a company to do that? O...
When I went to London, I wondered how to visit all the London Underground stations as fast as possible. Given a randomly-chosen start station, timetable of train arriving & departing of every station, the time it takes to change from one to another line. Assuming that there is no Tube strike on that day, and train...
I've been having some fun with prime numbers. A few months ago I sat down to see if I could write something that could compete with Atkin Sieve and ended up with an algorithm that, on my local tests on my RAM-restricted computer provide results where my algorithm is either close to Atkin or it can be way faster (depend...
I'm looking at the Multiplicative Binary Search and come across this. It's the preparation you need to do for you to use the Multiplicative binary search procedure. I somehow do not know how to do number 1. Can you explain how? I thought it was getting like the formula for the binary search wherein the index = floor ...
Admittedly, homework. For the purpose of this question: $\phi$ is a DNF formula similar to this one: $(x_1 \wedge \neg x_3 \wedge x_4) \vee (\neg x_1 \wedge x_2)$ Also $C_i$ is a clause in this formula, for example $C_1=x_1\wedge \neg x_3\wedge x_4$ The tasks is to do this in a little bit more sophisticated way than to...
I'm reading Sedgewick & Wayne's Algorithms book, and one of the questions in one of the chapters is the following: Develop an implementation of Boruvka's algorithm that uses doubly-linked circular lists to represent MST subtrees so that subtrees can be merged and renamed in time bounded by E during each stage (and the...
I have an algorithm that: 1. takes in a book's text as a string. 2. splits that string into words and stores it in a list. 3. creates a hash table from this list by iterating over the elements of the list 4. It then iterates over a separate list of words to see if each of these words (in this separate list) is contain...
We know $P\subseteq PH\subseteq PSPACE\subseteq EXP\subseteq NEXP$. Is it known or believed that $\Delta_2^{exp}=EXP^{NP}\subseteq NEXP=\Sigma_1^{exp}$ and/or $EXP^{PH}\subseteq NEXP$? Does $NP=coNP\iff NEXP=coNEXP$ hold? Note $NEXP=coNEXP\implies \Delta_2^{exp}=\Sigma_1^{exp}$?
How would I start the recursive definition of the following language: L over {a, b} such that L consists of strings in which each occurrence of b is immediately preceded and followed by an a The 'and' part is causing me problems with this problem and I don't see a clean way to gurantee the occurence being preceeded a...
Let S be the set of total functions from $N \rightarrow M$, such that for each $f \in S$, there is $i > 1$ such that for all $j < i$, $f(i)$ and $f(j)$ are not equivalent Turing machines. Prove or disprove that S is countable I don't think this is actually countable, but I'm having a hard tie proving this using dia...
I am given a set $U = \{1, \cdots, n\}$ and a set of subsets $C_1, \cdots, C_k$ of $U$; here the sets are all the same size. The minimum set-cover problem of course is to find the minimum number of the $C_i$ such that their union is $U$. I'm looking at the "opposite" problem: I want to find the minimum-size subset $K$...
I can use the pumping lemma to prove simpler examples, but i'm finding this problem rather complex partly due to the notation. Can anyone explain how I would do this problem: For any string $s$ in $\{a, b\}^*$, let $n_a(s)$ be the number of a’s in s, and let $n_b(s)$ be the number of b’s in s. Let L over {a, b} be giv...
I am sorta confused and also could not find a answer online, but in terms of expressive power, . Non-deterministic FA, PDA, TM NFA < NPDA < NTM Deterministic FA,PDA,TM: This is where i am confused DFA < PDA < TM? In a whole: ? DFA = NFA = e-NFA = RE < DPDA < NPDA = NCFL = DCFL < NTM = DTM? Please correct me or am i...
In any dynamic programming problem can there exist more than one optimal state ? If so how would I enumerate all of them ? For example: in the subset sum problem for the given set $\{-3, -2, 7, 5\}$ and target sum $0$. There exists two ways of reaching $0$. ie. $\{\}$ = empty set as a sum of zero, or $\{-3, -2, 5\}$ = ...
In the polynomial hierarchy we have $\Sigma_2=NP^{NP}$ and $\Pi_2=co\Sigma_2$. So we have $\Pi_2=co(NP^{NP})$. Is it same as $(coNP)^{NP}$? I just wonder why not a hierarchy with $coNP$.
Title of the question pretty much summarises the question. Here is a concrete example of what I'm trying to achieve with no success. Let's say we have a sorted list (but sorted is not a requirement) L = [1,3,20,100,150,200,260] and K = 260. I need a function f(L,K) which given this list and K will return a list B = [[1...
Let $M$ be a Turing machine with oracle to $B$ that can decide $B$ in polynomial time. In the general case it means nothing, since we can just pass the input as a query to the oracle of $B$ and accept/reject according to its answer. Now, we add the next limitation: given an input of length $n$, the queries' length can ...
Let $f(n) = O(g(n))$. Then we know that $\log(f(n)=O(\log(g(n)))$. Is the converse of this statement also true? Does $\log(f(n))=O(\log(g(n)))$ imply $f(n)=O(g(n))$? Let's say $f(n)=n!\ g(n)=n^n$. Since $n!=O(n^n)\rightarrow \log n!=O(log n^n)$. This is true. Now suppose I don't know that $n!=O(n^n)$. But I know t...
I'm looking for best algorithms to compare two Circular Linked List? For example : List 1 = 1-3-5 List 2 = 3-5-1 I want to compare "same" or "not same" but need fast algorithm.
For decidable languages (or a particular subset of decidable languages, e.g., regular, context free) does closure under Kleene star follow from the proof of closure under union and concatenation? The only thing that the latter seems not able to produce is an empty string.
I have a large (~1k) number of boolean formulas like: f1(x) = p1 AND p2 f2(x) = (p1 AND p2) OR p3 f3(x) = p4 OR !p5 The argument x is a set, and the predicates (the p's) assert that a certain condition is met on the set (typically, that x contains a certain value). For every input, I have to evaluate all the formulas....
I've been trying for hours. I'm teaching myself automata theory right now and I have this DFA: And I'm trying to create a regex from it by removing q1 first and then q2. I already managed to remove q1 by doing it like this: But now I'm not sure how to continue. The next step I'm trying to do is remove q2 and then rea...
We know that the INDEPENDENT-SET problem is NP Complete i.e $\langle G',k'\rangle$ means graph $G'$ has an Independent set of size $k'$. I am preparing for the finals an a sample question is to prove TRIANGLE-FREE-SET to be NP Complete. $$TRIANGLE-FREE-SET:=\{\langle G,k\rangle| \text{$G$ has a subset of vertices of s...
This is similar to Is there such a thing as an "or" case in a dependency graph? I am trying to represent a dependency graph where the dependencies for an individual node may be a general boolean function of other nodes. For example, node A may be reachable from node B or node C. I can't see how to represent this with a...
Can we assume that each clause in 3SAT contains at least one positive literal? That is, there is no clause with all negative literals (but it is fine that there is a clause with all positive literals).
I wondered if there was a generalized name for typing a variable by assigning a specific value to it. For instance a = 4 This would make the variable a an integer, since 4 is an integer. Likewise b = 0.8 is b a float in this instance. Technically this is not dynamic typing (since there is only one defined type, i...
Let us consider a plain search algorithm (Dijkstra being one example) which will calculate the shortest path from A to B. Now introduce the additional constraint that the path must be as close as possible to a third point, C, without necessarily going through it (thus breaking down the route into an A–C and a C–B porti...
Lets assume a hashing algorithm that runs in polynomial time and produces a hash that is mathematically impossible to reverse. As far as I know, the $P=NP$ problem states that if they are indeed equal, then if an algorithm exists to verify a solution in polynomial time, then an algorithm exists to find a solution in po...
I need help with creating Deterministic pushdown automaton for language: L = {v1w | v, w ∈ {a, b, c}*, #a(v) = #c(w)} where the number "a" in the string v is the same as "c" in the w string. In the first state, I try to load the first string v. But I do not know how to control the same number of "a" and "c" characters...
Regarding Lamport's mutual exclusion... Where messages are exchanged in the following sequence between nodes S, G1, and G2. G1 and G2 are the members of the group. (for this, lets just assume that a1 is an acknowledgment of m1; a2 is an acknowledgment of m2) S sends m1 to G1 S sends m1 to G2 G2 sends a1 to S S sends m...
The set of lambda calculus expressions $Expr$ is generated by the grammar $$ Expr \ni e ::= x \mid \lambda x\ldotp e \mid e_1 e_2 $$ We can define an interpreter without explicit substitution by using environments and closures: $$ \begin{align*} Env &= Var \rightharpoonup Cl &\text{($\rightharpoonup$ is partial fu...
If k is the height of an AVL Tree, the minimal number of inner nodes is: N(k) = N(k-1) + N(k-2) +1. Why is this formula true?
T(n) = 2T(√n) + n. I tried putting n=2^m T(2^m) = 2T(2^(m/2)) + 2^m. If I subsitute T(2^m) = S(m) then, S(m) = 2S(m/2) + 2^m. This is same as (1*2^m) + (2*2^(m/2)) + (4*2^(m/4)) + ... Now I am stuck in this summation as it's not a GP. Can someone please help?
There is a preprint on arXiv that states (in my own words). If there are three numbers (digits) and task is to add all three numbers. First we well take two number to add, set aside third number. Then we will add third number in previous sum of two numbers. So, addition of three number requires two steps, because we ...
I am given a Turing machine M as input and i have to find out if this language below decidable and if not is it then in this case recursively enumerable . $$L=\\\{<M> \mid \text{ is there $w_1,w_2$ for M so that M for both halts but with different results }\}$$ Somehow i ended up finding that the language i...
Ideally, such an algorithm would not be a brute force one. Is there a clever way to do this?
I am given a task to prove using 3COLOR that Quadratic Programming is NP-hard. Does anyone have a clue on how this is meant to be done?
When I was reading Agda tutorial, I noticed resemblance between dependent type declarations and class definitions which I've been primarily used to work with. I'm not totally sure how much sense this questions makes, but what is the real practical difference between types and classes? Could we very well use object orie...
I've seen often stated that Lambda Calculus can be used for mathematical proofing but I haven't yet seen any example how it is actually used for the task. Is there a simple example, lambda abstraction or application that can be shown to be a valid mathematical proof? For example what does it take to make a Church numer...
Please excuse the soft question and please dont close it prematurely as too broad. When working on assignments that includes a wide range of topics from theoretical computer science (see tags), I often hit a wall that I cant seem to get over. When I see the solution it often involved some kind of 'trick' that you had ...
N.Wirth's book on compiler introduces the concept of symbol table and states that every declaration statement results in a new entry in symbol table. Then after showing how an entry in symbol table looks like he talks about types which can be specified anonymously like the following : $\ VAR a: ARRAY 10 OF INTEGER $...
I have been given an array of integers of size n and q queries which can be of 2 types: 1.Decrement all elements in the given range by some value 2.Find sum of all elements in the given range 1<=n,q<=10^5 I have tried brute force but it gives TLE Same goes for prefix sum and even segment trees which improve sum query b...
We define the following language: $$L = \{M \mid \text{$M$ is a TM and there exists an input $x$ on which $M$ halts in at most $|x|$ steps}\}.$$ Following this question I understand that $L$ is not decidable, but I know that it is recognizable, and therefore I'm looking for a reduction from the HALTING problem to $L$. ...
I have a problem in which I was given $n$ points and an integer $k$, and I need to find the $k$ points that are the closest to origin. My approach is to find the distances from origin of all points and sort them. Instead of using distances $\sqrt{x^2+y^2}$, can I use $|x|+|y|$ as my key? Also, I would like to find out ...
long story short: I want to list all possible combinations of n tiles on a 3x3 board with the restriction that at least 6 tiles are part of a connected chain. Tiles are connected if the pattern continues from one to the other and a tile can be repeated any number of times (see image below for clarification, I would lik...
Let us consider a product $P$ (whose factors we do not know). Given a base $b$, such that all the Modulus Residues are calculated using powers of $b$ w.r.t. $P$. For some (unknown) power $x$ we know the corresponding residue ($R_x$), i.e.: $b^x\bmod P = R_x$. Query 1: Without knowing (or calculating) the factorizatio...
If I have a statement int a=5, in which phase will symbol table be updated with value of a (which is 5) ? Different websites have different answers to it. In some of the websites it is written that assignment happens in syntax analysis phase and in others it is written that assignment happens in semantic analysis phase...
i just signed up here because im struggling very hard with a problem i gotta solve. What I wanna do is reducing an Instance of 3color to an instance of Quadprog to prove that quadprog is np-hard, and i have no idea how to do that. My first idea was to match every node to a varaible of quadprog, but i have no clue how t...
According to the selected answer on this question NP-hard problems do NOT have to be decision problem. But by definition all NP-hard problems can be karp-reduced from any NP-problem in polynomial time; thus, implying that the answer from the reduction must be the same as the NP-problem which is yes/no => decision probl...
I was reading this answer on how error-correction works on magnetic tape recorders for the Voyager space probes. After watching one or two youtube videos I understand the principle of Hamming-coding and that some sort of this is probably used in encoding the Voyager data. Also it is known that simple Hamming-encoding c...
I am writing a function that can be split into cases (1)$f(x) \leq f(y)$ and $f(x) \geq f(y)$ or into cases (2)$f(x) < f(y), f(x) = f(y), f(x) > f(y)$ If I have f(x) = f(y), it is theoretically more efficient to use the cases outlined in (2), but is it actually more efficient in practice? My concerns are that if $f(x)...
Every red-black tree implementation I've come across use a strategy that considers re-balancing the tree after each mutation (e.g. insert, delete, ...). I have a situation where I graft several sub-trees from one red-black tree onto another. After these grafts I would like to consider re-balancing the resulting tree. A...
From $P\subseteq \oplus P \subseteq PSPACE$ and $P\subseteq PP \subseteq PSPACE$ we infer $\oplus P\neq PP$ gives that $$P\neq PSPACE.$$ Are there any other consequences?
https://www.iarcs.org.in/inoi/online-study-material/topics/dp-tiling.php The second question in the above link requires us to fill an 2xN grid with tiles of dimension 2x1 and an L shaped tile. Question 1) In the recursive formula for g(n): g(n) = f(n-1) + h(n-1) Why didn't we include the case that we can also put a 2x1...
In describing the tokens of a programming language using regular expressions, it is not necessary to have the $\epsilon$, (for the empty set) or t (for the empty string). Why is this? Please tell me why is it not necessary thanks
The question: I want to buy $n$ books. In the book store there's a big sale according to which, if you buy three books, then the cheapest book in any triplet costs only 20% of its full price. Let $c_1, c_2, …, c_n$ be the full price of the books you want to buy. Suggest an algorithm for minimizing your total payment....
So far I have learned about categorial grammars, type logical grammars and formal semantics of natural language, the relevant tools are Cornell Semantic Parsing Framework https://github.com/clic-lab/spf and Grails 3 Type Logical Theorem prover http://www.labri.fr/perso/moot/grail3.html. My preferences are strongly bias...
Im having difficulties understanding how to solve the knapsack problem using dynamic programming, where v is value and w is the weight, where I can fill up to a maximum weight j for some Capacity_J: capacity_J J_0 J_1 J_2 J_3 J_4 J_5 J_6 ...
I have a undirected tree and three colors to choose from. Some nodes are already colored; these nodes and their colors are given. What is an efficient algorithm to find the number of ways to color the rest of the nodes such that no two adjacent nodes are the same color?
I'm looking for efficient algorithm distributing atomic resources with arbitrar weight among a number of buckets with random capacity. Buckets can be added or removed, and resources from removed buckets should be redistributed among remaining ones. Are there any known algorithms solving this problem? Consider both situ...
I'm trying to fully understand how the recursive Towers of Hanoi Algorithm works and to implement it in code. Something that keeps throwing me of is the use of phrases like "move n-1 discs from A to B using C." I understand that the peg which is referred to is as being "used" is the auxiliary or spare peg, but the lang...
I think I understand that a P class problem is reducible to an NP class problem (P≤NP). I´d like to understand if I need to figure out a potential algorithm which could solve the NP class problem to know if it can be used as a subroutine for a P class problem. So for example, if I ask you if the problem from class P —...
I'm looking for a good review paper or book chapter that offers an accessible introduction to the computational complexity of training neural networks for classification problems. In particular, I'm trying to study questions like: How is training complexity related to network topology ? How is training complexity r...
Recurrent neural networks makes it possible to implement some kind of memory, which can be very useful for a lot of tasks, incl. (but not limited to) robot control, which I am interested in. For example, echo state networks are known to display some kind of dynamical short-term memory, and display a very small search s...
I have the non-deterministic context free grammar $$I \to abcX | abdY$$ $$X \to X d | \epsilon$$ $$Y \to XX |I$$ and i want to convert it into a deterministic. I know that the rules $I \to abcX | abdY$ and $X \to X d | \epsilon$ are causing the grammar to be non-deterministic so i rewrite them as $$I \to abI', \ I' \to...
Imagine you have a number of 2-dimensional objects. The question is how to fit them all in a rectangular space in such a way that this rectangle takes the smallest area possible. On the below image you can see (more or less) what I mean: The objects are packed quite efficiently (there is little empty space). What I am...
I have to show if the following statement is true or false. Suppose we have two problems $A$ and $B$. We want to know whether the following is true: If $A \le_p B$ and there is an algorithm which solves $B$ in linear time, then there is an algorithm which solves $A$ in linear time as well. So we recently started with...
The language $ L = \{ a^nb^mc^m : n,m \in \mathbb{N} \} $ is non regular. Suppose this needs to be proven using the pumping lemma for regular languages: Be $ z = ab^nc^n $ such that $ z=uvw, |v| \geq 1, |uv| \leq n $. Obviously $uv^2w \notin L $ with $ v=b^{k}$ and $ 1 \leq k \leq n-1$. Is this proof finished now? Or d...
The Complexity Zoo states that ACC$^0$ is contained in TC$^0$ and links to the paper On ACC and Threshold Circuits. However, what the linked paper proves is that depth-3 threshold circuits of quasipolynomial size can simulate ACC$^0$ circuits. Wouldn't it be necessary to prove that constant depth threshold circuits of...
FLP86's famous proof regarding impossibility of async distributed processes with a single fault assumes in the proof of the third lemma the existence of an event $e'$ such that the neighbor configurations $C_0$ and $C_1$ can be related as $C_1 = e'(C_0)$. I don't get how this is possible, as it seems to me like $e'$ c...
Is the set of real numbers a language? My idea is that the set of real numbers can't be a language because it is uncountable. Every language must be countable. Is there any other way to solve this problem?
There are m people and n kinds of objects. Each person has exactly one instance of each kind of objects, but these objects have different values associated. Now I want to find a subset of objects from all those m*n objects satisfying the condition: it should have p objects of each kind (p < m), and a person cannot cont...
We have a directed simple graph $G$. Out-degree of any vertex is at most $k$ in $G$. We need to show that $G$ is $2k+1$-partite.
I have a graph $G$ on which I try greedy coloring; i.e. I order the vertices and then start coloring them according to their order and I assign each vertex the smallest possible color available to it. (It is easy to see that this might not be the optimal coloring possible) So after the coloring, we see that a vertex ha...
By Burhman, Fortnow and Thierauf result Paper Link, we know that $MA_{EXP} \not\subset P/poly$. Also, we know that $MA \subseteq P^{NP}$ (or $\Delta_{2}^{P}$ in some literatures). By using the padding technique, we can conclude from this $MA_{EXP} \subseteq EXP^{NP} \not\subset P/poly$ and hence yielding a circuit lo...
I want to know if a specific version (and what´s its name?) of the Set Partitioning Problem is NP-Complete, and if, is NP-Hard? Problem: Given a set of elements $e_i$ where $i={1,...,n}$, each with an associated weight $w(e_i)$, we want to find an optimum partition of these elements into a set of $S_j$ subsets where $j...
I'm working on a HW assignment as follows: Given the primal canonical problem: $$min \langle c,x \rangle \text{ s.t. } Ax \geq b, x \geq 0$$ and the canonical dual problem: $$ max \langle b,y \rangle \text{ s.t. } A^Ty \leq c, y \geq 0$$ Show that converting PC (primal canonical) to DC (dual canonical) is similar when ...
Given a PDA $P$, I believe we can simulate it with a turing machine with 2 tapes - one for keep reading the input and one for the stack. But, a PDA transition function may have multiple transitions for a given state, letter, and the stack top (the non-deterministic part, or splitting). How can we deal with that in a tu...
I have a hardware RNG that sends me some random bits. Due to nature of that RNG, the source is biased. Then, the bitstream is processed in a following way to remove the bias: two counters are used, which count amounts of 1's and 0's in the stream and when the difference is above the threshold, the next bit out ot the r...
Let the algorithm be defined as follows: Consider the following heuristic algorithm for finding the maximum size clique in a graph. (1). Delete from the graph a vertex that is not connected to every other vertex. (2). Repeat (1) until the remaining graph is a clique. Now, how do I show that this algorithm does not give...
Let's say for some $n$ we have the sequence $1, 2, 3, \dots , n$, what we want with this sequence is to divide it in two sets such that each element of the sequence will be in only one set, and the difference in sums of the two sets will be minimum possible. Example Let $n = 4$, and $A$ and $B$ are our sets, we can div...
What is meant by the term 'state' in a finite-state machine? I have not seen a proper definition on the web and am looking for a university-level answer. Thank you in advance.
I've got an TSP problem which I can't seem to solve somehow. It consists of about 1200 addresses for which all distances (measured in seconds) between them, a frequency (once a week, twice a week, 3 times a week etc...) and cargo-weight are given. I've looked into TSP solutions, but they only seem to offer ways to calc...
I have the following recursive function: $$ T(n) = \begin{cases} \theta (1) & \text{if $n$ = 1;}\\ T(\sqrt{n}) + \theta (log(n)) & \text{if n $\geq$ 2}\\ \end{cases} $$ I tried: \begin{eqnarray*} T(n)&=&T(\sqrt{n}) + log(n)\\ &=&T(\sqrt[4]{n}) + 2 log(n)\\ &=&T(\sqrt[8]{n}) + 3 log(n)\\ \end{eqnarray*} I can't find a ...
In this thread I am seeking for an advice or a starting point on how to solve the following riddle. I need to come up with an algorithm which will generate all possible combinations, but I don't know where to start. In this example let's assume that we have 3 value pairs 1 2 2 3 3 1 The aim of a riddle is to make as...
A weighted graph $G= (V, E, W_1, W_2)$ has two cost functions $W_1, W_2 : E \rightarrow \mathbb{R}$. Each edge $e$ has two costs $W_1(e)$ and $W_2(e)$. We may think the costs as representing different resources, such as time and fuel. Similarly, a path $p =e_1, e_2, \dots e_n$ has two costs, $$W_1(p) = \sum_i W_1(e_i)...
In general, the subset sum problem is NP-Complete. However, what if we say that our set is $\{1,...,n\}$? Is there a formula/combinatorial calculation that says how many subsets of $\{1,...,n\}$ have their sum equal to $k$?
Also, are they equivalent or are they different? Examples of algorithms/Turing Machines that run in complexity of one but not the other would be much appreciated.
In Python, we have metaclass and abstract class. In Java and C#, we have interface and abstract class. The relation between a metaclass and a class is instantiation, so it extends the instantiation relation between a class and an object. The relation between an abstract class and a class is inheritance, so it extends ...
I have a sequence like 5577334... and there are 3 frames available. After the 6th clock, all pages (5, 7 and 3) will have their reference bits set to 1. Now, when 4 comes in, 5 will go even though its reference bit is 1 because of the FIFO rule but what happens 7 and 3' referance bits? Do they stay as 1? or Is 7's ref...
Consider the $q$-ary erasure channel with erasure probability $\alpha$, i.e. given $x\in\mathbb{F}_q$ with probability $\alpha$ it outputs $?$ and with probability $1-\alpha$ outputs $x$. For a linear code $\mathcal{C}$ generated by an $n\times k$ matrix $G$ over $\mathbb{F}_q$, we take a decoder $D:(\mathbb{F}_q\cup\{...
I'm learning about NEAT from the following paper: http://nn.cs.utexas.edu/downloads/papers/stanley.ec02.pdf I'm having trouble understanding how adjusted fitness penalizes large species and prevents them from dominating the population, I'll demonstrate my current understanding through an example and hopefully some one ...
Assume we are given a LP maximization problem defined by a linear functional $c^Tx$ and a non-empty feasible region $\{x:Ax\leq b\}$ that is known to be bounded by a hypercube of side $R>0$, say $[0,R]\times \dots \times [0,R]$. Asume that problem data is real: $A\in\mathbb{R}^{m\times n}$, $b\in\mathbb{R}^{m\times1}$,...
Problem: 3SUM Input: Three lists A, B and C of integers and an integer k. Each list contain $n$ numbers. Task: Decide whether there exists a tuple (a, b, c) ∈ A × B × C such that a + b + c = k. Question : Is it possible to solve 3SUM in $O(n^2)$ time using constant space ? Prove or disprove it
2.(10 pts) a) You are given 4 processes in a batch system that all arrive at time 0 with the following CPU burst times: P1 : 35, P2: 25, P3: 13, P4: 22. Assuming there is no context switch overhead, draw a time line chart (Gantt chart) showing when each process executes under each of the following sc...
Going with the definition, that order of a B+ tree is the maximum number of children a node can have. What is exactly meant by the order of a leaf node? As per my understanding order of a leaf node is the number of pairs it can hold. But in general when order of a B+ tree is defined in a question like, order is 5. Exa...