instruction stringlengths 35 29.1k |
|---|
Im studying some properties of Boolean Algebra and found the Operation Linkage Laws.
Im not able to understand how this laws are possible, and the remark on the proof is not really clear for me. Can any one show me the proofs of this laws or share any resources where I can find a more detailed proof of the laws?
|
I have a an assignment to make a classifier for hand-written numbers with a limited data set of 500 samples.
I am currently using python, I tried sklearn SVC with linear classifier and I got an accuracy of about 80%. I also tried KNN with 13 neighbors and got a max of 81% accuracy.
I need to get to at least 90% accurac... |
A spanning tree chosen randomly from among all the spanning trees with equal probability is called a uniform spanning tree.
A model for generating spanning trees randomly but not uniformly is the random minimum spanning tree. In this model, the edges of the graph are assigned random weights and then the minimum spanni... |
I want to try and make a program where I remove the punctuation from a block of text and it then inputs it in the correct places.
I have started with a simpler element of just using text and spaces, no commas, full stops etc.
The first angle I have been taking this is with machine learning, neural networks and simpler ... |
In a book dedicated to distributed algorithms, I found the following definition - potential causality diagram is consistent with happens before diagram if potential causality relation between system events is a subset of happens-before relation. So far so good.
But then I have read following claim potential causality d... |
Given a directed multigraph with $n$ groups of edges and without cycles, can we find the path that minimizes the largest of the sum of weights of each group? All weights are non-negative integers in the range 0..30,000.
Let me put an example for $n=2$ groups to understand it better:
If we were to find the shortest pa... |
Let G = (V, E) be a graph which is hierarchical in the sense that its vertices are arranged in levels/layers (say 1 to k) and an edge can only be from a vertex at level i to a vertex at level i+1. Vertices at level 1 and k are called the roots and the leaves, respectively. The problem is to find all descendant leaves o... |
How can I show that the following language is neither semi decidable nor co-semi decidable without using Rice's Theorem?
Further for the following language, how would I show that it IS co-semi decidable but not decidable for |Σ| > 1
|
I'm reading a theorem about existence of a simple set.
The definition of an immune set can be found from here
A set ${\displaystyle I\subseteq \mathbb {N} }$ is called immune if ${\displaystyle I}$ is infinite, but for every index ${\displaystyle e}$, we have ${\displaystyle W_{e}{\text{ infinite}}\implies W_{e}\not \s... |
Their are many rules of logics, predicate calculus, inferences and syllogisms which haunt me always. It feels better when I find some sensible name to particular rule which also gives me intuition about the meaning of the rule. Recently I came across some simple tautologies:
$((x \rightarrow y)\wedge(x \rightarrow \ne... |
Good day.
In an undirected graph, if edge(x,y) is in the graph, (y,x) is also there.
Considering that I use adjacency lists to implement my graph, should insert(graph,x,y) do nothing if graph already contains (y,x)?
Thank you.
|
From pg. 64 of Lambda Calculus and Combinators, the author formally and informally defines the notion of "decidability":
1 Formal Definition
Definition 5.4 A pair of sets $\mathcal{A}$, $\mathcal{B}$ of natural numbers is called recursively separable iff there is a
recursive total function $\phi$ whose only output-v... |
I'm studying the Principal Type (PT) Algorithm in Basic Simple Type Theory by J. Roger Hindley.
One step to find the PT of a term is the Unification of types. The Robinson's Unification Algorithm uses a comparison procedure like as follow:
Comparison Procedure
Given a pair $(u, v)$ of types, write $u$ and $v$ as symbol... |
I've read what a Turing machine and a UTM are, but I don't get the difference. What can a UTM do which a normal Turing machine can not?
|
Consider the following floating point Representation
Mantissa is pure fraction in signed magnitude form . What is the representation of the binary number 1111.1111 $\times 2^{2} $ in hexadecimal without Normalization .
My Approach
bias = 64
$(-1)^{S} (1.M)_{2} \times 2^{\text{E-bias}}$ This is normalized Representat... |
I've got a microprocessor and want to quickly identify the settings of my application (stored in some eeprom regions) via a fingerprint instead of having to dump the entire memory every time.
So I was going to compute a 32-bit hash from the few kbytes, but I am not sure which algorithm to use. It doesn't need to be cry... |
I am lost on this and we a restricted to using flex/lex regular expression. I can easily do this with a lookahead predicate but i'm not allowed to use those. The does not end in (0) part is simple enough to do, it the other part(must contain at least one (0), one (1) and one (2) is stumping me. Any help would be greatl... |
We know that regular expressions (RE) are implemented with finite automata (FA). In some language (like JavaScript) in RE there are features like 'capturing parenthesis' with 'backreferences':
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#special-capturing-parentheses
(x)
Matches 'x'... |
I know it has been shown that RNNs are Turing complete. So for any Turing machine, there exists a configuration of a RNN that is equivalent to it.
But I'm wondering, is all those configuration reachable through learning/training? i.e. For any Turing machine, does there exist a data set and a training process, which wil... |
Can a context-free grammar include "dead states" from an automaton, such as
$$G = \big(\{a, b, c\}, \{A, B, C\}, \{A\to aB, B\to b, B\to C, C\to cC\}, A\big)\,?$$
The production rules $B\to C$ and $C\to cC$ will loop forever and never generate a word. Is this allowed or MUST production rules end with an terminal at som... |
This is for homework so feel free to not give me an answer but steer me in the right direction.
The problem states:
Prove that $n^{1000000} = O(1.000001^n)$ using the formal definition of Big-O.
The definition of Big-O is:
$\hspace{2cm}T(n)=O(f(n)):\,\exists\;c\gt0\;$ and $\;n_0\ge0,\;$ such that $\;T(n)\le c\cdot ... |
I have followed some basic courses in Machine Learning at Computer Science Faculties, but I have found, and correct me if I am wrong, different perspectives or ways to tackle things down depending on the background of a lecturer. For example:
A statistician would use inferential statistics to tackle some subjects, suc... |
Suppose I train a random forests classifier on a monotone training set. Is the resulting classifier guaranteed to be a monotone function?
Suppose I apply the ID3 algorithm (the greedy algorithm) to learn a decision tree on a monotone training set. Is the resulting decision tree guaranteed to be a monotone function?
... |
The problem and solution of interest is described here: What does > mean in this TAOCP solution?
Can anyone explain following points in that solution:
How exactly we can build (x[i], x[i+2]) for 1 <= i <= N-2 ?
What exactly means "merge G with it"? Provide exact algorithm for merging these two files.
How steps 1-4 ar... |
Is it proven that quantum computation is no better at solving NP complete problems than classical computation or it's just believed?
|
Currently I am taking a computational geometry course and I have learnt that:
Orientation is formally defined as the sign of the determinant of the
points given in homoge- neous coordinates. For example, in the plane,
we have Orient(p,q,r) = determinant of the matrix:
1 ax ay
1 bx by
1 cx cy
What is the mathematical... |
The question is right there above.
|
If I have two matrices $A$ and $B$, of dimensions $1000\times2$ and $2\times1000$, respectively, and want to compute $(AB)^{5000}$, it's more efficient to first rewrite the expression as $A(BA)^{4999}B$ and only then evaluate numerically, because $AB$ is of dimension $1000\times1000$ but $BA$ is of dimension $2\times2$... |
I am aware that we can do set operations on them, and sets are fields. Are regular languages also mathematical fields?
|
To begin with: what I know of computer science is what friends have told me and what I've read on Wikipedia. Please correct me if I'm using some term wrongly, or if there is something I can clarify.
Let's say I have a directed graph. I want my computer to look at it, and see whether x > y, y > x, or if the relationship... |
I am reviewing for a test, and i am stuck on this question.
the problem is to show it is hard to approximate (for any constant) the following problem:
given m CNF formulas f1,..,fm over variables x1,..,xn find the assignment which maximizes the number of satisfied formulas.
I believe I need to reduce this problem to so... |
$T(n) = 4T(\sqrt n) + n$
First I substitute n = $2^k$:
$T(2^k) = 4T(2^{k/2}) + 2^k$
Now I rename the above as follows:
$S(k)=4S(k/2) + 2^k$
Now if I try to use tree method on this in the following way:
Work done at Level 1 = $2^k$
Work done at Level 2 = $2^{k/2} * 4$
Work done at Level 3 = $2^{k/4} * 16$
and so on.
We ... |
In the partition problem we want to partition a set $S$ of positive integers into two sets $S_{1}$ and $S_{2}$ such that the sum of the integers in the two sets is the same.
The optimization version of the problem is NP-Hard, in the following wikipedia page an 7/6 approximation algorithm is described. In that algorithm... |
I am currently studying hash tables in an introductory course to computer science. I was taught that hash table is a data structure that associates a key to an index (a hash table) and then to the value associated to the key.
I don't understand why the hash function doesn't directly associate the key to the value
|
I have a set $S$ of $N$ elements, and a set $\Sigma$ of $N$ subsets of $S$: $\sigma_0, \ldots, \sigma_{N - 1} \subset S$, each with $W \ll N$ elements.
Subsets can overlap partially or totally.
For a given $K < N$ (but $K \gg W$), I want to determine the subset $X_K \subset N$ so that:
$X_K$ has $K$ elements.
$X_K$ i... |
Koopman, P., & Chakravarty, T. (2004, June). Cyclic redundancy code (CRC) polynomial selection for embedded networks. In Dependable Systems and Networks, 2004 International Conference on (pp. 145-154). IEEE.
In this paper authors compare performance of different CRC polynomials in terms of minimum Hamming distance of ... |
We are doing a research on multi-document (one document max 100 words) text summarization. We are looking into abstractive text summarization methods. I need following things to be clarified.
Please explain what exactly in Neural attention model.
How can the Neural attention model be used for abstractive text summariz... |
The wikipedia page Actor Model and Process Calculi History, presents the following claim:
The semantics [of CSP] provided bounded nondeterminism unlike the Actor model with unbounded nondeterminism. However, with bounded nondeterminism is [sic] impossible for a server to guarantee service to its clients, i.e., a clien... |
Given the alphabet $Λ = \{a, b, c\}$, i need to write a grammar for this language:
$$L=\{α \mid α∈Λ^+ ∧ aaa \notin α\}$$
I know that in my language the sequence of three consecutive $a$ cannot occur in any string, but how do I make a grammar of it? I'd need the thinking behind the construction of the grammar (like wha... |
I have a file with a list of non-overlapping rectangles covering the entire space (they are adjacent). I would like to plot efficiently the graph edges that connect each rectangle center point with the adjacents rectangle center points. Which is the best data structure to use to load the rectangle list? Which is the be... |
I'm looking for a problem that allows me to generate random instances which:
Take arbitrary time to compute (i.e., I can generate an instance that I know would take at least 10 days to solve in an Intel I7);
Is inherently sequential (no matter how many processors you throw at it, it won't be solved faster than 10 days... |
I'm having a bit of trouble determining what language the following non-deterministic finite state automaton accepts.
Assuming the alphabet of this machine is ${a, b}$, I deduced that this automaton would accept words of the following characteristic: a word $w$ would be accepted if $w$ had zero or more $a$'s or $b$'s ... |
Given the alphabet $Λ = \{a, b\}$ and this non-regular language:
$$L=\{aba^nb^ma^n|n,m>0\}$$
what's the best way to generate the grammar? Every string has to start with $ab$, then we have $aba$ and this part has to have the same number of $a$. In words that is clear, but I'm stuck; should I first consider the fixed pa... |
So I'm assigned a task that involves formulating a quite complex recursion of several variables using 'mathematical notation'. The assignment is quite sparse when it comes to additional information, but below is the code anyway;
int partDist(String w1, String w2, int w1len, int w2len) {
if (w1len == 0)
return w2len;
... |
Acyclic DFAs recognize finite languages. For more info, see this Wikipedia page : https://en.wikipedia.org/wiki/Deterministic_acyclic_finite_state_automaton
To explain that the product of two DFAs $A$ and $B$ could lead to a result of size $O(|A|.|B|)$ in the worst case, most examples make use of DFAs containing cycles... |
I am trying to complete CS50's hacker edition pset3, where you have to make a program that will solve the game of eight or fifteen from its current state, this must be written in C.
https://en.wikipedia.org/wiki/15_puzzle
I first tried an approach of straight going for the step that get's you closest to the goal, but f... |
I have a modified 8 puzzle problem such that each transition's cost is associated with the number of the piece that is moved. So, for example, if piece "3" is moved, the move would cost 3 units.
I am trying to find an admissible heuristic that dominates the Manhattan distance, but am having trouble deriving one.
My ... |
Prove that set of rational numbers less than given computable real
number is decidable
This problem was in my exam yesterday, but I was not able to solve it. However I still want to give it another try.
Same problem can be stated in this way:
Construct an algorithm, which answers the question: Is our given ration... |
I am working on an NP-Hard problem. The state-of-the-art algorithm for my problem runs in O(3^n) time using dynamic programming approach. I changed the way the dynamic program works for my problem and it reduces the time complexity to O(n2^n). But, the main problem with my approach is the optimal result. More than 95% ... |
Say I have a language over the alphabet {x,y,(,)} . The language's rules are: any string over that alphabet with balanced parentheses.
Clearly x(), (xy) , ()()xxx, ((xx)) are accepted. BUT
My question is, is a string with no parentheses considered as having balanced parentheses? For example are: y, xxyy, xyxyxxx... |
Is it possible to construct an infinite increasing sequence of random naturals (in Kolmogorov sense) that is a subsequence of another sequence? Ok, in general I suppose not, e.g. for prime numbers. But:
I want to prove that sequence $\{ax+b\}_{x\in\mathbb{N}}$ contains an infinite subsequence of random numbers. (This i... |
The language on the alphabet $\{a,b\}$ is $$L=\{ab^nab^{n+1} |n>0\}$$
so i have to take a string w = xyz:
what's the best string to choose such that $|w| > n$? and then what about the division?
like $ w=ab^nab^{n+1}$ is a correct option? Then how can I divide this into three pieces? My attempt:
$ x = ab^s $ with $ 0 ≤... |
I read Alan Turing's paper "Computing Machinery and Intelligence" a few times and it isn't clear what exactly is he arguing for. He proposes the imitation game, but doesn't form a concrete conclusion.
It seems like the current consensus is that passing the Turing test doesn't signify human-like intelligence or thinking... |
I encountered the following exercise in a textbook about logic:
$\lambda x \lambda Y(Y(x))(j)(M)$
It seems that the expected result from the textbook should be $M(j)$, since there were some type specifications on the variables. However, if I substitute $M$ for $x$, and $j$ for $Y$, then the result would become $j(M)$, ... |
Suppose that $\Sigma = \{c_1, \dots, c_m\}$ is some finite alphabet and supposing $s \in \Sigma^*$, let $\mathcal{I}_j(s)$ denote the number of instances of character $c_j$ in $s$. Call a string $s$ odd-parity absent iff $|\{j : \mathcal{I}_j(s) = 0\}|$ is odd. That is, $s$ is odd-parity absent iff an odd number of cha... |
http://rationalwiki.org/wiki/Pseudomathematics#P_vs._NP_problem
A computational problem is considered "in P" if an algorithm exists
that can solve the problem in "polynomial time" — that is, it's O(n),
or O(n2), or O(n3), or any order where the n is raised to some fixed
power. If, however, the fastest algorithm ... |
We're given these two finite state machines where the alphabet consists of ${a, b, c}$. The question is to determine the language for the following two machines. I tried following the machines to find the language, but the languages I derived are quite verbose.
FSA #1
This FSA accepts words with at least one a followe... |
For my undergraduate senior project, a professor asked me and my partner to design an algorithm to determine true resolution in the browser, unaffected by zooming, multiple screens, viewport size, etc. (tl;dr our implementation was okay, it usually did the job correctly.)
It's super pedantic, but I've been thinking abo... |
Barendregt's Variable Convention: If $M_1,...,M_n$ occur in a certain mathematical context (e.g. definition, proof), then in these terms all bound variables are chosen to be different from the free variables.
This convention appears a lot in papers and I always wonder what does it mean. I want to know exactly what it i... |
Right now I am working on my implementation of Knuth's DLX algorithm.
I did understand the exact cover problem. But I didn't fully understand how Dancing links works. Here is Knuth's paper.
The question is about the solutions presented in the paper. I don't understand how these solutions make sense taking into account ... |
I've stumbled a heap-like sorting algorithm on the Internet as followed:
$\\$
For convenience, given a list of $2^n \; (n \in \mathbb{N^*})$ distinct numbers to be sorted increasingly.
Step 1: From the list, build a $P$-tree (to be defined) satisfying the min-heap property (Willard Zhan points out that this is actually... |
I want to solve Heterogeneous fleet in vehicle routing problem using the Clarke and Wright saving algorithm. After reading many literature I found two options:
Explicit and early assignment for the route.
Using saving algorithm sequentially, and iterating over all generated routes to fulfill capacity constraints.
Bu... |
Currently I know:
About vertical micro programming: The control signals are not immediately passed to the ALU components, but are rather processed first and passed as an compressed function code.
About horizontal micro programming: There is just one wire connecting all ALU components directly. The signal contains for... |
I am thinking that many example only takes free variable with one occurrence, such as $(\lambda x.x )y$ where $y$ is free.
can we say $y y $ is a $\lambda$-term and two $y$ are same free variable?
I did not see such examples so far, just wondering.
|
I am working with some tournament software where i need to generate pairings based on the swiss system. Some of the ideas i have came up with are as follows:
1)Create all permutations and choose best
-This is O(n!) which is not possible when n can be up to 1000.
2)Create a weighted graph and choose best pairs somehow... |
I often ask for a "simple" algorithm that solves some problem and I realized that, almost aways, the answerers's notions of simplicity doesn't match mine's. Often, for example, I notice people using numbers inside a supposedly "simple" answer, ignoring the fact numbers are, themselves, a complex dependency which adds a... |
I was wondering what the limitations to an algorithm that runs in O(n!). For example lets take an algorithm that generates all permutations of a list. Now what i am wondering is what the upper bound would roughly be for size of list. I understand that this can vary based on ram/memory. Let's say that this would be ran ... |
Assume we have a really cheap function $f$ that is defined on a mixed parameter space and we want to find a minimum.
For example
$\operatorname{arg\,min}\limits_{x_1,x_2,x_3} f(x_1,x_2,x_3)$
with
$x_1 \in \mathbb{R}, \ x_2 \in \{1, \ldots, 10\}$ and $x_3 \in \{\text{'a'}, \text{'b'} \}$.
and we have no assumptions on ... |
I am trying to understand bits, operations and masking. I have a hard time to get this thing into my head. I have tried to read at many different websites without luck.
I have 8 states, going from 1 to 8:
state 1 = 0001
state 2 = 0010
state 3 = 0011
state 4 = 0100
state 5 = 0101
state 6 = 0110
state 7 = 0111
state 8 = ... |
Say we have two (NP-)optimization problems $A$, resp. $B$, such that it is NP-hard to approximate within a factor $\alpha$ resp. $\beta$.
Now define problem $C$ whose input consists of pair inputs from $A$ and $B$, and a solution as pair of solutions of $A$ and $B$, but the objective function as the product of objecti... |
Given $$ (¬(P ∧¬Q)⇒S)∧¬P ∧(R⇒¬S) ⇒ ¬R $$ prove that this is a tautology.
One way is to use a hypothesis taken from the proposition itself.
As an example:
If we want to prove this rule: $P ⇒ (P ∧ Q ≡ Q)$ , we can do as follows:
We prove the equation $P ∧ Q ≡ Q$ using the hypothesis $P$ as justification:
$$P ∧ Q$$
$$ ... |
I am currently working in area of computer vision for my master's thesis and am trying to use distances between landmark points on the face for recognition.
My question is this: What landmark points should I use for measuring distances between landmarks? And, since distance is dependent on scale, what ratios of dista... |
imho this is not at all a duplicate, because the other question does
not address the "recursive" case $T(d,n) = ....T(d-1,T(d-1,n))....$,
which appears to be part of the Taylor expansion of this function.
Also I don't know how to write this as a Taylor expansion. If I would,
I would still not know how to solve... |
I have a massive distance matrix of clusters. The distance matrix is the distance between each cluster. I now need to recluster each entity based on two constraints. Each cluster has an associated volume. The constraints are a max volume and min distance. I want to scan for the minimum distance and if neighbor cluster... |
Let $ L = \{ \langle M \rangle : L(M) = \Sigma^* -\{\epsilon\} \}$
Determine whether $ L\in RE, \space L\in R, \space L\in co-RE$, or none of the above.
I tried to show a reduction function from $L_{\Sigma^*}$ to $L$ to prove that $L\notin RE$ , here is my attempt:
$\forall M\in L_{\Sigma^*} : f(M) = M'$, where M' is ... |
Given the alphabet $ Λ = \{a, b\}$ construct a FSA for the following language:
$$ L=\{α∈Λ^* ∧ |α|a =even ∧ |α|b =odd\}$$
where $|α|x $ is the number of occurrences of $x$ in $α$.
Basically, only strings where the number of $a$'s is even and the one of $b$'s is odd.
My attempt was the following:
whereas that's the solu... |
1 Context
Near pg. 184 of Lambda Calculus and Combinators, the author is discussing the theory of dependent types. In particular, we are extending the lambda calculus to look at terms of form
$$
\Pi x : \sigma . \tau (x)
$$
Now terms of this form denote type functions with degree and ranks, unless I am mistaken.
2 Te... |
Roughly, an undirected graph is very similar to a directed graph where for each edge (v, w), there is always an edge (w, v). That suggests that it might be acceptable to view undirected graphs as a subset of directed graphs (perhaps with an additional restriction that adding/deleting edges can only be done in matching ... |
I have a number with $n$ digits. I want to keep only $m$ digits out of it. What is the smallest possible $m$ digit number which can be generated from the larger number so that order of digits is retained.
Ex: 3422509739
I need the smallest 3 digit number by removing 7 digits with order retained which will be 039.
|
Imagine that I need to install my server in a remote location, so my algorithm can do something fancy (collocation of server at a financial exchange is how I thought of this question, but it applies more generally).
Imagine also I don't trust the people I am working with. They will have access to my server and I canno... |
It's clear that Mathematica uses the Baillie–PSW test for its PrimeQ function (which tests primality), and as I read in the Mathematica documentation, it starts with trial division, then base 2 and 3 Miller–Rabin, and then Lucas pseudoprime test. My question is:
Can we remove base 2 and 3 and use only a random base?
... |
I'm studying for a test, and got stuck on Time Complexity questions. Hope you guys could show me how to solve these.
I searched everywhere I could but didn't find a way.
they are two different qustions.
|
We have a language
$L = \{ a^{n^{2}}, n < 12\}$ We have to find minimum constant P for pumping lemma.
What does p represent here? I thought p in pumping lemma represent number of states , yet the right answer is $p >= 122$ , i would understand if it was $p <= 122$.
So for example it would be correct when $p = 155$. Bu... |
Consider the alphabet $\Sigma = \{0, 1, +, =\}$ and the language $ADD = \{x=y+z|x,y$ are binary integers $x$ is the sum of $y$ and $z$ $\}$.
This is the (informal) solution I came up with (not sure about its correctness).
Using the pumping lemma:
Take $s= 1^p=0+1^p$, $s \in ADD$. $s$ can be divided into three parts so ... |
As I understand it, one proof of the Halting Theorem is done by contradiction; we assume we have program X which can determine if any program terminates. We input program X into program X (with some modifications at the output), and we arrive at a contradiction. However, is it possible for a program Y to exist, where p... |
Although it is relatively simple to see that integer linear programming is NP-hard, whether it lies in NP is a bit harder. Therefore, I'm wondering whether the following reasoning shows that $ILP\in NP$ implies $NP=CoNP$.
To be precise, I am considering the decision variant of ILP over a non-unary input encoding, so th... |
Consider arbitrary context-sensitive grammar on strings $G_s$.
Is any known and described formalism (or type) for tree grammars, using which we can build weak-equivalent tree grammar $G_t$, which yield language will coincide with $L(G_s)$:
$L(G_s)=\{yield(t)|t\in L(G_t)\}$ ?
Yield operator is as it defined in TATA boo... |
For example on wikipedia a function $f : \mathbb N^k \to \mathbb N$ is defined to be computable, if there exists an algorithm (in form of a Turing machine, as an $\mu$-recursive function or maybe a C++ programm) such that the following holds:
If $f(x)$ is defined, then the program will terminate on the input $x$ with ... |
Suppose that I would like to find the shortest path between two vertices in a dynamic graph, where the cost function of an edge changes occasionally. I understand that an efficient algorithm to target this problem must have efficient ways to handle the "cost updates" and the shortest path queries.
Does anyone know wha... |
So I've got the regex /[1-9][0-9]*(\.[0-9]*[1-9])?/ and I'm trying to write a regular grammar for it.
I started off like this:
S ∶≔ EAB
A ∶≔ DA | ε
B ∶≔ .AE | ε
D ∶≔ 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
E ∶≔ 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
But I realised that this does not follow Chomsky's rules for regula... |
I understand the difference between DFA (has finite set of accept states, and doesn't have output function, nor output alphabet) and Moore Machine (doesn't have accept states, but has output for every state). But when implementing DFA in programming language, it always generates output. That is, if it last state was ac... |
I'm working on my data structures homework and proving Big O and Big Theta for a couple questions. After choosing my values for C and getting to the end I'm left with the fraction 1/300 for $N_0$ for both Big O and Big Theta. I understood from lecture that we actually take the ceiling of the fraction for Big O, makin... |
While I'm aware most (good) hash functions are one-way (or at least mostly so), I'm wondering if there's any construct (not necessarily called a hash function) which behaves in many ways like a hash function, but can be easily reversed.
For example, a function $f$ takes an arbitrary string $x$ and maps it to $y$, where... |
What's the input to the decoder part of a sequence to sequence autoencoder? I've seen certain examples of such an autoencoder (using LSTM's more often than not) but am still unclear.
For example, here in this often-cited paper by Dai & Le ('Semi
Supervised Sequence Learning'), we have the following diagram:
What's th... |
It is possible to distinguish Normal terms which don't contain beta redex as a sub-expression, from others like so
data WithBound a = Var | Other a
data Normal a
= Neutral (Neutral a)
| Abstract (Normal (WithBound a))
data Neutral a
= Variable a
| Apply (Neutral a) (Normal a)
Is there any intuitive explanat... |
I'm relatively familiar with spacial access methods and related data-structure such as Kd-trees and R-trees, but there is a related issue which I don't remember having seen mentioned when reading on that subject.
I'm concerned with the 2 dimension case. Programs manipulating shapes often sort overlapping shapes in z-o... |
I am trying to solve a weighted set cover problem where the number of selected subsets is limited by a constant $k$.
Assuming this is a pretty straight-forward variation of weighted set cover I ended up quite confused with only one, also rather recent paper by Golab et al. [1].
Am I missing something here?
[1] Golab, K... |
I have some question about DFA Language properties.
Does closure under intersection and complementation imply closure under union?
Does closure under intersection and union imply closure under complementation?
Thank you
|
Processor has the internal clock which is a multiplier of the main clock which is present on the motherboard which is designed by keeping in mind the critical path and the slowest device on board,
My question is :-
How there are two clocks working simultaneously in the computer system, what is the mechanism of their ... |
I'm thinking that there are two cases for each sub-tree: the root is in the independent set and the root is not in the set. How to write a recursive algorithm for finding the number of independent sets in a tree? The tree is n-ary.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.