instruction stringlengths 35 29.1k |
|---|
I was going through my book of proof and I find very confusing its definition, so I would like someone to help me in understanding this.
The blank tape problem takes a machine and an empty tape and tells if this machine halts or not
We prove it is unsolvable by proving it reduces to the halting problem
Whenever I rea... |
I know how to draw a DFA, but I have problems with this specific one:
${L = \{ w \in \{a,b,c\}^* \mid \ |w|_a \equiv |w|_b - 2|w|_c \mod \ 5 \} }$
This language is regular and there has to exist a DFA (It would be great if someone could leave a comment WHY a language like this one is regular). Finally, I got a solutio... |
I was going through my book of revision and I would like someone hints on this.
The Halt for All Input problem (HAI) takes a machine and tell if this machine halts or not for any input
We prove it is unsolvable by proving it reduces to the halting problem
The book says:
Build a $M'$ that does the follwoing
$M'$ eras... |
I am working on the following question:
$L$ is regular. Show that $L'=\{x|\exists y,z,\ xyz\in L\wedge |x|=|y|=|z|\} $ is also regular.
Firstly I show my idea. When you accept it I will try to formalize it.
Every automata can has an equivalent automata with exactly one accept state. So let the automata for language $... |
It is well known that a machine with a single stack as only unlimited storage is not Turing complete, if it can only read from the top of the stack. I want a machine which is (slightly) more powerful than a stack machine, but still not Turing complete. (I wonder whether there exists a non-Turing complete machine, which... |
I'm new to the subject of automata theory. I get most of the stuff, but I cannot figure out when to change the state of the machine, and when to keep the state unchanged for a particular transition operation. An explanation would be appreciated. Thanks!
Also, my understanding of states is that they're basically the ind... |
I am confused about the statement of the Master theorem in CLRS book.
Here is the link of the book CLRS.
In page 94, the theorem, in case 2, states that:
If $\displaystyle f(n)=\Theta(n^{\log_ba})$, then $T(n) = \Theta(n^{\log_ba}\lg n)$.
What if $T(n) = T(n/2) + \Theta(\lg n)$? We have $f(n)=\Theta(\lg n)\neq\Theta(... |
The $\Omega(n\lg{n})$ lower bound for sorting in the comparison model is well known. Is there a similar average case lower bound for sorting in the comparison model and if so, which random distributions does it apply to?
|
To my knowledge there doesn't exist a $O(n)$ worst-case algorithm that solves the following problem:
Given a sequence of length $n$ consisting of finite integers, find the permutation where every element is less than or equal to its successor.
But is there a proof that it doesn't exist, in the transdichotomous model ... |
A classic algorithm for Subset Sum is to first split the input into two sets (A and B), evaluate the sums of the subsets of each, sort those sums for each A and B, then cleverly filter whole ranges of combinations by comparing the highest and lowest sums from each A and B.
Do we know (or does someone have an argument) ... |
How does Dijkstra's Quicksort Algorithm perform better than the original Quicksort Algorithm in terms of memory usage,number of exchanges made and time taken?
original quicksort refers to Tony Hoare's quicksort
|
Take a number i. You need to split it in two pieces as many times as necessary so that all splits are less than or equal to j. How does one obtain this with the minimum number of splits? Examples:
Splitting it in half is optimal here:
i = 4, j = 2
4 -> 2, 2 // (1 split)
However, splitting in half is not optimal here:
... |
For educational purposes, I'm about to start a research project that involves creating a complete database documenting and classifying all 2-state, 2-symbol Turing machines, according to a multiplicity of criteria. Including all rejecting and accepting transitions, there are $28.561$ such machines, a number big enough ... |
Dealing with a question that asks me to compute the product of the following transition system and finite automaton.
Compute the product between the transition system TS and the finite-word automaton A depicted below.
Can't seem to find a good example on how to do this so I sort of just freestyled my answer. The best ... |
Due to technical constraints, single thread performance has been increasing more slowly and adding cores has been adopted to offer greater potential increase in performance.
However, multicore support currently appears to require the programmer to manually divide the work, control communication/synchronization, etc. Fo... |
I'm having some problems to understand the classic proof of the halting problem.
The Proof:
$A_{tm} = ${$<M,w>$ | $M$ is a $TM$ and $M$ accepts $w$}.
We assume that $A_{tm}$ is decidable and obtain a contradiction.
I have no problem to imagine that. It's a machine that accepts some string $w$. But it must not accept o... |
I am interested in proving that $\sqrt{L}=\{w:ww\in L\}$ is regular if $L$ is regular but I don't seem to be getting anywhere. If possible I was hoping for a hint to get me going in the right direction. Thank you for your help.
My idea for demonstrating regularity of the square root language was to try to consider two ... |
I am trying to make a non-deterministic NFA that does not contain a string "101".
How do I make my NFA so that it does not have this string?
My attempt:
|
Problem statement:
Merge sort is so modified that for array sizes below 11, instead of recursive Merge sort, the array is sorted using Bubble sort. Will there be any good and bad cases now? Give an example of each case if you think so; if not, argue why.
My thought process:
I understand that the worst-case complexity... |
I need some advice on how to determine the runtime of this loop :
s=0
for ( i=1 , i <= 2^m ; i=i*2 ) {
s++
}
return s
With
$C_1$ = actions performed once before entering the loop and
$C_2$ = actions performed one after entering the loop,
I see that $T(m) = C_1 + C_2 \cdot 2^m$.
How can I determine $T(m)$? ... |
In the examples I was given I have the following NFA diagram:
Then it gives the conversion process
Could someone explain to me the process of obtaining the second column:
{1,2,4} = a{1, 2, 3, 4}, b{1, 4, 5}
|
How does Sunday's string searching algorithm work?
I am highly unskilled in processing mathematical lingo, so I would appreciate a use case/example.
A link would be ok. I tried searching the first 6 pages for terms "sunday's algorithm", "sunday's string search", "sunday algorithm example" but all I ever found were comp... |
When Operating system recognise the file types It has several advantages like
1. avoid mistakes like trying to print a object file that produce garbage output
but I can't think about disadvantages of an OS that recognise file systems
Anybody has an idea ?
|
I have a very large graph in my c program with a list of nodes and edges.
I want to print out the visual representation of this. What is the best way to go about this?
Additionally what's the best way to go about checking if said graph is hamiltonian and printing out a hamiltonian path? I can't find a decent algorithm.... |
I had a question to prove whether a reduction can exist $A < B$, if B has no no instances and one yes instance. I am not sure if this is too trivial.
Let $A \in P$ and $Y$ be the only yes-instance for $B$.
I build a TM, $M$ that solves $A$ in $P$-time. I build $T_y1$ and $T_y2$ which erase the input and writes the code... |
I am trying to use the pumping lemma to show this is not a context
free language
$$
L = \{a^n b^{2n} a^n\mid n\ge 0\}
$$
My idea is fist assume it is a CFG language and let $n$ be the pumping lemma
integer.
Then let $u=a^n b^{2n} a^n$ be a string. I am going to use to prove it is not
a cfg language
Since $u=vwxyz$ and ... |
Subgraph isomorphism
We have the graphs $G_1=(V_1,E_1), G_2=(V_2,E_2)$.
Question: Is the graph G_1 isomorphic with a subgraph of $G_2$ ?
(i.e. is there a subset of vertices of $G_2, V \subseteq V_2$ and subset of the edges of $G_2 E \subseteq E_2$ such that $|V|=|V_1|$ and $|E|=|E_1|$ and is there a one-to-one match... |
I'm trying to understand why I can't find room for the set of computable functions in the hotel of the Hilbert's Hotel Paradox.
I was thinking that, because Gödel numbering, I could consider the set of computable functions as numerable (and with cardinality equal to $\mathrm{card}(\mathbb N)$). However, I have an answ... |
Let $f(X)$ be a monotone submodular function from $2^{\{1, \ldots, n\}}$ to $\mathbb{N}$ and consider the problem of maximizing it subject to a cardinality constraint $|X| \leq m$. By using the greedy algorithm, it is possible to obtain a $1-1/e$ approximation (see, for example, these lecture notes).
But now suppose $... |
Say I have a specification of preconditions and postconditions for a function. Is there a field of computer science that studies the automated generation of functions that satisfy those specifications?
For example:
Preconditions:
I is a list
Q is a binary relation specifying a total order on the
elements in I
Postcon... |
A Graph is a well-defined concept in mathematics, computer science and engineering disciplines that depend on them. However, oftentimes a practical implementation of a (directed) graph in a certain domain or application requires that edges don't merely connect vertices, but instead connect ports that exist on these ver... |
I'm taking a compiler-design class where we have to implement our own compiler (using flex and bison).
In dragon book by V.Aho et al. They have mentioned backpatching to backpatch forward references for control structure and boolean expressions but this needs only one pass .
I don't want to use backpatching for forwar... |
I think the answer should be:
$(1+ \epsilon)000^* + 0^*0(1+\epsilon)00^* + 000^*(1+\epsilon)$
But I am not sure if this is the right answer. Can someone explain the correct answer?
And if it is correct how can I shorten this up?
Also what is the nfa for the regular expression:
∅*
i have one more problem: i can't surel... |
Could someone, in plain english, explain the distinction between the fundamental matrix and the essential matrix in multi-view computer vision?
How are they different, and how can each be used in computing the 3D position of a point imaged from multiple views?
|
Given a cycle of length > 3 in a planar graph, I'm looking to partition it into 4 sublists of length 2 or more such that:
No sublist contains two vertices with a chord between them
The last element in each sublist is the first element in the next
Every element in each sublist is adjacent to its neighbors in the origi... |
Consider a cascade of classifiers and a binary classification task. Cascade consists of some number of strong classifiers (n) each of which consists of some number of weak classifiers (m_i, where i = 1..n).
You have 3 numbers of interest: true positive rate, false positive rate and time of detection (you can choose by ... |
I've seen how XOR-3-SAT is efficiently solvable (for instance, see the "XOR-satisfiability" section in the Wikipedia entry for Boolean satisfiability problem).
I'm wondering a basic question: Is XOR-k-SAT efficiently solvable, for formulas with varying amounts of literals per clause?
I'd really like to know if we ... |
I'm not very comfortable with pumping lemma for context-free grammar. I understand the sufficient conditions that must hold but proving it gets me everytime. For example, I need to prove whether $L=\{0^{2^n}∣n \geq 0\}$ is not context-free.
There is no pattern of 0's that can be recreated by a pushdown automata but ala... |
I just went to read wikipedia to check a point on FA minimization, and
I read there the following sentence:
The minimal DFA ensures minimal computational cost for tasks such as
pattern matching.
I have tried to imagine how, but my feeling is that DFA minimization
reduces the size of the program, which is especially... |
I am unable to see a clear explanation of how the classes NC and P/poly intersect or not. (and if they do intersect then how and where? and if not then what is the proof?)
|
I am given an array {1, 2, 3, 5, 4, 6} and I am asked
What sorting algorithm might you want to use to sort the given list, and why?
Initially I think using Bubble sort would be the best option due to it's best case linear ($O(n)$) complexity and due to the fact that you'd only need to use 1 swap. However, the more I... |
I don't want to create a duplicate question of How to prove a language is regular?, I only want to know what is a good and simple way to explain why a language like
$\qquad \displaystyle L = \{w \in \{a,b,c\}^* \mid w = ua \text{ and } |u| \equiv 2 \pmod 3 \}$.
is regular.
|
I know that transfer rate is data size over transfer speed - but according to the information given, I don't know what the data size is to calculate the transfer rate. Am I missing something or was I really not given it?
The information given is as follows:
A number of files are stored on a 10000RPM hard disk. The pl... |
Goal
Let $A[n]$ be an arbitrary array of integers of length $n$. Let $S$ be a segment tree, represented by an array of records: each record containing the left and right bounds ($[l,r]$) of the segment the node covers, and a "sum" value equal to $\sum_{k=l}^rA_k$. I would like to perform a Weighted Random Selection on ... |
Automata theory has a lot of proofs. Sometimes I don't get how this is a proof. Take for example the equivalence of NFAs and DFAs: the proof for this statement (two-way hypothesis and conclusion) shows how to "convert an NFA to DFA" and vice versa. How can this be a proof given that we ourselves have done changes in th... |
The statement seems intuitively true but is it? If so, how can I prove this?
|
I'm trying to analyze an algorithm of a function, I can express the function in term of summation, but I have no clues on how I could simplify this summation down to get the run-time in tern of big $O$ or $\Theta$. I have this pseudo-code below:
f(n)
for int i = 1 to n
for int j = i to n
doThis(n... |
I have been given the problem of writing a turing machine with the commands:
if, while, whileNot, read X, write X, goLeft, goRight, HALT
The problem was simply "calculate a two's complement number, from number with \$ on the left and # on the right, ex: $10110100#"
I started by writing this pseudocode to flip the bit... |
Suppose that we are given a directed graph and we want to find out if a vertex $j$ is reachable from another vertex $i$ for all vertex pairs $(i, j)$ in the given graph.
Reachable mean that there is a path from vertex $i$ to $j$.
The reachability matrix is called transitive closure of a graph.
I want to write an algor... |
I'm aware of some techniques to compress a string of characters such as Huffman coding. I need to know whether there is any technique to compress a long string of arbitrary bits? (ideally with high compression ratio).
|
I am given the following algorithm, which checks whether a given matrix is symmetric:
isSym(A):
1. b = True
2. for i = 0 to n-1 do
3. for j = i+1 to n-1 do
4. if A[i,j] != A[j,i] then b = False
5. return b
My aim is to prove that it is $\Omega(n^2)$ for any $n\times n$ input matrix. I have something, b... |
I am currently studying approximation algorithms and I have run into an issue with a study problem.
The approximation algorithm is for the general Knapsack problem, and it proposes a greedy approach, where it sorts by the value/weight ratio, and picks the first item in this list that pushes the weight over the limit, a... |
You are given a set of $n$ rectangles in no particular order. They have varying widths and heights, but their bottom edges are collinear, so that they look like buildings on a skyline. For each rectangle, you’re given the $x$ position of the left edge, the $x$ position of the right edge, and the height. Your task is to... |
Has there been any attempt to systematically categorize programming puzzles?
I notice that some problems are similar to one another, or have analogous methods of solution. I would think there must be some way to categorize them, so that you could in a sense look up methods of solution if you knew what category it was i... |
Say I have 3 compartments in my backpack: red, green, blue and 3 sets of items: red items, green items and blue items which all have a weight and benefit. I also have a requirement around the total number of total items that MUST be placed in each compartment of the backpack. Red Compartment MUST have 2 red items, Gree... |
Setting
Let:
$$UCYLE = \mathcal \{ <G> ~:~ G \text{ is an undirected graph that contains a simple cycle}\}.$$
My Solution
we show $UCYLE \in L$ by constructing $\mathcal M$ that decides $UCYLE$ using $L$ space.
$\mathcal M = $"On input $<G>$ where $G = (\mathbb V, \mathbb E)$:
For each $v_i \in \mathbb V$, for each $v... |
I'm reading the wiki page of Karger's algorithm for a self-study of CLRS to get some and I'm confused by one of the bounds they have.
Here, under the section about finding all min cuts, they have this line $$(1-P(n))^{O(\log^{2} n)} \le (1-\frac{c}{\ln n})^{\frac{3}{c} \ln^{2} n}$$. I get that they are using the defin... |
So propositional logic (PL) is efficiently (in P) decidable because I can convert formulas to an equisatisifiable CNF-formula, negate and convert (efficiently, by De Morgans laws) to DNF. I can then efficiently see if this formula is satisfiable. If it is satisfiable then my original formula was not a theorem. PL is ho... |
Intuitively it makes sense that all PSPACE languages are reducible to other PSPACE languages in polynomial space. But how would I go about actually showing this?
|
How to prove a single tape Turing machine needs at least n squared time to decide palindrome?
This is an exercise from the "computational complexity - a modern approach" book.
|
So, I remember the professor saying that SAT does not reduce to QBF (Quantifier Boolean Formula)
$QBF ::= prop|-QBF|(QBFoQBF)|\exists pQBF |\forall pQBF$
So, I guess this is not NP, since solving a QBF could grow exponentially.
However, $P \subseteq NP \subseteq PSPACE \subseteq PSPACE$-complete, so shouldn't I be able... |
My question is simple: If we want to be able to solve every problem, that we can solve using recursions, do we need programming language to allow us use recursions?
Assuming we are allowed to use: conditional evaluation of blocks (if/else), cycles(for,while), dynamic allocation of memory.
I know, that we won't be able ... |
I read Evgeny Kluev answer on this and was not able to understand the mechanism. Now let us understand using an example. let us say we have this matrix.
[1 2 3 2 5,
2 4 6 4 10,
3 6 9 6 15,
2 4 6 4 10,
5 10 15 10 25]
Now applying step 1 we get .
[ 1 2 3 2 5 ,
3 6 9 6 15,
6 12 18 12 ... |
When speaking of neural networks, I don't get the difference between nonlinear and non-deterministic. Basically, both say that the output of something is not directly correlated to the input?
Hope someone can illuminate me.
|
Does Artifical Intelligence need something else, something that is not so limited as a computer to achieve the goal of building a humanly thinking and acting program?
If so, what might this be? I don't know much about quantum computers, but might they be a solution?
|
I want to design a turing machine that accepts strings of the form $0^{n^2}$ where $n \geq 1$ and I want to give an implementation description for this. So I am thinking that the algorithm can go something like this: If we have $0^{1^2}$, we can just cross off that only $0$ and accept. If we have $0^{2^2}$, we can firs... |
Here's my problem:
I have a website where people can search based on their location (which is converted to lat/long coordinates). I have many products stored in a database with their lat/long coordinates. I also have a function to calculate the distance between two points based on their coordinates.
Now I'm looking for... |
I have just started to learn Cryptography.
I am trying to learn "Merkle-Hellman Knapsack Cryptosystem".
So, right at the beginning of the discussion, a question came in my mind:
Why is it important to solve a problem in Polynomial time?
|
Consider the graph coloring problem: given an undirected graph $G$ and a natural number $n$ return yes if we can color the graph with n different colors and no otherwise.
I am able to design a deterministic Turing machine that would solve it with a greedy approach trying the different combinations of coloring with the ... |
Suppose that an algorithm $A$ is able to solve a problem in NP in polynomial time.
Does this effect the good old sorting, searching, shortest path, minimum spanning tree etc. algorithms?
Can this improvement pave the way for a $O(n)$ sort or $O(log^*n)$ search?
Edit: P vs. NP problem can also be interpreted as "can we... |
NP-complete languages are reducible to each other in polynomial time. Does this mean that they are also log-space reducible to each other?
It seems as if this is true because in log-space, we can have polynomially many computations.
|
The following is a pseudo-code named PractOne. It takes a finite list A of real numbers and gives the pair (Alp,Bet), with Alp representing the maximum value of the entry in A and Bet representing the index of Alp in A. Bet is not always unique.
function PractOne(A)
let Bet = 1
let Alp = A[Bet]
for i =... |
How we can prove that if $O(f(x))=O(g(x))$ then $Θ(f(x))=Θ(g(x))$?
|
I got a problem to solve, which is to demostrate that the language $L$, given by:
$L = \{ab^nc^n\mid n \geq 0\} \cup \{a^kw \mid k\geq 2 \wedge w \in \Sigma^*\}$
Satisfies the pumping lemma.
Is not regular.
For the question 1. I think it would suffice to demonstrate that for all $w \in L$, $w$ can be decomposed in th... |
I know that cache coherence is the consistency of shared resource data that ends up stored in multiple local caches.
Can any programming languages handle this problem? If so, how?
|
everyone!
I am going to learn mathematics in a university, but it will be rather ''pure'' math, so, I want to get some exposure to computer science on my own. The problem is, I've never tried any programming or computer science activities. I'm not sure where should I start. Now, I realise that internet is full of onli... |
This is part of a homework exercise. Given is an algorithm that errs with probability $\frac{1}{2}-\frac{1}{p(n)}$ for some polynomial in the input size $n$. I'm trying to prove that a polynomial number of repetitions is sufficient to reduce the error probability to $\frac{1}{2^n}$.
Using the Chernoff bound I derived t... |
Consider a system that indexes documents based on vector space model and a simple query, such as qwe asd. When searching we assign weights to both words qwe and asd based on how often they appear in the index. The idea being that if word exists in larger number of documents then it should have smaller impact on relevan... |
Results from the execution units are written into the future file when they complete (may be out-of-order). Upon operand fetching, you fetch from the future file and not the architectural register file.
But what happens in this case:
FADD R3, R2, R1
ADD R3, R6, R7
...
SUB R9, R3, R9
the FADD is a floating point ... |
The probably approximately correct (PAC) learning model is defined as:
A concept class $C$ is said to be PAC-learnable if there exists an algorithm $A$ and a polynomial function $poly(·,·,·,·)$ such that for any $ε>0$ and $δ>0$, for all distributions $D$ on $X$ and for any target concept $c∈C$, the following holds for ... |
Here is the source of my question.
Given a self-balancing tree (AVL), code a method that returns the
median.
(Median: the numerical value separating the higher half of a data
sample from the lower half. Example: if the series is
2, 7, 4, 9, 1, 5, 8, 3, 6
then the median is 5.)
I can offer the following solution... |
What do we need about the intersection of $NP$ and $co-NP$ apart from the fact that $P$ is a subset of it?
(beyond what these answers here say, What do we know about NP ∩ co-NP and its relation to NPI?, if $L\in NP\cap Co-NP$ is NP-Hard, then $NP=Co-NP$)
Is there an example of a decision question which is known to... |
I am discussing with a friend the following question:
If the language $A$ is decidable and the language $B$ is recognizable, Then the language $A \cap B$ is recognizable?
I believe it is.
My point is that if the machine that recognizes B never halt in some string, so the bigger machine will never know what to answer.
T... |
Suppose that we have an algorithm "combination" that uses insertionsort for $n < 100$ and mergesort for $n \geq 100$. Is the worst case running time of "combination" then $n^2$ or $n\log n$?
I was thinking that it's simply $n^2$, since the algorithm "combination" allows inputs larger than 100, in which case the worst c... |
Given a list of numbers as L, how do you find the minimum value m such that L can be made into a strictly ascending list by adding or subtracting values from [0,m] from each element of L except the last? (Strictly ascending means the new list can't have any duplicates.)
Example #1:
for L = [5, 4, 3, 2, 8] the minimum v... |
A. Let $F$ be a monotonically increasing real function from $[0,1]$ onto $[0,1]$. Given an oracle to $F$ and a number $y$, is there a way to calculate the inverse function $F^{-1}(y)$ in a finite number of calls to the oracle?
I think the answer is no, because of a simple counting argument: there are uncountably many p... |
I am contemplating a string matching FA algorithm (not KMP). The complexity of its transition function calculation ie the preprocessing is m(length of pattern )* (the language of the FA) . What effect would greater or fewer mismatches have on this algorithm, for example in a case where all elements in the pattern are t... |
I've been reading the paper Software Transactional Memory by Shavit and Touitou. I understand how STM works in general but I need to understand this paper as it is the founding paper of the concept. However, I'm missing something rather fundamental of transactions. When I reed through the paper I never see what happens... |
How can it be proved that TSP cannot be solved in polynomial time ( Please bear that I don't have a hardcore computer science background).
|
If I am not mistaken, an algorithm that runs in time $\Theta(f(n))$ also runs in $\Theta(f(n) + a\sin(bn))$ where $a,b$ are conveniently chosen constants. Therefore I believe that the computational complexity of each algorithm can be described using a function that is neither convex nor concave.
However, this seems lik... |
I have an exam tonight and I'm reviewing my midterm exam. I got this question completely wrong, with no solution given.
b) [10 marks] Consider implementing the logic formula 'signal 1' below as a
hardware circuit without any optimization. You have 2-input 'AND' gates
that settle in 125 ps, 2-input 'OR' gates that sett... |
A question gives me a set of atomic propositions AP = {a, b, c}and asks me to give a linear temporal property that represents all executions over AP such that:
(1) a and b never happen at the same time
OR
(2) a is preceded by c
Can anyone give me some pointers on how to answer this question (possibly with a model solu... |
Suppose we have a d-dimensional array A (d > 1) where each dimension has length n. The array is given in sparse notation as input, and the number of given non-zero elements is N. We want to find a contiguous range of indices for each dimension such that the sum of entries in the arising subarray "box" is maximized. For... |
Based on what I have read so far, to me it sounds like Alan Turing's solution the Entscheidungsproblem means that there is no algorithmic solution to tell whether a given algorithm with input will eventually halt or not. But why is this so crucial in the "computability" world?
It sounds like if I write a program (let's... |
I'm attempting to implement my own generic hash table using separate chaining. I'm using the std::hash() method to create my hash function. I noticed in the description of std::hash() that:
For two different parameters k1 and k2 that are not equal, the probability that std::hash()(k1) == std::hash()(k2) should be ver... |
We know that $P\neq NP$ problem cannot be demonstrated by relativization because there exists oracle relative to which they are equal.
Is there natural complexity classes that has been shown to be equal but are separate under some oracle?
|
Can someone please help with a clear reduction from a 3SAT to a Monotone Exact 1 in 3 SAT. I tried searching by didn't find much.
|
I'm just starting to learn Big O Notation and I was trying to understand how this function would scale:
$\frac{n(n-3)}{4}$
If the function was $n^2$, it would be quadratic, so O(n^2). However, the denominator gives me pause. Is this still a O(n^2) function? This is not homework. Thanks in advance for the help and clari... |
Introduction
I have an object which consist of loosely packed, non-overlapping circles, of radius r.
Part of such an object is seen below, the object consist of the bold blue circles, and it extends further than shown on the figure.
The dashed blue circles of radius 2r (concentric with the bold blue circles) make up a ... |
I'm going through a worked example on the Knapsack problem:
My problem is that I don't understand quite follow the last bulletpoint. Where does the $x_4 = 4/5$ comes from? I know $x_4$ has to be a fraction of 1 (otherwise it breaks the inequality) but why specifically $4/5$? Any insight is highly appreciated.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.