instruction stringlengths 35 29.1k |
|---|
How do I solve the following recurrence?
$$
f(0) = 0, \quad f ((1)) = 1, \quad f((n+1)) = 2*f(n) - f(n-1).
$$
|
By intuition $n^{\log n}$ should be as the same as $n!$. By Stirling's approximation, $n!=n^ne^{-n}\sqrt{2\pi n}$, which makes me think both are also the same. So, is this $O(n!)$ or $O(n^{\log n})$?
|
Assumef,g,hare three asymptotically nonnegative functions i.e.f(n),g(n),h(n)≥0 for all values of n∈N∪{0}. Furthermore,f(n) =O(g(n)) andg(n) =O(h(n)). Answer following questions as True or False. Justify your answer.
a) f(n) = 3^n−n^2 and h(n) = 2^n
We take limits and then what.I got stuck while doing log.
|
Assuming 3-OCC-MAX SAT is the language of all CNF formulas in which every variable appears in at most 3 clauses. Is this problem NP-Complete? I'm trying to find a karp reduction between SAT and this problem, but I couldn't find it.
|
I got this doubt while reading about AVC in Csiszar Korner's book.
Corollary 12.3 The $\epsilon$-capacity of the AVC {$W : X \to Y$}
average probability of error equals, for every $0 < \epsilon < 1$, the
corresponding $\epsilon$-capacity of the AVC {$\mathcal{\bar W} $}. It does not exceed
the minimum of $C(W)$ as $W$... |
Let $G= (V,E)$ be a directed graph with $n$ vertices.
A sink is a vertex $s\in V$ such that for all $ v \in V$, $(v,s) \notin E$. Devise an algorithm that, given the adjacency matrix of $G$, determines whether or not $G$ has a sink in time $O(n)$.
Does this pseudocode code look good?
# Input: An adjacency matrix G
# ... |
In binary the carry/borrow is 2, in hex the carry is 16. What's the reason for this?
|
In a list of 15 entries (city names) if searching for a particular name what is the average number of comparisons using linear search? Worst case it would 15 comparisons and best case it would be 1 comparison. Is the following calculation the average number of comparisons? If not, how do I calculate the average? Thank ... |
I have a dataset that contains some strings. A numeric value is assigned to each string.
I want to develop a machine learning (deep learning) model to get a string and predict its value.
What neural network do you suggest for this model? Should I use RNN (LSTM)?
|
I'm going over "Algorithms fourth edition" by Robert Sedgewick and Kevin Wayne.
In the chapter on hash tables I have encountered an easy hashing method called "modular hashing"
hash = k % m
Where k is the key and m - 1 is the size of array (minus 1) that stores the values. Authors suggest to use primary numbers for m ... |
I'm thinking of doing a project on deepfake detection, but I'm not entirely sure if it is viable. Based on my understanding, how it works is that deepfake generation programs have a generative and discriminative network, and eventually after training, the systems reaches an equilibrium where the discriminative network ... |
I am in an AI class where we have extensively learned about propositional logic.
I am wondering what the point of learning this is? Are there any uses for propositional logic? Beyond basic logic gates I can't think of any.
|
I'm learning about the Binary Indexed Trees, and I understand how it works, but I'm interested in the theory that there is behind!
In particular, I don't understand what is meant the following definition on TopCoder
The algorithms for BIT require extracting the last bit of a number, so we need an efficient way of doin... |
I have two logics, $L_1$ and $L_2$, and a mapping $f: Formulas_{L1} \rightarrow Formulas_{L2}$, and want to argue that the mapping is "nice", in the sense that it is structure-preserving. But I do not know the right name for this concept.
The formulas of these logics are generated by a grammar, and thus the two languag... |
If I have a CNN model (let's say I'm using Tensorflow and Keras) that I've trained for a particular task. For example, let's say I've trained it to detect the difference between an apple and banana. For a given input image, is there a way to generate a heatmap overlaid on the original image that indicates which parts o... |
What is the recurrence equation for this function?
i <- n
while ( i > 1){
j <- i
while ( j < n){
k <- 0
while (k < n){
k = k +2;
}
j <- j * 2;
}
i <- i / 2;
}
I guess, T(n) =T(n^2/4) + 2/n. or T(n) = M*T(n^2/4) + 2/n
Am I right to guess?
I think something's gonna have to c... |
Let $\mathit{AP} = \{a, b, c\}$. Consider the following LT properties:
Between two neighboring occurrences of $a$, $b$ always holds.
Between two neighboring occurrences of $a$, $b$ occurs more often than $c$.
For each of these properties $P_i$ (where $1 \leq i \leq 2$), decide if it is a regular safety property (just... |
I'm starting to study Turing machines, the Church-Turing conjecture and the circuit model. In particular, I'm interested in the proofs of universality that one can find in this context. So far, I have only found the universality proof of the circuit model for boolean functions (i.e., the gates AND, OR and NOT can be us... |
In $d$ Bounded degree deletion problem, we are given an undirected graph $G$ and a positive integer $k$, and the task is to find at most $k$ such vertices whose removal decreases the the maximum vertex degree of the graph to at most $d$.
The question is to how to find a polynomial kernel (in $k$ and $d$) for this probl... |
I have a list of n polygons (A,B,C,D,E,...) which possibly intersect each other.
I need to find a new list of polygons (or multi-polygons) which looks like this:
(
Area only in A (A difference from the rest)
Area only in B
Area only in C
...
Area only in A and B (A intersection with B and difference from the rest)
Are... |
The grammar is this:
$$S \rightarrow a B c $$
$$B \rightarrow b B b $$
$$B \rightarrow \epsilon $$
The LR(1) states that I worked out were these
$$(1)$$
$$S \rightarrow .aBc$$
$\\\\$
$$(2)$$
$$S \rightarrow a.Bc$$
$$B \rightarrow .bBb$$
$$B \rightarrow .\epsilon $$
$\\\\$
$$(3)$$
$$B \rightarrow b.Bb$$
$$B \righta... |
This is a fun one, I really can't wrap my head around it. It's like an n-sum problem combined w/ a knapsack problem and I cant seem to find a solution.
I'm currently building a cabinet, and had just enough wood that if I calculated my cuts right, I would've had enough, if I had even cut one certain length from one boar... |
A decision problem is denoted as a language $L \subseteq \Sigma^{*}$.
For every instance $x \in \Sigma^{*}$, we say $x$ is a yes-instance if $x \in L$ and a no-instance if $x \not\in L$.
For some algorithms (e.g. devide-and-conquer, dynamic programming), we may consider some sub-instances firstly, given an instance $x$... |
I am so ignorant I don't even know where should I ask this - on FOM? On mathoverflow? On cstheory? So please consider as sort of a meta-question readdressing me in case you think this is a wrong site. (Also my tags are most probably wrong, sorry)
The simple case when I definitely know the answer and it is positive: giv... |
Or is it possible to construct more than one DPDA that accepts exactly the same language?
|
This is just a theoretical problem that I found in the wild and want to know your solution.
A stack of plates is made between you a cousin and a few others.
Every (4 to 7) many random hours the plate on the top of the stack is given a slice of pie yet at this point you can instantly replace the pie with a new empty pl... |
I'm sure this problem must be well-known...
Given a collection $S$ of numbers, partition them into exactly two sub-collections, $A$ and $B$ (I mean, by definition $B$ is just $S-A$) such that the difference of products
$$
\Delta = \left|\left(\prod_{x\in B}x\right) - \left(\prod_{x\in A}x\right)\right|
$$
is as sma... |
Given a set of strings $S$ over $\{a,b\}$. How to determine whether there is an infinite sequence consisting of ${a, b}$ (i.e., a $\omega$-string), which doesn't have any string in $S$ as a substring?
The total length of all substrings in $S$ is at most $20000$.
|
Inspired by a question on superuser, I was reading up on the 802.11 protocol. This made me wonder if the SSID is actively used outside the authentication and association process. I know that it can be included in beacon frames which will get evaluated after a connection between AP and client has been established. But s... |
I am working on an assignment where I have to write an algorithm to detect all vertices that lie in a cycle in a graph and then calculate its complexity. I have come up with an algorithm in pseudocode. My approach is to 'delete' all vertices that have only one connecting edge until no vertexes are left that have only o... |
I wrote a tiny compiler that is used to execute user-defined plugin code. The compiler is shipped as part of the application. When the user loads a plugin, the compiler runs first (once) and then the emitted code is executed.
I'm trying to describe this project in a blog post, and I'm unsure if calling this a "Just in ... |
Is it necessary that two isomorphic graphs must have the same diameter? As far as I know, their adjacency matrix must be retained, and if they have the same adjacency matrix representation, does that imply that they should also have the same diameter?
|
Suppose we have mysterious machine which return median $m$ of given set $S$ and set $S/\{m\}$ in constant time, where $S/\{m\}$ denotes the difference of $S$ and element $m$. Prove that we can sort any list of $n$ elements in linear time using such machine. (extra space is allowed)
Here is my idea, which works intuitiv... |
I was reading "Introduction to Algorithms" by CLRS and it says that:
We write $f(n) = O(g(n))$ to indicate that a function $f(n)$ is a member of of the set $O(g(n))$. Note that $f(n) = \Theta(g(n))$ implies $f(n)=O(g(n))$, since $\Theta$-notation is a stronger notion than $O$ notation. Written set-theoretically, we ha... |
I have two sets of lat/long points, $A$ and $B$. For each point $a$ in $A$, I want to find the corresponding closest point (by Haversine distance) $b$ in $B$. I'd like to use a space-partitioning tree, but as far as I can tell, quadtrees and k-d trees are confined to working in Euclidean space. How can I efficiently do... |
Suppose I have a 4x4 Karnaugh map with a few cells that are don't cares, and there are two ways of producing 3 groups of 4 cells. One of these ways overlaps groupings more that the other. Is one way preferable over the other?
For example:
Is F = B'D' + AD' + CD' simpler than F = B'D' + AD' + A'C (since the first one r... |
If I have two decidable languages $A$ and $B$, is $A \leq_m B$ true? How would I show this?
|
I'm learning about Turing Machines, decidability, and recognizability, and read that if a language is recognizable, its complement is sometimes recognizable. I don't really understand how this could be, can someone give me an example where a language has a recognizable complement and an unrecognizable complement? Thank... |
If there's one thing the pandemic has shown us its that High school Geometry did not save us. I am a high school math teacher and I understand my job and its usefulness only exist in a post scarcity economy. That being said, my Principal is making me teach computer science as an elective, a subject I never studied in c... |
Consider an array $a[1\ldots n]$ and another array $l = a[0]$ (initial value). At each turn we may add next element to array $l$, or remove first element from array $l$. F.e. after first iteration it could be empty or could become $a[0, 1]$. We want to find k-th smallest element at each iteration in array $l$.
First of... |
In Rust programming language one can write a compiler extension function that works on abstract syntax tree, effectively modifying source code before it gets converted into machine instructions.
In other words, macro function has signature
Abstract Syntax Tree -> Abstract Syntax Tree
Can these be thought of as highe... |
I'm new to the concept of computational complexity and trying to understand the topic in depth. I went through some references mentioned by some old questions, however, I had this question and not sure if my understanding is correct.
I want to know the complexity of generating a uniform random vector, over $[0, 1]$, of... |
The algorithm needs to generate all possible combinations from a given list (empty set excluded).
list => [1, 2, 3]
combinations => [{1}, {2}, {3}, {1,2}, {1,3}, {2,3}, {1,2,3}]
This algorithm would take O(2n) time complexity to generate all combinations. However, I'm not sure if an improved ... |
I'm trying to understand a proof from the book "Graph Theory with Application to Engineering & Computer Science" by Narsingh Deo.
The chapter is about trees in non oriented graphs.
A bit of terminology so that you can understand the theorem and the beginning of the proof from the book:
The author calls minimum spanning... |
How do I prove the correctness of this algorithm?
|
I am looking to find the recurrence relation of the following function:
int fnA(int[] array, int low, int high) {
if (low >= high)
return array[low];
else {
int gap = floor((high - low) / 5);
return (fnA(array, low, low + 2 * gap) +
fnA(array, low + gap, low + 3 * gap) +
fnA(arra... |
It is claimed in many sources (for example, here) that adding a rule like "if Id(X,Y) then X really equals Y" to a type theory is "problematic" because then its type-checking becomes undecidable. I have read Martin Hoffman's proof ("Extensional concepts in intensional type theory", Section 3.2.2), as well as this SE qu... |
I have been doing some research and have found a lot of papers on the subject of random deployment in wireless sensor networks, but I haven't found a single example of its usage. Has it been used before? What could be a very concrete context in which it could be used?
Thanks in advance.
|
I found an article on Catalytic space which describes how additional memory (which must be returned to it's arbitrary, initial state) can be useful for computation. There's also an expository follow up with some more details.
In particular, they describe a scheme for iterated matrix multiplication (for the purposes of ... |
Suppose I have an array A of size n, with the initial state of:
A[0] == 1, A[1] = 2, ... A[n-1] = n
I know that one way to get a uniformly-distributed permutation of that array is to use Fisher-Yates Algorithm, but I am more interested in what's flawed with the following naive approach:
for i = 0 to n-1:
rand_i = r... |
It would appear straightforward to show that a regular language is closed given the transposition of the rightmost character to the front. However after drawing a few sample DFA for the phenomenon, I've been unable to come up with a generalized 'concept' or 'proof' that shows it's true for all regular languages. Could... |
What's the best asymptotic complexity of finding every cycle in a simple, directed graph?
I haven't been able to find anything regarding this online. I'm able to use DFS for cycle detection, but I'm looking to determine the weight of each cycle in a graph, thus I'd like to be able to determine them all.
|
My inquiry concerns the length of chromosomes employed in genetic algorithms (GA), and more broadly in other classes of evolutionary algorithms.
The chromosome length is fixed throughout a GA's run. However, some work has explored the benefits of altering a related GA parameter: the size of the GA population, which is ... |
Can someone please explain why this is correct:
function productSum(array,depth=1) {
let sum=0;
for(let i=0;i<array.length;i++){
if(Array.isArray(array[i])){
sum+= productSum(array[i],depth+1)
}else{
sum+= array[i];
... |
I recently encountered this kind of problem in a real world setting, and could not for the sake of me find any literature relating to the problem statement I came up with. An example will be included below.
Simple Statement of the Problem
Suppose you have values and weights for items, such that groups of $2$ and $3$ of... |
In most computer science cirriculums, students only get to see algorithms that run in very lower time complexities. For example these generally are
Constant time $\mathcal{O}(1)$: Ex sum of first $n$ numbers
Logarithmic time $\mathcal{O}(\log n)$: Ex binary searching a sorted list
Linear time $\mathcal{O}(n)$: Ex Sear... |
I know that $O(\max(m, n)) = O(m + n)$, but is there a similar simplification for $O(\min(m, n))$? It could be $O(n) \cap O(m)$ but it does not simplify the notation that much…
|
From Wikipedia,
On Linux systems, vmlinux is a statically linked executable file that contains the Linux kernel
Does that mean vmlinux is a virtual machine that runs Linux? I am really confused.
|
Could a large quantity of coded information (let's say 10,000 GB) be copied from one storage device to another without first being decoded? If so, how long would something like that take?
|
Consider the following two problems:
A. Given a directed graph and a parameter $k$, determine if it contains a path (not necessarily simple) of length $k$.
B. Given a directed graph, two vertices $s,t$ and a parameter $k$, determine if the graph contains a path from $s$ to $t$ (not necessarily simple) of length $k$.
Ho... |
I am trying find the regular expression that describes the finite automata in the image below.
Given the following finite automata
which of the following regular expressions describes the same language as the automaton.
(ab)+c*d+
a+b+c*d+
a(ba)*bc*dd*
[ab]+c*d+
a(ba)*bc+d?d+
(ab)+c+d*
I tried converting it to a regu... |
Let's say we have a set of vertices $V$, and two (undirected) graphs over the same set $V$, but not necessarily the same set of edges $G_1 = (V, E_1)$, $G_2 = (V, E_2)$. $\newcommand\mG{\mathbb G}$(Let's denote the set of all graphs over the vertices $V$ with $\mG$, so $G_1, G_2 \in \mG$).
Now I'd like to measure how ... |
Let
$$A \cdot X + B \preceq 0$$ be a system of linear inequalities with $X \in \mathbb{R}^n$ $A\in \mathbb{R}^{m\times n}$ and $B \in \mathbb{R}^m$ where $m \geq n$. According to Farkas lemma, exactly one of the following two is true:
$\exists X \in \mathbb{R}^n$ such that $A\cdot X + B \preceq 0$
$\exists y \in \math... |
From Wikipedia:
A 32-bit register can store 2^32 different values. The range of integer values that can be stored in 32 bits depends on the integer representation used. With the two most common representations, the range is 0 through 4,294,967,295 (2^32 − 1) for representation as an (unsigned) binary number, and −2,14... |
Is algorithm which schedules tasks to machine and then for every time point in the makespan of machine does an operation considered pseudo-polynomial or quasi-polynomial? (if machine execute tasks from time 0 to 100 then it goes over every time point 0,1,2...100 separately and executes O(1) action) I would guess pseudo... |
Given a regular Expression: 0^a 1^b 0^c, where a+b=c and a,b,c >= 0.
Find the cfg for this expression.
Here is what I tried to do:
s -> AsB
A -> 01
B -> 0
But then a language could be 010100 which does is not apart of the expression.
I tried other ways but then I was not able to fulfill the a+b=c rule.
e = epsilo... |
In Turing's 1936 paper On Computable Numbers Page 30-31, and its Correction Page 1-2 :
For a Turing Machine $M$, $Inst(q_i S_j S_k L q_l ) $ means that if $M$ scans symbol $S_j $ under $m-configuration$ $q_i$, then the symbol on the square under scanner (with symbol $S_j $ ) is to be replaced by symbol $S_k$, and ... |
I'm 29 years old. I couldn't continue my studies after grade 10 due to some financial issues and I didn't have time to practice mathematics. It's been more than 11 years since I left studies. Now I want to continue in the field of programming. I have grasped the knowledge of basic programing concepts like variables, da... |
Let $\text{ALL-CFG} = \{\left<G\right> \mid G\text{ is a CFG and } L(G) = \Sigma^*\}$.
I have understood the proof of ALL-CFG is undecidable, but I wonder why the following proof is not appropriate.
Let $C$ be a CFG. Then $\bar{C}$ is a CFG by closure under complement. Since the emptiness of CFG is decidable, we can us... |
It can be shown that Turing machines, μ-recursive functions and reasonable programming languages can compute/decide the same problems. I wonder why we then still proof the halting problem with Turing machines.
Isn't it much easier to argue that the function halts below cannot exist in e.g. python since then I would be ... |
On a directed acyclic graph $G=(V,E)$ the Minimum Path Cover (MPC) is the minimum number of paths that can be constructed on the DAG such that all vertices are covered by at least one path.
If one was attempting to create examples of DAGs with small MPCs (i.e. use a program to create examples of DAGs with small MPCs), ... |
Downey and Hirschfeldt seem to assume that any computably enumerable set of sequences can be generated from some prefix-free set (in the sense that the set of all extensions of the strings in the prefix-free set is equal to the first set). I don't understand why this would be so.
Specifically, in a proof that a sequen... |
Are line graphs of powers of cycles again a power of cycle? I think yes, this is because the line graphs of cycles are cycles of the same order, and moreover, since powers of cycles consist of edge disjoint cycles which are packed within a distance given by the value of the power, their line graphs also must be powers ... |
Can we prove the following, or find a counterexample?
$$f(n) = O(g(n)) \Longrightarrow f(h(n)) = O(g(h(n)))$$
I should figure out whether $\log(n^{\log n}) = O(a^{\log n})$, and this will be facilitated if the above holds.
|
I am trying to understand the Bellman-Ford algorithm from Jon Kleinberg, Éva Tardos: *[Algorithm Design].
Page no: 296 The recursive equation that is written:
$$M[v]= \min(M[v], \min_{w\in V}
(c_{vw} + M[w]).$$
I am not getting how this equation is correct?
Because in the book it is written that $M[v]$ is the shortest ... |
I came across the statement "data is inactive but information is active" while reading differences between data and information. What is meant by this statement?
|
I am working on a Fraudulent Cash Transaction Detection System using DBSCAN and I want to know what is the proper way to identify outliers?
Thank you
##Edite##
I had a problem how to represent the outer points extracted by the DBSCAN algorithm in Python visualization techniques, and found the solution here:
https://www... |
An edge-labelled directed graph is the data of $G = (V, E, l)$ where $(V, E)$ is a directed graph, and $l \colon E \to \mathbb{P}$ is some function. (For the graph I am considering, labels take values in $\mathbb{P} = \{1, 2, 3, \ldots\}$). To any path $v_0 \to v_1 \to \ldots \to v_n$ in $G$, we can associate a type $\... |
What is 4365 − 3412 when these values represent signed 12-bit
octal numbers stored in sign-magnitude format? The result should be written in
octal. Show your work.
Octal to binary:
4365: 100 011 110 101
3412: 011 100 001 010
By recognising the role of the sign bit, we can
represent positive and negative 64-bit numb... |
Hello computer scientists,
I am a mathematician. I have taken some undergraduate courses in C++, Python, assembly language, boolean algebra, logic, graph theory, etc. I would like to learn more about computer science because I think it's cool. Could you give me some advice as to where to start? Thanks!
|
I am reading the book "Principle of Program Analysis" by Flemming Nielson for annotated type systems. In the first chapter, section 1.6 they mentioned the simple type system for various statements(S). And S maps a state to a state, and may therefore to have type Σ --> Σ where Σ denotes the type of state. So they mentio... |
I have a random distribution on sets in mind, that has three parameters: $n, w, k$. The goal is to sample sets of $k$ integers from $[0, n)$ (without replacement) such that the elements within each set fit in a subrange of length $w$. That is, an outcome set $S$ must have properties:
$S \subset \mathbb{N_0} \; \wedge\... |
I'm having difficulty understanding the proof of the Kleene-Post result. It purports to construct two languages that are not Turing reducible to each other, using a diagonalization argument.
I've seen it in many places: for example a very brief summary here (where it is used to answer a different question about mapping... |
I think I understand Reservoir Sampling. If you have a large stream of integers then it allows you to get a sample of size k from that stream without putting it all in memory.
My question is what if you know beforehand the length of the stream? Say the length of the stream is n. In this case I would assume that a mu... |
I am working on the following problem:
Prove that, for all $k\in\mathbb N$, there exists $n\in\mathbb N$ so that every binary string $x\in\{0,1\}^{kn}$ with Kolmogorov complexity $K(x)$ at least $kn$ satisfies the following property:
By interpreting $x$ as $x_1\cdots x_n$, with $|x_i|=k$, for any $z\in\{0,1\}^k$ there... |
I was looking for the limitations of a CFG. I think there is some limitation given there are only finitely many states of a PDA (or non-terminals in a CFG).
I suspect that languages like $\text{L} = \{10,10100,101001000, \dots\}$ can not be generated by a CFG. I can not see that intuitively (heuristics will help me). I... |
This page on Wiki states that $\{a^nb^nc^nd^n \ | \ n > 0\}$ can not be generated by a CFG. This does not make sense to me as $\{$S $\to$ ABCD, A $\to$ aA | a, B $\to$ bB | b, C $\to$ cC | c, D $\to$ Dd | d$\}$ seems to be the desired CFG. By the Pumping lemma for CFG, I understand that it is not context-free but that ... |
Best to start with an example. I want to design fictional fruits. The fruits have three attributes: color, taste and smell. There are $c$ possible colors, $t$ possible tastes and $s$ possible smells. Further, there is a feasibility matrix between colors and tastes and also one between tastes and smells. Hence, this can... |
Show there exists a monotone function $f\colon \{0,1\}^n \mapsto \{0,1\}$, such
that the minimal size of a monotone circuit that computes $f$ is
$\Omega(2^n / n^2)$. Use the fact that the number of monotone
functions is at least $2^{\frac{2^n}{2 \sqrt{n}}}$.
Every monotone $f\colon \{0,1\}^n \to \{0,1\}$ has a minima... |
I am using this standard question from Dragonbook as an example, (the first problem) . I have trouble with what happens in State 4 on LR(1) parsing. Once it is reduced by the rule C->d, now what will the current state be? It seems like it could be both State 0 or State 3 (since state 3 loops back on itself on the looka... |
I'm given the following python function:
def recurser(i, j):
x = 0
if j == 0:
return 1
if i == 0:
return 1
x += recurser(i, j - 1)
x += recurser(i - 1, j)
x += 1
return x
And I'm Asked to find x for any i = j = n where n can be any positive integer. however the recursion can... |
Let's say we have a problem $A \in \mathsf{NP}$. Now let's say we have a reduction $f(\mathsf{SAT}): A \leq \mathsf {SAT}$.
So, assuming that $A$ is not $\mathsf{NP}$-complete we have that $f(\mathsf{SAT})$ is $\mathsf{FNP}$-hard:
$\mathsf{\exists C: \{A \in C \subseteq FNP},\ f(\mathsf{SAT}) \in \mathsf C\}$.
$\mat... |
Suppose we have a circulation problem (with only one commodity), where all lower bounds, upper bounds, and costs are integers. Are we guaranteed that if there is a solution, then there is an integral solution? Is there an algorithm that can find one in polynomial time?
For standard network flow, we know that there is... |
I was thinking about a data structure to make concatenation of lists easier, something that contains multiple lists (in a sequence) internally, but can be treated as a single contiguous list. I know such a data structure must exist out there already, and I would like to find articles about its performance, but I don't ... |
There is a huge field of study dedicated to automated theorem proving. Is there any similar research dedicated to automated algorithm design? And is there any form of "duality" between these two processes (automated theorem proving vs automated algorithm design)?
|
Let say A = 1 and B = 1
and then A+B = 1
now by using duality(replacing or gate by and gate and 1 by 0) we can say that, A.B = 0
but this is not 0, because 1.1 = 1, so please anyone clear my misunderstanding here, Thank in advance
|
This is about the halting problem. My questions are: where do you think are logical flaws in what I am going to write? How do you think this does not invalidate the proof for the undecidability of the halting problem? I want to state clearly I am aware the following argument surely contains errors and is not valid, I w... |
I am kinda blocked trying to figure out the answer to this question. Mind helping?
A manufacture wishes to design a hard disk with a capacity of 60 GB or more (using the standard definition of 1GB = 230 bytes). If the technology used to manufacture the disks allows 512-bytes sectors, 1024 sector/track, and 60% tracks/ ... |
I have a set of items (A, B, C, D, ...) which I want to assign to one of two sets (set1, set2). Trying all possible assignments and selecting my favorite has complexity $O(2^n)$, so I am trying to prune the number of assignments evaluated. I want to do this based on available knowledge that certain pairs MUST be presen... |
Consider the following language:
$$L=\{w \in \textstyle\Sigma_1 ^*\mid|w| \text{ is even and 1's can only occur in the second half of $w$}\},$$
where $\Sigma_1 = \{0,1\}$.
I need to show that this is not regular. I tried to prove this with the pumping lemma.
Imagine that there exists a pumping length $d$, and consider ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.