instruction stringlengths 35 29.1k |
|---|
The proof of Theorem 1 that PTime is not semi-decidable in this recent preprint effectively shows that it is $\mathsf{R}\cup\mathsf{coR}$-hard. The proof itself is similar to undecidability proofs at cs.SE and cstheory.SE. However, what is different is a footnote, which highlights that proving both $\mathsf{R}$-hardne... |
I'm reading through Knuth's "The Art of Computer Programming" volume 1 (3rd edition), with the goal of understanding the complete workings of his hypothetical MIX computer in order to implement MIX in software. Needless to say this is a long term project! (I'm not in college or anything, just an amateur CS enthusiast... |
Parsing Expression Grammars were introduced by Bryan Ford in Parsing Expression Grammars: A Recognition Based Syntactic Foundation.. Wikipedia says that it is an open problem to provide a Context Free language that can not be recognized by a PEG.
I am trying to understand the results from this paper -- The computationa... |
Here is the context of the problem I am struggling with.
I have a set of strings, for example:
"my name is john",
"i like cheese",
"what is your name",
"the cheese is in the kitchen",
"john likes cheese"
Let $S$ be union of all words appearing in the previous strings.
my,name,is,john,i,like,cheese,what,your,the,in,ki... |
For instance, $x = x + 1[0.3]x+2$ sets $x$ to $x + 1$ with probability $0.3$ and to $x+2$ with probability $0.7$.
If I use notation used in the paper "An Analysis of First-Order Logics of Probability" of Joseph Y. Halpern.
Given a formula $\varphi$ in the logic, he also allows formulas of the form $W_x(\varphi)\geq 1... |
I know that if there are no non-final states in DFA then the language accepted is $\Sigma^*$.
What will happen if there are no non-final states in an NFA? Can we say it also accepts $\Sigma^*$? Can there be an NFA with no non-final states whose minimal NFA has some non-final state?
Oh , no nonfinal states means all a... |
In the article at nlab about relation between category theory and type theory, it is said that substitution in type theory is the same as composition of classifying morphisms in category theory.
Can you please explain why that is so for a newbie? And ellaborating on what exactly a classifying morphism is?!
|
I have a series of graphs with points plotted like this:
Like in the image, I need to join these points to create a complete edge. I am currently doing this with nearest-neighbour, but because I don't know the starting position sometimes this can result in crossed paths.
I could resolve this with more costly algorithm... |
I am currently learning Computing Theory at university, and we were on the topic of Turing-Decidability, Recognizability, etc. Showing that a problem is undecidable with Turing machines due to reductions got me thinking about all the Quantum Computer craze.
As such my question is as follows
Does there exist some lang... |
$\begin{array}{rrrr | rr }
0& 0 & 0 & 0 & 1 &1 &1 &1 &1 & 1&0 \\
0& 0 & 0 & 1 & 0 &1 &1 &0 &0 & 0&0 \\
0& 0 & 1 & 0 & 1 &1 &0 &1 &1 & 0&1 \\
0& 0 & 1 & 1 & 1 & 1&1 &1 &0 & 0&1 \\
0& 1 & 0 & 0 & 0 &1 & 1&0 &0 & 1&1 \\
0& 1 & 0 & 1 & 1 &0 &1 &1 &0 & 1&1 \\
0& 1 & 1 & 0 & 1 &0 &1 &1 &1 & 1&1 \\
0& 1 & 1 & 1 & 1 &1 &1 &0 &... |
Assumptions:
There are "n" jobs which are distributed over the city.
Company has "k" available workers.
Each worker can do "x" jobs per day.
"x" is dependent to the worker skills and the distance he travels each day so it's not a constant.
Workers have no initial traveling distance.
"s" is a set that shows each wo... |
I want to create a Red-Black Tree, with 2 values, (index, value) and I want to insert into the RB_tree based on the index.
So if I have the function: $\text{insert}(root, value, index)$ it will insert the value at $index$. However, because I insert based on the other indexes, if I insert at the index $1$ let's say, and... |
Suppose we had a graph $G = (V,E)$.
This graph can also be seen as a $4x5$ grid graph as shown in the image.
There is a directed edge from $v_{i,j} \rightarrow v_{i,j+1}$ for $1 \leq i \leq n$ and $1 \leq j \leq m-1$.
Similarly, there is a directed edge from $v_{i,j} \rightarrow v_{i+1,j}$ for $1 \leq i \leq n-1$ an... |
I am working on the following exercise:
Consider an undirected complete graph $G(V,E)$ and positive real numbers $a_1,a_2,\ldots,a_n$. The task is to find a MST with respect to the edge weights $w_e = a_ia_j$ for each $e = \{i,j\}$. Provide an algorithm that solves this problem that is as efficient as possible.
It is... |
My first question is: is there an algorithm that already exists for this? If not any thoughts and ideas are appreciated.
Let's say I have two large text files (original file A and new file B). Each file is English prose text (including dialogue) with a typical size 256K to 500K characters.
I want to compare them to fin... |
Is it efficient to use algorithms like locality sensitive hashing and bloom filters on disk instead of memory for very large datasets where even these structures cannot be saved in memory?
|
I am working on the following exercise:
Consider an undirected graph $G = (V,E)$. Let $T^* = (V,E_{T^*})$ be a $MST$ and let $e$ be an edge in $E_{T^*}$. We define the set of all values that can be assigned to $w_e$ such that $T^*$ remains a MST as $I_e$.
Show that $I_e$ is an interval.
Devise an efficient algorithm ... |
This is related to an assignment, but I would still appreciate help in formalising proof either through private message or on this topic.
The question is about if Rice theorem applies to certain property. For example for a structural property such as number of states. I would argue that:
The property is decidable thro... |
For example $46$ is a perfect number , since $4+6=10$ . If $n=1$ , answer is $19$. If $n=2$ , answer is $28$. If $n=3$ , answer is $37$ and so on .We need to make a program which takes $n$ and outputs $n'th$ perfect number.
How to solve this problem for large $n$ , for example $n$ close to $10^{18}$ ? we can't use bru... |
How would I go about proving that a TM that can both read and write at the same time is equivalent to a typical TM?
For constructing a read+write TM from normal TMs, my idea is to split the state of writing and reading simultaneously to two separate states (one for writing and one for reading). Not quite sure if this w... |
I am stuck with a question that asks for smallest and biggest negative floating point numbers in IEEE 754 32-bit (their representation and decimal numerical value from which one can approximate the precision of the number)? So -0, NaN and Infinity do not belong to negative rational numbers.
I have stumbled upon -3.403... |
Suppose we have some non-regular context free language L. Suppose we also have language of all prefixes of words in L.
What can be an example of non-regular language L such that language of
it's prefixes is regular (Can be represented by a finite automaton)?
I don't understand how language of prefixes can ever be r... |
Is the language $\{ \langle M\rangle | f(\langle M\rangle)=\epsilon\}$ decidable? $f()$ means, that the turing machine returns $\epsilon$ on its own encoding and $\langle M\rangle$ stands for the encoding (a "string-version" of the TM).
I have no idea how I should start. How can I decide, if I use a reduction, a sub pr... |
Recently I learned about LOOP programs, which always terminate and have the same computational power as primitive recursive functions.
Furthermore primitve recursive functions can (as far as I understood) compute anything that isn't growing faster than $Ack(n)$.
Is this implying that the upper bound runtime complexity ... |
So, what is the worst case for C++ "sort" function, when does it go to O(n^2) time? I know it's QuickSort, therefore, it's very fast in most cases, but it gets to O(n^2) in special cases. I've tried to figure it out via measurements, but I have trouble interpreting the results.
|
I am trying to build a parser that will eventually output a 3 address code.
My question is, how do I build the parser to go from parsing in a table driven top down parsing to then give me a parse tree?
I am looking for more psudo code than anything. Not anything concrete. For example, I have a table with the first and ... |
Given a regular language $L$ and a regular expression $r$ with $L=L(r)$. Is it possible to determine the minimum length of words of $L(r)$ by the structure of $r$?
A straightforward example:
Let's say we have a regular expression $r=aac^*aa$, then $L(R) = \{aaaa, aacaa, aaccaa, \dots, aac^naa\}$. To determine the minim... |
I've been working on some regular expression questions, and came across one that I cannot figure out. Working on the language over $\{a, b\}$, the text asks for a regular expression for the language of all words having at least one a and an even number of b's, using only | and * (maybe $\varepsilon$ too). My idea so fa... |
So, we have a directed graph G whose basis graph is connective.
I was asked to prove or disprove If its possible that for every DFS run on G, the output will be two trees containing all G vertices .
The only thing I could think of Is that graph like this cannon have a root (otherwise we could use DFS on the root and th... |
Recently it was shown that it is NP-hard to find a 5-colouring of a 3-colourable graph.
More generally, it is NP-hard to distinguish $k$-colourable graphs from those that are not $(2k-1)$-colourable, for $k\ge 3$.
J Bulín, A Krokhin, J Opršal. Algebraic Approach to Promise Constraint Satisfaction, STOC 2019. doi:10.11... |
I have a segment with some offsets at irregular intervals
There are items of various length inside. Items cannot be placed randomly. Instead, their left side must match some offset.
Items are free to go past offests.
As you can see in this image, item number 3 is long enough that it goes through an offset, shown with... |
The algorithm for the union of two sets represented by treaps is defined in this paper and on Wikipedia, but the algorithm seems flawed.
Take for example the following loop.
X := {a}
for (i := 0; i < 1000; i := i + 1)
X := X ∪ {a}
At the end of execution, the variable $X$ contains the set $\{a\}$, but the priority o... |
There should be a simple argument, but I'm struggling to see it.
Suppose Alice has a string $x \in \{0, 1\}^n$ and sends a message $s = s(x)$ to Bob. And suppose that given $s$, Bob can reconstruct each bit of $x$ with probability $2/3$ (say). (Note that this is weaker than the claim "with probability $2/3$, Bob can re... |
Consider a set $P$ of $N$ intervals $\{I_i = (l_i, r_i)\}$ partially ordered according the standard interval order: $I_i < I_j$ iff $r_i \le l_j$.
I want to find a minimum cardinality partition of $P$ into chains. By Dilworth's theorem, the cardinality will equal the maximum cardinality of any antichain. We can find su... |
I have a set $S$ of an even number of positive elements $2m$ and $m$ values $t_1,t_2,\ldots,t_m$ where each $t_i\leq1$ for all $i$.
The question is: can you select $m$ disjoint pairs $(a_i,b_i)$ from $S$ such that $|a_i-b_i|\geq t_i$?
I was trying to prove that this problem is NP-hard by a reduction from 3-Partition Pr... |
If we have a flood fill algorithm which, given a number of centres reprenting pixels on an image, runs a BFS flood-fill on them, checking the pixels 4 neighbours, changing their colours and adding them onto the queue to have their own neighbours processed if they have not been. What is the runtime, It seems it would be... |
I was wondering what kind of groups could be constructed with Lambda terms, where the group operation is application? For example, $a* b =c$ would mean $ab\to_{\beta}^{*} c$. Is this even possible?
EDIT: I don't think groups are possible, but I did find a group of sets which are closed under application:
Let $I_0=\lamb... |
If we have a connected, weighted, undirected graph. Can anyone provide an example where DFS will not return the MST? No matter what vertex we start from ?
|
I came across these languages:
A Turing machine prints a specific letter.
A Turing machine computes the products of two numbers
I was guessing whether I can apply Rice's theorem to decide upon above are decidable or undecidable, something like this:
Not all turing machine languages have specific letter, hence the pr... |
My son who is just learning to read loves the concept of hiding one letter of a word with his finger and asking what the rest of the word spells. His favorite is turning "her" into "he" and "then" into "the."
As he's starting to learn bigger words I want to find some words for him that are "truncatable," similar to the... |
As a part of my Algorithm course we studied Approximate Algorithms for NP-complete or NP-hard problems, e.g. "set cover", "vertex cover", "load balancing", etc. My professor asked us as an extra activity to learn an approximate algorithm for a P problem. I searched a lot on google but all I found were approximations fo... |
I have a modelling problem that I am trying to solve with LP. (More specifically, in Python using PuLP or Pyomo). I am not terribly knowledgeable in this area and have been struggling to find the right terminology in order to do some web searches, so I am turning to you in the hope that you can point me in the right d... |
I'm studying how coinduction was encoded in Isabelle. At page 7 of the attached document, the author describes how some datatypes can be encoded as initial algebras. Here is one example:
Finite lists
The unary type constructor list, which sends each type α to the type α list of lists of α elements, is categorically gi... |
Assuming you have a formula in first order logic like
$$(\forall_x p(x) \land \forall_x q(x)) \rightarrow \forall_x(p(x) \land q(x))$$
(which seems valid?)
Converting the formula to CNF:
$$(\neg p(x) \vee \neg q(y) \vee p(z)) \land (\neg p(x) \vee \neg q(y) \vee q(z)) $$
I don't see how I can apply general re... |
In Artificial Intelligence: A Modern Approach Edition 3, Page of 43, At Single Vs. Multi-agent section's last line, Writer says,
In some competitive environments, randomized behavior is rational
because it avoids the pitfalls of predictability.
Can someone help me understanding this line? Specially, what does he me... |
I try to use Bayes Theorem to calculate the probability of $P(A|B)$. I have $P(A)$ in column1, $P(B|A)$ in colmn2, $P(B)$ in column 3. I get the following:
my calculations were:
$$P(B/A) = 0.8\times A$$
$$P(B) = (Bx*0,55)+((1-Bx)*(0,55))$$
$$P(A/B) = (Ax*Bx)/Cx$$
The probability gets above 1. What am I doing wrong?
|
2-SAT is in P; 3-SAT is NP-complete.
Exact cover by 2-sets is in P; exact cover by 3-sets is NP-complete
Two-dimensional matching is in P; three-dimensional matching is NP-complete
Graph 2-coloring is trivially in P; graph 3-coloring is NP-complete
Are there other well-known or important examples that are similar, in... |
I have the following question to solve : DCFL means Deterministic Context-Free Language.
Let $L$ be a DCFL over an alphabet $\Sigma$. For each of the following functions of $L$, determine whether $f(L)$ is a DCFL. Explain your answers.
(a) $f_1(L) = \{u\in\Sigma^*: ua\in L\text{ for some }a\in\Sigma\}$ (that is, $f_1(... |
Question:
Given an $n$-bit positive integer. A decision problem is to decide whether it is composite. Is this problem in NP?
I know that for every composite number, a factor of the number is a certificate.
Verification proceeds by dividing the number by the factor and checking if the reminder is zero. My question is wh... |
I was wondering if someone can give me a general definition of a min-cut besides it being the max flow of a network.
For example, in the baseball elimination problem, if we wanted to find out if team z is eliminated, the min cut represents the team(s) that will beat team z out of the 1st place if the edges aren't full... |
Show that the minimum of $n$ elements stored in an array can be found in a time in $O(\log(n))$ using $O(n/\log(n))$ processors assuming an EREW-PRAM machine is given.
|
Consider we have set S:
S = {1,2,3,4,5,6}
and 3 (say k) subsets of S:
S_1 = {1,2,3}
S_2 = {2,3,4,5}
S_3 = {1,3,6}
What is the total number of cases choosing one element from each subsets?
Same element cannot picked from different subset, and the order is not considered.
For example,
S_1 = {2}, S_2 = {3}, S_3 = {6}
and
... |
I'm a bit confused about the 3-partition problem. More specifically I'm confused about this from the Wikipedia article:
Let B denote the (desired) sum of each subset Si, or equivalently, let the total sum of the numbers in S be m B. The 3-partition problem remains strongly NP-complete when every integer in S is strict... |
If A is a hermitian matrix of size NxN .What is the order of no. of steps required to compute e^(A).How to prove it?
|
Suppose a store sells items a, b, ..., z.
Rather than sell the items à la carte, the store bundles them at seemingly arbitrary prices, e.g.:
+-----------+---------------+-------+
| bundle | items | price |
+-----------+---------------+-------+
| 1 | 1 a | 10 |
| 2 | 1 b ... |
I was trying to implement Least Constraining Value Heuristic in Sudoku but wasn't getting the idea on how to do it. Can someone share their idea for the same ?
|
I want to implement a heap using the stack data structure. I have searched a lot on the internet. But I do not get any clue how to implement it.
Can you please help me to implement a heap using the stack data structure? The pseudo-code is well enough. I can implement the rest.
|
My problem can be characterized as a string-search problem for a finite amount of patterns. So Aho-Corasick algorithm would be a good first choice.
However, I have certain properties that limit the scope of the problem, and I was wondering if there was another, better suited algorithm.
A set of known strings to search... |
Rice's theorem states:
Every nontrivial property of recursively enumerable language is undecidable.
I came across following problems, which Ullman's books say both are undecidable:
Turing machine accepts nothing. (empty language)
Turing machine accepts something. (non empty language)
Doubt
Consider we have given ... |
I was reading about BLAS (Basic linear algebra subsystem) and I frequently encountered the term "inner kernel". What does it mean by "inner kernel"?
|
I am given the following function as a brain teaser:
def t(x, y, z):
if x <= z:
return y
else:
return t(t(x - 1 , y , z ) , t(y - 1 , z , x ) , t (z - 1 , x , y ))
the task is to remove the recursion in the else-branch. the only allowed expressions are of type arithmetic (+,-,*,/,%), logi... |
Given two arbitrary functions, how can I measure how similar they are? For example:
def foo(a: str, b: str):
return a + b
def bar(a: str, b: str):
x = a + b
return x
def fuz(a: str, b: str):
x = a + b.upper()
return x
foo and bar are operationally the same, for a given input they produce the same... |
Often when I create programs I use operating-programming language such as Bash for automating OS operations, structure ("markup") language such as HTML to define structures, styling language such as CSS to style structures, and programming (behavior defining) language such as JavaScript, to define the "nature of intera... |
I have a problem solving coding challenge when I have to calculate the number of combinations, numbers from 0 to 9, with the length n, with 2 rules -
- The first number cannot be 0
- Every other number can be 0 or must be divisible by the previous number (number 1 can not be used as divisor), for example [5.0], [1,0] o... |
I was wondering why mathematically we can know the key in the Vigenère cipher if we know in advance a message and its encryption.
|
Nandgame (nandgame.com) has you solve puzzles of increasing complexity which culminate in constructing a simple CPU. You start at the level of nand gates, and build everything else up out of those.
I'm having trouble understanding the specifications for the Data Flip-Flop puzzle. If I'm reading it correctly, when the "... |
Given a bipartite graph $G=(U,V,E)$, find a maximum matching.
Algorithm G:
Let $S\gets\emptyset$
Mark all edges unmatched
For $i\gets1$ to $|E|$
If $i$ is unmatched
$S\gets S\cup\{i\}$
End If
End For
Proposition:
Algorithm G is optimal.
Proof: Feasibility is easy by induction. We prove that $|S|$ is maximum. ... |
I want to show a minimization problem $Y$ has no approximation factor of 1.36. To be more specific the problem $Y$ is the exemplar distance problem between two genomes. Could I reduce from the min vertex cover problem instead of the decision version of the vertex cover problem. The problem I am having with reducing fro... |
This is a naive question, but what makes binary representation special from a theoretical standpoint and from the standpoint of information theory?
If for technical reasons building ternary computers where the information is encoded as trits was easier than building traditional binary computers, I get the feeling that ... |
I am trying to implement this petri net simulator. Amongst it's specifications it has to return a map of reachable markings from the current state. I don't really want it to give me an OutOfMemoryError or something if I'm given a petri net with infinite reachable markings. Can this be resolved more elegantly?
In my cas... |
Is SelectionSort faster than QuickSort in the worst-case scenario?
QuickSort, in the worst case, allegedly does $n^2$ comparisons. And SelectionSort, if I am not mistaken, always does $n^2/2$ operations. By that logic, there should be a permutation for an array of any size for which SelectionSort is faster than QuickSo... |
What is the time complexity of this loop?
k=1
for(j=0;j<=n;j+=k)
k++;
Is it $O(n)$ as we are increasing $j$ linearly?
|
What is the space complexity of the following hyphotetical function:
void function(int n) {
int[] array = new int[n]; // allocate array of size n
return;
}
My intuition tells me that it is not O(n). Because the function will allocate an array of size n where n is the value of the input and not the size. The input ... |
In information theory, we have the quantity "information".
Suppose we have some discrete random variable $X$, that can take values $\{{a,b,c\}}$ with corresponding probability distribution $\{{\frac{1}{2},\frac{1}{4},\frac{1}{4}\}}$. Then, information, $h$, is measured as $h(x) = -\log_{2}P(x)$.
So now we can say: $$h(... |
I have the language $L = \{ a^ib^jc^k \mid i + k < 3j \}$, however I am struggling to convert it to a CFG.
I have thought about solving this for a long time but but this still hasn't gotten me very far
Any help would be appreciated Thanks
|
I am well aware that the float data type's maximum value is approximately 1.8E308, which means that across the various programming languages such as dearly beloved Java, the maximum factorial we can compute with this primitive data type is that of 170. Trying to compute the factorial of 171 and beyond gives errors. Her... |
I am trying to understand the asymptotics of
\begin{equation}
f(n) = \frac{1}{\log(\frac{2^n}{2^n-1})}
\end{equation}
In particular, is there some $c \geq 1$ such that $f(n) = O(n^c)$?
|
I am trying to convert this grammar from context free grammar with kleene star productions into the Chomsky normal form equivalent. I am having a hard time trying to understand how to do this, I need this for use in recursive decent parsers primarily a table driven top down predictive parser.
Grammar
expr ::= t... |
In Practical Foundation of Programming Languages by Harper (www.cs.cmu.edu/~rwh/pfpl/2nded.pdf),
37.3 Multiple Fork-Join
So far we have confined attention to binary fork/join parallelism induced by the parallel
let construct. A generalizaton, called data parallelism, allows the simultaneous creation
of any number ... |
Could you give me an example of languages $L_1$ (regular) and $L_2$ (not regular) where $L_1 \cap L_2$ is not regular?
|
I've just finished reading the paper Practical Coinduction by Kozen and Silva. What is the difference between induction over $\mathbb N$ and coinduction over $\mathbb N_\infty$?
From the paper, it seems that coinduction is almost the same as induction, but with more restrictions. In particular, it appears that most (or... |
Looking for a self-contained statement of P = NP in type theory, I stumbled upon this short Agda formalization (a cleaned up version is reproduced below).
The statement here does seem to express the problem correctly but I'm not entirely sure as the code is not well-commented. So my question is: is this an accurate sta... |
I understand the terms automata or automaton to mean "self operating machine".
I can't think of any such "machine" besides maybe (if it is even a machine and even exits) cyclic universe of a big-bang--big-crunch phenomena;
either in sequence ("finite automata"), or in eternal occurrence ("infinite automata").
Is automa... |
DCG = { G | Directed graphs that contains a cycle }
How can I proof that DCG belongs to NL?
|
I'm trying to efficiently store a list of strings in an array with the following constraints:
All strings consist of 8-bit characters (0..255).
The final trie is static, i.e. once it is built, no strings have to be inserted or removed.
Looking up a string of length $m$ must be done in $O(m)$ with a constant factor as ... |
So far, I have found out that chordal graphs have linear number of maximal cliques with respect to the number of vertices.
In general case, it is exponential.
I am trying to determine whether the number of maximal cliques in a $(2C_4, C_5,P_5)$-free graph is linear or polynomial with respect to the number of vertices.
... |
Question Statement: Given a NFA $N$, design an algorithm that runs in polynomial time such that it determines if $L(N)$ is infinite.
(Note that converting NFA to DFA is exponential time).
For any DFA, By pumping lemma, I am very sure that the following algorithm works:
T = Upon input <M> (a DFA)
Accept if any state ... |
I have been stuck on this problem for few hours, my assignment asks to design an efficient algorithm(polynomial running time) that check whether a given flow network graph contains a unique maximum flow or not. I have been search everything I could, and some people said run an algorithm that able to find a max flow fir... |
Traditional ICP assumes that the inputs are point clouds with no predefined correspondences between the clouds.
If I know before hand that some / all points in one point cloud corresponds to some / all points in the other point cloud, I assume this becomes an easier problem to solve.
What is the name of this modified v... |
Here is a simple turing machine, that accepts only $0$.
For this, it read $0$, write it with $x$, then move to right and checks end, if it is end it accepts.
With that logic, I can also add this 1->x,R, then it accepts all strings of length 1, {'0','1'}.
What I want to do is, instead of writing to logic I want to wri... |
Lets assume I have this turing machine:
And I have a $\Sigma = \{0,1,2,3,4,5\}$.
Now my question is can I simplify the transaction from $A$ to $B$ ?
Is there any way so I can write - when the read value is not $2$, write $x$ and move to right?
|
For reference - Gödel machine is a hypothetical self-improving computer program that solves problems. It uses a recursive self-improvement protocol in which it rewrites its own code when it can prove the new code provides a better strategy. So let's say you have a program which solves TSP using Simulated Annealing, you... |
$\mathit{GNI} \in \mathrm{PCP}(\mathit{poly}(n),1)$
GNI is the language of nonisomorphic graphs. Given two grapsh $G_0$ and $G_1$ with $n$ vertices, a verifier expects $\pi$ to contain, for each labeled graph $H$ with $n$ vertices, a bit $\pi[H] \in \{0,1\}$ corresponding to whether $H \equiv G_0$ or $H \equiv G_1$ (a... |
I'm reading (with much pleasure) the book Quantum Computing Since Democritus by Scott Aaronson. At some point the author claims that, while most most people believe that $\mathbf{P} = \mathbf{BPP}$ in real life, it is very easy to construct an oracle $O$ such that $\mathbf{P}^O \neq \mathbf{BPP}^O$. Frankly I don't fin... |
I'm currently looking for literature/papers on machine learning techniques to create structures.
In detail, I want to generate finite automata (NFA, DFA), which are useful for student-exercises. So I have a bunch of useful graphs and I want to check, whether there is a possibility to feed that into an ML algorithm and ... |
Professor has given this question in exam. I am not able to find relevant reference for this question
Which Addressing Modes (for x86 architecture) consumes more CPU cycle?(Consider all are special purpose registers)
A. Indexed
B. PC-Relative
C. Indexed Register with displacement
D. None of the above
What I have unders... |
Let $x_{ij} \in \{0,1\}$, $1 \leq i \leq M$ (typically, $M = 2000$), $1 \leq j \leq N$ (typically, $N = 10$), be Boolean variables. If possible at all, I would like to simplify the following expression
$$
\bigvee_{i_1,\dots,i_N} \left(\bigwedge_{k=1}^N x_{i_k k} \right),
$$
where the join operation is taken over all ... |
So I have done part a) but I have no clue what I am supposed to do for part b), I have been trying for days to wrap my head around and even asked my fellow course mates, none of which seem to know themselves.
The way I understand it they give me automaton of
a->b->c
But what do they mean about the next state a',b',... |
I'm trying to use a proof assistant to define a type and a relation that are mutually dependent on each other:
Vec : (a : Type) -> (n : Nat) -> Type0
Rel : (a : Type) -> a -> a -> Type
data Vec : (a : Type) -> (n : Nat) -> Type0 where
Nil : Rel Nat n 0 -> Vec a n
Cons : a -> Vec a n' -> Rel Nat (S n') n -> Vec a n... |
Let's say that a string of length $N$ is "compressible" iff its Kolmogorov complexity is less than $N$. To keep it simple, we can assume binary strings for this.
It is easy to see that almost all binary strings of length $N$ are incompressible by using the pigeonhole principle.
So my question is, how many strings of le... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.