instruction stringlengths 35 29.1k |
|---|
I'm trying to solve this problem whole day. The result should be dynamic programming algorithm but the first thing I need is to find out recurrent function.
There is N students (N is even) in class. The class will be divided into two groups with the same number of students. Each student has it's own preference what gro... |
So, I know that any multiple-tape TM can be in theory turned into a one-tape TM. However, it is too easy to copy, let's say, binary numbers from one tape to another. That's why I thought about putting a separator between the two copies and then taking symbols one after the other and writing them after the separator unt... |
This is the algorithm I'm using:
https://stackoverflow.com/questions/12367801/finding-all-cycles-in-undirected-graphs/14115627#14115627
Specifically C#, but the linked thread has numerous languages.
Worst case time complexity should be O(|V|^{2}\log |V|+|V||E|)}
https://en.wikipedia.org/wiki/Johnson%27s_algorithm
My fi... |
I have to solve this exercise in information theory:
A binary not symmetrical channel has probability of transition from 0 to 1 $P(output=1|input=0)=p$ and probability of transition from 1 to 0 $P(output=0|input=1)=q$.
I have to calculate the channel capacity and the input distribution that leads to this capacity value... |
This 579-bit program in the Binary Lambda Calculus has unknown halting status:
01001001000100010001000101100111101111001110010101000001110011101000000111001110
10010000011100111010000001110011101000000111001110100000000111000011100111110100
0010101100000000001011101110010101111100000011100101111110110101101000000010000... |
Are type constructors, in a language that feature subtyping and quantification of type variables, like scala or Java, always injective?
That is, is an equivalent of haskell lower function, as seen here, safe in such a language? (even if the implementation use typecasting)
#ifdef LANGUAGE_TypeFamilies
type family Inj f
... |
Can someone please describe how such a machine would work?
My approach:
Move the head full on the left. Scan the input to verify no # symbol exists. Add # at the end of input. Move the head full on the left. Move one position on the right.
Read character σ and replace it with σ'. Then go right to the 1st empty char and... |
I'm new to theoretical CS research. I have the following question: Given 2 different computer programs, each generating certain outputs for a given set of inputs. Assuming we are given the range of values for input variables (i.e., min to max values), is it possible to check with another program whether these 2 program... |
I was going through page replacement algorithms from Galvin's Operating System book. I encountered this line about LRU:
A stack algorithm is one in which the pages kept in memory for a frame set of size N will always be a subset of the pages kept for a frame size of N + 1.
And it states that stack based algorithm do... |
I've seen the proof on a pdf online, and I'm having trouble seeing the contradiction.
If $(\langle T\rangle,z)=w \in D$, so when we emulate $T(w)$ with $U$ (universal machine), it accepts within the time bound, so $M_D(w)=1$ and also $T(w)=1$.
Aren't you supposed to define $D$ as above, but accept only $x=(\langle M\... |
(Hope this hasn't been asked before, but I didn't find anything.)
In my understanding, nondeterminism applies to decision problems only, due to the requirement of the existence of an accepting path. In Wikipedia, the class $NP$-easy is defined to be solvable in deterministic poltime, with access to an oracle for a deci... |
I have a question about cook reductions and karp reductions. Which is the stronger form?
As a cook reduction reduces a search problem to a decision problem which can then be reduced using karp reductions, however with the notion of karp reductions in using nondeterministic polynomial time, doesn't the nondeterministic... |
For a given undirected graph G, I want to count all the subgraphs H that satisfies the following conditions:
H.V = G.V (The subgraph will containt all the original graph nodes)
H is connected
(Note: I don't care if two subgraphs are isomorphic)
The graphs which I will be working with will have |G.V| <= 15
|
I ave a a collection of lists of objects:
$a_1$ $a_2$ $a_3$...
$b_1$ $b_2$ $b_3$...
$c_1$ $c_2$ $c_3$..
I need to merge them into a minimal possible number of lists, each list must be as long as possible. The merge does as follows:
For every consequitve pair ($x_i$, $x_{i + 1}$) within the collection, if one or more su... |
So I was reading about ZKP on wikipedia, the abstract example in summary goes like this:
Peggy wants to prove to Victor that she knows the secret to a door inside a cave that connect A and B together (see diagram) without revealing the secret word to Victor.
Peggy takes a random entry not know to Victor
Victor shout... |
I have been reading the randomized algorithm book by Rajeev Motwani and Prabhakar Raghavan. In section 3.5 they have introduced principle of deferred decision which is a different probability space. The example they provided is a clock solitaire game. The game is as follows. Initially 52 cards are randomly grouped into... |
I am working on a problem regarding the Longest Common Subsequence (LCS) of two strings, and I was wondering if there is any reduction from the general case of LCS to its binary version, i.e. by solving LCS for bit-strings we can also solve LCS with an arbitrary (but finite) alphabet cardinal.
It seems reasonable for m... |
I'm implementing a hash table in pure UnrealScript, which only has support for signed 32-bit integers. This means no 64-bit integers and no unsigned integers. I was in the middle of implementing an FNV hash function, but ran into a potential problem.
The offset_basis for FNV-1 is dependent on n, the size of the hash:
... |
I have that question that looks kinda easy at first but it is quite hard.
Let $L\in P$. Prove that $L^*\in P$
my approach:
I tried to generate a Turing machine but I got stuck with the thing of the poly time machine, I only managed to create a non-deterministic machine. I know that there is a complicated method with ... |
I'm stuck rather badly on a Sipser exercise, 8.21 in my edition:
8.21 Let $CNF_{H1}$ = {<$\phi$> | $\phi$ is a satisfiable cnf-formula where each clause contains any number of positive literals and at most one negated literal. Furthermore, each negated literal has at most one occurrence in $\phi$}. Show that $CNF_{H1}... |
Let's say we have the following relationship between $f_1$ and $f_2$:
$$f_2(s) = \sqrt{1 + f_1(s)}$$
And $f_1$ returns a positive value. Why is it that minimax search using $f_2$ is guaranteed to the same action as using $f_1$ but is not guaranteed to return the same action as $f_1$ when used in expectimax search?
I un... |
Google tells me that a standard 3x3x3 Rubik's Cube has 43,252,003,274,489,856,000 permutations. If I wanted to store data on that Rubik's Cube, how much could I store?
The only way I see to store data on a Rubik's Cube is to assign an integer to each permutation, then convert that integer into binary. It would take 66 ... |
Given a language $L_u$, about which we know that there exists a non-deterministic turing machine which accepts it (as in, implying $L_u \in RE$) with memory complexity of $c^{p(n)}$, where $c$ is a constant and $p(n)$ a polynomial, can we decide whether $L_u \in R$ or not?
Memory complexity represents the largest diffe... |
I am currently reading "Computation Complexity: A Modern Approach" by Arora and Barak and have a question about time-constructible functions. In particular, I can't construct a turing machine for a simple function $f(n)=n$ using the definitions in the book.
The authors start by introducing $k$-tape turing machines: $1$... |
Let $L'$ be a context-free language. If $L \leq_M L' \leq_M L''$, where $\leq_M$ denotes mapping reducibility (aka many-one reducibility), what can we know about $L$ and $L''$?
I think they're both decidable languages but that's all I can say.
|
In a multiple-choice test, I'm asked to solve the recurrence $T(n)=2T(n/2)+n/2$.
I've done this using the master theorem: $f(n)=n/2$, $a=2$, $b=2$, so we're in the second case and $T(n)=\Theta(n\log n)$.
But the possible answers are $O(\log n)$, $O(n)$, $O(n \log n)$, $O(n^2)$ and $O(n^2/\log n)$ and more than one may ... |
I was assigned a project in which i had to implement some algorithms concerning graphs. The last one is the one described in the title. I have to make an algorithm that uses McLane's theorem (https://en.wikipedia.org/wiki/Mac_Lane%27s_planarity_criterion) to test whether a graph is planar or not. Now, to do that i have... |
You can get the Gödel number of a RAM by making it a list of commands and making this list an integer.
So, what I thought is something like "The RAM that would return its own Gödel number (say, $x$) would have to have the information $x$ in it, so the integer would be greater than $x$, so it would not return its own Gö... |
Basic sanity check on NP-complete solutions:
Suppose there was a polynomial time solution for an NP-complete problem,
but the size of NP-complete problems that could be solved is still
relatively small (i.e. N = 32-64) due to limits in technology.
Would this show that P = NP? Or would this be more like the
pseudo-solut... |
I am having trouble understanding the following problem and Q learning in general.
What I know so far about Q learning is that Q-learning is a model free method, i.e., it doesn’t need to learn P(s’|s,a). Thus it can compare the expected utility of the available actions without the model of the environment.It will also... |
I'm trying to translate the following pseudocode to QBF. The integers are encoded as simple fixed-width bitvectors, and the entire procedure runs in polynomial space ensuring QBF has enough representational power for a compact formula.
The following formula is nested to a linear depth in n, producing 2^n increments whe... |
I'm trying to solve
$$ T(n) = 4T(n/4) + n \log_{10}n.$$
I'm having trouble with Iteration Method near the end.
As far as I went, I obtained the General Formula as:
$$4^kT(n/4^k)+n\log n+\sum (n/4^k)\log(n/4^k)$$
And trying to get the moment when it finishes iterating:
$$(n/4^k)=1$$
$$n=4^k$$
$$\log_4n=k$$
And here I ge... |
I actually started to read complexity classes of problems.
and I know that NP class include P class problems and even more problems call NP-complete ...
as many books define NP class as well But I still dont understand what is the clear definition of NP problems...
According to these books (here I mean Sipser chapter ... |
The question:
Given those 3 valid operations over numbers and an integer $n$:
add $1$ to the number
multiply the number by $2$
multiply the number by $3$
describe an efficient algorithm for the minimal number of operations of getting from $1$ to $n$ with the 3 operations mentioned above.
For example for $n=28$ the ... |
Except for isomorphisms, the minimal DFA of a regular language is unique. However, is it possible that an equivalent NFA has less states than the minimal DFA? If so, what is the reasoning behind this? Due to the conversion of an NFA to DFA (which produces $2^Q$ states) it seems to me that a NFA can indeed have less sta... |
I did go through Korth's book of DBMS and I got these definitions:
Uniformity:
Each bucket is assigned the same number of search-key values from the set of all possible values.
Randomness:
Each bucket will have the same number of records assigned to it irrespective of the actual distribution of search-key values in the... |
Does an image that is scaled down lose more Information when
calculating averages of pixels rather than selecting single pixels?
One way to scale down an image is to replace 2x2 pixel blocks with the average of those four pixels, the other way is to just select the top-left pixel (or any other) instead.
Averaging is d... |
B-tree is a data structure, which looks like this:
If I want to look for some specific value in this structure, I need to go through several elements in root to find the right child-node. The I need to go through several elements in the child-node to find its right child-node etc.
The point is, when I have $n$ element... |
I'm struggling to understand the universal quantification operator in description logic. Here is an example of the problem:
given the DL concept
$\forall R.A $ (where $A$ is an atomic concept and $R$ is an atomic role)
and an interpretation $\mathcal{I}$ such that $\Delta^\mathcal{I} = \{a\}$ and $R^\mathcal{I} = \empt... |
Big-O of a function i.e. f(n) = O(g(n)) is such that both c and $\textbf{n}_0$ can be assigned values depending upon the function f(n). If such is the case for Big-O, then why for small-o, the following condition exists:
f(n) = o(g(n)) means for all c > 0 there exists some $\text{n}_0$ > 0 such that
0 ≤ f(n) < cg(n) f... |
I am looking for good, complete and understandable resources in the field of semidefinite programming and combinatorial optimization. Especially I have a combinatorial problem which I want to relax as SDP and want to compare the bound achieved with the LP relaxation. SO I need to know how to formulate a comb opt proble... |
In another question Initializing non-deterministic variables in QBF, I was interested about translating assertion-based pseudocode to QBF in order to have an exponentially more compact encoding compared to unrolling deeply nested loops into SAT.
While some misunderstandings in the pseudocode for that question ultimatel... |
What is the cardinality of the set of regular grammars? The caveat is that I'm only interested in grammars which are 'structurally' different. Sorry I don't know how to talk about this in a formal way, but what I mean is that the actual symbols are arbitrary to me.
So for example the grammar with:
{N={α},
Σ={x},
P={α... |
The task
If $x \in \mathbb{R}^d$ is a $d$-dimensional vector, recall that the $\ell_1$ norm of $x$ is given by
$$||x||_1 = |x_1| + |x_2| + \dots + |x_d|.$$
The $\ell_1$-ball of radius $\lambda$ is the set of points $x$ such that $||x||_1 \le \lambda$.
Consider the following algorithmic task:
Input: $x \in \mathbb{R}^d$... |
I have been looking for a method to find the width of a line.
I found the solution(link: http://www.mathworks.com/matlabcentral/answers/88645-average-width-of-lines),
"sum up the image to get the area, then skeletonize the image and sum up that image to get the total length.Then divide the area by the length."
Can anyo... |
I need to know the algorithm for converting between IEEE 754-2008 decimal64 and IEEE 754-1985 double precision floating point number.
I have been working on this for the past 2 days and I match the exponents of the two different standards but my base 2 mantissas differ.
Any help is greatly appreciated.
|
One of the steps of the Dinitz algorithm for computing maximal flows is to create a level graph. It is created from source to sink using BFS.
Could we create the level graph from sink to source instead of source to sink? Of course when subsequently doing the DFS on the level graph we would have to go down the levels ra... |
For some problems, like sorting, we know that on a deterministic RAM Machine, any comparison sort must take at least $\Omega(n\log n)$ time.
Are they any problems where we have known lower bounds for the complexity of a problem when using non-deterministic machines?
$NP$-hard or -intermediate problems are probably the... |
To find the difference, I'd just encountered with assertions below about temporal logic in Wikipedia:
another variant of modal logic sharing many common features with
dynamic logic, differs from all of the above-mentioned logics by being
what Pnueli has characterized as an "endogenous" logic, the others
being "e... |
I need to decide if there exists $L\in RE$ so that for every $L'\in RE$ we have $L' \leqslant_p L $, meaning a polynomial-time reduction.
I've tried to use $L=A_{TM}$ (the accepting problem), but got stuck when for the other language $L'$, I needed the turing machine that accepts it. But how could I summon this machine... |
Supposed I have a set of simple rules, e.g.
if A is between 10 and 20 and B is between 3 and 5, then use 3
and this rules are used in some kind of (more or less) mathematical formula (for example, A + B = C), would you count this as a form of reasoning or inference of a knowledge based system?
You have a knowledge ba... |
I need to prove or disprove $DTIME(n^2)=NL$. It kind of feel obvious that I need to disprove it, because if I have non-deterministic machine $M$ that uses $\log n$ space, then it meets at most $|Q| n\log n\ 2^{\log n}=|Q|\log n \ n^2 = \omega(n^2)$ ($Q$ denotes the number of states) different configurations, which boun... |
I need a data structure that has the following operation:
$\operatorname{prepend}([x_{n - 1}, ..., x_0], x_n) = [x_n, ..., x_0]$
$\operatorname{prepend}$ should be in $O(1)$.
Assume that you have only randomly-accessible lists available. That is the following operations are available that are all in $O(1)$:
$\opera... |
More specifically, I want to:
$^nC_0 + ^nC_1 + ^nC_2 + ..... + ^nC_k$
I tried doing it linearly by calculating $^nC_{j+1}$ by multiplying $^nC_{j}$ with (n-j+1)/j.
The answer it gives is correct for small numbers. Since n and k can be large, I need have keep modding with P, a given prime number.
My method fails since I... |
About a year and a half ago I asked this question regarding $\mathsf{P}=\mathsf{NP}$. The answers have helped me understand the problem tremendously and since then I've dabbled further into the topic.
With that stated, it is my understanding that $\mathsf{NP}$-complete problems are such that if a solution for $\mathsf... |
My trees are rooted and have at most two children at every vertex. I need references that help me solve any or all of the questions below:
How many isomorphism classes of trees with n vertices are there?
What are the classical algorithms to decide if two given trees are isomorphic?
Is there a nice (computable?) isomor... |
I am trying to compute a single-source shortest path in an interprocedural control flow graph (iCFG).
That is a directed, unweighted, cyclic graph with edge labels. Some of these labels represent interprocedural call and return. The impact of these is that they determine which edge must be traversed on a call return.
... |
I have been looking at algorithms that allow you to generate $k$-combinations of a given string.
My question is that why isn't the algorithm used to generate power sets used to generate the combinations of a given string? That is, we can just use a binary counter of length $n$ with $k$ ones set to select $k$ elements f... |
Assume that you are writing sorting algorithms, and that you want the ability to select between ascending and descending order. The only change required to do this for comparison sorts is to use the inverse of the comparison operator (for example: > becomes <). This begs the question, why is it not possible to change o... |
Can somebody help in brainstorming how to apply the map as a hashing function?
I am aware that chaos is used in cryptography but I fail to understand how to apply it. Most popular hashing techniques is the modulo hash function Why is it best to use a prime number as a mod in a hashing function?
A modulo chaotic functio... |
I have a question concerning several NP-hard problems and why they are (or are not NP-complete).
I understand the concepts behind NP-hard and NP-complete: Problem lies in NPC if it is NP-hard and also in NP (we can verify its solution in polynomial time).
I know that Traveling Salesman (TSP) is NP-hard but isn't NP-com... |
I'm following Li and Vitanyi's book "An introduction to Kolmogorov complexity and its applications" 3ed. I'll rewrite here the definitions I need for my question.
The authors define the reference universal lower semicomputable semimeasure as
$$ \textbf{M}(x) = \sum 2^{-K(\mu)} \mu(x) $$
where the sum goes over all lowe... |
I am somewhat confused here about the Landau notations. Let's say we are dealing with function from $\mathbb{N}$ to $\mathbb{R}$. Then we can define $\mathcal{O}(f) = \left\{ g : \mathbb{N} \to \mathbb{R} | \exists c > 0 \text{ such that } g \leqslant cf\right\}$. Ok, so every function $g$ that is asymptotically smalle... |
There are many programming languages in use throughout the world today, including languages that specialize in database manipulation, functionality, object-orientation, concurrency, etc. Would there be any point in making a language that could do all these things very well, or is it best to keep these languages separat... |
Given a Turing Complete Language, the optimization problem would be: Given inputs x and S, where x is a finite binary string and S is a limit on steps, find the shortest program in that TC language that outputs the string x in less than or equal to S steps. (With S being in unary.)
My question is how approximable this ... |
I used to think that NP complete problems are the "hardest" problems of all problems that would still be in P if P=NP. Now I think otherwise. What I'm asking is if there are any problems that are proved (/believed/maybe) to be harder than NP-Complete if $P\neq NP$, but are certainly in P if $P=NP$.
I was thinking of th... |
I ran the following grammar (pulled from the dragon book) in the Java Cup Eclipse plugin:
S' ::= S
S ::= L = R | R
L ::= * R | id
R ::= L
The items associated with state 0 given in the Automaton View are as follows:
S ::= ⋅S, EOF
S ::= ⋅L = R, EOF
S ::= ⋅R, EOF
L ::= ⋅* R, {=, EOF}
L ::= ⋅id, {=, EOF}
R ::= ⋅L, EOF
S... |
I've tried to prove it for several days but I can't make sure if it is equivalent to max-3-SAT problem? This problem seems similar to the proof of SAT ∝ 3-SAT except the case where there are more than 3 literals in each clause.
so, we could prove that a clause with more than 3 literals could be broken into several 3-SA... |
Suppose I have a basic mathematical function like:
$ f(x) = x^2 + 2$
implemented in typed pseudo-code as:
int f(x) {
return x*x + 2;
}
If we were to break out this procedure into a step-by-step sequence of actions, we have the following:
f: procedure(int x) returns int:
set int(temp) as multiply(x, x);
s... |
Computer reads binary. Now my question is, what is the use of hexadecimal, octal and decimal? Do Computers understand or can read hexadecimal, octal and decimal? This question remains a mystery for me. Why memory locations use hexadecimal, it should be in binary right? Or is it because it is a binary and by time we rea... |
I am trying to study for an exam and I noticed a lot of the questions follow the idea of "Changing the ISA". From my understanding the ISA dictates the structure and format of instructions, so changing instructions or the format (32 to 64 bit) would change the ISA. However I ran into a question which I am not sure how... |
In the lecture we are told about the very basics about CPU. However after the introductory part I found that there are still some things I don't understand too well or which were not really addressed in detail in the lecture.
When we talk about CPUs and micro commands in lecture, we are mainly looking at the following... |
I am working on some lossless compression topic and looking on any resources or prior studies on lossless file entropy predictability.
Assuming we know type of the file (we can tell its belongs to certain group and it is not falsified). Can we predict file entropy of any file in that group of files based on its size?
G... |
I'm self studying automata theory and I need help with proving that regular languages are closed under reversal.
I have a basic proof, but am unsure about last statement in my proof. Is this sufficient? Could you help me explain why it works? Is it rigorous enough?
Problem:
For any string $w=w_1w_2\cdots w_n$, the reve... |
I'm looking for an efficient algorithm for the following problem:
Input: a binary, complete tree with a cost on each edge, an integer $k$
Output: the maximum-cost subtree containing $\le k$ edges
For purposes of this problem, a subtree is defined to be a connected subset of edges. Each edge of the tree has a cost, and... |
Consider the town as a grid $N$ x $N$. Thus, there are $(N+1)(N+1)$ of junctions and $2N(N+1)$ two-way roads. Every intersection has a height. It is known that the upper left intersection has a height of $0$, and the lower right the height $1$. For each road we know how many people go in each direction on this road. In... |
As per the definition of power law, the fraction P(k) of nodes with k degree for large values of k , given by
P(k) ~k ^-r .
In this definition, the term large value is not clearly defined. Does large implies 100 or 10^3 or 10^6?
Does the definition implies that vertices in power law graphs have almost constant degree... |
Assume you implement a heap using an array and each time the array is full, you copy it to an array double its size. What is the amortized time complexity (for the worst case) of inserting elements into the heap?
I think that we have $T(n) = n \cdot n$ (which is an upper bound on the total cost of a sequence of n opera... |
I'm learning about data structures, and there's a problem where, given a collection of words $X = (x_1, x_2, \dots, x_n)$ (can include duplicates), I have to find out if it's a palindrome or not. I'm looking for an algorithm that runs in $O(c n)$ time, where $c$ is the maximum length of any word in $X$.
A collection is... |
Is this known as a fact or from some analysis that the MNIST data-set is almost as if its sampled from some low (~10?) dimensional manifold? Is there a locally linear embedding to a low-dimensional space? Of course I don't expect the data will be exactly on some low dimensional manifold; there will be some noise.
|
I have read various references that for 3-SAT instances with large numbers of clauses, the optimal clause/variable ratio to generate 'difficult' instances is around 4.
However, I would like to know if there is a similar result in the case for the number of clauses is small. For example, for < 20 clauses?
For example, ... |
I am studying the past exam paper of course Theory of Computation. I know it is always possible to convert a k-tape Turing machine to a single-tape one, but how will the running time complexity be changed?
|
I'm defining 'Hard AI' as a human-equivalent intelligent machine, or beyond that. Contrast with 'Soft AI' the type of software that runs on your email filter for example.
I've been chewing on this problem for a little while now, and would like some feedback on my logic. This is the only place I could think to put it, s... |
I was thinking about variants of bin packing and thought of this variant wherein the given $m$ bins have size specified(not necessarily same) and we need to put $n$ objects in them. Is this still NP Hard, considering that bin packing is NP hard?
|
I'm trying to figure out amortised analysis of this loop and I can't figure out how to prove that complexity is $O(n \log n)$.
Operation OP(S,X[i]) has complexity O(log|S|) and operations push and pop has constant complexity O(1).
S <- Emptystack
for i=1 to n do
while (S!=0) and OP(S,X[i]) do
pop(S)
od... |
The change-making problem with unbounded repetition is:
Input: Unlimited quantities of coins with values $x_1, \ldots, x_n$ and an amount $v$.
Output: Can the given $v$ amount of money be made with these coins?
The first recurrence is based on the subproblems of
$C[w]$: can $w$ be made with these coins?
$$
C[w] =... |
I have a flow network with gains. In practical terms, a gain is the opposite of a cost. So, I interested in finding the maximal gain of a network flow, what could be interpreted as finding a maximum flow at the maximum cost (or gain).
I'm planning to solve this problem by negating the arc costs and then to compute the ... |
Everyone is familiar with most recently used files lists in software and in OSs like Windows.
Some programs just sort by time. I've always been fairly annoyed at this. Others like Windows take usage count into consideration. Some move the item halfway to the top each time it is used, which seems to make sense.
Rather t... |
Is one of these two functions more numerically stable than the other?
def interpolate_a(x, y, z):
return y + (z - y) * x
def interpolate_b(x, y, z):
return y * (1 - x) + z * x
If so, which one is better and why? After testing these functions with several million inputs, they have always returned the same val... |
Classically, multiplication can be done in $O(n \ \lg(n) \ 8^{\lg^* n})$ steps on a multi-tape Turing machine via Fürer's algorithm. Using that algorithm, combined with uncomputing, you can make a quantum multiply-accumulate circuit with the same bound: $O(n \ \lg(n) \ 8^{\lg^* n})$ gates.
But quantum circuits have mor... |
Suppose I have a set of 1000 binary strings of fixed length. I wish to divide these 1000 strings into 10 subsets of 100 strings each, in such a way that the subsets are maximally homogeneous. I want each subset of 100 to be as internally similar as possible. Similarities between subsets of 100 are of no consequence.
I ... |
I'm trying to get a better handle on oracle separations between complexity classes but I keep running up against some (seemingly) silly issues that make me think that I'm fundamentally misunderstanding something (or more than one thing).
For example, I understand that for an oracle separation to hold in the unrelativiz... |
If we have a function $g\colon \mathbb{N}^{k+1} \to \mathbb{N}$ which is primitive-recursive. How to show that the function $f\colon \mathbb{N}^{k+1} \to \mathbb{N}$ with
$$f(x_1, \dots, x_k , x_{k+1})= \sum_{i=0}^{x_{k+1}}g(x_1,\dots, x_k,i)$$
is also primitive recursive?
|
Given that the halting problem is RE-Complete, we can reduce any problem in RE to an instance of the halting problem. Are there are any results on the time-bounds for this reduction? Can we do this reduction in polynomial time in general? Exponential time? Polynomial space?
On the surface, defining an oracle machine li... |
I am analyzing data of insurance companies and for some reasons the data that was provided doesn't have any response variable of whether an insurance claim is legit or suspicious.
Are there any ways to generate the required response variable from the data that is available to us. I can think of clustering (hierarchical... |
Given a language $L \subseteq \Sigma^*$, (it could be Italian, English, C++ or anything else), should we consider the punctuation (".", ";", "->") as a part of the alphabet $\Sigma$ upon the language is built on or not?
|
I'm reading about Knapsack problem. The approaches to solve that I found:
Branch and bound
Brute force
Dynamic programming
Memory functions
Greedy
All solutions have exponential time in terms of bits. There is a solution (maybe an approximation algorithm) that solve Knapsack problem with polynomial time in bit terms?... |
Let $\Sigma=\{0,1\}$ be our alphabet. Let $L$ be some context-free language, which is known to start and end with 0's, meaning that every word $x$ in $L$ has a form $x=0y0$. Let $M$ be a language obtained from $L$ by deleting one starting and one ending $0$, $L=0 \cdot M \cdot 0$.
My question:
Is $M$ still context-free... |
Given a linear time mu-calculus formula, there are many works on transforming the formula to Buchi or Parity automaton. Using the best algorithm, what is the size of the resulting Buchi automaton and parity automaton?
Suppose the size of the formula is n which is the number of subformulae, then, how many states and tr... |
I'm very confused when I see the following statement in the famous CLRS book "Introduction to Algorithms (3rd)", ch34.2, page 1063:
...and therefore the running time is $\Omega(m!)=\Omega(\sqrt{n}!)=\Omega(2^{\sqrt{n}})$...
How can the second inequality be possible since $n!$ is super-exponential and it grows always ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.