instruction stringlengths 35 29.1k |
|---|
I apologize, but even after these two other posts: here and here
I'm still having trouble understanding oracle TMs and relativization. This question comes at the issue from a different angle:
Why are non-relativizing proofs considered more valid than arguments based on relativized results?
For example, we have a non... |
I am trying to solve this question which appeared in previous exam paper
Can someone help me what i am failing to understand
For languages $A$ and $B$ define $A \div B = \{x \in \Sigma^{\ast} : xy \in A \text{ for all } y \in B\}$.
If $R$ is regular and $L$ is any language, is it always the case that $R\div L$ is reg... |
Assume we are given two vectors $A,B$ that each contains $c$ numbers: $A=[a_i>0]_{1 \times c}$. We want to see the weighted summation of which one is larger. In other words, given two vectors $A$ and $B$:
$$ws(A) = \sum_{1 \leq i \leq c}{i.a_i}, ~~~~ws(B) = \sum_{1 \leq i \leq c}{i.b_i}$$
we want to know $ws(A)>ws(B)?$... |
Bloom Filters have false positive rate of $\epsilon = 2^{-k}$ with a data structure of size $m = n\log (\frac{1}{\epsilon})\ln 2$. Suppose you fix the number of hash functions at $k \le 3$. What is the correct tradeoff between space ($m$) and false positive rate ($\epsilon$) for $k = 1,2,3$? To get a false positive ra... |
I want to prove that the time complexity of an algorithm is polylogarithmic in the scale of input.
The recurrence relation of this algorithm is $T(2n) \leq T(n) + T(n^a)$, where $a\in(0,1)$.
It seems that $T(n) \leq \log^{\beta}{n}$ for some $\beta$ depends on $a$.
But I can't prove this inequality. How to solve this r... |
This is an exercise problem (Ex.3) from the excellent lecture note by Jeff Erickson Lecture 20: Minimum Spanning Trees [Fa’13]
.
Prove that an edge-weighted graph $G$ has a unique minimum spanning tree if and only if the
following conditions hold
For any partition of the vertices of $G$ into two subsets, the minim... |
I have to prove the following assertion: given a tournament graph with $n$ vertices, $n\geq 5$, there can be made an arrangement of the arcs such that between any two vertices exists at least one way of length at most $2$. Any ideas? Thank you!
|
Is there a minimum limit to a pool (population) size when using the genetic algorithm to solve an optimization problem? For example a population of size 2.
|
Is the following language:
$\qquad\displaystyle L= \{\langle M\rangle \mid M \text{ is a TM }, |L(M)|>1\}$
Turing-decidable?
I think it isn't, because if a Turing machine T can decide L, then T can say if M stops or not (impossible this is the halting problem). So T accepts when M stops and accepts the string (with a... |
An instance of $M$ is a collection of sets $S_1, \dots, S_m$ and a bound $B$. A solution is a set $T$ containing $B$ distinct items, such that
each item in $T$ belongs to some $S_i$, and
each $S_i$ contains at most one item in $T$.
Show that $M$ is NP-complete by giving a reduction $\mathrm{IS} \to M$
Any help on h... |
So this sounds like this might lead to an undecidable theory but I thought I would give it a try and ask about it after I found nothing on the subject. I am somewhat interested in finding functions which are counter examples to predicates (or solutions to the inverse rather). I would like to restrict the functions to s... |
Write a regular expression for all the strings in which every pair of adjacent zeros appears before any pair of adjacent ones. The answer given in the book is:
$$(0+10)^*(00)(1+01)^*(11)(0+10)^*(1+01)^*$$
Is that correct? I fail to see how could you get a string like 10011, but it fits description. I mean even a string... |
Consider the low-rank matrix completion problem:
Given an integer $k$ and a subset of entries of some $n \times n$ matrix, fill in the rest of the entries so that the resulting matrix has rank at most $k$.
This problem is clearly in NP, since the set of additional entries is the required certificate. Therefore, it c... |
Let's denote a total increasing computable function $f: \mathbb{N} \rightarrow \mathbb{N}$. How to prove that the plot of $f$ is a decidable subset of $ \mathbb{N} \times \mathbb{N}$?
My solution:
1) First of all, we consider a plot as a $X \times Y = \{ (x, y) | x, y \in X, Y \} \subset \mathbb{N} \times \mathbb{N} $.... |
In the following, we consider binary trees where only the leaves have weights.
Let $T$ be a binary tree and $W(T)$ be the sum of the weights of its leaves.
Let $T.l$ and $T.r$ be the left child and right child respectively.
We define the imbalance $I(T)$ of a binary tree $T$ as follows:
$$I(T) = \begin{cases}
0 & siz... |
How should I think to choose the potential function in the amortized analysis?
More specifically are there techniques or tips for choosing optimal or good potential functions?
|
I am trying to generate a transition graph for a turing machine that accepts the languages of all strings that do not contain the substring $bbb$ with the input alphabet $\Sigma = \{a, b\}$.
When I implement this graph in JFLAP, I'm receiving an error that there are transitions out of final states. Is it OK to constru... |
Although I have trouble understanding oracle TMs, I appreciate that non-relativizing techniques will be needed to resolve P vs. NP (as well as most other open problems in TCS). However, one of the techniques I've read about that does not relativize is using the fact that all of a Turing machine's computation is local ... |
I'm reading Sipser's Introduction to the Theory of Computation, and I'm reading about space-constructible functions. He gives the following definition:
A function $f: \mathbb{N} \to \mathbb{N}$ is space constructible if the function that maps the string $1^n$ to the binary representation of $f(n)$ is computable in spa... |
I'm studying for a final and the professor gave us a practice problem to prepare, but it's extremely difficult and I've been hacking at it for hours with no luck. Here it is:
It's driving me bonkers so I hope somebody out there can show me how it's done!
Thanks
|
I'm interested in such problem. I have a set of $n$ tasks ${T_i}$ and directed acyclic graph, which nodes correspond to tasks and edges correspond to order of execution two tasks. In other words if I have edge $T_i \rightarrow T_j$ it means that task $T_i$ should be executed in day which strictly before day of executio... |
I watched lecture from MIT about Skip List. Overall, I understand the material, but one thing. What is "with-high-probability"? I really don't get it at all. I've seen the lecture notes but still didn't get it.
They just said, "Event $E$ occurs with high probability (w.h.p.) if, for any $\alpha\geq1$, there is an appr... |
I understand without memoization it is going to be $O(3^{\max\,\{m,n\}})$ because every call results in extra three calls: thus we end up having a call tree with three children for each node, with height $\max\,\{m,n\}$, m and n being lengths of two given strings.
However I am not getting why it is $O(mn)$ after memoiz... |
Given a random directed Graph G:
$$
G=(V,E) \\
\lvert V \rvert = n , \lvert E \rvert = k
$$
where for each vertex, either:
$$
d_{incoming}(v) = 1 , d_{outgoing}(v) = 1
$$
meaning - for each incoming (outgoing) edge to vertex v, there is also an outgoing (incoming) edge from vertex v.
Or:
$$
d(v) = 0
$$
What is the ... |
If I have an ambiguous grammar G and its disambiguated version D.
Then which one is true L(D) ⊂ L(G) , L(G) ⊂ L(D) or L(G)=L(D)?
As I tried with some examples to transform a grammar to it unambiguous version but i found that both are equivalent.
I mean is there a specific set relation between both. Please help me and... |
This is a homework. I'd appreciate if you didn't give away answer straightaway but instead pointed me to the right direction.
From huge majority of sources the definition of $\mathcal{O}(n)$ is:
$f, g : N \to R^+$
$f \in \mathcal{O}(g) \Leftrightarrow \exists{c,n_0} \in N \> \forall n > n_0 : f(n) \leq c\cdot g(n)$
but... |
If we take angle names as shown on the Bloch sphere below and a typical qubit representation written as $\cos(\theta/2)|0\rangle + \mathrm{e}^{-\mathrm{i}\phi}\sin(\theta/2)|1\rangle$, why do we divide $\theta$ by $2$ in the cosine and sine parameters?
|
Are all Morse code strings uniquely decipherable? Without the spaces,
......-...-..---.-----.-..-..-..
could be Hello World but perhaps the first letter is a 5 -- in fact it looks very unlikely an arbitrary sequence of dots and dashes should have a unique translation.
One might possibly use the Kraft inequality but... |
Lambda calculus serves as a foundation for all sorts of functional languages and its various extensions are compiler targets for languages like Haskell, ML, etc. So what is the equivalent for object oriented languages? Is there a minimal object calculus that serves as the foundation for object oriented languages?
|
How is the parity function defined in standard way if inputs are in $\{-1,+1\}$ instead of $\{0,1\}$. For $\{0,1\}$, parity is $x_1\oplus x_2\oplus\cdots\oplus x_{n-1}\oplus x_n$. I am looking for how is inner product mod $2$ defined if inputs are in $\{-1,+1\}$. Is it $\frac{1}{4}\sum_i(x_i+1)(y_i+1)\mod 2$ or just $\... |
Oracles do not exist. If one did exist, then you would replace them with a subroutine with computational requirements and you would no longer need an "Oracle". Thus, Oracles do not exist almost by definition. I don't understand how one can make an mathematical argument based on something that does not exist (excludin... |
Reading about superdense coding I came upon a calculation I can not understand.
We have an EPR entangled pair of qubits $\frac{1}{\sqrt2}(|00\rangle + |11\rangle)$ and we want to apply a Pauli X gate to the first of the entangled qubits. On wikipedia, there is an example showing that such an operation would lead to the... |
The complexity class PP can be defined in many ways, one of which involves randomness - a language $L$ is in PP if there is a polynomial-time, randomized TM $M$ such that $w \in L$ if and only if the probability that $M$ accepts $w$ is greater than 1/2.
I'm curious whether there is a name for the complexity class that ... |
I am trying to rank $\log n $, $\log_{10} n $, $n \log n $, $n \log n^2 $, $n^{0.8}$, $\sqrt{n}$ in increasing asymptotic complexity. $\log n $ has base 2 unless specified otherwise.
The answer I have is $\log_{10} n $, $\log n $, $\sqrt{n}$, $n^{0.8}$, $n \log n$, $n \log n^2$,
Is this right? And possibly explain the ... |
I learned from this post that ${\sf DTIME}^{\text{EXP}}(n^k) \neq \text{EXP}$ for a fixed $k$ for otherwise the Time Hierarchy Theorem would fail in that relativized world. However, is it possible to prove that no oracles exist in which the Time Hierarchy Theorem fails? Or is it just that we have not been able to dis... |
Can anyone give me a proof as to why
Any range over a unviverse {1...n} can be reduced to at most $2log_2n$
disjoint dyadic ranges?
Where a dyadic range is a range of the form $[x2^y+1....(x+1)2^y]$.
This is in reference to the method for answering range queries with a Count-Min Sketch as mentioned in the origin... |
I have googled endlessly, and I cannot find it. Can anyone point me to a reference that gives a way to calculate the number of parameters in an undirected Graphical Model?
Adapting from the similar formula for Bayes nets, this is my guess: if we have variables $1 \ldots k$ where variable $i$ has $d_i$ possible values, ... |
I got this question for homework:
Decide if this language is context free or not:
$\qquad \{x@1^m: x \in \left\{0,1\right\}^*, m \in \mathbb{N}, x_m = 1\}$.
Intuitively I think it's not context-free because a $PDA$ can't remember the places of all the $1$'s in $x$.
I tried using the pumping lemma but couldn't find th... |
Given a sorted array
1 2 3 4 5 6 7 8
and an operation that takes the N-th element out the array and puts it in front (or rotates the first N elements to the right by one), leaving the following for N = 3
4 1 2 3 5 6 7 8
I need to be able to figure out the state of the array, after performing an arbitrary number of th... |
Do you know any easy to implement algorithm for constructing a Voronoi diagram from a given set of points on a surface, using some different metric (taxicab, for instance)?
It can be some modification of Fortune's algorithm.
|
I have two langages $ A, B \in \mathrm{coRE}$. How can I prove that $ A \triangle B= ( A - B) \cup (B - A)$ is also in $\mathrm{coRE}\,$?
|
Alan Kay stated in one of his talks that there was a paper in 1968 that listen at least 3000 programming languages that were known in the year 1968.
What would be an unsientific but "educated guess" on the number of programming languages that existed up till now?
(I.e., this number would assume that if a programming la... |
If P = NP, why does P = NP also then equal NP-Complete?
I.e. Why would it then be the case that P = NP = NP-Complete?
Assuming P != NP , there were problems in NP not in NP - Complete. When P = NP, all NP problems are actually now P.
Shouldn't there still be P = NP problems not in NP - Complete?
|
I have been at this for hours. The question is:
Prove that the language $A = \{0^kx \mid k > 0, x \in \{0,1\}^*, \text{ and } \#(0,x) \geq k\}$ is regular,
where $\#(n, x)$ denotes the number of $n$ in string $x$.
So far, I have used the pumping lemma to determine that the opposite is not regular, i.e. that if $\#(0,... |
I am studying the basics of Computation Theory and I came up with an example I can't understand.
Let's have a language $L = \{\langle M\rangle \mid L(M) = \Sigma^{\ast} \}$, so $L$ contains codes of all Turing machines which generate all the words from $\Sigma^{\ast}$. It's been said that we can reduce $H$ (the halting... |
Currently, I'm trying to understand the definition and notion of MaxSNP and MaxSNP-hardness. I see that several combinatorical problems such as Max-3SAT are in MaxSNP since one can easily express them as first order predicates quantified over the set of all structures.
The question is: Is the definition of MaxSNP appli... |
Given a polynomial $a(x)$ of degree at most $242$ over $\mathbb{Z}_{487}$, I'd like to choose distinct values $x_0, x_1, . . . , x_{242} ∈ \mathbb{Z}_{487}$, such that I'll be able to calculate $a(x_j )$ for all $j = 0, . . . , 242$ by calculating three polynomials $a
_0 (x), a_1(x), a_2(x)$ of degree at most $80$ for ... |
I encountered this problem.
Let $A$ , $B$ , $C$ be disjoint sets $(A\cap B = B\cap C = A\cap C = \emptyset)$. The $f_1, f_2$ and $f_3$ are partially computable functions that are defined as follow:
$$
f_1(x) =
\begin{cases}
1 & x \in A\cup B \\
2 & x \in C \\
\uparrow & \text{otherwise.}
\end{cases}
$$
$$
f_2(x) =
... |
Let's say we have a Turing machine which head can only write 1 or blank to the tape (although it can read all symbols from any input alphabet correctly). Can we operate with it on any input?
My approach was that we can rewrite our input tape with unary coding and symbol-codings separated with blanks. If we had, for exa... |
Say I have a set of 3-CNF clauses
$$\mathcal{S} = \{ x_1 \vee x_2 \vee \bar{x_3}, ~~x_4 \vee x_5 \vee x_6\}$$
where $\bar{x}$ is the negation of $x$. Each variable range over $\mathbb{Z}^2$.
How many satisfying assginments are there for $S$? In general, how many satisfying assignments are there for $S$ is the size of $... |
In the Bellman–Ford algorithm, what is the practical meaning of
having a negative path between routers?
I have tried searching the net but didn't find any data
thanks
Eli
|
I found a statement (without explanation) that a language $A = 0^*$ is decidable. How is that possible? I mean, how would we build a Turing machine that would accept (or reject) a possibly infinite string of 0's? I also thought that maybe we could create an enumerator that would create all words from $0^*$ with increas... |
In operating systems, Is a transaction a process? Are they the same
concept?
Does a transaction have the same meaning in database management
systems, as in OS?
A database book says
A transaction is defined as any one execution of a user program in a DBMS and differs from an execution of a program outside the DBMS
... |
I hope this question isn't too 'soft' for here. It's been a while $\tiny{\text{an eternity for some people's standards}}$ since I've touched this stuff, and I had a convincing explanation to this question eight minutes ago but must have misplaced it, so please help me find it again:
Most classical sorting algorithms o... |
My professor gave us an old exam to look over for our final exam and I am having a hard time understanding the push down automata problem he gave. In the problem it says:
Let $\Sigma = \{0,1\}$ and $B$ is the collection of all strings that contain at least one $1$ in the second half. To state it more precisely: $B=\{u... |
My question in response to this answer: what would the finite automata look like for $L_1$ and $L_0$ in the answer?
I get how the languages are formed; however, since $M_L$ cannot remember how many times it has looped, how does $q$ branch off (if it does) into the two different DFAs for $L_0$ and $L_1$?
Definitions:
... |
The number of possible inversions in an array is bounded by $\binom{n}{2}$, i.e $\frac{n(n-1)}{2} \in O(n^2)$. How it is possible to calculate $O(n^2)$ results in $O(n\log n)$ time using something like modified merge sort? (sample algo : http://www.geeksforgeeks.org/counting-inversions/).
|
The algorithm (called as rmax(1,n)) finds the maximum of a list of numbers contained in an array S[1..n].
rmax(x, y)
// return maximum in S[x..y]
if y − x ≤ 1
then return maximum(S[x], S[y])
else max1 ← rmax(x, [x+y]/2)
max2 ← rmax([x+y]/2 + 1, y)
return maximum(max1, max2)
How would I go about arguing that ... |
I am trying to solve the following problem:
For each Turing machine $M_k$ and each string $x$ in $\{$0,1$\}$$^\ast$ let
$time_k(x)$ = $\{$the number of steps executed by $M_k(x)$ if $M_k(x)$$\downarrow$ (halts), and $\infty$ if $M_k(x)$$\uparrow$ (does not halt)$\}$
Prove that the function $T$: $\mathbb{N}$ $\rightarr... |
I am studying CLR Parser and have a query about Grammar. If a Grammar can't be parsed using CLR(1) Parser ( i.e LR(1)) parser is it necessarily ambiguous?
Is it possible that a grammar which is unambiguous can't be parsed using CLR Parser?
|
To prove that some decision problem $A$ is NP-complete, my understanding is that it suffices to show that the problem is in NP (i.e. that one can verify or reject all statements in polynomial time), and to demonstrate that some known NP-complete problem $B$ can be reduced to $A$ (such that we can write $B \leq_p A$), b... |
Define the language
$\qquad R = \{x \in \{0,1\}^\ast \mid C(x) \ge |x| \}$
where $C(x)$ is the Kolmorgorov Complexity of $x$ and $|x|$ denotes the length of $x$.
Prove that $R$ is co-recursively enumerable (co-r.e.).
So far, I have the following:
In order to prove the above, we need to show
$\qquad R^c$ = $\{x \in \... |
Suppose that we have a number $x \in \mathbb{Z}^+$.
I am seeking an algorithm to find three numbers $a, b, c \in \mathbb{Z}^+$ such that $a \times b \times c = x$ and $a + b + c$ is minimum.
Is this problem a variant of subset sum? Am I stuck with an exponential time algorithm?
Examples
$32 = 4 \times 4 \times 2$
$36 =... |
I'm using the Random Forest algorithm for classification. I have some variable to use as features in input, but I was wondering if I can use the output of the classification itself as input.
Suppose, for example, that I want to classify people in two categories : "criminal" or "honest". In order to do that, I have a ve... |
If I have a directed graph with $n$ weighted edges, is it possible to prove that Dijkstra's single-source shortest path algorithm takes $\Omega(n\log n)$ in the worst case?
I know heaps reduce Dijkstra's algorithm to $Ο(m \log n)$ and can be stored in an array.
Rooted, binary, as complete as possible tree with all node... |
To get a lower bound of nlogn I am taking the sorting algorithm, which is well known to have that, and transforming/adapting it to Dijkstra's single source shortest path problem.
I know you need to do create a graph based on the numeric values and that Dijkstra will traverse it in order, any help with the rest and how ... |
I am using a Finite Difference scheme to solve a simple PDE in conserved form:
$$\partial_t u = \partial_x (\partial_x u +au\partial_x u) = (1+a)\partial_x^2u +a(\partial_x u)^2 $$
$$\frac{u_n+1,j - u_n,j}{dt} = (1+a) \frac{u_n+1,j+1 - 2 u_n+1,j + u_n+1,j-1}{dx^2} + a \bigg(\frac{u_n,j+1-u_n,j-1}{2 dx}\bigg)^2$$
As you... |
Are there program systems that can discover the need of routines - and then design them, code them and use them as parts of the system?
Any group of humans trying to pursue an activity has to develop in a developed system, to solve their problems by formulating the issues, search for knowledge and methods, to be teste... |
If I'm correct, some boolean formulas in CNF require exponential size when being converted to an equivalent DNF version (and vice versa).
But what is an example of such a formula (and is there a general way to capture their structure - if the first question is too easy, and I'm just too stupid to see it)?
In this pos... |
I'm trying to find a family of hash functions mapping $\{1, 2, ..., 2^n\}$ to $\{0, 1\}$ that is 2-wise independent but not 3-wise independent. Any ideas on that?
I know two 2-wise independent families but I think they are 3-wise independent as well:
1) Let x be a vector in $\{0, 1\}^n$. The hash functions are $h_{a, b... |
With holiday season coming up I decided to make some cinnamon stars. That was fun (and the result tasty), but my inner nerd cringed when I put the first tray of stars in the box and they would not fit in one layer:
Almost! Is there a way they could have fit? How well can we tile stars, anyway? Given that these are reg... |
What is the price paid for the vast virtual address space provided to
programmers for their applications? Or in other words, what is the overhead due to virtual memory?
Is there any other overhead from implementing virtual memory, beyond memory consumed by the kernel?
|
When I looked on wikipedia, all the sorting algorithms listed have worst case $O(n^2)$.
My question is suppose we are given a list of integers, each of which is in some fixed, finite set (i.e. $\{-1, 0, 1\}$). Does there exist a sorting algorithm that sorts this list in $O(n)$ time?
|
I'm looking at a problem in the book Introduction to Algorithms by Cormen et al. It says that if we are given a random number generator rand() which satisfies the distribution:
$P(X = 0) = p,\;\;P(X=1)=1-p,\;\;0<p<1$,
then we can use rand() as a subroutine to create a unbiased sampler from the set {0,1}. My idea for th... |
How can I construct a Turing Machine that accepts the language
L = <'M'> which is an encoding of a Turing Machine M?
|
This is a question on a practice final.
Problem A is polynomially reducible to problem B. Which of the following
statements is correct?
I. If problem A is solvable in a polynomial time then problem B is solvable in polynomial time.
II. If problem A is NP-complete then problem B is NP-complete.
III. If problem A is ... |
I have a list of length N, and I have M workers. I want each of my workers to independently select a contiguous section of the list, with the property that every element of my list is selected by exactly one worker.
Using the SQL notion of offset and limit, I have an approximation:
offset = (worker_number / total_work... |
I have the following problem for homework:
Given an array of the form $[m+1, m+2,..., n, 1, 2,..., m]$ as an input,
analyze quicksort's run time complexity.
TIP: check for $m > \frac{n}{2}$ and $m \le \frac{n}{2}$
The quicksort algorithm is the deterministic version from CLRS.
I have a sense of what's going on but ... |
Are there any standard Prolog knowledge bases available anywhere that have the same purpose as Cyc, namely to encode generally accepted common sense and human knowledge?
Typically containing generally accepted facts such as the ones given at
http://www.cs.utsa.edu/~wagner/CS1023/readings/prolog.html
|
I am having a hard time understanding the numbers of probing which might occur due to using different collision prevention method such as separate chaining, Linear Probing, double probing, which is given here.
Let $\alpha = N/M$ (the load factor: average number of keys per array index). Analysis is probabilistic, rath... |
I know that I can build a non-deterministic algorithm with a CHOICE function that verifies if a value x is in an array in O(1) time complexity.
The usual algorithm to do that is
find (A, x)
j = CHOICE(1, .. , A.length)
if A[j] == x
return VALID
return FAIL
But, it works because we are able to acces... |
what is the general name of a problems where learning agent observe new data as a learning goes on. For example when playing platformer games one must incrementally learn new level areas and states while remembering all previous states so as to successfully proceed through the level.
|
As the title states, why are long block lengths commonly assumed or used in channel coding proofs?
|
Is Morse code without spaces uniquely decipherable?
Discusses how Morse code isn't very clear without the third (usually)
unseen element, the space.
Is there a (historical?) human-optimised (vs. say, ascii or something)
binary (on vs. off) code for transmitting information?
After sleeping on it, I recall one code used... |
Wikipedia's graph isomorphism problem page would seem to indicate that, no, it has not been solved. However, a friend of mine pointed out A Polynomial Time Algorithm for Graph Isomorphism . I am not sophisticated enough to follow the reasoning in the paper.
I do have my own very rough attempt at a polynomial time algor... |
So I'm reviewing my Computability notes for my final, and I understand how reduction arguments work, but I'm having trouble framing one for the following Turing machine: Undecidable TM = { ⟨M⟩ | L(M) is undecidable }. (in words, a Turing machine that accepts encodings of machines that accept undecidable languages.)
I'm... |
Can I utilize the backpropagation algorithm in a layered, feed-forward ANN in instances where there are multiple output neurons? If so, how? Links to (somewhat) comprehensible resources would be greatly appreciated, if nothing else.
The background is that I'm working on a simple C program that can create, propagate, an... |
Is it possible to show particular classes of techniques (for instance dynamic programming) cannot produce polynomial time algorithms to any NP-complete problem?
|
Let $L_4$ $\subseteq$ {0,1}$^*$ be the set of all palindromes whose first character is 1. Give a context-free grammar for $L_4$.
I just wanted to check if my grammar is correct or not.
$$A \rightarrow 1B1$$
$$B \rightarrow 0B0\;|\;1B\;|\;0B\;|\;A\;|\;\epsilon$$
|
I am a computer engineering student and trying to get the idea behind all these Artificial Intelligence Concepts and applications. I know little theoretically about machine learning and some high level brief introduction of artificial intelligence as a whole and neural network. What i am interested in is knowing the si... |
I am having some difficulties splaying the element 4 to the root.
Considering the following splay tree.
0
\
1
\
2
\
3
\
4
Could anyone show me the steps how to get the 4 to the root?
|
I was just curious as to if there are (or could by) any hash values that are impossible to compute due to the implementation of the algorithm. For example, SHA-256 produces a value that is 256-bits long. Technically, there are $2^{256}$ possible hash values that can be computed. Is it possible that a specific sequence ... |
I've been having trouble understanding a unification algorithm for first order logic, as I don't know what a compound expression is. I googled it, but found nothing relevant. I also don't know what a list means in this context. A list of what?
Edit: I think I've cleared up with compound expressions are and what lists ... |
I got some problems with building a set, which should looks like this: $S = A\times B \subset N \times N $, where $S$ is decidable but $A$ is undecidable.
Could somebody give me a clue how to actually do this?
|
I've got the following problem:
Tommy has a toy consisting of wooden posts and in each move he can either hit one post (which decreases its height by 1) or pull out a post (which increases its height by one). Tommy wants to set all poles to the same height but he must do that using minimal ammount of moves. How many mo... |
Is the following a valid $LL(1)$ grammar:
$ \begin{align} S &\rightarrow L \$ \\ L &\rightarrow M L_2 \\ L_2
&\rightarrow \underline{::} L \\ L_2 &\rightarrow \epsilon \\ M
&\rightarrow \underline{id} R \\ R &\rightarrow \underline{(} R_2 \\
R_2 &\rightarrow M \underline{)} \\ R_2 &\rightarrow \underline{)}
\end{a... |
In B. Pierce's book "Types and Programming Languages", he talks about the size of types (see pictures below).
I searched the book for a definition but could not find one. I only found a definition for the size of terms, but not for the size of types.
Could someone please explain what Pierce means by the expression "$si... |
This question came up in my operating systems class in a section about file system cache and RAID.
I'm speculating that the answer is that writes are seen more at the physical disk level because an efficient cache reduces the need to read from the disk.
Can someone confirm or correct this?
|
Every single NFA has an equivalent DFA representation so that every language recognized by NFA is recognized by the DFA, but is it also true that the language recognized by NFA is recognized by a push down automata and a Turing machine?
|
I don't understand what it means for A to be polynomial time reducible to B. I'm guessing is that we can revised the algorithm some how such that it becomes B, where B is a polynomial time algorithm.
Can someone point out if I have this completely wrong?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.