instruction
stringlengths
35
29.1k
Given a bipartite graph $(X,Y,E)$, in which there is no perfect matching, I want to find a smallest subset that violates Hall's condition, i.e., a minimum-cardinality set $S \subseteq X$ for which $|N(S)|<|S|$. This problem is the optimization version of a former question Finding a subset in bipartite graph violating ...
Let $\Sigma=\{a,b\}$. Why is the concatenation of any language with $\Sigma^*$ always regular? I found a problem where $(a+b)^*$concatenated with $a^nb^n$ was regular?
More specifically : lets say i have 5 taxis , each available for booking at t=0; i have two days (48 hrs) with me how can I maximise their booking . I may not be able to clarify the question , this was some interview question but the context is how to schedule the taxis for max profit. I gave a algo to run at t=0 but i...
I'm reading about memory management in Operating System Concepts, by A. Silberschatz. The author says: [...] the user process by definition is unable to access memory it does not own. It has no way of addressing memory outside of its page table, and the table includes only those pages that the process owns. Then,...
In an answer to the problem of determining whether or not a point lies inside a given convex hull, a thesis is mentioned, which says : For repeated queries with preprocessing allowed, we develop a special method that relies on the convexity of the polygon. Recalling Theorem 3.5, the vertices of a convex polygon oc...
I have two search algorithms (for determining if an element $x$ is in a list $A$ of length $n$): (1) Pick a random index $i$ from $L = [1, \ldots n]$. If $A[i] = x$, terminate. Otherwise, pick a new random index $i$, still in the list $L = [1, \ldots , n]$. Repeat until we've either found a $j$ such that $A[j] = x$ or ...
Weighted 2SAT asks if it is possible to satisfy the formula with at most $k$ variables set as positive/negative. Trivially, every instance must be in 2CNF. It is known to be $\mathsf{NP}$-complete. We have following additional restriction: each variable appears twice as positive and once as negative or vice versa. Exam...
I came across this algorithm in a book, and have been struggling to understand the basic idea. The books says it uses backtracking to print all possible permutations of the characters in a string. In Python, the algorithm is given as: def bitStr(n, s): if n == 1: return s return [digit + bits for digit in bitSt...
Given that $L \subseteq NL \subseteq P \subseteq NP \subseteq PSPACE$ and that it is commonly believed that all these inclusions are strict can you provide examples of problems that are believed to be in each class and not in the preceding ones? To try to narrow the scope of the question, could you provide paradigmatic...
Ok, I really need help because I have read in so many books but still don't understand the complexity class NP. These are the books: Theoretische Informatik; Katrin Erk, Lutz Priese (german) Grundkurs: Theoretische Informatik; Gottfried Vossen, Kurt-Ulrich Witt (german) Theoretische Informatik; Ingo Wegener (german) ...
$f$ is differentiable (continous) and analytic function. If $x\in\mathbb{R} \land 0\le x\le1$ then $f(x)$ is computable, $f(x)\in\mathbb{R}$ and $0\le f(x)\le1$. I have a conjecture that it is possible in O(1) constant time to find the maximum of $f$ in the interval [0,1] by using quantum computer. Let some qubit be th...
I have the following problem and would like an orientation on which algorithms I can try to adapt to solve it in the best possible way. SCENARIO A company has a warehouse where it stores several products. A product can be stored in several packages, for example: 1 box with 10 units 1 box with 3 boxes of 10 units 1 box...
How can we construct TMs such that it accepts(Give description only): a + b = c a . b = c Input is of the form a#b#c. a,b and c belongs to {0,1}* and are positive binary unsigned integers. I know that we can construct TMs if the input has unary representation but how to solve if it has binary representation?
Reversible programs with finite execution steps are well studied. For example, a Turing machine whose transitions are reversible and halts can be executed backwards consuming its tape in the reverse order. A variant of Turing machines with distinct input, output, and work tapes can be similarly executed in reverse to c...
Can we construct minimum spanning tree for an undirected graph with distinct weights using bfs or dfs? I have gone through many answers but each answer says something different and I am not convinced.
My algorithm solves the following problem: $n\in\mathbb{N} \land n\ge1$ $\{v_1, \ldots , v_n\}\subset\mathbb{Q}$ $ \begin{eqnarray} \left\{ \begin{array}{} \square\cdot\square\cdot\square = 0 \\ \vdots \\ \square\cdot\square\cdot\square = 0 \\ \end{array} \right. \end{eqnarray} $ $\square\in\{v_1,\ldots,v_n,1-v_1,\ldot...
Why is that the page size equals the size of one cache way? My book states "A direct-mapped cache cannot be bigger than a page".
From what I understand, async/await enables to avoid the "callback pyramid of doom". Let's say that I have funcA(), funcB() and funcC() that are async functions, now if I do something like that: func someFunction() -> T { let myValueA = await funcA() let myValueB = await funcB() let myValueC = await funcC() return do...
Let's check together whether the TSP-decision problem is NP-complete. Maybe it will help me to understand things better. Question for TSP-decision problem: Given n cities and a tour from length $k$. The traveller starts at an arbitrary city, visits every other city just once and returns to the starting point. Does a t...
The inner loop of this pseudocode runs only for the divisors of n for i=1 to n: if(n%i==0): for j=1 to n: Do something in constant time If I can get a bound on the number of divisor of n(The condition in the if statement) then I can get its time complexity.Please Help ?
As a project, I'm trying to construct a P2P auction web application with paxos in a high latency environment. The idea is that each user visiting the website will keep a small log file with the interested item and current price/bid. Each submitted bid will use a client-sided paxos algorithm to contact nodes all nodes t...
Suppose I have set of time records as follows 08:00 - 12:00 10:00 - 12:00 08:00 - 13:00 13:00 - 19:00 12:00 - 17:00 Now I want to select set of time records that are not overlapping and has the largest sum. 08:00 - 13:00 + 13:00 - 19:00 = 12hours My current approach is Sort the records by start time Select the fir...
This Screenshot is taken from William Stalling's Operating Systems book. My doubt is that Bounded wait is not satisfied by this solution. For example: P0 and P1 both want to enter critical section and set their flags to true. flag[0] = true flag[ 1] = true Both p0 and p1 enter while loop, p0 wins the race process P1 ...
Input: A set of points P(x,y). There are two versions of it - Px, sorted by x and Py, sorted by y. Output: The two even halves of Px, sorted by y. The trick here is that it has to work in linear time, otherwise, it's rather useless. What I've come up with so far is finding the midpoint of Px, let's call it Px[mid] and ...
I'm learning the book named Data Structures & Algorithms in Python. On Page 557-558, there is a proof of the expected running time of randomized qucick-sort. I have some problems confusing me some days. I will note them in bold form. Here's orginal text: Proposition 12.3: The expected running time of randomized quick-...
I don't think I'm able to solve this using the master's theorem, and solving separately doesn't seem to make sense. How does one go about solving this recursive relation? T(n)= 2T(n/2) + 3T(n/5) +n
Below is an excerpt from Khan Academy's Quick Sort Analysis page. In the average case of quicksort they assume that each time the partition function breaks the input array into the ratio 1:3 each time. So why is it easier to assume $\log_4 n$ levels when the $n$ elements are being partitioned ? Why not assume it to b...
This could relate to different applications, but my application of interest is in similarity-search systems based on high-dimensional feature vectors. In these systems, since search based on Euclidean distance is costly, the vectors are encoded as binary vectors. Then the search is done based on Hamming distance compu...
I am newbie with machine learning. In order to learn more I decided to try solving a specific problem/game that I have in mind. The problem is the following: I have a list of $N$ items which are auctioned in a random sequence. There are $n$ participants to the auction. They have a fixed budget and $M$ items to buy. Eac...
I would like to to draw a graph where every edge $e_m$ has a predefined length of $l$. Given that the graph is small and sparse, it should be feasable. However, I did not manage to find an algorithm which does this (or one that is suitable to modify) yet I'm sure that this is a solved problem. Does anyone know of such ...
I have a set of leaf-labeled trees. I want to concatenate them into a single leaf labelled tree in such a way that the height of the resulting tree is smallest possible. Can somebody please help me to generate an algorithm for this task, with good performance? Leaf labelled tree is a tree in which all the data is hel...
This is a Hackerrank challenge $Knight$ is a chess piece that moves in an L shape. We define the possible moves of $Knight(a,b)$ as any movement from some position $(x_1, y_1)$ to $(x_2, y_2)$ satisfying either of the following: $x_2 = x_1 \pm a$ and $y_2 = y_1 \pm b$, or $x_2 = x_1 \pm b$ and $y_2 = y_1 \pm a$ Giv...
According to Cayley's formula, we have number of spanning trees on a complete graph as n^n-2 and number of labelled trees with n vertices as n^n-2 If the tree is rooted then in each tree we can choose a root in n ways so total number of rooted labelled trees is n^n-1. Here when computing the total number for rooted lab...
I'm studying for a final and when looking for the shortest path in a graph from one vertex to another, what is meant by k-skips? One website defines it as the ability to change the weight of one edge to zero, as if you don't include it in the path distance. Another one defines it as: $P*$ is a k-skip shortest path fro...
Let $f$ be a computable function in $PSPACE$ It is true that Turing machine that computes $f$ can produce only $EXP$-size output at most. I see that $\log 2^n = n$ we can "control" the output. But, it doesn't convince me. Please explain
What language is in $P/Poly \setminus P$? I was thinking of it by hours but I cannot come with an idea. Please help.
I'm trying to get some notion of how "many" recursively enumerable sets there are. Here's one way of formalizing the question: consider $S =\{q: q\in Q\cap [0,1]\}$ and $R\subset S$ the set of recursively innumerable subsets of $S$. What is the measure of $R$? My intuition is that it is 0 (i.e. a given set is almost su...
In interval scheduling, the greedy solution which maximizes the schedule that contains the largest number of "compliant intervals" involves initially sorting the list of intervals in ascending order by the end-times/point of each interval. What confuses me, is if two or more intervals have the same ending time. When p...
I am writing to see if someone can point me to the original citation (assuming that a single work can be pointed to) for the single-source shortest path problem in directed-acyclic graphs (DAGs). Below is one candidate citation, which I came up with after digging around on google scholar (somehow, though, 1977 already ...
Silly question. I was wondering if the measure of "variance" is taken into account when the analysis of an algorithm is performed (asymptotic). In general best-case,worst-case,average-case are taken into account, even for more complicated analysis. However is the variance actually used sometimes? I can imagine that in ...
Fréchet distance tells how similar two curves are. Now let's say I have two curves A and B, both represented in several discrete coordinate x, y points. And the fréchet distance between A and B is d. What technique can I employ to find another curve that has d/2 fréchet distance from both curves and has a total euclide...
I took a tangent from a student project I had done a number of years ago and spent some time studying distance functions. (please note that the above link contains the full question with links as I don't have sufficient reputation to post more than two links) I found this textbook on data mining which includes a chapte...
I'm dealing with a slight variation on a classic matching problem on sets $A$ and $B$), where: Set $A$ has an incomplete set of preferences (not all of $B$ is included) Set $B$ has no preferences whatsoever. I want to find an $A$-optimal matching (e.g, for any $(a_1 \rightarrow b_1), (a_2 \rightarrow b_2)$, then eith...
forest : set of disjoint trees. So a connected forest is a forest, a tree, a spanning forest and a spanning tree. Is that correct? Edit: disjoint trees in the forest are connected by single edge, so as to make the forest connected
I'm trying to find an algorithm that finds an optimal matching between $A$ and $B$, where each element $a$ of $A$ provides a preference order $\prec_a$ over $B$. I will notate the index of an element $b$ in $a$'s preference order as $i_a(b)$, where if $b$ is most preferred then $i_a(b) = 1$. This mapping needs to satis...
The construct of a cell (an ordered pair with pointers to either another cell or an atom) and atom (an indivisible sequence (of bits) (i.e. a natural number)) is a fundamental data structure for many programming languages. It's also quite a versatile one, with which you can build arbitrary structures - lists, trees (li...
I am Implementing a Queue using circular arrays in C language .The Implementation uses one empty position to indicate that the queue is full.That is if the rear is two position behind front. The condition is we cant use a variable to count the entries in the queue as we insert or delete . I have created this function t...
I am reading about the address calculation formulas for one and two-dimensional arrays. I have two related doubts concerning it. In one of the problems, we are asked to calculate the location of B [1700] for an array B [1300....1900]. Now, I understand that B [1700] is actually the 401th element in the arra...
Let $m, n \in \mathbb{N}$ and $n \le m$. Given $k$ subsets $X_1, X_2, \dots, X_k$ of $\{ 1, 2, \dots, m \}$ and $k$ nonnegative integers $a_1, a_2, \dots, a_k$, find all subsets $Y$ of $\{ 1, 2, \dots, m \}$ satisfying the following conditions: The set $Y$ contains exactly $n$ elements: $|Y| = n$ The set $X_i$ has exa...
Suppose I have a min-heap SH stored inside an array. I can perform the operations: view-min(SH) in $O(1)$ extract-min(SH) in $O(\log n)$ insert(SH) in $O(\log n)$ is-empty(SH) in $O(1)$ If I want to build a max-heap BH from the first one, the naive algorithm I can implement is obviously BH <- build-heap() while not ...
We know from Immerman-Szelepcsényi theorem that $coNL=NL$. But, what about: If problem is $coNL\text{-}complete$, is it $NL\text{-}complete$? And why?
I was reading Perceptron's by Minsky's and Papert's book and there is a part where they discuss symbolic systems and one part of it says: Symbolic systems yield gains of their own...Above all else they offer us the prospect that computers share: of not being bound by the small details of the parts of which they a...
We have an $n\times n$ grid of squares, each square has a non-negative integer. Two distinct squares are neighbours if they share a row or column. A selection of squares is good if every selected square has a number of selected neighbours less than or equal to its number. Is there a known way to find the maximum number...
I'm trying to build a P2P web application using Paxos to obtain a consensus value. How well does Paxos scale? linearly? or what kind of distribution can you expect? E.g. in using 10 to 10,000 users in the network. If not, are there consensus algorithms that scale well?
I am reading the textbook algorithms by S. Dasgupta, C.H. Papadimitriou, and U.V. Vazirani The authors state in page $67$: The preceding formula implies an $O(n^3)$ algorithm for matrix multiplication: there are $n^2$ entries to be computed, and each takes $O(n)$ time. For quite a while, this was widely believed to be...
I have a doubt with this affirmation, I like to know if is true or false and why $$\log(n) ∈ O(n^{1/2})$$
I am having to solve integer programming problem that has the following property: For feasible solution $x$ maps to a large set $S(x)$ or other admissible solutions and I can find the best solution of $S(x)$ is polynomial time. What is the best way exploit this property? The only thing that comes to my mind is: every t...
Question I want to analyse Dijkstra Algorithm by using different varieties of Data Structure. My solution Adjacency matrix to Store the Graph and Binary heap for Priority Queue. $O(V\,\,log\,V+V^{2}\,\,log \,\,V)=O(V^{2}\,\,log \,\,V)$. Explanation-: In Binary Heap we have $O(log\,\,V)$ for both Extract...
I'm having trouble understanding Pumping Lemma for $RL$ , i know that $0^{2n}$ is regular and we can design a FSM for it.Here's my pumping Lemma statement Let $p$ be the pumping length and my string is $0^{2p}$ 1. $z=|0^{2p}|=> 2p > p $ (Satisfied) 2. $z=uvw$ such that $|uv|\geq p$, I'm choosing $|u|=n-p$ and $|v|=p$ s...
Prove that $P/poly$ is closed on $^*$. Please help me with that because I cannot deal with that.
Suppose you are given an array of $n$ integers with duplicates in non-decreasing order. The goal is to find the locations where a value is different from its neighbor. For example, given the array $arr={3,3,5,5,5,200,200,200,200,209}$, the output would be: ${2,5,9}$. Obviously, this can be done in linear time. I am try...
I was hoping to determine if a particular graph was toroidal. My first instinct was to use Forbidden Minors, just as I would use the Kuratowski subgraphs to determine if a graph was planar. After doing some digging I discovered The Robertson Seymour theorem which seems to entail that such forbidden subgraphs do exist...
We know that coNL = NL. But, is this also true? If A is NL-complete then complement of A is also NL-complete? I don't see a reason for that it could be true.
I'm pretty new in this field and I need some advice for my first professional challenge. I'm trying to create a sort of client segmentation from a my company's sales log which has the peculiarity that the clients has a pretty long-term relationship and a periodic behavior. Based on when does he has bought (Ex: Twice a...
Time hierarchy theorem states that $DTIME\bigg(o\Big(\frac{f(n)}{\log n}\Big)\bigg)\subsetneq DTIME\big(f(n)\big)$. However space hierarchy theorem is stricter in that point since it states $SPACE\big(o(f(n))\big)\subsetneq SPACE(f(n))$. Is the same result suspected for deterministic time hierarchy? I think I can show ...
In "Engineering: A Compiler" 2nd ed. by Cooper and Torczon, in 2.4.1 "Nondeterministic Finite Automata" of Chapter 2, section "Equivalence of NFAs and DFAs" discusses the upper bound of a NFA's configurations number. Here NFA stands for Nondeterministic Finite Automata DFA stands for Deterministic Finite Automata NF...
I want a system to learn what is "normal" in a home-automation(KNX) environment. I have data like, address/group address, timestamp,... is there a matching machine learning algorithm I could use in that situation? I started to read a book abt Machine learning, but I'm not quite sure which kind of algorithm I need If ma...
A problem is defined to be in NP when it can be reduced to another NP problem in polynomial time. In Karp's 21 NP-complete problems, the most famous ones are presented. However, I wonder (and could not find a reference) for some of them, what happens if we "relax" the objective function. For instance, say Hamiltonian ...
I adopted a feedforward net to approximate the following hybrid function: $$ output= \begin{cases} f(x,y) & \text{if}~~~ z=1\\ g(x,y) & \text{if}~~~ z=2 \end{cases} $$ where $x \in R,y \in R,z \in \{1,2\}$ are inputs. With a simple example where $f(x,y)=c$ and $$ g(x,y)= \begin{cases} c' & \text{if}~~~ x<x_0,y<y_0\\ c...
Give two functions that is in O(n^2) but not in o(n^2). The answer is nlogn and n,But I think a lot but can't understand why answer are them.I doubt answers is wrong. And this question,Give two functions that is in big-omega(n^2) not in little-omega(n^2)? The answer is n^2logn and n^3.But I think a lot but can't under...
I am trying to fully understand the meaning behind the self-information of events. While I totally understood how to calculate it, all explanations I find online lack of an explanation why less likely events have more self-information. I can't figure out what consequences this has and can't put it into perspective lik...
How does it possible that $ZPP=RP\cap coRP$ ? After all, it must be that $RP\cap coRP = \emptyset$ Where Am I wrong ?
2QBF is a problem of determining whether formula $\exists X~\forall Y:\varphi(X,Y)$ is valid. $X$ and $Y$ here are sets of variables. Next, 3QBF asks if formula $\exists X~\forall Y~\exists Z:\varphi(X,Y,Z)$ is valid. But what I can't understand is following: Can't we change order of quantification? E.g. isn't followi...
Let $f(n) = O(g(n))$, but not $f(n) = o(g(n))$. That's a nice property, because it means that we cannot replace $g(n)$ with a substantially smaller function. Is there a name for this choice of $g(n)$? Obviously this covers more cases than just $f(n) = \Theta (g(n))$. It requires the existence of $c > 0$ such that $f(n...
In C.A.R Hoare's Communicating Sequential Processes (1978), he presents the SQUASH problem: Replace every pair of consecutive asterisks "**" by an upward arrow "↑". Assume that the final character input is not an asterisk. The given solution is: X :: *[c:character; west?c → [c ≠ asterisk → east!c ▯c = asterisk →...
In synchronization, when one process is in a critical section & another is busy waiting, both are using CPU. But in a uni processor system, in the same clock both cant get the CPU. So there must be a scheduling algorithm for them. Should we consider these while solving synchronization problem or should we think both a...
According to this paper,a family of intervals is said to be canonical if the coordinates of the endpoints of the intervals are distinct integers between 1 and 2n where n is the number of intervals. Here is the example Original intervals = {[2,5], [3,11], [6,9], [7,13], [8,18], [12,16], [15,19]} Canonical form of interv...
Reading this answer to this SO question: Why do we not combine random number generators?, it talks about very high-quality PRNG (Pseudo Random Number Generator) so it makes me wonder what constitutes a high-quality PRNG, I assume you can sum it up as it being "more random", but Question1: Which qualities of a PRNG...
I have read in this book, simulated annealing, on page 40-41, if temperature $t$ tend to $0$, then the stationary distribution will be distributed among optimal solutions. What i can not understand here is that, if with temperature $0$, the stationary distribution will be distributed among optimal solutions, so why we ...
I noticed that in many books calculation of midpoint for binary search uses this: int mid = left + (right - left) / 2; Why not use int mid = (left + right) / 2; instead?
I was wondering what is the most efficient way to find the a number in an array with the following conditions: Array $A$ of size $n$ divided into even parts in the size of $k$ every element in each part is bigger than all the elements in the part before (Lets say in the left) every element in each part is smaller t...
From Programming Language Pragmatics by Scott, Figure 3.14 Deep binding in Python. At right is a conceptual view of the run-time stack. Referencing environments captured in closures are shown as dashed boxes and arrows. When B is called via formal parameter P, two instances of I exist. Because the closure for P ...
The naturals $\mathbb{N}$ can be encoded with a binary unary code such as $$ \begin{align} 1&=0_b\\ 2&=10_b\\ 3&=110_b\\ &... \end{align} $$ The length this the encoding grows linearly with the natural number it represents. For example the length of $110_b$ is 3 and it also represents the number 3. I am...
What would be the implications for complexity theory if you could compute the Kolmogorov complexity of a string generated by a psuedorandom generator?
and sorry if this is a duplicate of some sort, my poor technical vocabulary doesn't get me very far with google. I am trying to implement some well-known PRNG algorithms. For the time, the algorithm in themselves do their job very well (generating 16/32/64/128 random bits). I am now trying to create a uniform distribut...
The statement sais the following Design a function to partition an AVL tree such that, given an AVL tree and a key $x$, it returns two AVL trees, one containing the keys lower or equal than $x$, and the other containing the remaining keys. The complexity must be better than $\mathcal{O}(n)$ (being $n$ the cardinality ...
What was the first turing-complete language? Know about the first machines and computers, but not the programming language.
I am working on a music synthesis. I have to generate certain musical notes and let us say total number of notes equals to $t$. I have $m$ number of methods (functions) named $m_1, m_2, m_3, \cdots$ and each of them generate specific kind of musical phrases (group of musical notes) consisting of $x_n$ musical notes. L...
Let suppose that there exists deterministic polynomial algorithm $A$ that approximates the probability that a given boolean circuit $C$ accepts random input with an error at most $\frac{2}{5}$. More precisely, for a boolean circuit $C(x_1, .., x_n)$, $A$ computes a number $A(C)$ such that $$|\Pr[C(U_n) = 1] - A(C) | \...
The subtleties of the correspondence between type theory and category theory are outside my ken. However, by my naive understanding of the relationship between the two historically convergent disciplines, the latter entirely subsumes the former. If this is so, can the language and formal/graphical descriptions used by ...
It is known the fact that $NP$ class is closed on sum and intersection. But, what about another complexity classes? Ok, I have to make my question more precise: For example: Let $C$ be any complexity class $L_1 \in C, L_2 \in C$. Is it possible that $$ 1) \ L_1 \oplus L_2 \not \in C, \oplus \text{ is a symmetric diff...
I am trying to solve a problem with regards to a DFA. What is the minimal number of states for the following language: $$L:=\{x\in\{a,b\}^n\ \ | \ \ |x|_a=|x|_b\}$$ where $|x|_a$ denotes the amount of $a$'s in the word $x$. I have done some calculations and got $3\cdot2^{(n/2)}-1$. Is this the correct number of states?...
I was reading some research paper where for hypergraph of bounded rank $k$ they have given moderately exponential algorithm. The runtime of the algorithm is $e^{ \mathcal {O}(k^2\sqrt n) \cdot poly(n)}$. Here $k$ is the rank of the hypergraph, and $poly(n)$ means polynomial in variable $n$. What is the meaning of mod...
I read now several articles about RISC and CISC architecture. Most are rather exuberant enumerating all the differences between these architecture, but not necessarily why things are the way they are. One point that struck out to me the most was about the RISC's feature of using hard wired parts in its processor and in...
I was thinking that we can create algorithm for sorting that will work faster than $O(N\log N)$ Let's say we have given array $A$ consisting of $N$ integers, where $N = 10^6$. Our task is to sort this given array. The clear solution is to sort the array using the classic merge sort algorithm, which works in $O(N \log N...
We say that a boolean circuit is boring if it returns the same result for $>\frac34$ possible input, where we have $n$ input gates. Hence, boring circuit returns the same output ($0$ or $1$) for $>\frac34 2^n$ inputs. Prove that checking if boolean circuit is boring is NP-complete Can you help me? I have no i...
Does there exist a language which is PSPACE-complete and regular? (reduction is polynomial with regard to time). Correct answer here is "unknown". I can't prove it. Can you help me?
If a bitstring is incompressible, then its minimal Kolmogorov sufficient statistic (MKSS) is zero, since the bitstring is best represented by a structure function that enumerates bitstrings, and thus the size of the index in the set is the bitstring's length. However, if a bitstring is compressible, this is no longer t...
There doesn't exist an algorithm which decides on the following problem: Does a given Turing machine work in time limited by $5n$? $n$ is the length of $w$. $w$ is an input word. The answer is: No, because if it was true then we would decide on problem: Does an universal machine accept a word $w$. I don't understand ...
Suppose there are $m$ items, and each item has a price. We order the subsets of items according to their price. For example, if the price of $x$ is 1 and the price of $y$ is 2, then the order is: $$ \emptyset < x < y < xy $$ What is an algorithm for enumerating all orders of subsets that can be generated by such prices...