instruction stringlengths 35 29.1k |
|---|
Let $L \subseteq \Sigma^{\ast}$ with $\Sigma = \{0,1\}$ be the language such that two times the number of $1$'s in a word in $L$ plus the number of $0$'s is divisible by $3$, i.e. if we denote by $|w|_1$ the number the symbol $1$ occurs in $w$ and by $|w|_0$ the number the symbols $0$ occurs, then
$$
L = \{ w \in \Sig... |
Yo! This is probably a stupid question, however I've never seen it written down explicitly if, for instance, decidability of type-checking is equivalent to the strong normalization property. Therefore I'm asking this question to clarify all possible relations between type-checking, typability and strong normalization.
... |
The eccentricity of a vertex v is the length of the shortest path from that vertex to the furthest vertex from v in an undirected graph. The diameter of an undirected graph is the maximum eccentricity of any vertex. The radius of an undirected graph is the smallest eccentricity of any vertex. A center is a vertex whos... |
I was going through the questions in MIT quiz : Question 2 g
and I found this
How is $ n^{log(n)} > n^c $ always for any c ?
what if c > log(n) ?
|
I am designing an algorithm that solves a linear system using the QR factorization, and the matrices I am dealing with are sparse and very large ($6000 \times 6000$). In order to improve the efficiency of the algorithm, I am trying to exploit the sparsity of the matrix by finding its bandwidth, but I have to run throug... |
How to compute the run-time of distributed algorithms in message passing systems? I was reading across and found it very weird that any computation done in each node is considered to take $\mathcal{O}(1)$ time due to the unreliability in the time it takes to pass messages. Since this approach is not practical at all, I... |
Does there exist an equivalent arithmetic circuit for each computable function?
I've been trying to wrap my head around the statement above, but haven't found a counter example although I believe the statement to be false.
What has made me curious is that I've read some theorems stating that a protocol (cryptograhy ... |
I understand the rule says that overflow cannot happen for two's complement addition of numbers with different signs, but do not understand why this specific case does not cause overflow:
1001010
+0010101
--------
1011111
Am I simply misunderstanding the actual rule or missing a step somewhere?
Thanks in advance!
ED... |
I'm kind of new to automata theory and I'm dealing with the equivalence classes used for example in the Myhill-Nerode theorem right now; in other words aba* / a = ba*; aba* / b = ⌀, and such.
In an exercise I'm asked to find a language defined by an infinite set of equivalence classes, but where each class is actually ... |
I have the language $L = \{w ∈ \{0, 1, 2\}^∗ \mid \text{the number of 1s in $w$ is odd}\}$.
I am stuck halfway through this process.
I have
$$
\begin{align*}
&A \to 0A \mid \epsilon \\
&B \to 2B \mid \epsilon \\
&C \to AB \mid BA
\end{align*}
$$
This should take care of 0s and 2s.
Now I have this, but I'm ... |
I studied algorithm for converting grammars to GNF and was wondering about
a proof that any CFG can be converted into GNF. I found this paper - ENGELFRIET, Joost. An Elementary Proof of Double Greibach Normal Form, 1992, but I do not understand the proof at all.
Any CFG can be converted into CNF, so we try to prove t... |
How can I encode an ascii string in base 15?
In other words, I have the following characters available:
0123456789abcde
I have no idea how to do this. What do you suggest I do?
(If this is not on-topic, please migrate.)
|
Let $A$ and $B$ be NP-hard problems. For all tuples $(A, B)$ does there exist a polynomial time reduction from $A$ to $B$ and from $B$ to $A$?
Context: I want to prove some problem is NP-hard. Can I pick any problem in NP-hard to reduce from?
|
Question: Given the alphabet $\{a, b, c\}$, how many words can we form with 4 letters? And how many words can we form with up to 4 letters?
I was thinking about the logic behind this and came up with this: perhaps the number of words that can be formed with 4 letters is $4^3 = 64$ words. Is that correct?
I could not th... |
I have been doing dynamic programming problems, and I came across a palindromic substring question. I answered it quickly, and found an $O(n)$ dynamic programming solution, but when I check the actual solution, I find that I should be getting an $O(n^2)$ result.
Can someone explain where I am going wrong/how this is... |
I'm currently studying computer architectures module, and during the workshop I came a across a series of questions that I struggled to being to answer.
The question goes;
*You have an L1 data cache, L2 cache, and main memory. The hit rates and hit times for
each are:
50% hit rate, 2 cycle hit time to L1.
70% hit rate,... |
The center of a graph is the set of vertices with minimum eccentricity, so a $C_n$ have the minimum eccentricity equals to $n$ and a $K_n$ have the minimum eccentricity equals to $1$? Is valid that a center of a graph be the graph itself?
|
R-Trees can take several paths to retrieve an item because of overlaps in data being indexed or index structure. However, if we run the same search many times on the same unmodified structure, can we remember the correct path and avoid taking the wrong path?
Maybe caching the correct path? But I'm not so sure that R-T... |
According to the Wikipedia page on static-single assignment (SSA), SSA is used by large and well-known projects such as LLVM, GCC, MSVC, Mono, Dalvik, SpiderMonkey, and V8 while the page on projects using continuation-passing style (CPS) is a bit lacking in comparison.
I have this notion that CPS is preferred by compil... |
Given an $n \times m$ Boolean matrix $\mathrm X$, let $0$ entries represent the sea and $1$ entries represent land. Define an island as vertically or horizontally (but not diagonally) adjacent $1$ entries.
The original question was to count the number of islands in a given matrix. The author described a recursive solu... |
I have been trying to find the upper bound on the runtime of the 'Risch algorithm' used for finding the integral of mathematical functions, but have been unable to do so.
https://en.wikipedia.org/wiki/Risch_algorithm
Does anyone know where I would be able to find the runtime of the 'Risch Algorithm'?
|
I have a list of pairs like (regex, substitute) that take quite long to apply to some input text so I was thinking about optimizing them a bit.
From my knowledge for each regular expression there is a deterministic finite automaton that accepts the same language, and as its possible to merge DFAs merging two regex shou... |
We define $\mathbf P$ as the set of problems solvable in polynomial time. We define $\mathbf{NP}$ as the set of problems with a verifier $ \in \mathbf P$.
Is there a name for problems whose verifiers are $\in \mathbf {NP}$ (e.g., $\mathbf{N(NP)}$)? I can't see this being a very useful complexity class, but, for example... |
Considering that there no cycles in the graph.
I have seen the posts where the negation of the weights is suggested and to use Bellman-ford. But I was wondering if the inverse is possible.
|
The following quote is from the book "The art of computer programming":
(..) sentence would presumably be used only if either $j$ or $k$ (not both) has exterior significance.
In most cases we will use notation (2) only when the sum is finite - that is, when only a finite number of values $j$ satisfy $R(j)$ and have $... |
I'm looking at Wikipedia's pseudocode implementation of A* and found myself wondering about what they call openSet. That is, the neighbours we've seen, but not yet analyzed.
The first part of the outer loop reads:
current := the node in openSet having the lowest fScore[] value
And this makes sense to me, as I intuiti... |
I have a complex data structure DS that needs to be checked for validity against several rules. If invalid, the DS has to be corrected. The correction with respect to one rule could result in an invalid state of DS again.
There are n rules to check the data structure. If DS is valid for
all rules, DS is valid. If DS i... |
I am writing some firmware for a display that will take measurements and present them in real time on an LCD screen. I would like for the measurements to display as smoothly as possible... What I mean is that I am looking for a smooth animation sequence on the display, such that values don't jump from say 15.1 to 15.8.... |
The keys 2, 4, 6, 7, and 8 have been inserted, one by one, in some unknown order, into an initially empty BST. The result is this BST:
There are 120 different permutations of the five keys, but not all of these would lead to this particular BST being built. How many of the permutations will generate this particular ... |
Let's say I have 2 graphs $g_1$ and $g_2$, each determined by a set of nodes and a set of non-oriented edges.
I also have 2 operations that can be done on a graph: edge contraction and node split:
Nodes have a position so it is possible to do the operation as specified on the figure, and we can assume that the neighbo... |
I am trying to prove that there exists logspace deterministic Turing machine that check if exists path between first row and last row in grid graph. Grid graph is matrix of $0s$ and $1s$, the undirected edge exists between two $0s$ or $1s$ - one the left, right, up, down. Path can contains only $0s$ or only $1s$. ... |
Is there a data structure that efficiently supports the following operations?
Add set
Query whether any subset of a set has been added.
This could be implemented with linear overhead by testing every added set during every query. Can it be implemented more efficiently? Small probabilities of false positives/negatives... |
Given an interval set $X = \{(s_1, e_1), \dotsc, (s_N, e_N)\}$ ordered such that $s_i \leq s_j$ and $e_i \leq e_j$ for all $i < j$ and an integer $b$, I would like to find a maximum sized subset $X' \subseteq X$ such that $\text{end}(X') - \text{start}(X') \leq b$. Here the $\text{start}, \text{end}$ functions are defi... |
First, sorry if this post is off-topic. I consider it too analytic for stack overflow.
In Numerical Analysis subject I must explain which one is better (has less error).
The recursive implementation seems to be better with the inputs I have used, but I don't know the reason.
Can someone explain to me which one is be... |
I'm reading through a commentary on Milner's "The use of machines to assist in rigorous proof" by Mike Gordon. In this paper, he explains how LCF was born from the ideas of denotational semantics by Dana Scott and Strachey.
It seems to me that Floyd-Hoare logic wasn't enough for developing LCF, but I'm not sure why th... |
Given an unsorted set of tuples $(c, w)$ and a threshold value $W$, I want to select $k$ tuples such that:
$$
maximize\sum_{i=1}^k c_i \\
\sum_{i=1}^k w_i \ge W
$$
It seems pretty simple at first. Without the weighting constraint, you can use any selection algorithm to select the $k$ elements with largest $c$. But with... |
Help me demonstrate this or there is a counterexample?
Let $T(V,E)$ be a tree with $|T| \geq 2$ and a path $P{(u_0,u_1,u_2,...,u_n)}$. The longest path in a tree has $d(u_0) = d(u_n) = 1$.
|
Suppose Bob has a messaging network (which is a graph), where a message travels from a vertex V to its adjacent vertex U. However, the messaging network is very unreliable, and the probability that the message sent from vertex V will fail to reach an adjacent vertex U is PROBABILITY(U, V).
How to find a path where ther... |
I am trying to generate random sentences from a context-free grammar. During each step, the next non-terminal to be generated is determined according to some probabilistic criteria irrelevant to this question. Where I am stuck is, given a grammar and the partial sentence generated so far, how do I determine the set of ... |
The seminal work by Viola-Jones had the most impact in face detection. It used Haar-Feature, which is fast to compute with the help of integral image method.
Is there a feature method that is more efficient (computationally) than Haar-Feature?
For example, for a $24 \times 24$ window, the computational complexity is ... |
How to prove that Set Cover can be polynomial-time reduced to CNF-SAT?
|
I'm puzzled by a short paragraph found in the article on Stochastic Processing in Wikipedia. There it says:
Bundle Processing involves sending a fixed number of bits instead of a stream. One of the advantages of this approach is that the precision is improved. To see why, suppose we transmit $s$ bits. In regular stoch... |
Let $L$ be the language of all the words with the shape $<M_1,M_2,w>$ such that $M_1,M_2$ are turing machines that accepts $w$, show that $L$ isn't decidable.
I thought to use reduction from $L_{TM}=\{<M,w>\mid M \text{ accepts } w\}$
how can I defined the function $f$ ?
|
I have a predictor method that takes differential equations for 214 biological species and integrates them in time using positive time steps. Right now it is able to successfully integrate the differential equations when the time step is positive, so it can integrate forwards in time and I was looking to see if it cou... |
I know that $\{a^nb^n : n\geq 0\}$ is a non-regular language. Would adding another $a$ so that it is $\{ a^{n+1}b^n : n \geq 0\}$ change things? Would this still be a non-regular language?
|
I need to create a specialized text editor capable of handling text up to billions of characters long, with no line breaks.
I've read of multiple data structures to manage the text itself, including ropes, zippers, piece tables, gap buffers, and more.
However, I also need to support annotations on the text. Like commen... |
In the lecture notes, our professor mentioned that we can take down the space taken by the FW algorithm from $O(n^3)$ to $O(n^2)$ by dropping all the superscripts in the matrices (i.e. use one $n\times n$ array $D$).
I just want to check my understanding, is it because by default $D^k=D^{k-1}$ except for the values $i,... |
Which of the following cache designer guidelines are generally valid?
The shorter the memory latency, the smaller the cache block
The shorter the memory latency, the larger the cache block
The higher the memory bandwidth, the smaller the cache block
The higher the memory bandwidth, the larger the cache block
As per m... |
I've been given the following problem in an interview (that I've already failed to solve, not trying to cheat my way past): The game starts with a positive integer number $A_0$. (E.g. $A_0 = 1234$.) This number is converted to binary representation, and $N$ is the number of bits set to $1$. (E.g. $A_0 = b100\ 1101\ 001... |
Currently studying for an Automata Theory final and can't find an answer to this question anywhere.
Can you simply let w = w!w and show that it is undecidable that way? Like this here: How do I show that whether a PDA accepts some string $\{ w!w \mid w \in \{ 0, 1 \}^*\}$ is undecidable?
Or do I have to show decidabili... |
I am trying to prove that there are a language is not BPP-Complete. There are a couple of examples online, but they are not the best examples and are a bit complicated. I spoke with one of my computer science professors about the problem and he proposed the following proof sketch:
Proof (sketch):
We know $A_{TM} \le_m ... |
The language $A_{PTM}$ is defined as the acceptance problem on a Probabilistic Turing machine.
$A_{PTM}=$ { $<M, x> | M$ on input $x$ accepts with an error probability less than or equal to 1/3}
Basically, given a probabilistic Turing machine $P$ and string $x$, a decider $D$ simulates $P$ on $x$ and outputs accept if... |
There are plenty material about bidirectional search with non-negative edge weights. One example is this paper. I am looking for any improvements using a bidirectional approach for acyclic digraphs with possibly negative weight edges.
The main approach for mono-directional search on possibly negative edge weights is Be... |
Suppose someone will prove lower bound (for NTM) for co-NP, say exp(n/d) for some constant d. Would it in some way imply lower bound (for DTM) for NP?
Thank you
|
I want to prove that the class of all Turing machines that use a logarithmic amount of space is closed under concatenation. The basic idea of my proof is this: given a word, to check if it's in $L_1L_2$, simply look at all possible $n+1$ ways to slice the word into 2 parts and check if the first part belongs to $L_1$ a... |
After looking at the definition of nondeterministic TMs, it seems that, while guessing, the machine could go to at most $|Q|\times | \Gamma |$ configurations, being in a particular one.
However, if we look at several concrete NTMs, the guessing part depends on the size of the input, i.e. it's not bounded. For instance... |
Most times I encounter this random metaphors for metaheuristic optimization they seem like a modified genetic algorithm to me. What do you think? Is there a way to remove the analogies/metaphors to better compare algorithms?
|
the following pseudo code returns the nth Fibonacci number:
if n = 0 then
return 0
a ← 1
b ← 1
for i = 1 to n − 1 do
c ← b − i
b ← c + a
a ← c + 2*i + 1
return b
I am trying to find any loop invariant for the variables a and b, (as i understand it has to be valid before and after the loop, but ... |
Berge's theorem: a matching $M$ is maximum if and only if the graph doesn't have an augmenting path with respect to $M$.
I don't understand this theorem. For instance the following matching is maximum but has an augmenting path, doesn't it?
The matching $M$ is in gold here and the augmenting path is the one in dotte... |
We can represent a simple connected graph $G$ using mathematically as adjacency matrix, $A$. There are other matrices related to the graph which is very useful is the Laplacian matrix $L=D-A$ where D is the diagonal matrix contains the degree of the nodes. It is mentioned that spectrum of the Laplacian matrix is useful... |
Full disclosure: I am trying to understand an answer from the Stanford Automata MOOC.
Why are states F and G equivalent here, such that they would get merged in a minimization process? They both differ on their transitions on 0, so I thought they were distinguishable?
0 1
->A E D
*B A C
C G B
D E A
*... |
Suppose there is algorithm that has a strong NLP module. Could it use the NLP module to read text books such as http://www.amazon.in/Artificial-Intelligence-Modern-Approach-Prentice/dp/0136042597 in text form, parse it, understand the semantics and then use the knowledge to improve the very code it's written in ?
Like ... |
I have a map, which is broken into adjacent regions. Regions do not overlap. Regions are of complex shapes (they are administrative districts).
I want to display these regions on Google Map. But the problem is that the regions are of very different sizes. If zoom level fits largest regions into map frame, then there ar... |
I'm reading the chapter on dynamic arrays in The Algorithm Design Manual book. Here is the excerpt from the book:
Actually, we can efficiently enlarge arrays as we need them, through
the miracle of dynamic arrays. Suppose we start with an array of size
1, and double its size from m to 2m each time we run out of sp... |
The title seems a little vague. So let me explain the question in detail.
Suppose you have a data base. Each record in the data base is $<\mathbf{x},data>$, where $\mathbf{x}$ is an $n$-dimensional index vector.
A query is also an $n$-dimensional vector $\mathbf{y}$. So given the query $\mathbf{y}$, the data base will ... |
Consider a simple grammar and its derivations. The derivations could be done in leftmost or rightmost patterns and can also be done in no particular order as the derivation order has no effect on the language generated by a grammar.
Apart from practical considerations, such as implementation difficulty and orderliness... |
The usual way one trains a neural network is to give it some input and provide the correct classification.
But what about letting the neural network produce its own inputs, and then classifying those?
Imagine the following "algorithm".
Use a neural network to generate 2 images (random at the beginning)
Let the user pi... |
Given a 2-SAT problem that is satisfiable. The solution to the problem can be found in polynomial time.
Adding an additional constraint:
The maximum number of positive literals that can have the boolean Value 1 is N. (i.e. a=positive literal, ~a=negative literal)
Is the problem still solvable in Polynomial time?
My a... |
How can one prove that a shunting-yard algorithm always returns a correct expression in RPN? I cannot find any proof in the internet.
|
Suppose we have a similarity measure s : String x String -> [0, 1] and sets K, L in String with |K| <= |L|. The task is to find an injection f : S -> T such that Sum({s(k, f(k)) | k in K}) is maximised. That is, f should be an injection which maximises similarity.
My naive approach would be to compute all the similarit... |
I am having a difficult time understanding big-O notation for the growth of functions. My textbook says the following.
Example 2 shows that $7x^2$ is $O(x^3)$. Is it also true that $x^3$ is $O(7x^2)$?
Solution: To detemine whether $x^3$ is $O(7x^2)$, we need to determine whether witnesses $C$ and $k$ exist, so that $... |
When reading about data types, "type definition" is often used without any prior explanation to what it means.
For example, in https://en.wikipedia.org/wiki/Type_system, we have the sentence "... since C++ has stronger rules regarding type definitions ..."
Any help in clarifying what the difference between, for examp... |
A language $L$ is in NP if and only if there exist polynomial $q$, and a deterministic polynomial Turing machine $M$ such that, for all $x\in L$, there is a string $y$ such that $|y|\leq q(|x|)$ and $M(x,y) = 1$.
My question is is it possible to exchange $M$ for a finite automaton?
Thank you
|
I have a confusion related to an algorithm for finding the orientation given three points, i.e., determining whether one line is clockwise or counter-clockwise of another.
Let's say the points are $P_1=(x_1,y_1)$, $P_2=(x_2,y_2)$, $P_3(x_3,y_3)$. The algorithm says
Let the slope of line $P_1P_2$ be $m_1$ and slope of ... |
Cormen and others in their book on algorithms in chapter "15 Dynamic Programming" repeat again and again that we need to prove that "a problem exhibits optimal substructure". A problem exhibits optimal substructure iff (if a solution to a problem is optimal, then each of its subsolutions to a corresponding subproblem i... |
Given an undirected graph $G=(V,E)$ and a weight function $w:E\to\{1,2,3,\dots,10\}$:
Let $U\subseteq E$ the set of all edges $e\in E$ that has a cycle in $G$ such that the cycle contains $e$ and all the edges in the cycle are not of heavier weight than $e$.
Find an algorithm that computes $U$.
I have found an algorith... |
You are given n nonvertical lines in the plane, labeled $L_1, ..., L_n$, with the $i^{th}$ line specified by the equation $y = a_i x + b_i$.
We will make the assumption that no three of the lines all meet at a single point. We say line $L_i$ is uppermost at a given $x$-coordinate $x_0$ if its $y$-coordinate at $x_0$ ... |
In the beginning of the Princeton algorithms course the Dynamic connectivity problem is presented (quick-find, quick-union). Here is how it's described:
The input is a sequence of pairs of integers, where each integer
represents an object of some type and we are to interpret the pair p q
as meaning “p is connected... |
There's an interview question.
In my opinion, os can calculate cache hit rate and miss rate(with the total running time of process and the number of transfer of block of memory to cache).
But how can know the size of cache? Is it possible to calculate with os's certain information? (such as size of transfer size to cac... |
Sorry if it is an obvious question, since all my searches lead to "clearly 0-BPP=P" (like Papadimitriou text book or Complexity Zoo). I understand that any P machine can be seen as a 0-BPP machine with a 0-assignment function that assigns exactly 0 or 1 to any non deterministic choice, which makes P a subset of 0-BPP. ... |
I start to learn artificial neural network and all introduction that I have found on internet present architecture with a number of input variable, so the input layer has the same number of "neurons" as number of variable. Then a number of neurons in hidden layers and only one output neurons.
Does it make sense to hav... |
Undergraduate math student here attempting to understand neural networks. Picked up a text on sale, "Neural Network Learning and Expert Systems" (Gallant), and I'm just starting on the exercises for chapter 1.
The full question is:
Prove that a network is a feedforward network if and only if its cells are numbered in ... |
What's the difference between the Cartesian product in set theory and in relational algebra?
The Cartesian product in set theory is defined as:
$$A \times B = \{(a, b) \mid (a \in A) \land (b \in B)\}$$
I think this is exactly how it works in relational databases, but Wikipedia tries to make a difference that I don't u... |
I'm taking a computational structures course and we just started going over context free grammars. I was confused when I started seeing lambda productions. What are they? Can't seem to find an answer anywhere.
|
Many programming languages support a "regular expression substitution" operation: if r is a regular expression and s, t are strings, sub(s, r, t) finds the first substring of s that matches the regexp r and replaces it with t.
Can this operation always be represented as a finite-state transduction? In particular, are ... |
I am performing some inter-procedural abstract interpretation to capture certain program properties. Following the standard way, what I am doing is to maintain a work list of to-be-analyzed functions, and pick one from the work list to perform intra-procedural analysis until the work list is empty.
Currently, I observe... |
I am looking for Input/Literature on
a readable way to represent words (which are accepted by automata)
an Algorithm, that constructs the Representation
For example, a word $w$ might contain a subsequence $v$ which is repeated $m$ times, i.e. $w= u \, \underbrace{v\cdots v}_{100} \,x$ where $u,v,w,x \in \Sigma^*$
In ... |
Over the last couple years, I built a mechanical computer powered by marbles and made a game out of it. It's similar to the old Digi-Comp II, except for two key differences:
Parts are repositionable on the board.
You can connect multiple 'bits' together using gears. When one of these bits is flipped, it flips the oth... |
I am reading a proof on CLIQUE is NP-Complete. The first step is of course to show that CLIQUE is NP.
c is the clique certificate
V = “On input $\langle\langle G, k\rangle, c\rangle$:
Test whether c is a set of k different nodes in G.
Test whether G contains all edges connecting nodes in c.
If both tests pass, accept... |
Is there a way to show $\{a^nb^nc^n:n\geq0\}$ is not regular without pumping lemma?
|
Let $a: \{0, 1\}^* \to \{0, 1\}^*$ be a $1$-way function and $b: \{0, 1\}^* \to \{0, 1\}^*$ be a $1$-way permutation.
Now, it makes intuitive sense to me that $a \circ b$ should be a $1$-way function, but I am having problems formalizing this. What would a rigorous proof of this look like? Or are my intuitions wrong an... |
I hope this question is close enough to CS to be posted here. I need to write a method that will compute the perimeter of a simplex
https://en.wikipedia.org/wiki/Simplex in any dimension given only the coordinates of its vertices. Is such a function even possible? I have tried going for it, but ended up with loads of n... |
By using Lamport timestamps, we can determine the causality of messages. It is however unclear to me how one would deduce this simply from the lamport timestamp of the message.
Take the following model situation: there is a casuality break when it comes to process 2:
Now, we add Lamport clocks (hopefully I have done t... |
Is it possible directly to reduce clique to set cover?
I know that there are some ways of direct reduction from Clique to Vertex Cover and from Vertex Cover to Set Cover, so I am very interested to know if the is a way to reduce clique to set cover directly without the use of the transitive rule.
|
What is the asymptotic behaviour, in Θ notation, of the smallest function that for any $n_1$ and $n_2$ satisfies the following:
$$t(n_1+n_2)≥t(n_1)+t(n_2)+c·\log_2(1+n_2)$$
where $n_1≥n_2≥1$ and $t(1)=1$
I tried to see what happens if $n_1 = n_2$:
$$t(2n)≥t(n)+t(n)+c·\log_2(1+n)$$
$$t(n)≥2t(n/2)+c·\log_2(1+n/2)$$
Also ... |
I have a scheduling problem that I am not sure is a known variant with known algorithms. It does appear like bin packing problem at first, but after imposing the constraints, I am not sure what it becomes.
There are $n$ atomic Jobs, $J_1, J_2, ... J_n$, each with same length, say 1-hour.
These jobs have weighs, $w_1, w... |
I want to prove that if we have a model, $A$, with unbound number of tapes, then
$A$ is stronger then Turing Machine model. Can you help me with example of such a language that $M$ will fail but $A$ will give an output? thanks.
|
Given a set of permutations $P$ of size $n$, is it possible to create a data structure that, given a sequence $s$, returns $p \cdot s$ where $p \in P$ such that $p \cdot s$ is canonical wrt. $\{\,q \cdot s \mid q \in P \,\}$ faster than $O(n)$ time?
By canonical, I mean for example such that $p \cdot s$ is lexicographi... |
Given a system of $m$ equations in $n$ boolean variables:
$$\begin{align}
a_{11}x_1 + a_{12}x_2 + \dots +a_{1n}x_n &= b_1\pmod2\\
a_{21}x_1 + a_{22}x_2 + \dots +a_{2n}x_n &= b_2\pmod2\\
&\;\vdots\\
a_{m1}{x_1} + a_{m2}x_2 + \dots +a_{mn}x_n &= b_m\pmod2
\end{align}$$
Where all $a_{ij}, x_i$ and $b_i$ are $0$ or $1$, I ... |
In what follows $K(x|y)$ is conditional Kolmogorov complexity, $xx$ is $x$ concatenated with itself. It appears to me that $K(xx|yy)=K(xx)$ should be true for infinitely many strings $x$ and $y$. In fact, it seems this should be true "generically" (in some appropriate sense). How hard is this to show (if true)?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.