instruction stringlengths 35 29.1k |
|---|
As I read this lecture for being familiar with VC dimension we find on p. 8:
VC(half intervals in $\mathbb{R}$ ) = 1 .... no subset of size 2 can be shattered
VC(intervals in $\mathbb{R}$ ) = 2 .... no subset of size 3
It's not clear to me. I read on Wikipedia about the difference of Half Interval and I... |
Assume two hypotheses classes $H_A\subset H_B$ defined over the same instance space $\delta$. Assume also $VC(H_A)=d$, does this mean $VC(H_B)\geq d$ ? where $VC$ is the VC dimension.
We can use the same set of instances shattered $H_A$ to shatter $H_B$. Seems obvious to me but is it true? is there a reference for thi... |
I am currently reading and watching about genetic algorithm and I find it very interesting (I haven't had the chance to study it while I was at the university).
I understand that mutations are based on probability (randomness is the root of evolution) but I don't get why survival is.
From what I understand, an individu... |
Consider the matrix with dimension $m \times m$:
$$
M =
\begin{array}{cc}
1 & 1 & 1 \\
0 & 1 & 1 \\
1 & 0 & 1 \\
\end{array}
$$
Its 1-D representation:
$$ M^* = \begin{array}{cc} 1 & 1 & 1 && 0 & 1 & 1 && 1 & 0 & 1\end{array}$$
Now, another dimension added, so that the matrix becomes:
$$
N =
\begin{array}{cc}
1 & 1 & ... |
I want to prove that $ L = {a^n b^m c^{ \lfloor \frac{n}{m} \rfloor } } $
isn't context free language, so I choose N - constant from lemma
so the word is
$ w = a^N b^N c $ and $ w = uvxyz $
1 case
v and y contains only a
$ v,y \in a^{*} $
and $ w_2 = a^{N+B} b^{N} c $ where $ B > 0 $
is it correct to say that it does... |
I am professor of Electrical Engineering who will teach, for my first time, a class to first-year EE students about programming. This will be their first contact in an academic setting with programming, algorithms, data structures, etc.
When introducing the subject of algorithms, I'd like to present a few problems, giv... |
I need to pick a focus in my Masters program.
The running candidates are
Networking
Bioinformatics
Data mining
Computer Image Recognition
In order to avoid this becoming a discussion, I'd be interested in specific data about the type of research done in these fields, or anecdotal experience on why one particular... |
An automaton, as I have seen so far, is used to tell if a string belongs to the language that the automaton recognizes. This is determined by the final state of the automaton running on the string as an input. I wonder what role the output of the automaton plays here for this decision problem?
I saw that an automaton ... |
Like the title says, I am trying to solve the quadratic equation while avoiding floating point arithmetic. More specifically, I will be coding this algorithm in C.
I have integer values for a, b, and c. The result can be formatted in any way, though integers would be best. I would also like to avoid losing precision wh... |
Why Do Computers Use the Binary Number System (0,1)? Why don't they use Ternary Number System (0,1,2) or any other number system instead?
|
Why do computer use Hex Number System at assembly language? Why don't they use any other number system like binary, octal, decimal? What thing forced computer designer to use hex system at assembly? Why it looked so beneficial to them?
|
Is there a way to generate a random permutation of the numbers 1 to N such that I can find the k-th element of the permuted list without needing to either 1) store the entire permuted list, or 2) compute the elements 1..k-1?
|
I am writing a paper. I have a problem and I want to prove that it is an NP-hard problem. However, for simplicity, I select a subset from my problem to prove that it is an NP-hard problem. Although I think that it is reasonable that if a subset of problem is NP-hard, it result in the problem being NP-hard, but I think ... |
I want to show that the following problem is NP-Complete:
For a set of vectors $v_1,\ldots,v_n \in \mathbb{N}^d$ and an integer $k$, does there exist a subset $S \subseteq \{v_1,\ldots,v_n\}$, such that $S$ has $k$ elements and all coordinates in the vector $\sum\limits_{x\in S} v_x$ are powers of two?
I'm quite certai... |
We have two computers, Comp1 and Comp2, which hold binary matrices A and B of size $n\times n$.
We want to check if the matrices of the computers are identical except for exactly 1 entry.
Comp1 has to send $O(n\log^2n)$ bits to Comp2 and Comp2 should return 0 or 1 (for "no" and "yes" respectively) for the answer.
If th... |
I am currently reading Multidimensional and Metric Data Structures by Hanan Samet for fun. The combined index is discussed on page 5-6. I do understand it in the sense that the inverted file itself is an index, and then we extrapolate another index by lexicographically ordering the attribute.
So, given a record with fo... |
I know you can convert every context-free grammar into Greibach normal form grammar.
But can I convert every deterministic context-free grammar into deterministic Greibach normal form grammar?
|
This question is related to my previous question:
Looking for a set implementation with small memory footprint
I'm looking for information about combined data structures, which can efficiently represent a set S of non-intersecting sub-intervals of the given integer interval [0, MAX) with the single operation:
testAndI... |
I have difficulty with proving that the language
$ L = \{ a^p b^q | p \ge 1 , q \ge 1 , p \ge q^2 \vee q \ge p^2\}$
$ w = uvxyz $
I've chosen word $ w = a^{N^2} b^N $ where $ N $ is a constant from pumping lemma and I proved cases where a $ v,y $ is entirely in $ a $ and $ v,y $ is entirely in $ b $ , but how to prov... |
The LazySelect algorithm is given in these slides as follows.
We have a set $S$ of $n = 2k$ distinct numbers and want to find the $k$th smallest element.
Let $R$ be a set of $n^{3/4}$ elements chosen uniformly at random with replacement from $S$.
Sort $R$ and find $a$ and $b$ such that $\mathrm{rank}_R(a) = kn^{-1/4} ... |
I am confused on the following:
In the following trivial code:
for (int i = 0; i < n; i++) {
for(int j = i + 1; j < n; j++) {
for(int k = j + 1; k < n; k++) {
//some code here
}
}
}
I know that the complexity is N^3. But I am confused on some details.
The outer loop is executed... |
I'm trying to teach myself Quantum Cryptography for an exam I have soon, and I came across the following question:
To establish a common key, Alice and Bob analyse a sequence of 20 photon pairs. Alice measures the photon sequence: $$1\:1\:0\:1\:0 \qquad 0\:0\:0\:1\:0 \qquad 1\:0\:1\:0\:1 \qquad 0\:1\:1\:0\:1$$ using t... |
For reasoning about things like NP-completeness, we typically use many-one reductions (i.e., Karp reductions). This leads to pictures like this:
(under standard conjectures). I'm sure we're all familiar with this sort of thing.
What picture do we get, if we work with Turing reductions (i.e., Cook reductions)? How d... |
A) Solve this recurrence where $T(0)=0$ and write it in O-notation:
$T(n)= {2 \over n} (T(0)+T(1)+...+T(n-1))+c$
So, I started to calculate:
$T(1)=2(0)+c=c$
$T(2)=1(0+c)+c=2c$
and so on, which gives me that $T(n)=nc$
This I can prove by induction: $(n-1) \rightarrow n$
$T(n)= {2 \over n} (0+c+2c+...+(n-1)c)+c ... |
I took an algorithms class on Coursera. The professor in the video about hash tables said that
What's true is that for non-pathological data, you will get constant time operations in a properly implemented hash table.
What does "non-pathological data" mean? Can you give some examples?
|
I know it might sound like a silly question, I just can't get my head around it...
I just read that $DSPACE(f(n))\subseteq DTIME(n\cdot 2^{O(f(n))})$.
The proof for it relies heavily on the fact that for a given $L\in DSPACE(f(n))$, the turing machine $M_L$ (which decides $L$ while consuming no more than $p(|x|)$ mem... |
I was trying to find all the negative cycle vertices using the Bellman–Ford algorithm using this paper solution 7.1(b) in $O(V)$ by tracing back the predecessor subgraph.It is also stated in this answer too. But then while googling I found another Stack Overflow question it is proved that finding negative cycle vertice... |
I am working on my thesis on revenue management. I have been over the following problem multiple times now, but I fail to see where my mistake is. This example is based on The Theory and Practice of Revenue Management by Talluri and Ryzin, page 61. (See also errata, there is a small mistake in the equation). The recurs... |
Given a deterministic infinite word transducer (also called deterministic generalized sequential machine) with the following restriction:
There is exactly one initial state
All states are final
The transducer is real-time, i.e. reads excactly one input character on each transition
The transducer produces zero or more ... |
I've found numerous places that claim that the paper "How to Generate and Exchange Secrets" by Andrew Yao introduces garbled circuits as a solution to the secure multiparty computation problem. However, I can only seem to locate the extended abstract which lacks proofs and does not seem to mention garbled circuits. It ... |
I know very little about arithmetic circuits, so maybe it is something well-known.
Given a small circuit consisted of $\{1,x,-,+,*\}$ defining one variable polynomial. Let be additionally known that degree of this polynomial does not exceed $d$ and all the coefficients are small. I wonder if exists a fast way to find a... |
Theory of computation tells us that there are some languages that cannot be recognized by a Turing machine. That is, there are well-defined problems for which no Turing machines can provide an algorithm which solves the problem.
Many problems that are undecidable seem to have a reduction to the Halting problem: Matyase... |
I posted this same question on stackoverflow but I think it might be better suited here as I am having trouble with coming up with an algorithm with O(log(n)) running time.
Question:
I am completely lost for this question. I absolutely CANNOT figure out a way to get an algorithm that run in O(log(n)) time. The ONLY al... |
If $\sf RP = NP$ then the hierarchy collapses to its second level (by the Karp-Lipton theorem). But what about $\sf NP$ and $\sf coNP$?
I tried to prove that $\sf BPP$ is contained in $\sf NP$ (the other direction is trivial if $\sf RP = NP$) but to no avail, and I'm not even sure that it's true.
What do you think?
|
I have this language:
$$ L = \left\{ w \in \{a,b,c\}^* \;\big|\; |w| / |w|_a = 3 \right\} $$
where $|w|_a$ is the number of occurrences of $a$.
How can I find a grammar that generates it?
|
In our operating systems class, the teacher told us about deadlocks prevention methods. One of them is that to select as a victim the process which requires the CPU time or one that requires a lot of resources, and remove this process. The next time the algorithm is called, it may be possible that again the same proces... |
consider the policy iteration algorithm for a finite state MDP. Suppose the initial policy is a stochastic policy. Now, can the optimal policy be deterministic after improvements ? Or, can we say that always the optimal policy will be a stochastic one ? Confused about this. Any ideas will be helpful. The reason I am as... |
Hash tables are said to be amortized $\Theta(1)$ using say simple chaining and doubling at a certain capacity.
However, this assumes the lengths of the elements are constant. Computing the hash of an element requires going through the element, taking $\Theta(l)$ time where $l$ is the length.
But to discriminate between... |
I'm solving a question from CLRS where we need to prove that (ceil(lg lg n))! is polynomially bounded.
Let g(n)=(ceil(lg lg n))!
lg(g(n))=lg((ceil(lg lg n))!)
=theta(ceil(lg lg n) * lg (ceil(lg lg n))) [since lg(n!)=theta(n * lg n)
and replacing n by ceil(lg l... |
Do there exist models of type theory that allow types to contain an uncountable number of inhabitants? Traditionally type theory seems to be swirled in with computable programs as constructive proofs so types are always countable. I want to know if we go outside computable programs do we get types that have an uncounta... |
i'm studying for PHD Entrance Exam on Stanford. one of previous material exam designed very challenging.
i want to design a NN for classifying following 2-class problem.
1) output should be -1 or 1.
2) output should be 0 or 1.
for sove this question i think using XOR neural network for following problem for above da... |
Consider the following problem:
Given an array of $n$ integer numbers (positive and negative), find a (contiguous) subarray for which the product $(\text{sum of the elements})\times(\text{length of the subarray})$ is maximum.
Is there an algorithm with complexity less than $O(n^2)$?
For instance, if the array is
$$-... |
In the paper "Resolution for Quantified Boolean Formulas", I am unable to understand the proof of theorem 3.4. Please help me with the basic concept used on page 4:
The concept that I am referring to is:
Then $\mathit{\Phi}$ is false if and only if there exists a clause $\phi \in N^+_\mathit{\Phi}$ or $\phi \in N_\ma... |
Is there any result about the extension of first order logic with least fixed point operator, being complete (as logic in general on infinite structures too) or not? In other words does the Goedel completeness theorem of first order logic extent to such FO-LFP logic ?
|
Suppose the task is to make an LL(1) grammar for postfix operations, where the only operation is ternary.
Obvious approach is
$N$ - number
$O$ - operation
$S$ - expression
rules:
$S \rightarrow SSSO \mid N$
This grammar is obviously not LL(1), and refactoring it (removing left recursion and right branch... |
I'm still insecure in the section decidability (no proof needed, I want to divine it):
X is decidable and Y is undecidable. Is the intersection of X and Y decidable or undecidable?
X is decidable and Y is a partial quantity of X. Is Y decidable, too or not?
Thanks!
|
My Computing teachers talk about data duplication and data redundancy in terms of databases as different things, but I'm struggling to differentiate them. The context is database normalisation, and in particular why the third normal form is important: because it eliminates data duplication and redundancy. But as far as... |
I have read that true LRU page replacement requires significant hardware support, so only approximation of LRU is implemented for page replacement.
So I wanted to contrast LRU that is implemented for cache, and that for page replacement. Like - Is LRU properly implemented for cache?
|
Informal Problem Statement:
Given a string, e.g. $ACCABBAB$, we want to colour some letters red and some letters blue (and some not at all), such that reading only the red letters from left to right yields the same result as reading only the blue letters.
In the example we could colour them like this: $A\color{blue}{C}... |
Suppose you have the following game:
There are infinitely many counters $\{c_1,c_2,\ldots\}$, all initialized to 0.
In each step, you may choose a counter $c_i$ and increase it's value by 1.
Unfortunately, every $T$ steps, each counter that has a positive value is decremented by 1.
Also, the values of the counters are ... |
I would like to clarify this because I see some kind of contradiction between Rice's theorem and Turing completeness.
This is the problem:
In building an Universal Turing Machine to emulate another Turing Machine, how can we be sure that we are indeed simulating it? ('sure' in the sense of being computationally verifie... |
I have a matching algorithm that is based on making an comparison score. This score is divided into parts.
Example:
5 - Points for attributes (lets say they have 3 common attributes, would the score be ((3/5)*5) = 3 Points
5 - Points for location
10 - Points for content
Theses points are just something i have set thoug... |
I am currently reading the book of Arora and Barak on computational complexity.
In the third chapter (p69-70), two classic theorems regarding time complexity hierarchies are introduced:
$\left[f(n)\log(f(n)) = \mathcal{o}(g(n))\right] \Rightarrow \left[DTIME(f(n) \subset DTIME(g(n))\right]$
$\left[f(n+1) = \mathcal{o}(... |
I have one question about policy function in Reinforcement learning.
in fact this function indicates which action should be done in each state? Or
this function indicate for get the specific reward in each state, which action shoud be selected?
or something else?
|
i get stuck in one sentence in machine learning.
i read tom Mitchel book on ML, and some other materials.
if we have small training set, always over-fit can occurs? or is likely to occurs?
i read lots of material but i'm not sure that which of my fact will be correct.
any solution or idea?
|
As i See in ML Course a VC dimension calculation is very theoretical.
What is the VC-dimension of intervals in R?
The target function is specifieed by an interval, and labels any example positive i it lies inside that interval.
Answers:
VC-dim = 2. A set of two points can be shattered, since there's only a single blo... |
I am running in a conceptual problem in my development which I previously also encountered in the Drupal CMS and was wondering what would be the best solution to circumvent the problem.
Drupal, and my own Snap Websites software, make use of a publish / subscribe pattern where one can write functions that automatically ... |
In Haskell, the Monads type class has the bind operator, which is represented by the symbol >>=
The type of such operator is:
(>>=) :: Monad m => m a -> (a -> m b) -> m b
Why does the function need to be (a -> m b)? Why functions the preserve che inner data type (a -> m a) are not allowed?
Has this choice been made fo... |
Consider the following problem. I have a pattern $P$ of length $100$ and a text $T$ of length $n$. I want to find the minimum number of operations to transform $P$ into $T$. The operations are:
Insert a single character into $P$
Delete a single character from $P$
Substitute a single character in $P$ for another one
... |
Wikipedia says that
Set covering is equivalent to the hitting set problem
What problem is to the set packing problem, as the hitting set problem is to the set cover problem?
Is it that given the ground set $U$, and a collection of its subsets, $S \subseteq \mathcal P(U)$, find a $H \subseteq U$, so that $|H \cap S_i... |
I Take some online class for Machine Learning. one of teacher say this sentence.
if we have m data points, the training error converges to the true error as m → ∞.
i thought, this sentence not always correctly. i think when we assume that the data points are i.i.d this sentence becomes true. but in general it's false.... |
I'm studying (for self-betterment - I don't go to school) the 2nd edition of Compilers: Principles, Techniques and Tools by Aho et al. I'm not sure how to do Exercise 2.4.1 (b), which is to construct a recursive-descent parser, starting with the grammar:
$S\to S(S)S \mid \epsilon$.
It seem to me that the simpler gramm... |
I have a list like this:
1*0*0
1**0*
0*0**
001**
Where the number of elements in each row is $n$ and * is a wildcard for 0 or 1. I need a polynomial-time algorithm that can determine if there exists an $n$-bit number that does not equal any of the rows. Does anyone know of an algorithm that could do this? I've been th... |
An equivalence relation on a finite vertex set can be represented by an undirected graph that is a disjoint union of cliques. The vertex set represents the elements and an edge represents that two elements are equivalent.
If I have a graph $G$ and graphs $G_1,\dots,G_k$, we say that $G$ is covered by $G_1,\dots,G_k$ if... |
The book Computational Complexity: A Modern Approach by Arora/Barak provides the following:
Theorem 1.10
There exists a function $UC: \{0,1\}^* \to \{0,1\}$ that is not computable by any TM.
Theorem 1.11
HALT(The halting problem) is not computable by any TM.
Table 1.7 that shows how Theorem 1.10 can be proved using di... |
Forgive the naïveté that will be obvious in the way I ask this question as well as the fact that I'm asking it.
Mathematicians typically use $\exp$ as it's the simplest/nicest base in theory (due to calculus). But computers seem to do everything in binary, so is it faster on a machine to compute 2**x than Math::exp(x)?... |
It is known that for the number $c(n)$ of phrases / tupel of the LZ compression for binary words of length $n$ the following relation holds:
$$c(n)\leq\frac{n}{(1-\epsilon_n)\log_2 n}$$
With $\epsilon_n\to 0$ for $n\to\infty$.
The proof is made in Thomas & Cover: Elements of Information Theory (Lemma 12.10.1, page 320 ... |
It occurred to many that in all the $\textbf{NP}$-completeness proofs I've read (that I can remember), it's always trivial to show that a problem is in $\textbf{NP}$, and showing that it is $\textbf{NP}$-hard is the... hard part. What $\textbf{NP}$-complete problems are these whose polynomial-time verifiers are highly ... |
In cooperative coevolution algorithms, a high dimensional vector is broken into smaller vectors, each of which is optimized separately using EAs for fewer dimensions and then recombined.
What is the fitness function used to optimize those?
It can't be the same benchmark function, as those are for higher dimensions.
I a... |
I an brushing up on Dijkstra (specifically Wikipedia's pseudocode) and can't resolve this counter example. I want the shortest path between A and E. I would move from A to C to D, where D would have a cost of 105. Once I mark D as visited I no longer have an opportunity to find the correct path A to B to D to E. What a... |
I am new to the field of text mining. Could not figure out what to search on google so am here for the same help.
When we talk of approximate / fuzzy string match. searching for RAT would give RAAT too. i have used utl_match.edit_distance in oracle. searching for BAAT would give BAT. but if i search for RAT. it would ... |
The supercomputer I am researching has 2.2 petaflops and boasts total memory of 1000 terabytes and disk space of 23.5 petabytes.
Is this more computing power than the total of the entire worlds computing power 10 years ago (2004)?
|
I find lots of solution where you have an Automata and a input string , you can validate whether input string is accepted by automata or not.
Can we do the reverse ?
I am looking for solution which generates few possible inputs (not all) accepted by automata(NFA/DFA).
One of the Brute-force approach can be to randomly ... |
These two seem very similar and have almost an identical structure. What's the difference? What are the time complexities for different operations of each?
|
I want to prove that Mixed Quantified Horn SAT is a PSPACE-complete problem. I have proved that it is PSPACE-hard. How can I prove that it is in PSPACE?
My study:
To prove QSAT to be in PSPACE: Generate a boolean tree or circuit and evaluated it in O(n) space.
Similarly, it has been done for the "Geography " problem ... |
This figure says according to moore's law number of transistors doubles about two years. but clock speed, power flattening after given stage. can anyone describe the reasons this flattening in clock-speed. Why can't we increase the clock speed more and more?
|
So, I was analyzing the Calibron 12 puzzle and to me it looks like a bin-packing problem. Is this puzzle actually a bin-packing problem and thus NP-hard for the perfect solution?
Basically, you can make your own calibron 12-ish puzzle by doing the following:
Take a rectangular piece of wood. Cut the wood into randoml... |
I'm looking for a proof to the claim stated in the title:
if $L\in NP\cap Co-NP$ is $NP$-Hard, then $NP=Co-NP$.
I read the proof from my professor's recitation, but couldn't understand it, and I was hoping to find more easy-to-understand version of that proof.
It goes something like that:
Let $L\in NP\cap Co-NP$ be an ... |
I came across a proof that an AVL tree has $O(\log n)$ height and there's one step which I do not understand.
Let $N_h$ represent the minimum number of nodes that can form an AVL tree of height $h$. Since we're looking for the minimum number of nodes, let its children's number of nodes be $N_{h-1}$ and $N_{h-2}$.
Proof... |
I have pairs of "similar" values $(x_i, y_i)$ drawn from a space $x_i, y_i \in S$, and want to train a neural network $N$ such that $N(x_i)$ would be "close" to $N(y_i)$ for all $i$, yet, to make it useful, the overall image of $N$ would be as spread apart as possible. Note that the training data says which values are ... |
I read Computational Complexity of interacting electrons
and fundamental limitations of Density Functional Theory. In appendix, it is claimed that
In the following, we show that approximating the
ground state energy using the Hartree-Fock method is
an NP-complete problem
As far as I know, if a problem being NP-... |
I have an ordered set of $M$ software modules compiled together. The interaction of some $N$-tuple of these modules is causing a bug when the program is run.
I can run the program with any desired subset of the modules enabled/disabled, so I can test the program by running it with a certain subset of modules enabled a... |
In a sensor network graph $G = (V,E)$
$V = \{1,2,...,n\}$ is the set of sensors and the edge $(i,j)$ denotes that sensor $i$ and sensor $j$ are inside each other's sensing range. The weight of that edge denotes the Euclidean distance between the corresponding sensors.
The problem is in 2D.
Our goal is to fix the positi... |
My question is the following: How to calculate the regret in practice?
I am trying to implement the regret matching algorithm but I do not understand how to do it.
First, I have $n$ players with the joint action space $\mathcal{A}=\{a_0, a_1,\cdots,a_m\}^n.$
Then, I fix some period $T$. The action set $A^t\in\mathcal{... |
I've found many articles describing iterative procedures to reach Byzantine agreement on a graph (for instance http://www.crhc.illinois.edu/wireless/papers/icdcn14-vaidya.pdf or http://arxiv.org/pdf/1203.1888v1.pdf) but they all assume that a fraction of the peers aren't faulty or malicious.
Are there procedures to rea... |
Are there any tutorials on YouTube or good text tutorials on designing expanding opcodes? I always make mistakes on switching from one line to another and "counting" in binary. I pretty much know how to design them, but I don't really understand it and I make so many mistakes. I also don't have any examples to go by an... |
From Wikipedia,
a finite matroid $M$ is defined to be $(E,F)$, where $E$ is a finite set and $F$ is a family of subsets of $E$, so that it satisfies
either nonempty, the hereditary property, and the augmentation property:
or an accessible system, the augmentation property, and the interval property without lower b... |
Is there an efficient way to find the longest path between any two nodes in a tree. Given that edges can have negative weights. I know about the diameter problem which finds the longest path in a graph with edge weights 1 but that won't work here.
All I can think of is going for a $O(N^2)$ approach with LCA but thats a... |
Using the Earley vector as a recognizer is quite straightforward: when the end of the string is reached, you just have to check for a completed axiomatic production started at position 0. If you have at least one, then the string is accepted.
Using the Earley vector to reconstruct the parsing tree(s) is less obvious. A... |
I have two line segments $[(x_1, y_1),(x_2, y_2)] $ and $[(x_3, y_3),(x_4, y_4)] $ and I want to know if they intersect.
My current algorithm tries the following:
the line $[(x_1, y_1),(x_2, y_2)] $ is determined by
$\boxed{f(x,y) = \frac{y - y_1}{x - x_1} - \frac{y_2 - y_1}{x_2 - x_1} = 0}$.
I reasoned that if $y =... |
The title says it all: I have seen three functions so far, that seem to be the same / similar:
error function
criterion function
cost function
objective function
I am currently working on classification problems.
$$E(W) = \frac{1}{2} \sum_{x \in E}(t_x-o(x))^2$$
where $W$ are the weights, $E$ is the evaluation set, ... |
I'm trying to do a homework problem which references "disruption" in Genetic Algorithms.
True or false? For 1-point and 2-point crossover, the schemata
which have bits that are close together on the string encoding
are more likely to be disrupted by crossover.
I think that it is referring to is th... |
Given flat data like this:
01001, Butter, salted
01002, Butter, whipped, with salt
01145, Butter, without salt
04601, Butter, light, stick, with salt
04602, Butter, light, stick, without salt
What's the best approach to convert into this:
Butter (01001, 01002, 01145, 04601, 04602) -> salted (01001)
... |
Assumptions:
given a graph with N nodes, and two specific nodes A and B
the graph is undirected and no edge has a negative cost
there exists at least one Hamiltonian path with A and B as an end points
Is there a way to find the shortest path from A to B that passes through all the other points?
Note: I'm only conce... |
I'm a beginner in the field of pattern recognition and computer vision. I'm working on a project right now to classify t-shirt patterns into three categories i.e. solids, stripes and checks. I have close up training images of the t-shirt images. A sample shirt image looks like this
I have looked at a bank of gabor fi... |
we learned that for every type 2 grammar G exists a PDA A with L(A) = L(G). But does for every type 3 grammar G exist a PDA A_G with L(A_G) = L(G)? I think it does, because type 2 grammar is a subset of type 3 grammar. Am I wrong?
|
This problem came up in a graph network routing context, it can be expressed as follows:
Let $n, m > 0$ be integers. Find any smallest list of positive integers $\langle a_1, \cdots, a_k \rangle$ such that:
$$1 + \sum_{i = 1}^k \prod_{j = 1}^i a_j = n$$
With the added condition that $a_i \leq m$ for all $1 \leq i \leq... |
I have a intuitive question on the convergence of $Q$- learning. In $Q$ learning for each step a $Q$- value is learned for the state-action pair where the action is selected according to the $\epsilon$-greedy policy determined by $Q$ values.
Now my question is due to $\epsilon$-greedy policy (i.e. due to exploration) ... |
How do you most efficiently combine boolean functions with a large number of variables using AND, OR, and NOT? The most up-to-date work that I can find on this subject is about 20 years old (Efficient data structures for Boolean functions). Which search terms should I be using to explore this question?
Edit:
I am sta... |
I'm looking at a proof that says that:
If $M_1=(Q_1, \Sigma , q_1, A_1, \delta)$ and $M_2=(Q_2, \Sigma , q_2, A_2, \delta)$ are two finite automata(FA) then $M=M_1 \cup M_2$ is also an FA. We define $M=(Q, \Sigma , q, A, \delta)$ where $Q=Q_1 \times Q_2$, $q_0=(q_1,q_2)$ and $\delta((p,q),\sigma)=(\delta(p,\sigma),\del... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.