instruction stringlengths 35 29.1k |
|---|
So hey, I've recently found this problem online and I tried hard to solve but couldn't found an efficient solution. The problem statement is:
Given and two integers $n$ and $k$ and an array $A$ containing $n$ pairs of integers of the form $(a, b)$ and $d$ defined as $d = |\sum_{x \in E} x[1] -x[0]| $ where is $E$ is a ... |
Assumes we have N position, and 3 entrance gate. For example 10 position:
1--2--3--4--5--6--7--8--9--10
For each entrance gate, there is some people waiting to enter and fill positions, first number is position of gate, associated with chair(front of what chair) and second number is number of people to enter:
5 -> 4
6 ... |
This is the task: I have a unitary target matrix $T$, to decompose using matrices from a fixed (finite) universal set $\{M_i\}$, e.g. $T = M_6M_3M_9M_0$. The set is universal in the sense that one can reach any unitary with by combining its elements appropriately.
I wrote an RL algorithm with a policy network that I fe... |
Let's suppose we have a directed graph $G$ which has at least a pair of vertices $v,w$ such that $(v,w) \in E, (w,v) \in E$.
$e.g:$
In the example, there is an edge going from $C$ to $A$ and viceversa.
So, my question is, what would be the way to model this graph with a residual graph?
|
I'm trying to implement a k-opt algorithm and I'm bogged down on a detail: the importance of choosing disjoint edges.
My question: Is there any benefit to considering adjacent edges, or is the full power of the heuristic achieved when only disjoint edges are considered?
Wikipedia seems confused on this question. Its de... |
Consider the following expression :-
$$h(h^{−1}(L))$$
I need an example where this expression can be superset of subset of L,but i am not able to get one.I am getting this equal to L always.How can i approach this?
|
Can you explain me why we can't show decidability of problem using non-determinism ? I know that this problem (described below) is not decidability, however I can't understand why following reasoning is not working.
Problem
Given a context free grammar $G$, does there exists a word $w∈Σ^∗$ such that $w^4∈L(G)$ ?
My rea... |
Given $G(V,E)$ and $k$.
Is there a clique with size $k$?
Given set $X = \{x_1,x_2,\dots,x_n \}$, and collection $A = \{A_1,A_2,...,A_n\}$ of sub-sets of $X$ and $k$.
Are there are $k$ different elements in $A$, that every two of them has intersection that isn't empty? For example $A_1 = \{ x_1,x_2,x_3 \}$, $A_2 = \{x_4... |
(1) Let's say $T_1$ has $r$ number of edges and $T_2$ has $s$ number of edges; where $r \ne s$ but two trees has same weight since they both are MST.
I kind feel this kind not be true because to span $n$ vertices with minimum number of edges, we need $n-1$ edges. so MST must have at least $n-1$ edges; if some MST has m... |
Tree Sort algorithm with unbalanced tree may yield $O(n^2)$ worst-case time complexity/performance. But Tree Sort algorithm with balanced tree guarantees $O(n\log n)$ worst-case time performance.
So I do not see any practical use-cases to prefer unbalanced tree variant of Tree Sort algorithm - Tree Sort with balanced ... |
I want to express the following locigal expression in an IP:
$$x_{di} \wedge x_{d'j} \Rightarrow \sum_{\substack{d'' \in D\\ i < k <j}} x_{d''k} = \sum_{i<k<j} a_{k} \ \forall \ d, d' \in D, i,j \in T, i<j$$
where $x_{dt}$ is a binary decision variable ($x_{dt} \in \{0,1\}$) and $a_{k}$ is a binary parameter.
The meani... |
Building karnaugh map for the whole given boolean formula always costs Θ(2n) both time and space complexities, where $n$ is the number of boolean variables in the given boolean formula.
It is recommended to do this if $n$ is small, but if $n$ is large, then practically this is not possible to build karnaugh map for the... |
I have a question regarding a normalization of values especially in the case of image processing features classification. What if have a series of values that will never be bigger than 1.
A = 0.004 0.032 0.017
Do I still need to normalize it into [0,1] range? The thing is that the A variable will may also contain 0 at ... |
My main concern is whether the genetic programming is an active field of research, with some promising applications in practice. It seems like in field of machine learning, the neural networks are the main buzzword, with mentions in mainstream news today, but I have never heard of similar genetic programming "success s... |
So, I am studying logic circuits and how to prove them with Venn diagrams. When drawing a Venn diagram for the equation A*(B+C) I figured it would look something like this:
But according to the answer key, and wolfram alpha, it looks something like this:
Can someone explain why this is? Because doesn't A*(B+C) simpli... |
Is the following claim correct?:
Every computational problem has a decision version of roughly equal computational difficulty.
If the above claim is correct, please give a reference for it.
(I find this pdf from Prof. E. Demaine, but he doesn't provide any references.)
|
I posted a similar question here, however I have another question regarding Venn diagrams and logic circuits...
In this problem:
$$(A+B)(B+C)$$
Wouldn't the Venn diagram look something like this?
Because it simplifies to $B + AC$? And you can either have the $B$ region, the $AC$ region, or both?
However, apparently i... |
Genetic programming uses either trees (in case of classical GP) or acyclic graphs (CGP and in a certain sense LGP), to represent evolved programs (phenotypes).
Is there any reason, why cyclic graphs aren't used?
|
I have a program that generates power set of a given string, the set being the characters of the string.
public static Set subsets(String s) {
Set subsets = new HashSet();
if (s.length() == 0) {
subsets.add("");
} else if (s.length() == 1) {
subsets.add("");
subsets.add(s);
} els... |
I'm working through CLRS on problem 4-2, which says the following:
Throughout this book, we assume that parameter passing during procedure calls takes constant time, even if an $N$-element array is being passed. This assumption is valid in most systems because a pointer to the array is passed, not the array itself.
Th... |
I'm trying to come up with an implementation of a matcher for regular expressions containing backreferences like:
([a-c])x\1 which would match axa, bxb and cxc but nothing else.
While I've seen a number of posts about the theory about what is the class of languages this type of regexes describe, I didn't manage to find... |
Not really sure if this is an exact CS question. I'm reading the Patt/Patel Introduction to computing systems Powerpoint presentation and I don't understand about the program counter and instruction register format in LC-2.
On the memory pages section in chapter 5, it writes there:
"Direct mode addressing gets page nu... |
Do I get right, that if we say that counting sort time complexity is O(n+k), this notation means that n is number of all elements to sort and k is number of distinct elements?
For example for array [ 3, 5, 7, 5, 1, 5]
n = 6 and
k = 4 ?
|
I was asked to prove that the next language is recursive enumerable :
$$L= \{ \langle G \rangle \mid SAT<L(G) \} $$
where $G$ is a context free grammar and there is a polynomial reduction from the SAT problem to the language that's accepted by $G$.
I can't seem to understand why this problem is in RE. Isn't determinin... |
I'm a newbie in machine learning field. And I need to choose the best model for my classification model, so i use "learning curve" from sk-learn to make selection. I train and plot learning curve on models such:
Logistic Regression
KNN
Gaussian Naive Bayes
Decision Tree
Random forest
Stochastic Gradient Descent
Percep... |
In the third edition of Introduction to Algorithms, the authors state:
... when $a$ > 0, any linear function $an+b$ is $O(n^2)$, which is
easily verified by taking $c = a + |b|$ and $n_0 = max(1, -b/a).$
[In the above, $c$ and $n_0$ come from the standard definition of big-oh:
$f(n)$ is in $O(g(n))$ if there exist ... |
This link contains a demo that trains a Convolutional Neural Network on the MNIST digits dataset in browser.
I am not getting below terms-
1. max, min gradient in each layer.
2.max, min activation in layers
3.Forward time per example
4.Backprop time per example
Classification loss
L2 (a pooling mechanism??! but wha... |
Let $\varphi$ be a boolean formula in 3-CNF form (conjunctive normal form with three literals at most per clause). I want to convert it to an equivalent boolean formula that uses only NAND gates with fan-in 2, without introducing any new dummy boolean variables. I'm wondering how much this will increase the size of th... |
I was given the next function CH(x) that is defined like this:
$CH(<M>)$ outputs the computation history of the run of M on epsilon if M halts on epsilon. If it doesn't the function returns epsilon.
I was asked to prove that the language
{$ M, CH(<M>) |$ M is a turing machine } is in co-RE\R
I can't seem to understa... |
I am currently studying Automatons and have one, albeit simple, question about NFA-epsilon 'loops'
I know that a string can advance using epsilon without having anything read. So my first question would be, if you had a chain of epsilon-arches, would you just jump to the end of the chain instantaneously (Figure 1) ?
My... |
Facebook announced that it would employ a machine learning "reporting process using pattern recognition in posts previously reported for suicide" (https://newsroom.fb.com/news/2017/03/building-a-safer-community-with-new-suicide-prevention-tools/).
Could anyone explain in more detail how this pattern recognition algorit... |
If a language X regular, then is the complement of X also a regular language? If yes, then thank you, else can you please explain why
|
Given two graphs $G_1$ and $G_2$, a zero-knowledge interactive protocol for a prover to convince a verifier that $G_1\not\cong G_2$ entails:
The verifier choosing a random $i\in\{1,2\}$
The verifier choosing a random permutation $\pi$
The verifier sending a graph $G_3=\pi(G_i)$ to the prover
The prover sending $j\in\{... |
Say for example, I have an algorithm $Al_i$ that produces output from the set $S = \{s_i\}$ for problems from the set $P = \{p_i\}$, and another algorithm $Al_j$ that also produces output from the set $S = \{s_i\}$ for problems from the set $P = \{p_i\}$. For the purposes of this question, $Al_j$ and $Al_i$ are the sam... |
I just studied about this 2-4 tree which is a self-balanced tree. Various sources and textbook often mentioned that the insertion, deleting and searching of this tree is $O(\lg n)$.
However, none of them explain the detailed reasons for that run-time complexity. Neither of them also explains them mathematically for the... |
I saw an answer about the fastest way to sort an array with 6 elements. Turns out that using a sorting network is the best choice. If sorting networks are the fastest way to sort a small(< 16 elements) fixed size array, would it make sense to use them in quicksort or mergesort when the recursive call is for an array wi... |
I have read that input alphabet of Turing machine is subset of tape symbols because in input alphabet we don't allow blank symbol. But when ever there is a transition to final state the transition as (Blank,Blank,R/L) (First parameter here is input,second is what machine will write on tape,third is direction).It means ... |
I have 3 versions of an image at lower resolutions - 480p, 720p, and 1080p. Is it possible to use those 3 images to predict the next highest resolution image (the 4k image)?
My first guess was that I could calculate the difference (or momentum or acceleration?) of each pixel between images and use that to predict the ... |
The SubsetSum problem decides whether a set $S = \{s_1, s_2,..., s_n\}$ and $k \in \mathbb{N}_0$ contains a subset of $S$ such that its summation is $k$ or not. This problem is NP-Complete.
The Partition problem decides whether a set $S = \{s_1, s_2,..., s_n\}$ can be partitionated in two subsets such that the differe... |
The Wikipedia article on finding the roots of polynomials mentions all sorts of methods to do so. But it doesn't give, nor can one easily figure out by following the links, known lower and upper bounds on time complexity in various models (and which approaches achieve them).
So, if we're given the $n$ real coefficients... |
I'm trying to solve T(n) = T(n-1)*n using repeated substitution.
I can expand it, but I'm having trouble with geometric sequences for any problem. I find I'm just memorizing solutions to typical problems. It's sometimes hard for me to go from the expanded equation to a general equation that I can simplify.
T(n) = T(n-1... |
Let's Have
i1. lw $s2,0($s1)
i2. lw $s1,40($s6)
i3. sub $s6,$s1,$s2
i4. add $s6,$s2,$s2
i5. or $s3,$s6,$zero
i6. sw $s6,50($s1)
what is the true dependence for register $s2 ?
i find 2
i1 -> i3 and i1->i4
what is the true dependence for register $s1 ?
i find 1
i2 -> i3
what is the true dependence for register... |
As far as I understand, Prolog and related languages are restricted to inference rules of the form
$$ p_1 \land \dots \land p_n \rightarrow q$$
which is equivalent to the Horn clause
$$ \neg p_1 \lor \dots \lor \neg p_n \lor q$$
I'm wondering if there are languages that relax this constraint to allow arbitrary disjucti... |
I am trying to figure how to find an upper bound for the running time of a given recurrence relation (without proving the bound) using the Iteration method. The recurrence is:
$$T(n)=2T\left(\frac{n}{5}\right)+3T\left(\frac{n}{10}\right)+n$$
I tried to iterate over it and got:
$$\begin{align}
T(n)& =2T\left(\frac{n}{5}... |
Let $\varphi$ be a boolean formula in 3-CNF form (conjunctive normal form with three literals at most per clause). I want to convert it to an equivalent boolean formula that uses only NOR gates with fan-in 2, without introducing any new dummy boolean variables. I'm wondering how much this will increase the size of the ... |
I wonder what will be the complexity of this algorithm of mine and why, used to check whether a graph (given in the form of neighbors list) is bipartite or not using DFS.
The algorithm works as following:
We will use edges classification, and look for back edges.
If we found one, it means there is a circle in the graph... |
We are trying to solve variant of the n-peg Tower of Hanoi problem.
There can be limitations on possible moves among the pegs.
In the graph vertices are pegs, and an edge
from vertex to another tells us we can move a disk from
the first peg to the other.
We need to find out what are the necessary and sufficient conditi... |
The problem of solving quadratic equations is as follows:
Suppose you are given a set of quadratic equations and are asked to
find $0$-$1$ values for the variables such that all equations are
satisfied. For example, consider the system $$x_1x_2-x_3 = 0$$
$$x_1x_3-x_1x_4+x_3x_4 = 1$$ $$x_1x_4-x_2x_3+x_1x_3 = 0$$ ... |
I'm trying to solve pretty complex problem with number theory and set of numbers.
To make the problem more clear we are going to define $GCD(a, b)$ as the greates number that divides both $a$ and $b$ and $LCM(a, b)$ as least common multiple of $a$ and $b$. For my problem I want to calculate both $GCD(x_1,\dots, x_n)$ ... |
Hopefully this is the right board for my question, We are facing an issue creating a unique ID from the following inputs :
datetime (can be present more than once in the same set, cannot not be present in 2 different sets)
offset ( an integer representing each line position in the set, the offset will be reset when s... |
I was asked to prove that language described by $$ L =\{ a^{2n}: n\ge1\}$$ is regular using pumping lemma. Pumping Lemma states that for regular language we can break down language described by language into $xyz$ where pumping length $p \ge 1$ such that
$|y|>0$
$|x.y| \le p$
$x.y^{i}.z$ is in L for $i \ge 0$
taking... |
http://codeforces.com/problemset/problem/535/B
The problem is:
You are given a lucky number n. Lucky numbers are the positive integers whose decimal representations contain only the lucky digits 4 and 7. For example, numbers 47, 744, 4 are lucky and 5, 17, 467 are not.
If we sort all lucky numbers in increasing order,... |
Given a trie with word occurrences (frequency), how can we sort the words( both ascending and descending) on the basis of their frequency?
|
I've been thinking about the A* algorithm recently. For context, A* is a graph-navigating algorithm most often used to solve problems that go "What is the shortest path from point A to point B?". It's based on a distance-estimating heuristic you provide to it. The heuristic you provide must be able to tell the program,... |
Let's say I have three classes, Animal, Bird and Pigeon. If Bird extends Animal and Pigeon extends Bird, is Animal the parent class for both or is Bird?
So, for instance, if the constructor for Animal said "hi I am animal" and the constructor for Bird said "hi am I bird", which will it say in class Pigeon if I call th... |
Suppose we have following 2-QCNF problem:
$$\forall x_1...\forall x_m\exists y_1...\exists y_k:\varphi(x_1,...,y_k)$$
where $\varphi$ is 2-CNF.
When the formula is false?
Rules that I found:
$\exists y_i:(y_i\rightarrow \overline{y_i})\land(\overline{y_i}\rightarrow y_i).$ Existentially quantified variable and it's ne... |
I have to implement algorithm, where definitions, input and output of program go as follows:
$Σ$ - finite, non-empty alphabet
A
translation
in
$Z^2$
by vector
$u
= (
u_x
, u_y
)
∈
Z^2$
will be denoted by
$τ_u$
,
$τ_
u
:
Z^
2
∋
(
x, y
)
→
(
x
+
u_x
, y
+
u
_y
)
∈
Z
^2
.$
Definition 1 (Directed Figure): ... |
I am working on a HMM tagger that should be initialized with some small data and then supposedly improved with Baum-Welch algorithm on the data.
However, the number of states is huge, almost $459^2$, so the training would take ages.
For evaluation I already implemented Viterbi algorithm in which I prune and consider on... |
I'm currently trying to figure out whether this language is context-free using the pumping lemma.
$\qquad L = \{ v_1 v_2 v_1 v_2 \mid v_1 \in \{a, b\}^*, v_2 \in \{a, c\}^* \}$
I'm having trouble because I don't know how to use the bound $m > 0$.
|
What is the difference between constant folding and constant propogation? They both seem to do the same thing, instead of saving constants into stack or evaluating a full arithmetic expression, they simply replace it with the result which can be obtained at compile time. What is the difference between two?
|
I was reading about the reduction from 3SAT (input: formula) to Independent set (input (graph, k)) in order to prove that the latter is in NP-Complete. The reduction i've seen follow the next steps:
For each clause at the input, create a node for every variable it contains in case it doesn't exist yet. Then, create a ... |
I would like to show that a problem $A$ is $NP\text{-complete}$. So, I am trying to reduce 3-SAT problem to $A$. Reduction is kind of function, let say $f$. What is necessary complexity of $f$? Probably, it has be in $NP$. But, does it mean that $f$ must be a non-deterministic Turing machine working in polynomial time?... |
Apologies if this is the wrong place to ask.
For my experiment, I have a single-page application and a multi-page application. I am testing them with an exponential distributed delay throttling. The idea is that individual chunks are delayed by a random number sampled from an exponential distribution. So, when a HTTP/G... |
I have a set $\mathcal{A}$ of $\mathcal{m}$ vectors in $\mathbb{R}^a$. I also have a different set $\mathcal{B}$ of $\mathcal{n}$ vectors in $\mathbb{R}^a$. These two sets are disjoint: $\mathcal{A}\cap\mathcal{B} = \varnothing$.
My goal is to find a set $\mathcal{C}$ such that $\mathcal{C} \subset \mathcal{A}$ and $... |
By unique words we understand the such word $w$ that every character in the word occur at most once, for example:
$\Sigma = \{a,b,c\}$
$w = abc$, $v = abca$
$w$ is unique, $v$ is not.
Now, we have a problem:
We have given an alphabet $\Sigma$. We have a given length of word $|w| = n$. How to recognize using $NFA$ wheth... |
I solved this problem using Dynamic Programming in $\mathcal{O}(n)$ time. I found that is equivalent to the Fibonacci Numbers.
$F(0) = F(1) = 1$
$F(n) = F(n-1)+F(n-2)$
Where the $F(n-1)$ term is from fixing the left most domino vertically, and the $F(n-2)$ from fixing it horizontally (which implies that the domino unde... |
Let L1 be the recursive language. Let L2 and L3 be languages that are recursively enumerable but not recursive. Which of the following statements is not necessarily true?
a.) L2−L1 is recursively enumerable.
b.)L1−L3is recursively enumerable.
c.)L2∩L3is recursively enumerable.
d.)L2∪L3is recursively enumerable.
My appr... |
In formal language theory, a context-free grammar G is said to be in Chomsky normal form if
$$ S → A B$$
$$ A → a $$
$$S → ε $$
My question is that if $B$ in the the form of
$$ B → abcd $$
where $abcd$ are terminal symbol, is this still in Chomsky Normal Form? ?
|
I am still in the early phase of getting comfortable with solving recursive problems. I was given
int p(int n) // number of permutations of n objects
int c(int n, int k) // number of unique combinations of k elements out of n elemnts
For instance, {"abc"} as the given string, permutation will be
{"abc"}, {"acb"}, {"b... |
From Wikipedia :
An independent set of $\sqrt{n}$ vertices in an $n$-vertex triangle-free graph is easy to find: either there is a vertex with more than $\sqrt{n}$ neighbors (in which case those neighbors are an independent set) or all vertices have less than $\sqrt{n}$ neighbors (in which case any maximal independent... |
I am learning All pair Shortest Path from CLRS book,but got stuck in the begining itself.I am writing my query.
According to one of the Lemma of shortest path -:
All Subpaths of shortest path are shortest.
Using this lemma, we can write the Structure of shortest path given as-:
Consider a shortest path $p$ from vert... |
I'm aware that a qubit can exist in an infinite number of states and that when measured it collapses into one state, with the probability of each state being directly affected by it's latitude.
My question is: Why is this in any way useful? Surely you can't use a unit of information meaningfully when you don't know wha... |
During my research, I had encountered the following issue. Consider the equation
$$\sum_{k=1}^K\alpha_k P_k = P$$
where $\sum_{k=1}^K\alpha_k=1$, $\alpha_k > 0$, $P_k > 0, P>0$.
So you are given $\{\alpha_k\}$, $K$ and $P$. The task is to generate randomly $\{P_k\}$ such that the above equation is satisfied. I am looki... |
I define a list to be a path where every vertex along the path has precisely two edges, except possibly the starting and ending vertex. In the language of electric circuits, I'm interested in finding all components that are in series for a given circuit. I'm specifically interested in finding all maximal lists. As not... |
I have a slightly modified version of a classical 01 knapsack problem. Specifically, the problem has an additional constraint which requires that if more than one feasible selection with equal value exists then the selection with minimum total weight be selected. For example, consider a knapsack with size 3 and the fol... |
I recently learned about segment trees as data structures, and what I learned was that we are always building segment tree with size $N$ such that $N$ is power of two. If $N$ is not power of two we can add more elements to the end of the tree.
However, I was wondering is the segment tree going to work normally if we do... |
A language I'm investigating is not regular since the minimal DFA for the language grows depending on input string size. However, while the number of non-final states increases, the final states are the same small strictly finite core which include the initial state.
Another question looks superficially similar, hintin... |
Show that the following languages are not regular:
$(1)\ L=\left\{a^nb^mc^k\mid n>k \land n,m,k>0\right\}$
$(2)\ L=\left\{a^nb^mc^k\mid m>k \land n,m,k>0\right\}$
I've difficulties showing that these two languages are not regular by using the Pumping Lemma. Any suggestions?
|
A language $L \subseteq \Sigma^*$ is finite-regular if there exists $C$ such that for all $n$, $L \cap \Sigma^n$ is accepted by some DFA with at most $C$ final states.
Given a finite-regular language $A_L$, am I guaranteed that there exists a polynomial-time algorithm $A_L$ that recognizes $L$? In other words, I want ... |
Based on this article, i am trying to imagine how i would construct an FSA based index for the following string sequence:
ABCDEF
ABDDDF
ABDDEFGHI
These are the representations that i found:
There are problems with each:
The first introduces a new key in the automata that really isn't in the set (ABCDEFGHI)
The secon... |
I know that given problem is in $\mathsf{FP}$: if given formula is satisfiable, then it is only needed to find out how many connected components equality (undirected) graph has. In fact problem is to count the amount of connected components.
However, is it possible to solve it using only log space? Is then the given pr... |
I have made an evaluator of Lambda expressions. I tried to do Y combinator, but for some reason I can't get the original one working:
$$λf.(λx.f \space (x \space x)) \space (λx.f \space (x \space x))\tag1$$
This is probably for a reason, I don't know how to interpret $f (x \space x)$ part, or my evaluator does it right... |
$$UCYLE = \mathcal \{ <G> ~:~ G \text{ is an undirected graph that contains a simple cycle}\}.$$
There are two possible approaches to this exercise:
Solving cycle in undirected graph in log space?
https://stackoverflow.com/questions/29640543/solving-cycle-in-undirected-graph-in-log-space
These two solutions are diffe... |
Given a nondeterministic game how could one know the branching factor of it? Is it the number of all possible outcomes?
I have an example game in which you have some cards. The goal is to get rid of all of them. At the start of the game you get 7 random cards. There is a draw pile from which you take cards if you can't... |
Let's consider the problem:
Prove that decision whether a graph is bipartite is in $LOGSPACE$.
I am convinced that I should use Reingold's theorem. I know that I test whether graph contains an odd-length cycle.
For a given graph $G = (V,E)$ I can define the graph $$G' = (V', E') \\ V' = \{ v^1, v^2 | v \in V \} \\ ... |
I was asking to prove that
For any directed graph, when we perform BFS, for each cross edge $(u,v)$,
there is some time when both vertices $u$ and $v$ appear in the queue.
(In other words, we have a queue like this: $Q = \langle v_1,v_2,..u,..,v,..v_k \rangle$.)
However, when I draw some graph; I've encountered ... |
I'm working with the Welder proof assistant. Basically, this system uses basic inference rules to modify the goal one wants to proof. At a latter step, the modified goals are passed to a SMT solver to see if it can prove them. I have already written automatic induction tactics that generate by themselves the induction ... |
Let's recall the definition of an applicative functor. Throughout this question, I write $x: T$ to denote that the value $x$ has type $T$.
Definition: An applicative functor consists of a type constructor $F: * \to *$ together with two operations:
a function $\mathsf{pure}: A \to F(A)$ that transforms a base value $x... |
Are there any systems that operate primarily by punch cards (loading/saving data) in production usage today? (Or at least up to the year 2000?)
|
It seems to me that genetic algorithms would be an ideal way to train neural networks so that they come to have the right weights, since they are especially good at escaping local minima, and converging on a global optimum. However, from my rudimentary knowledge of neural nets so far, I haven't come across this method ... |
CASC is the premier Automated Theorem Prover competition performed annually at the Conference on Automated Deduction (CADE). The 2017 event has finished on the 9th of August this year.
During this conference provers are faced with a set of problems and a time limit of 5 minutes (300 seconds) per problem.
When the compe... |
If I had an arbitrary amount of space at my disposal, couldn't I vectorize/parallelize any program in such a way that it would only need one step? For example, I could let my CPU have an inbuilt look-up-table for the function (x+y)/z with 3 input values instead of doing the calculation in 2 steps.
Does there exist any ... |
Suppose that $T$ is a set of vertices in an unknown network.
We have oracle $F(X,Y)$ that returns maximum flow value between $X, Y \subseteq T$ in the unknown network.
Can we reconstruct the unknown network by calling this oracle polynomially-many times?
More precisely, can we construct a network whose flow function is... |
From my limited understanding fully persistent data structures allow changes to be made to previous nodes, with new nodes creating a branch rooted at the changed node, resulting in a tree of nodes and also disallowing the remerging of these branches.
o o o
/
o o o o o o o o o
\
o o o
Confluently pers... |
Let's say we have a set of sets:
$$\mathfrak S = \lbrace S_1, S_2, ... , S_n\rbrace$$
And the union of the all the sets in this set:
$$\mathfrak U = \bigcup\limits_{i=1}^{n} S_{i}$$
And so there is at least one minimum set of sets that is identical to this union:
$$(\mathfrak M \subseteq \mathfrak S) = \mathfrak U$$
W... |
I am trying to prove why the below language is not context free. Note: this should be carried out by applying the pumping lemma for context free languages.
To prove something with the pumping lemma, we firstly need to choose an arbitrary m > 0. After that we need to formulate the string (alpha below) we are going to r... |
We define xor operation on languages $L,M\subseteq \{0,1\}^*$:
$$L\oplus M = \{u\oplus v :|u|=|v|, u\in L, v\in M\}$$ $\oplus$ is
defined as xor on postions, for example: $001\oplus 100=101$ Show
that there exist languages $L,M\in PTIME$ such that $L\oplus M\in
NP complete$
It is hard to me. I have been ... |
I'm trying to solve the excersice from Knuth's "Concrete
Mathematics":
A Double Tower of Hanoi contains 2n disks of n different sizes, two of
each size. As usual, we're required to move only one disk at a time,
without putting a larger one over a smaller one.
How many moves does it take to transfer a double tower fro... |
Are there any proofs that BQP is not in P? In laymen's terms, I am asking if there is any formal proof separating the complexity class that quantum computers are presently assumed to solve efficiently from the complexity class that non-quantum computers are presently known to solve efficiently.
Obviously I'm not talki... |
I am making a solver to choose the best assignment to a set of people for an event, given their availability (chosen in a set $T$ of time slots), jobs preferences (among $J$ possible jobs) and some of other predefined constraints. We refer to a particular pair of (job, time slot) as a "shift".
I'm not optimizing the en... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.