instruction
stringlengths
35
29.1k
I came across the following family of online problems: Given a sequence of values of length n, the maximum value and the minimum value of the sequence, our goal: Given min and max, we want to find a good/best element in an online that if an element of the sequence satisfies some criteria based on min and max accept it ...
My question is related to this one Minimize number of circles to cover set of points In a 2D space, I have a set of points. I can deploy up to $k$ circles with radius $r$ to the space, and my goal is to maximize the number of points that will be put inside these circles. There are two cases: a) Either the circles canno...
We are given an undirected weighted graph $G=(V,E)$ that contains at most $2n$ edges, as well as an MST of $G$. If we decrease the weight of exactly $n$ edges, is it possible to compute an MST of $G$ in $O(n)$? If it's not possible, are there any lower bound that show us, it can't be done in linear time?
I have a list of supported operators, my question is whether the lexer should just yield the token for the operator or raise a syntax error in case that particular operator (let's say "?") doesn't exist in the operators list? for example, the operators list [+, -]. for the expression "1 ? 2", should the output be [numb...
Are there any algorithm for finding MST of given graph $G$ in linear time? I found this paper at this link But I can't understand it running time is linear or not.
Is there a way to tell if ANY machine on ANY input will halt in fewer than n steps OTHER than running the machine for n steps? I've read the similar questions and answers such as here, but I wanted to make sure that they were talking about any machine on any input, not a particular machine or on a particular input. If ...
Given pixel values $r_1,r_2,\dots,r_n \in \{0,\ldots,255\}$ and $k$, find $$ \min_{v_1,\ldots,v_k} \sum_{i=1}^n \min_{1 \leq j \leq k} (r_i - v_j)^2. $$ My attempt: Let $F[L,c]$ be the minimum cost, where $L$ is the last color that was chosen, and $c$ is the remaining colors. Since the order of pixels don't matter, l...
For a CNF SAT instance in the DIMACS format what is the best algorithm to compress it? What is the best algorithm for 3-SAT instances in particular? In 2020 SAT competition used .xz which if I understand correctly relies on the LZMA algorithm. Brotli probably would not be optimal as it has a pre-defined dictionary of E...
This question kind of puzzled me, it was presented as a homework assignment for 2nd year undergrads and one of them approached me in case I could give him some pointers, but the problem is I couldn't even think of the answer myself. They start with an unsorted array of integers and they're to find an element (there cou...
My attempt at solution-: Solution by a teacher-: Both are giving same answer, is the one that I made correct?
A model of computation is currently defined on wikipedia as: a model which describes how an output of a mathematical function is computed given an input. Is it therefore correct, at least as a rough approximation, to conceive of a model of computation as "reverse engineering a function"?
I'm having some trouble understanding the regular expression $0^*10|01(01)^*$. The expression matches strings like $00010$. But for some reason, I wasn't able to find a string that matches the $(01)^*$ at the end. An equivalent expression with capturing groups to demonstrate the order of evaluation would be very much h...
I have a PDA A = ({q0, q1}, Σ = {a, b}, Γ = {a}, δ, F = {q1}), with these transition functions δ: ((q0,a,ε),(q0,a)); ((q0,b,ε),(q0,a)); ((q0,a,ε),(q1,ε)); ((q1,a,a),(q1,ε)); ((q1,b,a),(q1,ε)). The exercise asks me to explain the structure of the words accepted. I have designed the PDA but i'm having problems understand...
I was trying to understand pointers by watching YouTube videos. However, I could not understand How do they work? Why do we use them? When do we use them?
I have $n\times n$ matrix of non-negative integers $a_{ij}$. Let $S:\mathbb{R}^{n\times n}_+\mapsto\mathbb{R}_+$ be the following function: $$S(A)=\sum_{j=1}^n\sum_{k>i}\large\mathbb{1}_{\{a_{ij}=a_{kj}\}},$$ where $\mathbb{1}$ denotes the indicator function. I would like to find a permutation $\sigma$ of the rows of $...
Having the ability to see 2 or more colors can improve the sensitivity of nuances but greatly increases the complexity of image processing algorithms. I once thought that 3 colors are necessary for the most complex tasks (such as self driving cars) until I learned that colorblind people (who can see only 2 colors) can ...
this is very confusing question. I am having no idea to solve it, can you please guide me here?
I have a problem that looks like a 0-1 Knapsack problem, except that the value of each item is a vector of length about 5, $v=(v_1,\dots,v_5)$. I want to maximize the product of components of the sum of the value vectors that are selected. In other words, if $S$ is the set of value vectors for the selected items, I wa...
A friend and I did the Inorder-tree-walk with pen and paper. We both can't figure out how the algorithm would move 'up' the tree again upon hitting a leaf: We are using the algorithm as described by our professor and taken from "Introduction to Algorithms, Third Edition" Chapter 12 page 288: Inorder-tw(node) if node ...
I have a graph $G$ with $n$ nodes and $O(n)$ edges. Each of the nodes has a positive integral weight at least 2, such that sum of all weights is at most $O(n)$. We want to color the nodes and edges red or blue, where coloring a node of weight $C$ costs $C$ units, and coloring an edge costs 1 unit. Constraints: Any edg...
I am trying to understand the Boolean Hierarchy. the formal definition of the Boolean Hierarchy is as follows: $BH_1 = NP$ $BH_{2k}$ is the class of languages which are the intersection of a language in $BH_{2k-1}$ and a language in $coNP$. $BH_{2k+1}$ is the class of languages which are the intersection of a langua...
I am given $A$ and $B$, where $A$ is less than or equal to $B$, and they are in the range of $[1, 100000000]$. I want to calculate the number of pronic numbers in that interval $[A, B]$. These numbers are numbers $n$ such that $k \times (k + 1) = n$ for some $k$. The following algorithm works, but I am having a lot of ...
Design a DFA that accepts language $$L = \left\{ x \in \{ 0, 1, 2 \} : \text{ sum of digits in } x \text{ is } 2 \mod 3 \right\}$$ How to make a DFA for this? I have no idea how to solve this dfa problem. I have a solution by someone but I am not getting concept to start this solution.
I was assuming the following equivalence in one proof: $L \in NP^B \iff \overline{L} \in coNP^B$ here $NP^B$ is the class $NP$ with oracle acess to oracle $B$ and similarly $coNP^B$. Is this correct? Does it matter if I give oracle acess to $B$ or to $B^c$?
State machines are a fundamental computer science concept and in many senarios they are the simplest way to implement a process or program. However, most programming languages don't support them natively. Is there a technical limitation to do it? And if not, are there any programming languages that do support state mac...
In undergrad theory classes, the idea of decidability and recognizability is introduced. It's well known that $A_{TM}$, the set of words accepted by a TM $M$, is recognizable but not decidable. We also know that the complement problem $\overline{A}_{TM}$ is co-recognizable but not recognizable. I have a doubt about the...
Construct a PDA, which recognizes the following language $L$: $L = \{w\;|\; |w|_a > 2|w|_b\}$, so it is the language that consists of words which have more than twice as many $a$'s as $b$'s. I have constructed a PDA, which I believe to recognize $L$, however it is too complicated to prove its correctness. Is there an...
Suppose you have a machine that takes inputs a set of sets, $\{S_1,S_2,\dots S_n\}$, and an integer $k$. The machine then returns True if $S_1$ intersects every other set $S_2,\dots,S_n$ in at least one place and otherwise returns False. Call this problem the INTERSECT problem. Now call the K_ELEMENT problem the pro...
Given a $\Sigma$ I define a regular language as one of the folllows: $\emptyset$ $\left\{ \sigma \right\}$ for any $\sigma \in \Sigma$ $L_1 \cup L_2$ for regular $L_1, L_2$ $L_1 \cdot L_2 $ for regular $L_1,L_2$ $L^*$ for regular $L$ Now, I would like to show that for a given regular language $L$, its complement $\ov...
Pretty much just the title. Is it all possible combinations of a and b that have 2 letters ?
In our lecture, the Huffman coding was described as optimal. Optimal with regard to the minimum information content. When asked, the professor explained to me that the length of a fixed code word should be minimal. I have now looked up on the internet what the common information is, this characterises the code as minim...
My Monte Carlo algorithm starts by placing some circles in the plane with potential overlaps. I then place a large circle somewhere and compute the overlapping area of this larger circle with the other circles, through iteratively testing random points of the larger circle. On this site it is stated that Monte Carlo al...
Context-: A language over Σ need not include strings with all symbols of Σ Thus, a language over Σ is also a language over any alphabet that is a superset of Σ. https://www.univ-orleans.fr/lifo/Members/Mirian.Halfeld/Cours/TLComp/TLComp-introTL.pdf Page number 10 I am trying to understand what it is trying to say-: Σ={...
Most cryptographic protocols like pseudorandom number generators run only on "internal" information: that is you set a seed and the next state is a function of its previous state etc.. I am wondering if there are any examples of cryptographic protocols that make use of "external" randomness or information, which is as...
An Exact Cover problem is commonly denoted as a matrix of 0s and 1s. Columns denote requirements, rows denote possible choices. The problem is solved when a set of rows was found such that, using just this set, each column has exactly one 1 in it. In this question, assume that exactly one solution exists. A common way ...
I'm trying to solve following problem: Check, if the string contains substring, that can be obtained from pattern using one to one lower case symbols replacement (using bijection between original lower case letters and new letters). My strings only consist of upper case and lower case english alphabet letters (A–Z, a...
By definition are Nondeterministic Finite Automata not allowed a 'sink-state' (non-accepting state we don't get out of)? I can see us having them for NFA but not necessary but do not see how they are against the rules of a NFSA/NFA or should not be allowed. My teacher said they are not allowed in a NFA/NFSA, but even i...
You have an array of floats, for example: [74.45329758275943, 501.9063197679927, 172.59563201929095, 307.1739798358187, 362.042263381624, 940.1282277740091, 577.2604546481798, 63.201270419598224, 828.8081043649505, 31.1630295128974] For each float, you can either call floor() or ceiling() to convert it to the near...
Context-: https://math.stackexchange.com/questions/1600257/determining-if-a-binary-string-represents-a-prime-integer Confused text-: The problem of testing primality can be expressed by the language LP consisting of all binary strings whose values as a binary number is prime. That is, given a string of 0's and 1's, sa...
I got bombed in a interview because I was asked to write an algorithm which would count the leaves of a tree, I did this: class TreeNode{ TreeNode[] children; int value; ctor(){ children = new TreeNode[](); } } class CountingClass{ int count; ctor(){ count = 0; } void Count(TreeNode node) { if(node.Children.Count...
I have a problem which could be stated as follows: Given an unweighted undirected graph $G=(V, E)$ and positive integer $k \leq |V|$, I need to find a subset of vertices $R \subseteq V$ such that $|R| \geq k$ and no two vertices in $R$ are joined by an edge in $E$. As you can see, this is the definition of the independ...
Context-: Problems that can be solved by a computer using no more time than slowly growing function of size of input are called tractable. Polynomial functions are slowly growing functions. Functions that grow faster than any polynomial are deemed to grow too fast. I googled about input size-: For sorting arrays-: in...
Define the subset sum with interval integer target problem (SSIITP) as follows: SSIITP Input: A multiset $S = \{a_1, …, a_p\}$ of positive integers $a_i$. An integer $T$. SSIITP Output: True, if there is a subset $S’ \subseteq S$ such that $\sum_{x \in S'} x \in T .. 2T$. False, otherwise. Where $a .. b$, for two i...
I am reading CLRS 3rd Ed, chapter 17.1 (Aggregate analysis pg453) and I came across this statement. Let us analyze a sequence of n PUSH, POP, and MULTIPOP operations on an initially empty stack. I am confused as in: Do the push, pop, and multipop cumulatively add up to n operations. (there is a total of n operati...
Assume that P1, P2,..., Pn are all NP-class problems. PP1 and PP2 are unknown problems (i.e., we don't know whether they belong to the P or NP classes). If "P1, P2,...., Pn" problems can be reduced to PP1 in polynomial time, then PP1 can be reduced to PP2, and PP2 can be reduced to another NP problem in polynomial time...
Can we prove by induction that $A_k$ is computable for every choice of $k \in \mathbb{N}$? $A_k$ is the set of descriptions of a no-input Turing Machine which accepts in $k$ or fewer steps.
Text of the problem: Solve the following recurrence equation and prove it by applying the principle of induction: $T(n) = \begin{cases} 3, \ n \le 2 \\ T(\lfloor\frac{n}{2}\rfloor)+n^2, \ n \ge 3 \end{cases}$ after doing the recursion tree, I find that the complexity (if I'm not wrong) is $ \Theta (\log_2 n) $ But I ...
The first one is from unreputed youtuber whereas second one is from reputed university called adiuni course of theory of computation. Now I know what that second figure means, it means it also accepts $\in$ as initial state=final state, but how I don't know that. This dfa should accept all binary divisble by 4. But h...
Let $G = (V, E)$ be a directed acyclic graph, which is quite sparse (in the examples I have in mind, $|E| \approx 10|V|$ or so). For each vertex $v \in V$, let $f(v)$ be the number of vertices reachable from $v$. Is there a way of calculating the function $f$ for all vertices in time $|V| + |E|$? The obvious algorithm ...
It is known that: $\Sigma_2^P \subseteq \Delta_3^P$ i.e. $NP^{NP} \subseteq \Delta_3^P$. $BPP^{NP} \subseteq \Delta_3^P$ If $\Sigma_2^P = PSPACE => BPP^{NP} \subseteq NP^{NP}$ Doesn't that imply: $\Sigma_2^P = PSPACE => BPP \subseteq NP$? Am I missing something?
Let $G = (V,E)$ be a connected undirected graph. Let $s \in V$ be a vertex in the graph. True/False: If $v$ is a leaf in every spanning tree resulting from DFS(s), then $v$ is a leaf in every spanning tree resulting from BFS(s). I assume that this one is True, and I think that because if $v$ is a leaf in every DFS(s), ...
I was asked a question in my algorithms exam which had this as the core question after simplifying. I had written that it would be NP-Hard but I got it wrong my professor is saying that it would be NP-Complete. Kindly help me resolve my doubt.
I am trying to construct the DFA that accepts the following language $$ L_2 := \left\{ w \in \{a,b\}^* \mid \#a(w) \text{ is divisible by } 3 \text{ and } \texttt{babbab} \text{is a substring of } w \right\} $$ My solution is illustrated below. I feel like my current solution is incomplete/wrong.
I need to find a regular expression for the language over $\{a,b,c\}$ consisting of all words in which no two consecutive letters are the same. For example, $abacbabca$ is in the language, while $abbc$ isn't. How do I do that? Any help would be greatly appreciated!
Let $u$ be a real vector of $m$ entries, and $A$ be a $\pm 1$ matrix of dimension $N\times m$, and real rank $\operatorname{rank}(A) = r$. What are some conditions on $A$ (e.g. in terms of its rank $r$, or any other property of the rows of $A$) such that $u$ with $Au = 0$ is forced to have a zero entry?
I am relatively new to algorithms and I hoped you can help me with the following question. The question can be summarized as follows: Given two different starting vertices, A and B, and a destination vertex, C. Find the shortest path from A -> C and B -> C (assuming there is no negative edges). The graph can be modele...
There are lots of code metrics that claim to measure maintainability, e.g. CK and Li & Henry metric suits. However, it seems elusive to me to find a meta-study that compares different metrics to decide their current empirical status. In contrast, here's a quite brilliant such study about fault prediction: https://romis...
Problem Description: We have an array of $n$ positive integers and in one operation we have to choose two elements in the array and decrease them by $1$. (Elements on which we are performing this operation must be positive). How can we do this operation on this array repeatedly as many times as possible? [Problem taken...
Given a state object S and two proposed actions a and b, and a reducer function that applies actions such that f(S, x) => S', is it reasonable to assume that a and b do not collide if f(f(S, a),b) = f(f(S,b), a)? For a bit of context to this question: I'm working on a p2p consensus algorithm where no one peer owns the ...
I am reading the Wikipedia article on time-constructible functions and got confused by its definitions, given as follows: There are two different definitions of a time-constructible function. In the first definition, a function $f$ is called time-constructible if there exists a positive integer $n_0$ and Turing machin...
I tried to write a non-ambiguous grammar for lambda calculus, but it does not really work. The recursive-descent parser is easy to write though. I googled but all results I collected so far are ambiguous, or rely on PEG which has a notion of explicit try-backtrack. I'm now quite skeptical the non-ambiguous CFG does not...
I am having a hard time understanding the concept of what attributes get bound statically instead of dynamically. Below is code and from that code, what gets bound statically? Here is an example (In C): static int count = getRand(0, 100); // getRand is a library
Is Max 3-SAT a W[1] hard problem, parmeterized by some parmeterize? I can't find the relevant literature. I accept any parameterization.
In computability theory here is what the padding lemma says : Every partial recursive function $\phi_x$ has $\beth_0$ indices and for each $x$ we can find effectively an infinite set $C_x$ of indices for the same partial recursive function. In computational complexity theory, the padding argument is a tool which help...
Text: Given a non-descending ordered array A and an integer k, design an algorithm to find, if any, the indices of a pair of elements whose sum is equal to k. Discuss the complexity and the optimality of the solution. Example Input: 1, 3, 4, 5, 7 k=7 Output: 2,3 because A[2] + A[3] = 7 I tried to write the easiest a...
I am new to machine learning. I've seen that machine learning models such as ANN or SVM can be used to predict scalar outputs taking scalar inputs. I am trying to create a model that has a number of scalar inputs and outputs a function (the 'output signal' from now on), instead of scalar outputs. What model should I us...
I have been given an assignment that I'm having a very hard time understanding. The assignment is to prove that if an algorithm accepts a non-regular language, the complexity is $\Omega(\log \log n)$ (so if the language is regular, the complexity is $O(\log \log n)$). The computational model to be used is a Turing mach...
For any $n$ and any $x$, if one implements a loop to calculate: $$\sum_{i=0}^n x^i$$ What is time complexity of said loop if we assume $x^i$ to have time complexity of $O(i)$? What confuses me is the fact that in each iteration, $i$ will have a different value.
I was reading Introduction to algorithms, and stopped at the calculating the running time. For each $j = 2,3,..,n$ where $n = A.length$, we let $t_j$ denote the number of times the while loop test in line $5$ is executed for that value of $j$ . so I don't understand this statements with the sums and why the lines 6,7...
Given an undirected graph $G=(V,E)$. We want, if possible, to partition $G$ into paths of length 2 such that each pair of paths is edge-disjoint. I seek an algorithm with linear time $O(V+E)$ and a proof that shows us why the algorithm is correct. My idea is that we can't partition any graph this way. But when we can, ...
I have this NFA: I want to simulate it with a DFA, thus I have the states {1}, {2}, {3}, {1,2}, {1,3}, {2,3} and {1,2,3}. Usually I look at every state and find out in which state I could end up when selecting a letter. However here the problem starts at {1}, where the dfa wouldn't have any connection for letter a and...
Let $G = (X\cup Y, E)$ be a bipartite graph. Suppose $X$ contains people, $Y$ contains seats in a theatre, and each edge $(x,y)$ has a weight representing how much person $x$ is willing to pay for seat $y$. The goal is to find a maximum-weight matching (to maximize the total profit). But now there are social distancing...
I've been given following task: Determine the following nondeterministic automaton (omit unreachable states, if they appear during construction) My solution to this: Would like to ask for a verification here, especially for the part of this task which is enclosed in parentheses: omit unreachable states, if they appea...
This is a homework problem. Let $A$ be an input binary matrix of size $2 \times n$, and $L$ an integer. The objective is to cover all 1s in $A$ with submatrices, such that we minimize the sum of the size of the submatrices (we consider the size of a matrix the product of its rows and columns) and we use no more than $L...
From a practical point of view, how do functional languages with formally specified semantics (like ML) handle side effects like printing? I'm aware of things like the IO monad in Haskell but I'm interested in how the actual primitives are encoded and implemented. Thanks in advance.
I am facing one problem that consists in polynomially reducing the Coverging Salesmen Problem (CSP) to the Traveling Salesman Problem (TSP). So, let me first define the CSP. The CSP, I am working on, can be defined as a complete undirected graph $G(V, E)$, a metric edge weight function $w_e \in \mathbb{R}^+$, and a nod...
What size is the largest AVL tree for which an insertion could trigger a double rotation?
I was reading Charles Petzold's The Annotated Turing that walks through Turing's original proof out of curiosity and feel like I've missed something during the part where Turing is describing description numbers and standard descriptions. Specifically, to generalize what symbol an m-config will scan for as a number, Tu...
I have been working with control flow graphs and believe I understand how they function when describing dependencies between variables. For example, given the operations: a = b + c; b = c + d; c = d + e; The control flow graph would appear: a = b + c; ==> b = c + d; ==> c = d + e; Since there is a write after read de...
I read the following link. That compute $F_n$ in $O(\log n)$, but i can't find the space complexity of this matrix form of $F_n$.
I have found several versions of algorithms the find a Eulerian path/circuit in a graph, but I'm having trouble understanding why they work. For example http://www.graph-magics.com/articles/euler.php gives a clear description of the steps, but I can't see how those steps work, and certainly don't imagine I could have c...
I was given below task: Eliminate Epsilon-transitions in below automata My solution: Is it correct that stage 1 is actually one of the final stages? How does it work in given example? We have nothing on the input and it's still going to be accepted? Is it because epsilon here is hidden? Am I understanding that right ...
Most know that early phones and modems, and still, fax machines, sent information through the use of tones. This got me thinking - could audio be a viable vector for executing instructions by a bad actor? (By this I mean the use of a carefully crafted audio file that when played could trick some part of the OS or under...
I have thought about this problem, but cannot come up with a convincing answer since I think this problem has too many states too consider. The accepting states can be length 5 substring and 3 1's, length 5 substring and 4 1's, length 5 substring and 3 1's, length 4 substring and 3 1's, length 4 subtring and 4 1's, len...
To be honest, I have not yet read this book, but it's fun to plan ahead. If I am able to read through the entirety of this book and solve all the problems, are there books to dive deeper into the theory? Or is this a good enough introduction to just start jumping into research papers?
The 1971 paper A Catalog of Optimizing Transformations contains this passage: irreducible subprograms require special handling. (An irreducible subprogram is one which maintains a history, performs I/O operations, can return different function values for identical argument values, or does not return through a standard...
If $L\notin$ RE, can there be a language $L'\subseteq L$ such that $L'\in$ RE? Or is it necessarily true that $L'\notin$ RE for all $L'\subseteq L$.
i have faced this problem that i can not solve. assume i have a number like n. I want to do m operation over each digit. in each operation every digit is added by one for example if my number is 1239 my number after one operation is 23410 Or if my number is 9912, my number after operation is 101023 Is there any algor...
I need more clarity about what is the main difference between fetching, accessing and downloading in web? which is differentiating these three words in web?
We were doing project work for plagiarism checking. For this purpose, we have taken a term frequency vector of two documents and measured the similarity using a cosine similarity measure. The value of cosine similarity is limited between 0 and 1. We know that the value of cosine similarity will be 1 if two documents ex...
Denote $G=\left( V, E \right)$ arboricity by $a\left( G \right)$. I'm trying to understand why $G$ is $2\cdot a \left( G \right)$-colorable. I came across this post. Both the OP and the answer say that $E$ can be partitioned to $F_1 , ..., F_a$. Then, color $V_1$ is $2$ colors because its a forest. then, color $V_2 \ba...
I am not sure if this is the right place to ask this question but of all StackExchange communities, this looks to be the closest one. We have to cut an equal number of circles of 5 different diameters - D1, ..., D5 from wooden tiles of LxL cm. The working space of our router machine has the size WxH cm, W < L < H. How ...
I have a question and didn't understand the solution, since we didn't take how to do it in the lecture and it's not explained in the solution sample. Question: One can generalize the Karatsube-Ofman algorithm even further and divide the number to be squared into b parts with n / b places. However, one then has to perfo...
I am working on my own expression package in Ocaml and have to perform both validity queries and quantifier elimination. I have already implemented Cooper's procedure (for Presburger and Linear Integer arithmetic), but I assume it is much slower than other implementations. Because of this, and since Presburger/LIA is n...
I agree that NFA has power to be in several states at once. It probably means that on same input, NFA can be on multiple states. But what I can't understand is how can we conclude from this that "NFA has ability to guess about its input". What is this trying to say? Can you explain with example using NFA rather than t...
In undergrad Quicksort implementation, Lomuto partitioning scheme is used. We are taught that Quicksort is an unstable partitioning algorithm which is cause of the extra swaps that occurs even when pivot is equal to the element at index j. Lomuto-Partition(A, p, r) x = A[r] i = p - 1 for j = p to r - 1 ...
I stumbled upon some problem in my understanding of the complexity classes FPT and XP. According to Wikipedia (and the Book "Parameterized Algorithms") we know the following about the Vertex Cover and Vertex Coloring problem: A vertex cover of size $k$ in a graph of order $n$ can be found in time $O(2^{k}n)$, so this ...
In the question (Validity of predicate logic formulas) I see the following way of expressing: "The predicate $P(x,y) \equiv \bigl[ y \cdot x = 1 \bigr]$, where the domain of discourse is $\mathbb{Q}$." However, I am used to call this domain of discourse a first-order theory. For instance, I would have rewritten the ab...
I was going thorough this paper: (P=BPP unless E has sub-exponential circuits: https://www.math.ias.edu/~avi/PUBLICATIONS/MYPAPERS/IW97/proc.pdf) and I am somewhat struggling with some basics from the paper that I quote below: Definition 1: Let $m$ and $l$ be positive integers. Let $f:\{{0,1}\}^m→\{{0,1}\}^l$. $S(f)$, ...
For my own understanding I would like to summarize how to use the pumping lemma to show that a language is not regular. The pumping lemma is defined as follows. Pumping lemma If $A$ is a regular language, then there is a number $p$ (the pumping length) where if $s$ is any string in $A$ of length at least $p$, then $s$...