instruction stringlengths 35 29.1k |
|---|
In the paper, Paxos Made Simple, Lamport describes a round of Paxos as two phases: a $prepare$ phase, and an $accept$ phase. An instance of Paxos can have multiple rounds. Can a round have multiple proposers make proposals, or is it strictly one proposal per round?
In addition, I found a number of sources which indicat... |
There is a network with $n$ nodes. Each node can contact only the neighbouring nodes (the degree of each node is bounded, if that matters).
One of the nodes, say $s$, wants to know $n$. How can it do this?
Each node has $O(\log n)$ memory bits, so it can hold a counter, but not a list of all nodes.
If the network is a... |
To my understanding,
a dedicated system is a computer system capable of performing 1 specific task
an embedded system is a computer system within a larger system that performs a specific task
Is there a difference that i'm missing or is dedicated system just a more generic term for referring to things like 'file server... |
I need an algorithm to search for substrings. I checked different resources, and it seems that the most known algorithms are the Boyer–Moore and the Knuth–Morris–Pratt.
However, as far as I understand, these operate on "regular" strings, but what I need is a substring search on a circular string.
A circular string as a... |
I am learning about unsupervised machine learning, and am a bit confused regarding different algorithms to update weights. So, I understand that both Oja's Rule and BCM can be used.
In Oja's rule:
dw/dt = k*x*y - w*y^2
Where x is the value at the input neuron, y is the value at the output neuron and w is the connectio... |
I'm not certain I can accurately describe the problem using my knowledge of discrete math, so pardon any inaccuracies. Happy to clarify any part of the question which is unclear.
Given the following constraints:
Two sets, each with 'n' elements: 'donors' and 'recipients'. $|D| = |R| = n $
Each donor has a maximal nu... |
I'm trying to wrap my head around HoTT and can't figure out the intuitive meaning and validity of the univalence axiom. IIUC this axiom says:
UA: ∀ A,B:Type . (A = B) ≃ (A ≃ B)
where X ≃ Y is a shorthand for (X → Y) ∧ (Y → X).
When I take A and B to be propositions, this makes a lot of sense: it basically gives my th... |
I read that visibly pushdown languages are supposed to model the typical simple formal languages like XML better than deterministic context free languages. The visibly pushdown languages can be recognized in LOGSPACE. I wonder whether the well-formed formulas in predicate logic for a given signature are a visibly pushd... |
My algorithm book states that any n-vertex binary tree T can be partitioned by just removing a single edge into two disconnected trees A and B where neither of them has more than 3/4 of the vertices.
It sounds like it should be simple to create such a tree, but I can't imagine one, my bisections are always better balan... |
For $\Sigma = \{a,b\}$, let $S_n = \{w\mid w \in \Sigma^{*} \land |w| = n\}$.
Let $C_n \subset \Sigma^{*}$ be the language of circular strings that contain as substrings all elements of $S_n$.
For instance, $bbaaaababaabbbba \in C_4$
I have formulated the problem of finding the subset of $C_n$, formed by the circular ... |
If I understand right then ESP tree is defined as : given any string $x$ of finite length over an alphabet one can construct "an" ESP tree corresponding to it say $T_x$ such that each leaf of the tree is an element of $x$
Now the above immediately implies that every node in $T_x$ corresponds to some substring of $x$.
... |
In the bounded Integer Knapsack problem, we are given N items of sizes S1 through SN, having values V1 through VN. The problem requires us to find the maximum value that can be attained for a given capacity C, provided we cannot use an already used item twice.
In their book, Introduction to Algorithms, the authors have... |
Say that a language $L$ is a $f$-approximation of a language $L'$ if, for all input lengths $n$, $L$ and $L'$ agree on at least a fraction $f$ of the inputs.
It is known that there are problems in $TIME(n^{3})$ that are not in $TIME(n^2)$. But is it possible that, for every language $L \in TIME(n^{3})$, there is a $.9... |
I'm doing the exercises from the first chapter of the book "Temporal Verification of Reactive Systems Safety" by Manna and Pnueli.
However I find very difficult to solve the point c of problem 0.2.
At point a of problem 0.2 they introduce the program $ANY{-}NAT$. This program has the following propoerties:
All its com... |
I am taking a course on Automaton where I faced the algebraic laws of regular expressions.
First two were ok:
$\emptyset + L = L + \emptyset = L$: Union of a language $L$ with empty language gives the language $L$ itself.
$\epsilon L = L\epsilon = L$: Concatenation of empty string with strings belonging to certain l... |
What is the terminology used for speaking about complexity, when we don't study it asympotically (but exactly) ?
Thank you
|
it is possible to implement insertion sort for sorting linked lists ? will it have the same O(n^2) efficiency as the array version ?
|
Its known that a polynomial time Approximation Algorithm that satisfies 3MaxSAT in 7/8+e clauses implies P=NP. If given that the given 3MaxSAT is satisfiable, it is still difficult to find a 7/8+e clause satisfiability in Polynomial Time.
After learning quiet a few Max3SAT Approximation Algorithms I am still very unsu... |
I have a task where i need to find a problem in which mergesort has to have a runtime of $O(n^2 \log n)$. In our lecture we said that the runtime is $O(n \log n)$ assuming that every comparison is $O(1)$. I think that I have to work with comparison-complexity but I dont know how to create a runtime of $O(n^2 \log n)$ s... |
According to both Wikipedia and my professor (see question 5.1), fractional cascading has to be done on arrays with related data.
The specific question:
A fellow student wants to compactly store A1 and A2 to support efficient range reporting queries on both arrays using a single binary search. He suggest using fractio... |
This question was cross-posted to cstheory.SE here.
Imagine you're a very successful travelling salesman with clients all over the country. To speed up shipping, you've developed a fleet of disposable delivery drones, each with an effective range of 50 kilometers. With this innovation, instead of travelling to each c... |
Using Dijkstra algorithm, how can I find the next shortest path in a directed weighted graph? (When saying next, I mean that the next path must be heavier than the lightest path and not equal). The two paths can have some shared edges.
I thought about storing for each vertex two fathers, and trying to build the second ... |
Given the language $L=\{\alpha \mid M_{\alpha}(x)=x^3$ for all $x\in\{0,1\}^*\}$. Prove using Rice's theorem that $L$ is undecidable.
Rice's theorem: Let $P$ be a set of all computable functions $f:\{0,1\}^*\rightarrow \{0,1\}^*$(i.e all functions which have a corresponding turing machine $M$, such that $M(x)=f(x)$). ... |
After third form normalization, extra tables shall be created. And the functional determinant are used as primary key in the new table, as foreign key in the modified old table. My question is that following this strategy, the referential integrity enforces that when attributes have to be added to the new table before ... |
Knapsack problems, Assignment problems can all be expressed as (MILP) mixed integer linear programs. MILP is NP-complete. But Knapsack problem is solvable in pseudo-polynomial time using dynamic programming and 0-1 assignment problem can be solved using Hungarian algorithm in polynomial time. So what makes a MILP probl... |
I feel like my knowledge of computer science is being hindered by this one concept. I understand the concepts of transistors and how a flow of electricity can turn a transistor on or off, and with the power of logic gates, this can form the foundation of programming. What I do not understand is how these microscopic t... |
Is this a CFL?
$$\{a^n b^m c^k\; : \;k>m \; \; k>n\}$$
When on seeing $a$'s and $b$'s I push them onto stack and as I see $ c$ as input if $ TOS$ is $b$ ,I pop them ,again if $TOS$ is a,I pop them so when my
$TOS$ of stack is empty and input is$ c $,I do not make any changes in the stack and that clearly implies that ... |
The (complexity zoo) description of $NC^1$ says that it is contained in $L$, i.e. $NC^1\subset L$. The description of $SAC^1$ says that it is equal to $LOGCFL$$/poly$, i.e. $SAC^1=LOGCFL/poly$.
The wikipedia article on $LOGCFL$ says that it is situated between $NL$ and $AC^1$. I read this as $NL\subset LOGCFL\subset L... |
If a grammar is of the following form (i.e. all its productions are), is its language regular?
$B → a$ - where $B$ is a non-terminal in $N$ and a is a terminal in $Σ$
$B → aC$ - where $B$ and $C$ are in $N$ and $a$ is in $Σ$
$B → ε$ - where $B$ is in $N$ and $ε$ denotes the empty string, i.e. the string of length 0.
$... |
I am reading Elements of Statistical Learning and read the following claim from the text (page 93, Chapter 3.7):
Least squares fitting is usually done via the Cholesky decomposition of the matrix $\mathbf{X}^T\mathbf{X}$ or a QR Decomposition of $\mathbf{X}$. With $N$ obserations and $p$ features, the Cholesky decompo... |
Doesn't the receiver have to send back an acknowledgement frame?
So how can it send back a frame, since a simplex channel only allows transmission in one direction?
|
Given two strings $x$ and $y$ over the alphabet $\Sigma$ one defines the edit-distance $\text{ed}(x,y)$ as the minimum number of substitutions, insertions and deletions of characters required to transform $x$ into $y$.
If $m = \max ( \text{len}(x),\text{len}(y) )$ then padding with appropriate zeroes on the smaller st... |
I have an unweighted undirected graph with every node connected with an average of two hundred other nodes (nodes are people from social network). What will be the fastest algorithm to find the shortest path from one node to another?
|
The Mandelbrot set is a beautiful creature in Mathematics.
There are a lot of beautiful images of this set created with high precision, so obviously this set is "computable" in some sense.
However, what concerns me is the fact that it is not even recursively enumerable - simply because the set is uncountable. This coul... |
Questions:
Can there be a (cryptographically secure) hash that preserves the information topology of $\{0,1\}^{*}$?
Can we add an efficiently computable closeness predicate which given $h_k(x)$ and $h_k(y)$ (or $y$ itself) tells us if $y$ is very close to $x$ (e.g. the Levenshtein distance or Hamming distance of $x$ an... |
I am student of CS. Problem is, I feel that I don't have enough math knowledge to solve mathematical problems. When some programming problems arises which needs some math skills to solve then despite of the fact that I know how to code I can't solve it. For example, if I don't know the formula for area of circle, I can... |
I started research on nearest neighbor search in IR a couple of weeks ago.
I am still very new to this field, but what I discovered so far from literature is:
1) For the exact nearest neighbor search problem, there are only efficient algorithms, if the dimension of your dataset is $<10$. With increasing dimension ever... |
How do you prove the following?
$$f(N)=N\space lg\space N + O(N) \implies f(N) = \Theta(N \space log \space N)$$
Here $lg\space N \equiv log_2\space N$, and $O$ stands for the big-O, and $\Theta$ stands for big-theta. And $log \space N \equiv log_e \space N$, i.e. natural logarithm
My reasoning may not be all that math... |
I am often ill at ease with Landau (Big O) notation, because it seems
often to be abusing mathematical notation. The best example is the use
of the equal sign to express a set membership. And this can be
misleading.
I have an algorithm that is dependent on two parameters $n$ and $m$,
which are the respective sizes of t... |
I'm struggling with a past paper question and would appreciate any hints:
Suppose $L_1, L_2 \in $ NP $ \cap $ coNP and $L_1 \oplus L_2 = \{ x : x $ is in exactly one of $L_1 $ or $ L_2 \} $. Then prove that $L_1 \oplus L_2 \in NP \cap coNP$
|
I am new to turing machines, I am having problems with mapping a function to a turing maching that computes that particular function. for example:
f(x) = 2x + 3 n>= 0
MIN(x,y) leaves the smallest between x and y on the tape. e.g. x=2 y = 3 i.e. #aabaaa
I am not looking for a solution to the above but some kind of p... |
Consider the operation $A(L)$:
$$A(L) = \{ w: w\in L \land w_R \notin L \}$$
where $w_R$ is the reverse of $w$.
Prove/ Disprove: if $L$ is a CFL language so does $A(L)$.
I am almost certain there's a counter-example but I couldn't find a proper one. I'd be glad for help!
Thanks
|
Let the regular expression $R = ((a^*\cup \emptyset \cup \varepsilon^*)^*b)^*$ above $\Sigma = \{a,b,c,d\}$. What is the minimal number of states for a DFA accepting this regex?
$1$
$2$
$4$
$5$ or more
So for my understanding, this regex is equivalent to $(a^*b)^*$. I was able to build the following DFA, neverthele... |
I need to construct a DFA which accepts the following language:
$$
L = \{w \in \{a,b\}^{\ast}\mid \#_{a}(w) \bmod 3 = \#_{b}(w) \bmod 2\}
$$
I have no clue how to solve this issue. Can you please help me?
|
I'm having trouble with this problem as I haven't discovered a good way to determine the power of a Turing machine. I was under the impression that if a Turing machine can perform the same actions and satifies unrestricted access to unlimited memory they're all pretty much equivalent. Such as multiple tapes and nonde... |
I was reading this article on the complexity class $PP$.
In the fourth paragraph there is a claim that $P^{\text{#}P} = P^{PP}$ and that it can be proved using binary search. Can anyone please explain this in better detail?
The author himself gives the following explanation: If $f$ is a $\text{#P}$ function then the la... |
I heard several possible explanations, so I would like some trustable reference.
Update 05.19:
I'm interested in the question because one of mine students wrote in his thesis that the name comes from the below explanation (1). Until now I thought/heard that it comes from explanation (2). I would feel bad both for letti... |
I'd like to implement a similarity between two nodes (X and Y) of a graph based on a simple extension of the Personalized PageRank algorithm, either:
(Mutual PageRank): the product of the PPR of Y with respect to X and of X with respect to Y, or
(Round-trip PageRank): the probability of a resetting random walk complet... |
I'm struggling to solve this past paper question and my lecturer is being less than helpful. The question is:
Apply the perceptron learning rule to update the current weight vector (0.1, 0.3) when the learning rate is 0.01, the input vector is (2.0, 4.0), and the error vector is (1, -1).
What has me confused is the us... |
Are spatial data structures like BVH - Bounding Volume Hierarchy ,kD-Trees etc are part of Computational Geometry( http://graphics.stanford.edu/courses/cs268-14-fall/) or of
Data structures and Algorithms( http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-851-advanced-data-structures-spring-2012... |
You have an Array of length n. If you pick a sub-array from the array, it must contain at least one unique element. The sub-array could be of any length but must contain consecutive/successive elements.
The question is what is the minimum number of characters you need to ensure that your array has the property mentione... |
I'm currently an undergrad whose been amazed by what Turing has done for the world. I know there are plenty of other amazing individuals, but Turing's work specifically has always sounded the most interesting to me and I'm finally at the point where I can understand some of it. So my question is, where do I really begi... |
Reading a course on genetic programming, the first chapter describes the syntax tree as the basic representation of programs in genetic programming.
What are the reasons leading to the choice of a syntax tree in genetic programming? Are there any particular assets in using this representation?
|
Context Free languages is exactly the class of languages recognized by Nondeterministic Push Down Automata (NPDA).
We can view a nondeterministic transition as a guess; for example if $L = \{x x^R \}$ then an NPDA can guess the middle of the string and correctly recognize $L$.
But this kind of guess "cosumes the stack ... |
Let $L_1, L_2$, two regular languages and the operations:
$$Mix_1(L_1, L_2) =\{ a_1b_1a_2b_2\ldots a_nb_n | n\ge 0 \land a_1,a_2,\ldots ,a_n,b_1,b_2,\ldots ,b_n\in\Sigma\\ \land a_1a_2\ldots a_n\in L_1 , b_1b_2\ldots b_n\in L_2\}$$
$$Mix_2(L_1, L_2) = \{ x_1y_1x_2y_2\ldots x_ny_n | n\ge 0 \land x_1,x_2,\ldots,x_n,y_1,y... |
Let the operation $$Perm(L) = \{ w | \exists u \in L \text{ such that } u \text{ is a permutation of } w \}$$
Prove that both regular languages and CFLs aren't closed under $Perm(L)$.
I've tried to use several well-known languages (like $\{0^n1^n\}$) and applying $Perm(L)$ and afterward manipulate them or using the p... |
this is my first question on ComputerScience beta. :)
I've posted a similiar question on Mathoverflow and a friendly user advised me to post my question on this site.
Problem:
I'm looking for TSP heuristics in the case of limited information about the edges, for example: I have $n$ nodes but can only ask for $~\sim4n... |
where is all deleted data will go from a memory system ?
if it is not deleting actually where it storing ?
i am always wonder about this when we are sending something to a memory system it takes long time (depends up on usb port) and when we are deleting it not taking more than a bling of eyes and disappears actuall... |
I'm currently confused whether a graph should contain strictly one distinct Hamiltonian Cycle. (given that [1,2,3,4,1] and [2,3,4,1,2] are the same).
I was wondering if, by definition, there can be multiple distinct Hamiltonian Cycles in a graph? something like H1 = [1,2,3,1] and H2 = [6,7,8,6]
can someone kindly confi... |
I am pretty new to ATP, but I'm really enjoying playing around with prover9. I have found a nice set of axioms for basic information-theoretic proofs here, I was wondering if there are some collections of axioms for other purposes too, e.g. probability theory.
I found a gigantic set of axioms for TPTP programs here, bu... |
I guess this is true, because log is a strictly increasing function, but how do I prove it formally?
I tried something like:
Let $f(n)$ and $g(n)$ be monotonically increasing functions, $c \in \mathbb{R}$ and $n_0 \in \mathbb{N}$, such that $0 \leq f(n) \leq c g(n)$, for all $n \geq n_0$. We must find $c'$ and $n_0'$ s... |
What is the reason that almost all computers (besides some DSPs) use byte addressable memory? With byte addressable memory and a 32 bit address you can have 4GB while with word addressable memory you can have 4GB * wordsize. Are single bytes used that much that you can't use routines that filter out single bytes from a... |
You are given a weighted undirected graph G = (V,E). You have run Prim's algorithm and found the MST of this graph. Now you pick one edge that is not part of the MST and reduce its weight by some value. You now want to come up with a smart way to find the new MST of the graph.
My approach would be the following. Take... |
I have the following adjacency matrix for a graph with nodes {a,b,c,d}:
\begin{bmatrix}
& & a& b& c& d\\
& & & & & \\
a& & 0& 1& 100& 10\\
b& & 13& 0& 2& 100\\
c& & 100& 12& 0& 3\\
d& & 4& 100& 11& 0
\end{bmatrix}
I want to apply the Warshall-Floyd algorithm. I can do this since I kno... |
Let the language $$L = \{ w: \text{ for any prefix } u \text{ of } w :
\left|\#_o(u) - 2\cdot \#_1(u) \right| \le 2 \}$$
What is the minimal number of states for a DFA, accepting $L$?
$4$
$5$
$6$
$\infty$ (The language isn't regular)
Now, although the intuition says the answer is $\#4$ it's actually a regular lang... |
On "partial planarization" I understand an algorithm, which tries to reach an optimal, or nearly-optimal solution for non-planar graphs. For example, which minimizes the number of the crossing edges (but I can imagine some other viewpoint, too).
I think, a such algorithm could be maybe even fast (around $O(V^3)$ or may... |
Given a directed weighted graph, is there an algorithm that does the following:
Removes as many edges possible.
Reduces as many weights as possible.
Given the constraint that the net weight of all edges connected to the vertex (sum of incoming edge weights minus sum of outgoing edge weights) remains the same and ever... |
Is there an example of a timed automaton that requires infinite clock precision, in order to be controller so as to avoid a deadlock or bad state?
I.e. a transition system that consists of nodes connected by edges, and one or more real-values clocks. Nodes can be attributed with invariant (inequation on clock(s)), and ... |
I assume no, because a Turing machine that can only move right feels like it is not a Turing machine. But, I wonder if I can add a Reset to the right moving Turing machine that resets the what head is pointing at all the way to the left of the TM. However, doesn't this make it left moving??
hmm...
|
Let us fix an alphabet $\Sigma$ of size $c$, then we have the finite language $\Sigma^n$ which is the set of all $n$ length words. For each $N,M$ how many words are there in $\Sigma^n$ such that no sequence of $N$ characters repeats $M$ times in a row?
For instance with N=2 and M=3
101010 would not be counted, but 1110... |
Given a DFA M that satisfies language A, how do I modify M such that a new language B consisting of all strings that are accepted by M and cause M to enter a specific state r at least once are satisfied by the modified DFA?
I try to remember whether state r is visited or not. But as I known, unlike turing machine, DFA ... |
I'm trying to simulate a boardgame what can be played on a board with an arbitrary lattice, anything from triangles to heptagons to 37-sided regular polygons is allowed. Moreover the shape of the board is also arbitrary.
I need to represent this board in a data structure in which each tile has as its property a list o... |
Hello Everyone I was hoping I could ask you to check to my work on this CNF,
These are a pain to me and I want to make sure I'm doing it right the first time
The language:
L = {w|w accepts |a|<|b|} i.e.abb, bab, b
____________
The Grammar:
S-> Tb,bT,SS,b
T->aTb,bTa,TT,lamda
... |
I have string which is composed of letters. I want to assign each letter a unique number (letters that repeats should have assigned same number as first unique letter occurrence) and plot those numbers on graph. X-axis will represent the particular letters of string (read from left to right) and y-axis will represent t... |
What are properties of a formal language? Which and how would they be needed to prove that some Non-Deterministic finite state machine can accept a given language?
|
I have a language $L$ that I think is not regular:
$L = \{w\in \{0,1,...,9\}^* \; | \enspace w \enspace \text{is a decimal representation of a number divisible by 3}\}$
I'm using pumping lemma in my proof. My main main idea is the following. I choose $w = 3$, according to the pumping lemma $w = xyz$ with $xy^iz$ where ... |
My intuition is telling me that this is not the case. But I am having trouble formulating a proof for this.How do I prove it ?
|
I want to compute the partial order width i.e. the size of the maximum antichain in a given partial order.
By Dilworth's Theorem this is the same as minimal chains required to decompose the graph, but I cannot find any algorithms to compute any of these equivalent quantities.
|
I've designed an algorithm, is which responsible to process some samples from normal distribution under aegis of some deterministic steps. In other words, the algorithm generate unique response to a unique set of the random set of input.
Now I am prone to plan a title for the corresponding paper and there is a noticeab... |
Let a language, $L$ such that the equivalence relation, as defined in Myhill–Nerode theorem has $4$ equivalence classes; $A_1, \ldots, A_4$.
Let $S = A_1 \cup A_2$.
Is $S$ always regular?
How many equivalence classes does the relation $\sim S$ creates?
I think we may construct two DFA's, $D_1, D_2$ which accept $... |
I was reading this article on how to represent graphs, and probably the simplest way to think about it is to have a list of edges, with an edget being usually a list of the vertices that are related (connected).
Now, at a certain point, there's a question:
How can you organize an edge list to make searching for a part... |
While I was solving a programming competition question, I came across a technique advertised as suitable for the solution. A so called Fenwick tree (a.k.a binary indexed tree) was at the heart of this technique. So in an effort to understand Fenwick trees, I researched all online sources in vain because reading them in... |
In a book I am reading it is stated that an input/output intensive process should receive a higher time quantum whereas a computing intensive process on the other hand should receive a lower one. Here however, it is stated that:
A short quantum is good because it allows many processes to circulate through the processo... |
Below I am using a DFA transition function that is extended to accept words instead of just symbols. Let's say it is given that the following information is true:
$$\delta(q_0, 0^3) = \delta(q_0, 0^6)$$
Using this information it can easily be proven that:
$$\delta(q_0, 0^6) = \delta(q_0, 0^{15})$$
is also true.
Howeve... |
I understand the proof of the undecidability of the halting problem (given for example in Papadimitriou's textbook), based on diagonalization.
While the proof is convincing (I understand each step of it), it is not intuitive to me in the sense that I don't see how someone would derive it, starting from the problem alon... |
Due to Tarski's result, it is well-known that the first-order theory of reals $(\mathbb{R},+,\cdot,<,=,0,1)$ is decidable. I am working on a paper where I need an extension of this result. More precisely, I would like to consider formulas that involve rational functions, rational coefficients, minima and maxima. Trigon... |
I still confuse what is a regular language. I read some books, i know if language likes (a^n b^m| n,m>0), it will be regular language since n and m are not related. I know using pumping lemma can prove a language is regular or not, but for this one{a,b}*, i don't know how to do it.
|
I did max(logn , log((n^3) + 1) ) = O(log((n^3) +1)).
May I get verification is correct or not?
log(n^3) is a worser algorithm than logn because n^3 grows faster than n.
|
Why is the big O of this function O(n^2)?
Isn't this just a sum of constant terms? Shouldn't the function be O(1)?
|
Let the language $$ L = \{ a^nb^m : m,n \text{ has the same integer-quotient, (ignoring the remainder) } \} $$
Show that $L$ isn't regular using the pumping-lemma.
Let's assume by contradiction that $L$ is regular, then there's a constant $p$ which answers the conditions of the lemma for every $w\in L$.
Let's observ... |
I am trying to prove that any deterministic 1-tape Turing Machine which recognizes the language $L = \lbrace{0^n1^n | n \geq 0 \rbrace}$ requires
$\Omega(\text{log }n)$ space.
I believe this can be done using a crossing sequence argument.
I have been trying to imitate the $DSPACE(O(1)) = REG$ proof from wikipedia.
Wha... |
Consider to following decision problem:
Input: Undirected graph $G=(V,E)$
Question: Is the minimum numbers of colors needed to color the vertices (such that every two adjacent vertices aren't colored the same) exactly 2015?
Note that 2015 could be any fixed number. This number is not part of the input.
I need to und... |
Given an integer $k$ and a Boolean CNF Formula $\phi$, Weighted Satisfiability asks whether $\phi$ is satisfiable by a model of weight $k$, i.e., a model that sets at most $k$ variables to true. This problem is W[2]-complete with respect to the parameter $k$.
Let $l$ be the maximum number of clauses that share a common... |
We're given a $N\times M$ grid, and we want to cover all coordinates in the greedy by rectangles of size $\le k$.
Consider the following greedy algorithm. At each iteration, it chooses a rectangle of area $\le k$ which covers as many uncovered elements as possible. If more than one such rectangle exists, it chooses o... |
what is the algorithm for enumerating all maximal independent set on trees (without the constaint of lexicographic order) .
It 's very natural to find an algorithm faster than $ O(3^{n/3})$ on trees .
In fact ,in trees we have at most $O(2^{n/2})$ maximal independent set but I try to find an algorithm to enumerate t... |
Look at the last problem on page 2 here,
http://www.cs.nyu.edu/~khot/CSCI-GA.3350-001-2014/sol3.pdf
All one wants to do is to convert a $x \in \{ 0,1\}^n$ into a $y \in \{0,1\}^k$ . Then just a linear transformation would have been enough. Why install this vector "b"?
If $a_1,x_1,x_2 \in \{0,1\}^n$ and $b_1,y_1,y_2 \... |
So this is sort of a general question but I'll limit the discussion to randomized quicksort to make it clear. Suppose generating "true" random bits is hard, e.g. because it requires measuring something in nature that can be considered essentially "random" like the 50th binary digit after the decimal point in wind speed... |
Consider the problem of finding a maximum flow from node $s$ to node $t$ in a directed graph where each link has capacity either $0$ or $1$. What is the state of the art regarding how fast this flow can be found?
It seems that the Dinic Algorithm will accomplish this $O \left( m n^{2/3} \right)$ where $n$ is the numbe... |
I have an application that basically reduces to testing whether a given function vanishes identically. The function is given symbolically, using unary and binary operators on complex numbers. For example, we might want to test the function $(z+1)^2-z^2-2z-1$. (It could be a function of more than one variable.)
The prob... |
edited for clarity:
I have two functions–$f(x)$ which returns an integer and $T(x)$ which returns a boolean–that operate on a bit array of length $n$. I am trying to maximize $f(x)$ over all $x$ which satisfy the condition $T(x) = true$. I also know that if $b$ is a binary subset of $a$ then $f(a) > f(b)$ (e.g. $f(0b11... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.