instruction stringlengths 35 29.1k |
|---|
I am looking for an automated way to answer the question: what are the URLs on the world wide web that contain at least two strings from a set of strings.
So if I have a set of strings {"A", "B" and "C"} -- I want to know, what pages on the world wide web contain "A" and B", "A" and "C", "B" and "C" or "A", "B" and "C... |
I am undertaking a module in Concurrent Programming where some of the new content this year covers linearizability, the Java Memory Model, and sequential consistency. Our class slides are companion slides to The Art Of Multiprocessor Programming.
I have been doing OK with linearizability but have become confused at thi... |
What is the most efficient algorithm for finding the median of an array when the available operations are limited to Max(), Min(), Multiply, Add, and no conditionals are allowed. Pivots and sorts are not allowed. The algorithm I have come up with so far seems very inefficient and goes like so:
For an array of length n... |
So, I've got this problem:
Given a string $\omega\in\{0,\ldots,9\}^*$, find the smallest prime number (in base 10) that contains that string, or otherwise returns 0.
What I'm asking is a fast algorithm for the problem?
|
Calculate the exponential averaging with $T_1 = 10$, $\alpha=0.5$ and the algorithm is SJF with previous runs as $8,7,4,16$.
9
8
7.5
None
I am getting 4. None as the answer.
But it is given that 3. 7.5 is the correct answer.
I think I am missing something here.
Because I only used the formula, $S_{n + 1}{}{}{}{... |
I'm following the algorithm for left recursion elimination from a grammar. It says remove the epsilon production if there is any.
I have the grammar
$\qquad S \to Aa \mid b$
$\qquad A \to Ac \mid Sd \mid \varepsilon$
I can see after removing the epsilon productions the grammer becomes
$\qquad S \to Aa \mid a \mid b$
$\... |
I am writing a sprite sheet generator tool in adobe AIR, and I have to force with the question: How to pack a collection of 2D rectangles to smallest possible 2D rectangle with power of two. (like 1024x444).
I think that this question is NP-Hard. I found good answer for it here.
I thought about another option. What if ... |
What is the point of non-binary printed letters on a turing machine? I understand that these need to be omitted to get a computable number, but why are they used in the first place?
|
I was thinking about any method where we can use RAM I/O speed, to calculate time, let's say for example:
RAM transfer rate is 1000 MB/s, so when it's half full (about 500 M Bytes written), by dividing 500 by 1000 we get the time which is epoch + 0.5 seconds
so all in all we have three routines:
one for writing data (... |
Yes, I borrowed the title form a famous joelonsoftware post for my question because I didn't exactly know how to ask this.
I'm a professional programmer for a few years now and although I followed informatics courses in school there was a lot of stuff missing from the curriculum, as I now know but wasn't aware then. Fo... |
Recently i've been dealing with a problem that led me to the following questions:
Is there a good algorithm to enumerate all maximum/perfect matchings in a general graph?
Is there a good algorithm for finding all maximum/perfect matchings in a general graph?
Are these two problems equivalent in their complexity?
I've... |
As the title states, I am asking for how the big-O in asymptotic analysis is used in theoretical computer science. It would be helpful if an example would be given.
|
I was trying to understand better the definition of a strong PSRG and I came across this expression which I am trying to understand better:
$$ Pr_{r \in \{0,1\}^l}[A(r) = \text{"yes"}]$$
Where r is a truly random bit string and A is a polynomial time deterministic machine.
I've been having some problems understanding w... |
I've not clear how to pass from final interval to code value, for example:
Suppose we have the set of symbols={0,1,2,3} with probability={0.2, 0.5, 0.2 , 0.1} and that we have to encode a source S={2,1,0,0,1,3};
After the encoding process we'll have an interval $[ 0.7426, 0.7428 ) $.
Now the final step is to find the s... |
I know that the language $\{a^m b^n | n\neq m\}$ satisfies the pumping lemma, but it's still not regular (I have to count the # of a's and b's).
How can I formally prove it?
|
I've been trying to teach myself some machine learning, and I wanted to ask what seems a simple question, but I've not been able to find any resources that explain the next step.
Let's say I am doing semi-supervised learning, and have a few hundred sparsely distributed feature extractors, trained on random 32x32 region... |
I'm studying for my Computing languages test and there's one idea I'm having problems wrapping my head around, as far as I know for any Context Free Grammar (CFG), we can design a 2-state Pushdown Automaton (PDA). I am however a little bit confused that why this is possible.
|
I am a little bit confused on one idea regarding indexed languages.
$\{ww \mid w \in \{a,b,c\}^* \}$ is a linear indexed language, but
$\{www \mid w \in \{a,b,c\}^* \}$ is not a linear indexed language.
What is the difference? As far as I know, indexed languages can be recognized by stack automatons, but I am a litt... |
Prove/disprove: $\exists L \in RE/R$ such that $L^R \cup L \in R$
Where in my context, $R$ is the turing decidable, and $RE$ is the recursively enurmable. I tried to find such an $L$ but couldn't. What I know for sure is that I need a language in $RE/R$ such that $L \cup L^R = \Sigma^*$, or am I also wrong?
|
I have this question about if the decidability of an regular expression and would appreciate if someone can check my answer and see if it makes sense, and if not, what is missing.
Be A = {(R)|R it is a regular expression that describes a language containing at least a w string that has 111 as a substring (that it is, ... |
I have two questions about how to use pumping lemma for regular languages to show that two languages are not regular. I would appreciate if someone can confirm if my answers make sense, and if not, what needs to be done
1) Prove that the following languages aren't regular. You can use the pumping lemma and the closing ... |
I have this question about closure of a context free grammar, and if someone can check my answer and see if it makes sense, and if not, what is missing, I would be very grateful.
Give an counter-example to show that the following contruction fails in to proof that class of languages free of context is closed under the... |
For example, can I make a compiler that transforms a C program (Turing complete language) into a bunch of SAT instances.
This encoding would be motivated as a way for specifying a problem piecemeal, where work on each piece could be verified in polynomial time.
|
Why do we use other bases which are neither binary (for computers) nor decimals (for humans)?
Computers end up representing them in binary, and humans strongly prefer getting their decimal representation. Why not stick to these two bases?
|
When translating an NFA into an equivalent DFA, we can say that all
states that contain the final states of NFA, is the final state of
DFA.
What should my arguments be in order to prove this?
|
We have been given 2 points on a circle and its radius. Now I want to find out the centre point of such a circle. How can I code this efficiently without solving the quadratic equations?
|
I have a recursive algorithm defined by the following recursion.
$$T(n) = T(n/f(n)) + O(\log f(n)).$$
I want to find the function $f$ that minimizes $T(n)$. If $f$ is a constant then $T(n) = \Theta(\log n)$. If $f = O(n)$ then $T(n) = \Theta(\log n)$. Is this true for all functions $f$ that $T(n) = \Omega(\log n)$ or c... |
I'm having trouble figuring out how to create admissible heuristics from cost functions. For example, if I was trying to create an admissible heuristic from a cost function that takes in starting position and ending position and returns the cost based on differences in height, I don't understand how to create an admis... |
Firstly, I am revising for my Concurrent Programming exam and have come across the following question from a previous exam paper. I have attempted to answer it, and will try and convey this effort; I'm very stuck with this question and not sure how to further progress.
Question
This question is from a 2011 Past Paper f... |
Suppose I have a list of distinct integers. I'm looking for a data structure that will support the operations search, insert, delete and closest_pair in $O(\log n)$ time.
I know that a sorted array supports search, insert and delete in $O(\log n)$ time. So, all we need to do is maintain information about the closest p... |
I've been watching lectures from Coderisland on YouTube about finite state machines, DFAs and NFAs, and in one discussion he talks about how to use the pumping lemma to show how a language is not regular. I don't know quite how to apply the lemma and want to understand if I'm doing it right. If I had something like:
w ... |
When looking at concurrent programming, two terms are commonly used i.e. concurrent and parallel.
And some programming languages specifically claim support for parallel programming, such as Java.
Does this means parallel and concurrent programming are actually different?
|
Say I have variables $w_1, \dots w_n, h_1, \dots h_m \in \mathbb R$, constants $W, H$, functions $f_1, \dots f_k : \mathbb R\times\mathbb R\to\mathbb R$ from some family $F$ and for each function $f_i$, a pair of intervals $x_i \subseteq [1, n]$, $y_i \subseteq [1, m]$. All quantities $\geq 0$.
I want to find the $w_i$... |
This is a question from an exam I did today:
Given $M$, a turing machine, we need to decide the following:
1) $M$ halts on every input
2) The language of $M$ is CFL
My question is, can I prove that this problem is not in $RE$ (recursively enumerable) using Rice's theorem? I understand that Rice's theorem works for la... |
Yes, this is a homework question, I've tried working it out and was hoping I could get pointed in the right direction.
Here's the question:
You are designing the instruction set for a new type of computer. The
computer has 64 instructions, 16 general-purpose registers. It supports a
byte-addressable memory of up-to 32M... |
In the accepted answer to my question Data Structure For Closest Pair Problem, I do not see why deletion works.
Let's say (x, y) are the closest pair before the delete. If the node to be deleted is either x or y, then we would have to recalculate the closest pair, which would not satisfy the O(log n) requirement. The b... |
Is there any way to get an equivalent of computing power of quantum computers in terms of computing power of common computers? I mean, how many teraflops (or so) can a quantum computer compute? How can I calculate that equivalence? I think it depends on the architecture, like a x64 in common computer, and a 512-qubit.
|
How many flops my brain can process, or how many GHz is a human brain capable of?
Is it valid to think that each celular brain is like a small cpu? (like cuda architecture). Our brains works in parallel, right?
|
Hello I am trying to solve the AlienTiles problem described at alientiles.com using the A* algorithm but I cannot find any good heuristic function so far.
In AlienTiles you have a board with $N \times N$ tiles, all coloured red. By clicking on a tile, all tiles in the same row and column advance to the next color, with... |
I'm interested - is it possible to implement algorithm which could compare 2 video files and answer, are they the same with some level of precision.
Is currently exist some methods which allow to solve that problem effectively?
The same - means like this. Let's assume we have a video file. All files created from this b... |
When talking about general data structure design, my lecture notes talk about one of the concerns being cost of operations. As well as the individual cost, it mentions amortized cost. But then it goes on to say:
Amortized cost can be:
absolute (e.g. for every sequence σ of operations (O(n log n))
competitive (e.g. fo... |
I am taking a course in the theory of computation and am trying to understand how to correctly design NFA's so that I can transform them into regex. I was wondering if I have Sigma={a,b} and need to design a NFA over Sigma Star that has at least one of its last 2 characters to be an 'a'; Can I simply start 2 threads, o... |
I plot several arrays containing xy-coordinates of points (using plot(x,y)) and obtain a plot with some curves. The curves form some very distinctive closed shapes (that is, the points describing the curves lie close to each other).
Now I need to find the (possibly approximate) centers of the closed shapes. Alternative... |
Let $A$ and $B$ be regular languages. Let $C$ be their difference, i.e $C = B \setminus A$.
Given NFAs for $A$ and $B$, is it possible to directly construct an NFA for $C$ without (implicitly or explicitly) converting them to DFAs first?
|
Is it true that Sequential Consistency is a stronger property than Cache Coherence?
According to
Sorin, Daniel J; Hill, Mark D; Wood, David A: A Primer on Memory Consistency and Cache Coherence, Morgan & Claypool, 2011
sequential consistency can be described as (not formally):
Sequential consistency memory model sp... |
What is the intuitive idea behind automatic differentiation?
If I have a program which computes $f(x, y)=x^2+yx$, which steps lead to the program which computes the derivative $df/dx$ of f?
double f(double x, double y)
{
double res = x*x;
double res2 = x*y;
double res3 = res + res2
return res3;
}
If I... |
Consider two lambda expressions $\mu$, $\nu$ representing computable functions $f_{\mu,\nu}:\mathbb{N} \rightarrow \mathbb{N}$. If $\mu$ and $\nu$ are equivalent under the combination of $\beta$-reductions, $\alpha$-conversions and $\eta$-conversions then $f_\mu=f_\nu$.
Under what conditions does the converse hold? I... |
I have tried hard , but i'm unable to come up with the expected running time for the number of comparisons to find the Randomized Median (find the median of an unsorted array).
Also i wanted to make sure that we CANNOT take expectation of the recurrence that we use to find the randomized mean , or any other recurrence... |
I don't know an O(n) solution to the following:
Given an array of n integers, find the largest difference between any two pairs in the array: however, the larger integer must have a higher index in the array than the other.
Ex: alg({9, 2, 6, 7}) = 5
It seems straightforward, yet it eludes me.
|
What are differences in services provided by grid computing and cloud computing?
From http://ccskguide.org/cloud-computing-vs-grid-computing/ and http://www.ibm.com/developerworks/web/library/wa-cloudgrid/
While grid computing facilitates access to computing resources as if they were public utilities, cloud computing ... |
I come from an electronics background. I know that there are three types of implementations of multithreading (see Computer Architecture: A Quantitative Approach, 5th Edition):
Fine-grain multithreading issues instructions for different threads after every cycle.
Coarse-grain multithreading only switches to issue inst... |
I have some experiences of working on clusters and grids for parallel computing. But I wonder what distributed computing can do besides parallel computing?
If I understand correctly, parallel computing is to solve a common task by multiple processors (computers).
Are the Internet and a intranet considered distributed s... |
I read a paper which talks about "a logic formula in which each variable appears at most twice unnegated and once negated". The term "unnegated" is double-negative, which makes it slightly unclear. Is there a more positive term to denote a variable that is not negated?
I looked in an English thesaurus, but all suggesti... |
I am reading parser chapter from dragon book and I found a grammar over there -
$ S \rightarrow L=R $
$ S \rightarrow R $
$L \rightarrow *R $
$L \rightarrow id $
$R \rightarrow L $
Now I have created some of its items, not sure if they are correct -
$ I_{0} $
$S' \rightarrow .S ; \$ $
$S \rightarrow .L=R ; \$ $
$S \... |
Let $A$ be some alphabet.
$A$ itself is a regular language.
$E = A^*$ is regular language over $A$. $E$ is a superset of all languages over $A$, regular or otherwise, i.e $E$ contains every possible string from symbols of $A$.
Now let $L$ be some regular language over $A$.
What is $\tilde{L} = L \cdot E$ ? More specifi... |
I am looking for implementation of the set data type. That is, we have to
maintain a dynamic subset $S$ (of size $n$) from the universe $U = \{0, 1, 2, 3, \dots , u – 1\}$ of size $u$ with
operations insert(x) (add an element x to $S$) and find(x) (checks whether element x is a member of $S$).
I don't care about othe... |
We have had several questions about the relation of Cook and Karp reductions. It's clear that Cook reductions (polynomial-time Turing reductions) do not define the same notion of NP-completeness as Karp reductions (polynomial-time many-one reductions), which are usually used. In particular, Cook reductions can not sepa... |
The algorithm task is to find an integer (range is not known). the function guess(num) returns one of three chars: '>','<' or '='.
Find the secret number with O(logS) guesses, where S is the secret number. You can use find_secret(N1, N2) which operate with O(log(N2-N1)).. What it does is simply a binary search.
... |
I am trying to create a polynomial time algorithm for a problem defined as follows:
c-ZPath(cZP)
$c$ is an integer constant $\geq 1$
Input: An undirected graph $G=(V,E)$.
Question: Can the vertices in $G$ be colored with two colors such that
no edge’s endpoint vertices have the same color and
there is a path in this... |
I'm working on a small lambda calculus compiler that has a working Hindley-Milner type inference system and now also supports recursive let's (not in the linked code), which I understand should be enough to make it Turing complete.
The problem now is I have no idea how to make it support lists, or whether it already d... |
I have a directed graph with $N$ vertices. Every pair of vertices is connected by two edges (one in each direction), and each of these edges has a weight which may be negative.
On various occasions 'edge update' operations occur, where the weight of an edge is modified (although the edge is never deleted, and no new ed... |
Let $A/B$ = $\{ w \mid wx \in A$ for some $x \in B \}$. Show that if A is context free and B is regular, then $A/B$ is context free.
My interpretation of this is is that we need to show that if a string $wx$ is accepted by a CFG, and we know that $x$ is accepted by a regular language (and therefore is also accepted ... |
NOTE: Let me point out that I did try extensively to solve this on my own. The problem is that, based on that circuit, it would appear that this processor cannot jump. At best the jump instruction will propagate through the pipeline with no effect. There is no data path defined for a jump that tells the processor to ch... |
Im trying to draw an annotated parse tree for 3*5+4n, the text book shows the following:
[Compilers - Principles, techniques and tools (Dragon Book) by Aho, p308]
I have a few questions regarding this
Why is 3*5+4 considered as a single string? Can't I draw a parse tree something like
for the same string ie:with ope... |
In type theories, like Coq's, we can define a type with parameters, like this:
Inductive ListP (Element : Type) : Type
:= NilP : ListP Element
| ConsP : Element -> ListP Element -> ListP Element.
Alternatively, we can define a type with an index, like this:
Inductive ListI : Type -> Type
:= NilI : forall t, L... |
Latency is defined as the number of intervening cycles between an instruction that produces a result and an instruction that uses the result. The initiation or repeat interval is the number of cycles that must elapse between issuing two operations of a given type.
In the Appendix C, pages 52-54 of Computer Architecture... |
How do you find the minimum hamming distance of a code?
A naive way is computing the distance of each pair of codewords in our code.
It becomes hard when the code is sufficiently large. Is there a formula for minimum hamming distance?
|
I'm a novice to the topic of provability so bear with me...
During a discussion with a friend, the question came up whether it could be possible that proving that $NP \neq P$ (or $NP = P$) is an unprovable statement. My friend opposed that, if indeed it was unprovable, then this would imply that there cannot be a poly... |
I have a social network in the form of an undirected graph $G = (V,E)$ with distinct non-negative integer keys. For each node $u \in V$, let the set $\Gamma(u) = \{ v \in V : (u,v) \in E \}$ be the neighbourhood of $u$. Clearly, I got that $d(u) = \left | \Gamma(u) \right |$, where $d(u)$ is the degree of $u$.
I now wa... |
So my knowledge of CS is amateurish at best but to me, logically, it seems like the halting problem is solvable.
So any human can determine if a problem halts with rigorous inspection, so why can't a very advanced, say human AI, solve the halting problem?
Also, is there a machine, say more powerful than a turing machin... |
I have a more general question for you. I'm working in Parallel Data Structures and Parallel Algorithms. That is a nice topic with a lot of interesting challenges. However, I have some problem to argue for why is necessary use parallel solutions. The most common justification is "We need to take advantage of the curren... |
I have a little understanding problem with Appendix A ("Universal Codes") in the paper "Shannon Information and Kolmogorov complexity" by Gründwald and Vitanyi (Link).
At the end of page 50, they say something corresponding to:
For each Prefix-code, the fraction of sequences of length $n$ that can be compressed by... |
I'm trying to wrap my head around an NP-completeness proof which seem to revolve around SAT/3CNF-SAT.
Maybe it's the late hour but I'm afraid I can't think of a 3CNF formula that cannot be satisfied (I'm probably missing something obvious).
Can you give me an example for such formula?
|
I posted this question on math.SE but I haven't got any reply so I'm posting here also.
I am reading The Algorithm Design Manual by Steven S Skiena.
In Section 4.10.1 Recurrence Relations, I understand what a recurrence relation is, but after that following statements have been given:
Any polynomial can be represented... |
Background
I need to find a largest set of non-overlapping axis-parallel squares, out of a given collection of candidate squares.
This problem is NP-complete. Many papers suggest approximation algorithms (see Maximum Disjoint Set in Wikipedia), but I need an exact algorithm.
My current solution uses the following divi... |
I have an example for a reduction of 3CNF to Clique, there is one thing I don't get about it, hopefully you could clarify it. The reduction works like this:
Construct a graph G = (V, E) as follows:
Vertices: Each literal corresponds to a vertex.
Edges: All vertices are connected with an edge except the vertices of
... |
Here is a resource allocation graph asked in my Operating Systems Theory midterm. The question is, "Is there a deadlock here? Explain your answer in detail"
Ra and Rb are resource sets and every dot inside of them are resources. Circles are processes. An arrow from process to a resource set means that process is reque... |
Assuming we have an automaton that simultaneously accepts a string on two paths. Would this mean that the construction of the NFA might be faulty? In other words; at the end of any string over any alphabet, does the NFA have to end up accepting one single path only? Or could it accept several at the same time?
|
I am new to Automata Theory. I am studying the book thoroughly and understanding it well. I have got a confusion regarding NFA. Why does this automaton accept the empty string λ?
What I think is that: implicitly δ(q,λ)=q for all states q. But here also explicitly defined δ(q0,λ)=q2. As there is a walk to the final sta... |
I've been looking into computer assisted music composition lately for my school project. While searching for literature I came across GenJam, an interactive jazz improvisation software which uses genetic algorithms to produce musical phrases.
I was wondering If anyone has done some work on computer generated music and... |
My question concerns genetic algorithm searching along bit strings.
Given:
$N$ = population size
$l$ = length of bit strings
$p_c$ = probability that a single crossover occur (double crossover never occur)
$p_m$ = probability for a given bit that a mutation occur
$w(x)$, the fitness function is equal to the number of... |
So I have this code:
done <- false [1]
n <- 0 [1]
while (n < a) and (done = false) [(n+1)(1+1+1)]
done <- true [n]
for m <- (a- 1) downto n [n(1+1+1+1)]... |
Given normally distributed integers with a mean of 0 and a standard deviation $\sigma$ around 1000, how do I compress those numbers (almost) perfectly? Given the entropy of the Gaussian distribution, it should be possible to store any value $x$ using $$\frac{1}{2} \mathrm{log}_2(2\pi\sigma^2)+\frac{x^2}{2\sigma^2}\rm{... |
Is $L = \{ W_1W_2 \mid W_1,W_2 \in (a+b)^* , N_a(W_1) = N_b(W_2)\}$ context free? Can we construct an NPDA for the language?
There is a book here that claims $L$ is not CF (without any elaboration), but I think we can construct a NPDA that accepts the language. My guess is we can construct the language with an NPDA wh... |
For example, say I want to analyze $T(n)=3T(\lfloor n/3 \rfloor )+2n$ for $n>2$, and $T(n)=1$ otherwise. This is clearly $O(n\log n)$; however it seems that with induction you can prove it is $O(n)$:
Base case: $T(1)$ is $O(1)$, $T(2)$ is $O(2)$
Inductive step: $T(n) = 3\times O(n/3) + 2n \in O(n)$
Where does this go w... |
Consider the following schema: Students(Id, Name, AdvisorId, AdvisorName, FavouriteAdvisorId)
What are the functional dependencies here? Ir seems that it would be:
Id --> Name AdvisorId AdvisorName FavouriteAdvisorId
If we know the student id then we know his name, his advisor, his advisor id and his favouriteadvis... |
I am trying to show that every 2-terminal SP-graph is $O(\log(n))$-outer-planar for a challenge question on my assignment. In particular, I am trying to prove this by induction on the number of combinations (either a series or a parallel combination). This is what I have so far.
The base case on $0$ combinations is tha... |
There is a new Quantitative Finance SE site. However, I am interested in asking the "CS crowd":
What are some interesting key references or surveys on applying algorithms to stock trading analysis?
There are many such references, however, I am particularly interested in those that would appeal to those with a CS bac... |
Suppose we have the following schema: Drinkers(name, addr, phone, beersLiked)
Also suppose $\text{name} \twoheadrightarrow \text{phone}$. Consider the following tuples:
Sue a p1 b1
Sue a p2 b2
What other tuples must also be in Drinkers ? Would it be:
Sue a p2 b1
Sue a p1 b2
|
Considering programming languages with significant whitespace for indentation, such as Python or Haskell. How does this whitespace fit into the grand schemes of programming language grammars.
I can see that a "preprocessor" can convert indent changes into tokens which are then handled in grammars, yet can one also perf... |
this might be a bit philosophical question , but i haven't really gotten a good answer.
Theoretical computer science vs Software engineer / developer whatever, which one is better for making good money.
I love maths and theoretical computer science. I am very ambitious, slightly arrogant guy from Estonia. I am first y... |
There is a famous part-of-speech tagging problem in Natural Language Processing. The popular solution is to use Hidden Markov Models.
So that, given the sentence $x_1 \dots x_n$ we want to find the sequence of POS tags $y_1 \dots y_n$ such that $y_1 \dots y_n = \arg\max_{y_1 \dots y_n}p(Y,X)$.
By Bayes Theorem, $P(X,Y)... |
I have an algorithm and I determined the asymptotic worst-case runtime, represented by Landau notation. Let's say $T(n) = O(n^2)$; this is measured in number of operations.
But this is the worst case, how about in average? I tried to run my algorithm 1000 times for each $n$ from $1$ to $1000$.I get another graph which ... |
The OSI model can be used for LAN and WAN networks, allowing the interconnection of [vendor] closed systems and it only informs what each layer have to do.
Someone said that this phrase is false, because OSI (Open Systems Interconnection) model, "as the name says", only allows the connection of "open systems".
So I'm... |
I've been wondering lately how GPUs compute sines and cosines, and Google hasn't helped me finding a precise answer.
Initially, I was thinking that in order to make the computations as fast as possible, the GPU would use some kind of lookup table. But then I realized, storing all sin values in a table of the range of d... |
Specifications in Kripke structures are verified by Computation tree logic (CTL). However, refering to this Wikipedia article the CTL-operators are relative to a current state. So, when we want to verify if EF q is satisfied in a Kripke structure
Do we only need to check if EF q holds starting from the starting state o... |
It's quite a short question: Refering to this Wikipedia article p U q means, that p has to hold at least until at some point q holds.
So, does it mean:
On each path starting from the current state p has to hold in each state until a state is reached in which q holds.
On each path starting from the current state p has ... |
Petersen's Theorem states that every cubic, bridgeless graph $G(V, E)$ contains a 2-factor $F$ (and therefore a perfect matching $E-F$). Alternatively, 2-factor is a set of vertex disjoint cycles that cover $V$. I'm interested in the computational properties of 2-factors in connected bridgeless cubic graphs. I conjectu... |
The optimization version of TSP asks for the length of the shortest tour. Unlike the decision version of TSP, there's no obvious way to verify a proposed solution of the optimization problem in polynomial time. But is there a proof of whether or not it can be verified in polynomial time assuming P ≠ NP?
|
This is a cross-post from a post on MathSE due to lack of answers.
To illustrate my question I provide the following example.
The website Online Turing Machine provides a Turing Machine simulator. The following program adds 1 to any binary number.
q0,1 => q0,1,>
q0,0 => q0,0,>
q0,_ => q1,_,<
q1,0 => q3,1,>
q1,1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.