instruction
stringlengths
35
29.1k
Given the following definition of Careful 5COLORING: A 5-coloring is careful if the colors assigned to adjacent vertices are not only distinct, but differ by more than 1(mod 5) how would a reasonable reduction to prove NP hardness work? Suggestion is to reduce from standard 5COLOR, but I am not able to find a corre...
I am trying to solve an exercise on set-associative cache , i struggled with it for a while but i think that i figured out the answer , would be helpful if someone could check if my solution is correct Here is the question: Considering a main memory with 1024 addresses , divided in blocks of 8 words each, and a set ass...
I am having a problem in understanding a conflict between reversibility in quantum computation and the No cloning theorem. Given a function f, we construct the reversible version of f by adding additional input and output wires to the circuit for f, possibly outputting junk bits. We then "copy" the output to another re...
Is there a difference between a complete graph and a clique topology? As far as I understand, both refer to graphs in which every possible edge between any two vertices is present. Is there a subtle difference between these two concepts?
As the title states, I would like to know what a hashing routine is. I found online about hashing algorithms but I heard it, being used in a different context.
Are there research trends that try to research code generation directly from the (operational or some other kind of) semantics? One can imagine cognitive architecture that discovers and reasons about the tasks that the software should do and constructs the operational semantics of some program. And later there should b...
If I have a list of length 'n' where each element is a successive power of 2 would an algorithm that simply prints each element decremented to 1 be classified as exponential time? print([2,4,8,16]) #operations:1 print([1,4,8,16]) #operations:2 print([1,3,8,16]) #operations:3 print([1,2,8,16]) #operations:4 print([1,1,8...
I am trying to understand the basics of Linked List. The definition of my LinkedList class is as follows: public class ListNode { int val; ListNode next; ListNode(int x) { val = x; } Now I am facing a problem. My code is as follows: ListNode dummy = new ListNode(0); dummy.next = head; ListNode prev = dummy; ListNo...
Checked out a few papers on Skip Graphs: Locally Self-Adjusting Skip Graphs Adaptive Probabilistic Skip Graphs Skip Graphs Family Trees All of the insertion/deletion algorithms assume that you have selected a start node to begin the search. However, it is not described how the start node is selected. In doing some in...
Wikipedia says the following (and more) about the logical characterization of the P versus NP problem here: Thus, the question "is P a proper subset of NP" can be reformulated as "is existential second-order logic able to describe languages (of finite linearly ordered structures with nontrivial signature) that first-o...
Finite automata is defined as a simple machine having small memory. A deterministic equivalent of a NFA with n states will have O(2^n) states,so the number of states grow exponentially. So can we always call the deterministic equivalent to be a finite automata just by saying that as n is finite 2^n will also be finite ...
I wonder if there are papers that uses max cut algorithm(s) to cluster data. For example, if an edge between two nodes $u$ and $v$ indicate that $u$ and $v$ are different, then the max-cut in some sense partition the data into two clusters in a meaningful way.
Let $A,B$ be two languages, for which we know: $A \in PSPACE$ $A\le_LB$ Can we conclude from the above that $B \in PSPACE$ ? I think the answer is no, however I don't know how to prove it. I guess I have to write a reduction that proves otherwise, but how? Thank you!
The Answer here shows a way to solve the problem with O(1) space. The approach uses Binary Search. I am finding really hard to wrap my head around why it works. I get why we did low + (high-low)/2 cause we needed to adjust the mid value based on the start and end of our range. The thing I just can't seem to wrap my hea...
Here on the page 354 Arora and Barak write below the shaded area "but in fact $f(\phi)$ $\notin SAT$" and not "but in fact $f(\phi) \in SAT$" While in the last line of the shaded area they write $Pr[f(\phi)\in SAT]=0$ Shouldn't there be in that last line also not: $Pr[f(\phi)\notin SAT]=0$ ?
How much time would be needed to compute a minimum k-cut, which has time complexity $O(n^k)$ on a graph with $n=5000$ and $k=30$? Consider using a basic 2GHz and 8GB RAM laptop. Please explain also the process of how to compute the answer.
I've learnt about complexity classes but my knowledge doesn't seem to help much when I am given a problem and need to decide it's complexity. Here is the problem at hand: A set of weights with the same dimensions but with different densities have to be ordered on a plank (on a straight line). The length of the plank i...
I have seen the following statement, and I don't quite understand the reasoning behind it: If a Turing machine repeats the same configuration twice, it must be in an infinite loop. I thought that a $TM$ can be in a state $q_1$, with the tape on the left 000 and on the right 111. Let's say it moves right and then left...
I need to find the kth smallest element in an unsorted array of non-negative integer. kth smallest element is the minimum possible n such that there are at least kth elements <= n. The rub here is that the array is read only so it can't be modified. Also i have to do it in constant space. Can anybody help come up with...
Let L be a regular language. Then $\Sigma^{*} \backslash L^{*} = (\Sigma^{*} \backslash L)^{*}$ How do I prove it is wrong?
I'm stuck with the proof. I've tried Ogden's lemma but it doesn't seem to help. The problem is: Let $N$ be the constant of Ogden, let $z = a^N b^{N+1} a^N b^{N+1}$, and $z = uvwxy$. Now I should choose which symbols to mark. I tried with all the first $N$ $a$s (and also other combinations), but then for $v=a^j$ and $x=...
Just out of curiousity: Both Introduction to Algorithms (Cormen et al), Wikipedia, and prior cs.stackexchange questions all present the Lomuto partition as: algorithm partition(A, lo, hi) is pivot := A[hi] i := lo - 1 for j := lo to hi - 1 do if A[j] < pivot then i := i + 1 swap A[i] with A[j] s...
I am trying to define an If statement, but am stuck because the definition/implementation of If is circular from what I have tried. For example, here is one definition: class If { provide: Condition provide: TrueBlock body: If (Condition) { call(TrueBlock) } } You can then use it like this: If (tru...
I learnt Ardens theorem and its usage as follows: Ardens Theorem Let $P$ and $Q$ be two regular expressions over alphabet $Σ$. If $P$ does not contain null string, then $R = Q + RP$ has a unique solution that is $R = QP^*$ Using Ardens theorem (source): Using Arden's theorem to find regular expression 1. For...
recently i was solving a programming question on uva judge Stacking boxes link to the problem : https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=39 EXPLANATION PART consider a box with n-dimension and there are k different boxes with n dimension each so the ta...
When software boils down to assembly, it is just a sequence of instructions like this: mov rax, 1 mov rdi, 1 mov rsi, message mov rdx, 13 syscall mov rax, 60 xor rdi, rdi syscall I am not sure exactly how the program evaluator works (the thing navigating about the assembly / machine code), but I think it just goes seq...
While I was reading about memory architecture from the CMSC 22200's Lecture 17 of University of Chicago, I got stuck on determining the meaning of the word "CS" used for describing a bus as part of memory channel: However I didn't find any additional source pointing out that bus. And furthermore, I found on different ...
Given a directed weighted graph with non-negative weights, how can I find all edges that are a part of any of the shortest paths from vertex X to Y? In the example below the yellow edges are the solution for finding the shortest path between A and D (note that other examples may have more than one path). I know how to...
I have this optimization problem I have no idea how to solve it. Is Lagrange suitable for this problem? Thank you
I stumble across this problem: Give right linear grammar. The solution given was simple: $S\rightarrow bA$ $S\rightarrow aS$ $A\rightarrow \lambda$ $B\rightarrow bA$ $A\rightarrow aB$ Earlier I came across problems specified in this post, which involves applying Arden's theorem to left linear and right linear equa...
There are at least two ways to flatten out a nested function. Both of them need to keep a certain amount of state to accomplish this. The two ways are: By creating several boolean variables for each part of the function. By creating a tree data structure that is navigated. Say we have this function system: function a...
Consider a digital curve, i.e. a sequence of points at integer coordinates, with unit taxicab distance between them. I want to find the isthmuses, i.e. sections of the curve that are close to each other (within a fixed threshold), though the indexes ("curvilinear" abscissa) differ by a large amount. For a curve of leng...
I'm reading a paper about constraint satisfaction problem and found a term "binary Max and binary Min" operations but I dont know the meaning. If someone know could you please explain for me? I googled it but didn't find nothing.
Let $\mathcal{R} = (R, \Sigma)$ be a term rewrite system over a signature $\Sigma$ with set of basic rewrite rules $R$. It is known that $\mathcal{R}$ is terminating IF every basic rewrite rule $l \to r \in R$ has the following two properties: The length of $l$ is strictly greater than the length of $r$. For any varia...
In Reversible Computing, all program statements are reversible. I understand for example that the following: \begin{align} x\ {+}&{=}\ 4\\ y\ {*}&{=}\ x\\ x\ {-}&{=}\ 10 \end{align} Has the inverse: \begin{align} x\ {+}&{=}\ 10\\ y\ {/}&{=}\ x\\ x\ {-}&{=}\ 4 \end{align} However, I am not following the following if sta...
Wondering how to prove different compiled forms of a program to be "effectively the same" or "equivalent". For example, you can have a program represented as your normal nested function calls, or have the same program represented as a state machine. In addition, you can inline all of your functions, or leave them neste...
I can not find any simple and detailed source of how to add non-recursive let-expressions to pure type systems. The best I found is the Henk paper by Simon Peyton Jones, but his explanation of this point is very brief. Can someone link some references about this topic (source code is accepted)? EDIT The let I want to a...
The document (see pic. below) states that it is possible to find a cover of the plane by a subset of 3 half-planes. It proposes to use linear programming for this. How to formulate such a program? The original document can be found here: On the Separation of a Polyhedron from Its Single-Part Mold. EDIT: For clarity: i...
Given two $n$-number arrays $a_1, a_2, \ldots,a_n \in [0,1] $ and $b_1, b_2, \ldots,b_n \in [0,1] $. We would like to find the real number $x^{*} \in (0,1)$ s.t: $x^{*} =\arg\max_{x} \sum_{i=1}^n \mathrm{sgn} \big( (a_i-x) (b_i -x)\big) $ Where $\mathrm{sgn} = 1 $ if $x \geq 0$ and $\mathrm{sgn} = -1$ if $x < 0$ Thi...
I have the following basic BNF grammar: <A> --> <id> = <E> <id> --> A | B | C | D | F <E> --> <E> + <T> | <T> <T> --> <T> * <F> | <F> <F> --> <E> | <id> Operator (*) should have higher precedence over (+). However, see this statement: A = A + B + C + D * F The leftmost derivation (and parse tree) indicate the o...
I do not know if I miss something in the definition of a hyper-cube, but as far as I understand, Hyper-cube graphs have 2^n vertices and if written in binary form, "one-bit difference" strings of numbers are linked with an edge. From this definition, De Bruijn graph does not look like it is a hyper-cube, because 000 a...
I have a data structure that implements the following operations all in $O(1)$: $\text{insert(x)}$, inserts a value into the data structure and returns a unique key $k$ to the value $\text{delete(k)}$, deletes the value at key $k$ and returns it $\text{get(k)}$, returns a reference to the element at key $k$ Internall...
I'm fairly new to deep learning, so if terminology makes no sense, please let me know so I can clarify what I mean. We're working with a neural network for applying classes to inputs. That is, each output unit represents a target class, and its activation denotes the amount of relevance for a given input. The output la...
Is there a language $L \subseteq \{a\}^*$ such that both $L$ and its complement are not context free?
I know what data structures is, How it works & importance of it. I just have some doubts on where do we actually use it. When database can do filtering, fetching, sorting efficiently, Why we need to use data structures in db data? I was working on a project which uses Cassandra database. In that I'd to filter data bas...
Problem: In the generalized assignment problem with unit-value items, there are $m$ bins of capacity $C$ each. There are $n$ items where each item $i$ has weight $w_{ij}$ with bin $j$. The objective is to assign the items to the bins (while respecting the bins capacities) such that the number of assigned items is maxim...
Suppose I want to broadcast from my root to all the nodes in a BFS tree. What is the time complexity of this process? I know that it is suppose to be proportional to the depth of the tree, like O(Depth). A more formal way of saying this could be O(Diameter) or maybe O(Radius of the Root) if you want to be more specific...
I have a matrix $P \in M_n(\mathbb N)$, where $$ P = \begin{bmatrix} 0 & P_{12} & \ldots & P_{1n}\\ P_{21} & 0 & \ldots & P_{2n}\\ \vdots & \vdots & \ddots & \vdots\\ P_{n1} & P_{n2} & \ldots & 0 \end{bmatrix}$$ with $P_{ii} = 0$ for all $i \in \{1,2,\dots,n\}$. I need to find matrices $A, B \in M_n(\math...
I want to design a Turing machine that accepts at most 3 0s. Now, I have designed one, which goes to accept state overtime it sees 1, 2 and 3 0s and rejects any further 0s. I wanted to know if it is okay for TM to go to accepting state from 3 different states?
This is very unclear to me. I understand what the left quotient is, however, can someone explain this: A={0,101} B=01,10,001} then how is A\B={1,01} I mean where are these strings extracted from? I dont see them in A. How can I appeand 01 to anything is B to get something in B?
I have this question to answer: "Please shortly explain how an interface virtualizes a peripheral device to the CPU." I don't really understand what the question is asking for. I know the theory behind virtual memory. I understand that a harddisk can be seen as a peripheral device. Could the theory behind virtual memo...
Hello dear stackexchangers, I have a simple question, and I would like to say that I am not a scientist. When I read the problem statement on this link: http://www.claymath.org/millennium-problems/p-vs-np-problem Suppose that you are organizing housing accommodations for a group of four hundred university students. Sp...
Given some fixed number of nodes $n$, which we will number 1 to $n$ in order to tell them apart, how many different strongly connected graphs can be created? Multiple edges with the same starting and ending nodes should be considered redundant and not contribute to the total. For example, if $n$ is 2, we can create onl...
I want to know if this progressive image compression that I have in mind exists and it it does I want know its name and/or get some references about it. The algorithm consists of converting one high resolution image in multiple low resolution images (all of the same size, not like in wavelet transform) with the followi...
As far as I see, what computer scientists refer to as loop invariant proofs are exact replicas of induction proof. Is it true? Can I state that loop invariant proof implies an induction? Is there a theoretical difference?
Introduction I am wondering if there is a generalization of parallel processing / asynchronous communication that explains/models how to deal with a hierarchy of parallel processes. Mainly looking for a reference of some sort, or an explanation if possible! Basically I'm having the problem of how to handle the followin...
I have thousands of times series of different length and different time. I want to group them together so that I know the optimal ones to pick as input for a ML algorithm and to document how they are related. Those times series are from stations, some of them inactive and some still active. My goal would eventually be ...
I have some binary trees, and I'm looking for a metric to quantify how "balanced" a tree is. I don't have a rigorous definition for "balanceness", but my intuition suggests it's a measure of how close the shape of a tree is to a "fully balanced" tree, or how "skewed" the tree is. I was thinking a possible metric would ...
More specifically, has anyone used a chain of theorem provers to validate a highly evolved theorem prover, starting with a very simple hand checked prover such that each new theorem prover is used to validate a somewhat more complex theorem prover, rinse repeat? This would be something along the lines of induction, I g...
Suppose that there are rectangles in the Cartesian plane, each aligned with the axes---the rectangles are defined by left and right x-coordinates and top and bottom y-coordinates. There are two operations on rectangles: SPLIT partitions a single rectangle into two adjacent rectangles with either a horizontal or verti...
I was going through MST(minimum spanning tree) algorithms in a given undirected graph. By using the disjoint data structure It is fairly easy. All I have to do follow these steps: Sort the edges as per there edge weights. O(ElogE) And then select edges one by an check by the union and find algorithm if they form a cyc...
Safe programming languages (PL) are gaining popularity. What is the formal definition of safe PL? For example, C is not safe, but Java is safe. I suspect that the property “safe” should be applied to a PL implementation rather than to the PL itself. If so, how do we define what is a safe PL implementation?
Consider the volume "The Princeton Companion to Mathematics" which has the broadest range of topics attempted by any book in the field. Does a Computer Science counterpart exist?
I have an image-based processing module that takes photos for some computer vision processing. I have many videos, but I need to sample representative frames as its inputs, preferably those frames with higher attention. What are some good and effective algorithms or approaches to take K sample frames in a video? Intere...
I have a set of strings that are slices of a single, longer string. It is not guaranteed, however, that any two strings from this set must overlap: only that all of them together overlap. I want to reconstruct the original longer string. For example, suppose the longer string is LGHFDJGHSJGHDFKSJBSFSHJKADGHS. The slice...
I have a scenario, in which I have m independent jobs to be schedule on n workers parallely. Time required by each of these jobs is known. The problem is how to distribute these m independent jobs such that the total run time of completion of all the m jobs by the n workers is minimum. One ad-hoc greedy approach I can ...
How to prove that "EXPtime contains PSPACE"?
For example: This looks like a context free grammar: → → | → | → | c but it can be reduced to this regular language: → | → | → | c I want to know if it is possible or not and why
I've been reading about how the kernel manages memory in x86 from this popular blog post(https://manybutfinite.com/post/how-the-kernel-manages-your-memory/) and had a few questions. There is a part where the author describes page table entries and their associated fields. To quote "This lack of a PTE no-execute flag i...
I am currently reading the proof presented in Sipser's "Theory of Computation" for the undecidability of the problem of checking whether the language accepted by a linear bounded automata is empty. In this proof, a contradiction is derived via a reduction from the problem of checking whether a Turing machine, $M$ accep...
Determine the worst-case complexity (in number of comparisons of two array elements) that allow you to conclude that a given array with n elements is not sorted. I sort of have a general idea of what is going on. Suppose I have two element array, then make one comparison between these two elements. If I have three elem...
How is program counter(PC) incremented when instruction takes more than one word? How does PC know when to increment by one word or by more than one word since incrementation is done before decoding the instruction(if I am correct)?
I am reading the lecture notes and have a question. I am trying to understand the beginning of Section 3 on page 2. Problem: Given an input stream $\sigma$, compute (or approximate) its length $m$. Naive solution: $O(\log m)$ bits, exact solution. I don't understand why it is not $O(m)$ bits but $O(\log m)$ bits. Any ...
How to convert the following statement with the existential quantifier to statement with universal quantifier? $\exists n. n>1\rightarrow x(n)\not=1$ Please give me some suggestion?
I know how to find odd length cycles(a bipartite graph cannot have odd cycles) but I cannot manage to make an algorithm when considering even length cycles.
I am reading the lecture notes. I am trying to understand Morris' algorithm on page 2. The Morris' algorithm is as follows. Problem: Given an input stream $\sigma$, compute (or approximate) its length $m$. Initial: $X=0$ For each item in the stream, increment $X$ with probability $\frac{1}{2^X}$. Output: $2^X-1$. ...
I am wondering if the second Quantum Fourier Transform (QFT) in Shor's algorithm is necessary. I am probably missing a point but it seems that an offset elimination function would suffice to determine the period? QFT eliminates the offset value and it changes the period from r to M/r, where M is a sufficiently large va...
Assume a computer architecture with 32 bit address.The system has been designed with 1MB cache which comes with 64KB cache line(cache block size). 1.What is the maximum main memory capacity this system can have? Since computer architecture is 32 bit does it mean word size is 4 bytes?am i correct? Words in one cahce lin...
We define the following problem as: Let $M$ be a TM with alphabet $\Gamma$, with $\{a,b,$ #$\} \subset \Gamma$. We define, for every natural number $n$ the graph $G_{M,n}$ by: $V_{M,n} = \{a,b\}^n$, the vertices $E_{M,n} = \{(x,y) : x,y \in V_{M,n} $ and $M$ accepts the string $x$#$y$ with a run that requires at most ...
What is the difference between min heap and max heap? is it possible to shuffle the elements during insertion time? If so then how come the complexity is logn
I am struggling to understand why linked lists seem to be accepted to have better big-O performance than arrays for in-middle insertion/deletion. The performance differences between lists and arrays for front-of and end-of operations make sense intuitively, but for operations in the middle, not so much. I see why the m...
When playing Terra Mystica, it might be useful to predict how many spades you will get throughout the game, and use this information to decide where to build, such that you stand a good chance of having the longest network. Let's abstract that into the following problem: Let a graph $G$ be given, $G = (V, E)$. Associa...
A Verifier for a language $A$ is an algorithm $V$ such that $$A=\left\{ w \space | V \space \text{accepts} \space \langle w,c\rangle \space\text{for}\space \text{some} \space \text{string} \space c\right\}.$$ My question about this definition is what is this string $c$ stands for? Let's say I have a graph and I wan...
I have three different cases of non-deterministic turing machine. The first machine has: Branch "accept" and branch "loop". The second has: Branch "rejecte" & branch "loop". Third has: Three branchs "rejecte" "loop" "accept". The question is which machines will rejecte and which ones will accept and which ones will en...
I know that it doesn’t have to be balanced so in theory given that the height of the tree is $h$, the minimal number of nodes is obtained when each node has 1 key and 1 child, and since the first level "doesn’t count" in the height, I should have $h+1$ nodes. The maximal number of nodes in a $M-way- tree$ should be ...
My question is a very basic one. It seems feasible to believe that $\mathsf{P = NP}$, because there is some "pathological" good algorithm for SAT, yet it is impossible to prove that the algorithm is actually correct and/or that it runs in polynomial time, in a standard axiomatic system like ZFC. Let's fix a logic $L$ t...
I am trying to find an algorithm which calculates an optimal and stable allocation of $n$ students to $m$ projects, where each student strictly ranks all projects by preference. The available projects are predetermined and of fixed number and each student needs to be allocated to exactly one project. Each project needs...
Is the field of theoretical computer science so complex, that it is just "too much" for a bachelor thesis? Unfortunately I haven't found any old thesises because the relevant chair of the university hasn't been occupied for years. Because of theoretical computer science is the only topic that really interests me, I tho...
So I have sets of functions $A$, $B$, $C$, $D$, $E$, and $F$. I want to run them in a nested way. I also want to run some of them in parallel, and some of them in sequence. Here is how that might look: In Parallel A { In Sequence B { In Parallel C { In Sequence D { In Parallel E { In Seque...
Can someone explain to me what this statement implies? I am assuming that it means that a string consisting of three characters repeated. What I don't understand is if the repeated string is all 0s or all 1s or both? Give the state diagram of a machine (any Turing-Complete model) that decides the following languages ov...
According to the wiki page of TSP as a graph problem, It is a minimization problem starting and finishing at a specified vertex after having visited each other vertex exactly once Then what if a triangle is given, with two edges weighed $1$ and the third weighed $100$,obviously, the shortest path to visit all three ...
"Assume a system with 4 GB virtual memory and 1 GB physical memory with 32 bit addresses. if the page size is 4 KB, How many bits will be allocated as the Higher Order Address bits and Lower Order Address bits to identify page numbers and corresponding words respectively?" My question is, What does "higher order addres...
I've got a problem at hand that's about scheduling tasks to different ressources, basically a simple job shop problem. But: my tasks "branch" dynamically, that is, there are tasks that not only have a start time parameter but also a parameter that defines how many independently scheduled series of tasks the task shall ...
Knowing how a Universal Turing Machines works and its capabilities, is it possible to obtain the collection M = {M0 , M1 , M2 , M3, … } of all possible Turing Machines? If so, can we prove that a language L = {wj |wj not accepted by Mj } is not accepted by the Universal Turing Machine?
The Hessian of multi-layered network exhibits known behaviour at critical points as shown in [1]. The tools of random matrix theory allow [2] to deduce the asymptotic distribution of the eigenvalues of the Hessian. There are some numerical experiments with distributed Newton type stochastic methods. The scalability (ab...
Are there any non-trivial functions in TC1? Apart from that are there functions which are known to be in NC2 but not in TC1?
Let $\mathcal{L}$ be a loss function associated with a multi-layered neural network. So it seems almost everyone in AI/ML community is interested in the Hessian $H=\partial^2 \mathcal{L}$ of $\mathcal{L}$. So if you read [1] on page 193 the left colum you find the following text "An important question concerns the di...
Let $T=(V,E)$ be a tree rooted in $r$ and let $L$ denotes the set of leaves of $T$. For a given $v \in V$, let $C(v)$ be the out-neighors of $v$ i.e. its children in $T$ and $p(v)$ be its in-neighbor i.e. its predecessor in $T$. We have a metric $d : V \times V \rightarrow \mathbb{R}^+$ (respecting the triangular inequ...
My professor uses the term "clean graph" to mean that the nodes have no idea of the topology. Each node is aware of its ID, but has no idea about parents or edges and so on and it has to discover. Is this terminology a thing? Because I find no evidence in the internet. Is there another term for the same thing?
A basic question about the connection between two notions. I am sure these are known notions in CS but I struggle with the basics: First Definition: A probabilistic algorithm $A(n)$ decides $L$ if for every $x \in L$, it holds that $\Pr(A(x) = 1) \geq 1 - \epsilon$, and for every $x \notin L, \Pr (A(x) = 0) \leq \delta...