instruction stringlengths 35 29.1k |
|---|
If you multiply two normal distribution PDFs with means $\mu_1$ and $\mu_2$ and variances $v_1$ and $v_2$, then according to this page, the new mean is
$$\mu = \frac{\mu_1 v_2 + \mu_2 v_1}{v_1 + v_2}$$
and the new variance is
$$v = \frac{v_1 v_2}{v_1 + v_2}.$$
However, if I use those expressions directly to combine sev... |
I'm studying $\lambda$-calculus, and had a question regarding an exercise I came across. I understand that $\lambda$-calculus uses three main strategies of evaluation, but I'm having trouble applying it. Specifically $\beta$-reduction.
For example, for $1 + 2$:
\begin{align}
1 + 2 & = \lambda n.\lambda m.\lambda s. \la... |
I created this algorithm off the top of my head this morning. It has one loop, therefore it has a time complexity of O(n) and only stores two variable during loop so it has a space complexity O(1) time. Please correct me if the last statement is wrong. I looked online and I don't see other sorting algorithms that look ... |
Assuming the coded data is errorless and given generator polynomial coefficients. By what algorithm can I decode the data coded by matrix constructed by given generator polynomial?
|
I have a big interval $I = [a, b]$ of size n.
I want an asymptotically minimal set of subintervals of $I$ (let's call it $S$) one can use to construct any subinterval of $I$, by concatenating at most $K$ subintervals - specifficaly I'm interested in $K = 3, K=5$ only, but general solution would be interesting too.
In ... |
$<M>$ is the encoding of a TM and L(M) is the language accepted.
|
Below is a sample of 2 homework TM where Im not sure what complexity class they fit in. Also have to decide the complexity class of the complement. These 2 in particular confuse me because I got a different answer so I feel I may be missing something:
S = { : M is a TM s.t. M(0) = accept} U = { : M is a TM s.t. M(0)[20... |
So in class, we were talking about the idea of floating point precision in IEEE754 format, and how, when some numbers are added, precision is lost. My professor then gave the following example of a large absolute error between what we think the answer might be, and what the answer actually is when our program (written ... |
I haven't found any way to show this was the case (that P/=EXP, without using the Time Hierarchy Theorem)
If you can find a way to show this, can you give a short explanation of this,and also if possible link a paper supporting your conclusion.
Thank you so much
|
Consider the following problem: given a lambda calculus term $t$ and free variable $v$ determine whether $\phi(t,v)$, where $\phi(t,v) := \exists t'. t' \equiv t \land v \notin FV(t')$.
This problem is undecidable. To prove this, assume the contrary. We define a term $s$ as follows:
$$s x \equiv \lambda n.j. j y$$
if $... |
I have a problem that goes as follows:
Problem. Suppose we have undirected graph $G$. We denote a $k$-perfect graph as a graph such that $\forall v \in G, degree(v) = k$. Present an algorithm that constructs a subgraph $H$ such that $H$ is $k$-perfect, for $k$ maximized. Do this in $\theta(|V| + |E|)$ time.
I was think... |
I am trying to build an Earley parser using the Wikipedia pesudocode as a base, with Aycock's fix for epsilon rules as follows:
def predict(self, column, symbol, state):
# original predict
for alternative in grammar[symbol]:
column.add(a new state corresponding to alternative)
# Aycock fix
if nu... |
Say we have a DFA like the one shown below that accepts the empty string, $\varepsilon$.
Also suppose the functionality of this DFA has been implemented as a circuit so that an led lights up whenever an accepted word is detected as input.
While this hypothetical circuit is "idle", i.e. not receiving any a's or b's a... |
Suppose $M_1$ and $M_2$ are two Turing machines such that $L(M_1)\subseteq L(M_2)$. Which of the following is true?
(A) On every input on which $M_1$ does not halt, M2 does not halt
(B) On every input on which $M_1$ halts, $M_2$ halts too
(C) On every input which $M_1$ accepts, $M_2$ halts.
(D)On every input which $M... |
I am not able to understand time complexity of this for loop.
While outer loop is O(n) the inner loop jumps certain calculation. How to find the complexity?
public void function(n) {
for(int i = 1; i< n; i++) {
for(int j = 1; j <= n; j += i) {
... |
Problem statement:
You have a lightbulb for an interval of $N$ seconds, where $N$ is given.
At time 0, the lightbulb switches on, and at time $N$, it switches off,
regardless of any switches. From time 1 to time $N-1$ you have a maximum
of $N-2$ switches in the form of an array called switches, which turn
th... |
I'm currently studying growth of function chapter in Introduction to Algorithm. In exercise 3.1-2 the question is:
Show that for any real constants $a$ and $b$, where $b>0$,
$(n + a)^b = \Theta(n^b)$.
I understand I need to find constants $c_1$, $c_2$, $n_0 > 0$ where
$0 \leq c_1n^b \leq (n+a)^b \leq c_2n^b$ for... |
I have been following the course Concrete Semantics with Isabelle/HOL. At some point we are given the task to verify a program/extend some semantic construction/prove some mathematical fact. I personally prefer to dive a little bit more into operational semantics, so adding new features to the IMP language is the way t... |
I have two automata of states, transition and events (Etat, Transition, evenements) and I want to create a function that create the synchronized product between those two automata. For instance, given plant and spec automata, plant :
donnees=("nomprob", # name of the problem
[("e1",True),("e2",True),("e3",True)... |
Here is the Python code. The solution is fairly common and is seen in most textbooks like 'Cracking the Coding Interview' and 'Element of Programming Interviews'.
class TreeNode:
def __init__(self, x):
self.right = None
self.left = None
self.val = x
Here is the solution:
class Solution(obje... |
In MIPS processor, address bus is of 32 bits. So on addressing an instruction, a whole 32 bit instruction is fetched. How is it byte addressable then? I mean if on addressing a particular address, the memory sends 32 bits as a wholesome, how is it byte addressable?
|
Given a set of points in the 2-d plane, find the minimum edge size, L, that would allow the construction of a tree whose edges connect all given points, but no edge exceeds length L.
Here is an algorithm, which I think might work but seems slow:
Pick a random point
find the distance of its nearest neighbour, store t... |
I don't think there's any way to ask a very precise question here, so this might be considered opinion based. Nevertheless, it seems the question is clear enough because I'm asking whether these two initial steps towards a theory are trying to achieve the same thing. It seems to me Hoare went towards an imperative-ca... |
I have given this question as home assignment. I tried a lot to solve it but couldn't found any solution. Please help
Thanks in Advance!
|
I know that CFG for $$ \{a^{m}b^{n}\mid m\leq n\leq 2m \}$$ is
$$ S\rightarrow ab/abb/aSb/aSbb $$ but I am not able to tweak it in such a way that it is strictly in between m and 2m and not equal to any of m or 2m.
I want to draw PDA for the same.
For drawing the PDA what I did was to push non-deterministically 1 a ... |
my question is that given a list of integers (lets say A), for each element A[i], find the smallest element A[j] which could satisfy A[i] < A[j] and i < j. Return -1 if there is no such element.
For example, given [4,2,1,9,3], return [9,3,3,-1,-1]
I have come up with a brute force solution which costs $O(n^2)$, but I'm... |
Given set of grammar rules, how to find if they correspond to Context-free or unrestricted?
Just for Understanding (don't solve the below one),
eg:
\begin{align}
S &\rightarrow B/A, \\
1B &\rightarrow 111B, \\
1A0 &\rightarrow 00
\end{align}
|
Does anyone know how efficient was the first Turing machine that Alan Turing made? I mean how many moves did it do per second or so... I'm just curious. Also couldn't find any info about it on the web.
|
Say I have a set $\mathbb{S}=\{1,2,...,n\}$. I have an adversary who breaks up $\mathbb{S}$ into $k$ unknown and disjoint subsets. Denote this new set $\mathbb{A}$. I can guess any combination $s$ and my adversary has to tell me if $s$ is itself a subset of any element in $\mathbb{A}$.
For example, if $n=4$, a valid $... |
Given a graph with positive edge weight representing "time to travel through", and 2 or more pairs of start/end vertices, we can find concurrent paths for the pairs such that the maximum cumulative weight along any path is minimum, using classic shortest path algorithms.
Now what if the weight is not static, but repres... |
I'm trying to learn reduction. I have this problem called "even subset sum" that's very similar to subset sum. It's the same problem as as subset sum except that the only numbers allowed are even positive integers. I'm trying to show this problem is NP-hard by reducing the problem subset sum to it but I'm not sure wher... |
I would really appreciate if someone can explain the syntax diagram itself and can help to build the parsing tree.
|
i have this program to prove:
given the ex3 method below
Suppose that the formal parameter "a" has always at least 2 elements and that a.length > i >= 1
Prove that ex3 satisfies the following predicate:
ex3 (a, i) <==> (for all k 1 <= k <= i ==> a [k-1] == a [k] +1)
public static boolean ex3 (int[] a, int i) {
... |
Let $G=(V, \Sigma, R, S)$ be a (non regular) probabilistic context-free grammar, and $u_1, \ldots, u_n$ a set of $n$ strings generated by $G$.
For finite $n$, it is always possible to find a regular grammar $\hat G=(\hat V, \Sigma, \hat R, S)$ which generates the strings $u_1, \ldots, u_n$.
Intuitively, as $n$ goes to ... |
I’ve encountered the following difficult question that I don’t know how to solve.
$L_1$ and $L_2$ are regular languages over the same $\Sigma$. $$\begin{align}L^\wedge=&\{σ_1σ_2...σ_n\mid n\ge1, \sigma_1, \sigma_2, \cdots, \sigma_n\in \Sigma, \\
&\exists \mu_1, \mu_2,\cdots,\mu_n,\zeta_1,\zeta_2,\cdots\, \zeta_n
\in\S... |
I was asked which among the following is true:
$\Sigma^*-\{\epsilon\} = \Sigma^+$
$L^* - \{\epsilon \} = L^+$
As I can see, both $\Sigma^*$ & $L^*$ are sets. I thought both were true because of set difference, but the answer lists only the first option as correct and the second as false. How so?
|
The problem is informally defined as follows:
There is a pipe with holes in it, located at discrete positions. We have tubes that are used to cover the holes. Tubes come at fixed radius. Having a tube of a radius of 1, say, placed at position 3, covers holes at positions 2, 3, and 4. The puzzle is about providing posit... |
Hi I know two nested for loops will have time Complexity of O(n²). However let's say first loop starts from 0 and goes upto variable X max value(suppose x is n) and second loop starts from +1 of the first loop then we woudn't compare all the values of x with all the other values of x.In that case it woudn't be n². In t... |
In Spanning Tree Protocol, a root switch is selected at first, and then somehow, the shortest path from each other switch to the root is obtained. Thus we established a tree network.
My questions are:
After the tree network is established, does the root switch act as a center in the network? In other words, all the... |
Imagine you encode an 8 bit symbol as a 10 bit symbol that is sent sequentially over a wire. The goal at the receiver is to detect the byte boundary.
Since there are 4 times more encoded symbols than source symbols, 3/4 encoded symbols are invalid. So the idea is that if you look at a buffer of received bits, if they a... |
I am not 100% sure if this is the right stackexchange to ask. I have a max-flow algorithm and I am also computing the min-cut from that algorithm.
I want to test the correctness and speed of it and I am trying to find if there are some datasets against which I can test my algorithm. The dataset should preferably have... |
I am working on solving the following problem and implement the solution in C++.
Let us assume that we have an oriented weighted graph $G = (V, A, w)$ and $P$ a set of persons.
We receive a number of queries such that every query gives a person $p$ and two vertices $s$ and $d$ and asks to compute the minimum weighted p... |
I know about Steiner Tree Problem. It is stated as
Input to Steiner Tree Problem is a weighted graph G and a subset T of the nodes (called terminal nodes) and goal is to find a minimum weight tree that spans all the nodes in T.
Can we give a polynomial time algorithm to solve the Steiner Tree Problem such that |T| ... |
Source: K. Riesen, Structural Pattern Recognition with Graph Edit Distance,
Advances in Computer Vision and Pattern Recognition.
Link: https://www.springer.com/cda/content/document/cda_downloaddocument/9783319272511-c2.pdf?SGWID=0-0-45-1545097-p177820399
Below I want to ask clarification for an example in the text as i... |
I define a parser as a context-free grammar with semantic actions for each production. It is not defined in what order the semantic actions run, just that the semantic actions of the non-terminals in a production run before itself does.
E.g. a (very) simple arithmetic language:
S -> E { print(nt[0]) }
E -> E '+'... |
I have a problem which i don't know how to calculate or more specifically what am I missing. The subject is about 802.11 (wifi)
The selected PHY rate is 54Mbit/s, that is whenever DATA is being sent the rate is 54Mbit/s, and when the node is not sending anything the rate is 0. To simplify the task, assume that there ar... |
This is sort of a computer science question and sort of a programming question. What is the name of the formal class of languages that can be described by .NET regular expressions (assuming it a well known class)? For instance formal regular expressions describe the class of regular languages but .NET regular express... |
I've been exploring the differences between Context Sensitive Analysis (CSA) and Context Insensitive Analysis (CIA), members of inter-procedural static analysis. The problem I'm coming up against is when to use one over the other.
Namely, suppose the following context:
The input program is in Static Single Assignment ... |
A problem instance is a linear program with the following kind of quadratic inequalities allowed: For some of the variables $x_i$, there is a variable $s_i$ (intuitively for approximating $x_i^2$, and distinct from all the $x_j$) and positive constants $l_i,r_i$, such that the following constraints are also included:
$... |
You are given a linked list of size $n$.
An element can be accessed from the start of the list or the end of the list. The cost to access any location is $\min(i,n-i)$, if the location being accessed is at index $i$ and it belongs to a list of size $n$. Once an index $i$ is accessed, the list is broken into two lists. ... |
Section 2 of this Lecture Note: Shortest Path Algorithms Luis Goddyn, Math 408 describes an algorithm using Edmonds' Minimum Weight Perfect Matching Algorithm to solve the shortest path problem for undirected graphs with negative-weight edges but no negative cycles.
I have two problems in understanding this algorithm:
... |
It seems that this article (https://arxiv.org/pdf/1312.4456.pdf) proposes that laws of physics are uncomputable (i.e., they could not be reproduced on a computer), but I'm not sure about it.
In some part of the article it says:
If
we expand the set of computational devices that we use to define computational complex... |
How would you formally prove the non-existance of a polynomial time verifier for $A_\mathrm{TM}$?
I mean we can't just say that in order to read a certain certificate we need more than poly-time because we need to prove it for any possible certificate. What would be the correct proof ?
|
I'm currently programming a go game, and I'm struggling with some aspect of the game, especially how to handle the end game, how to count points and how to detect dead stones ?
I thought of doing a BFS on an empty intersection (to get all the empty intersections connected) and if all the stones connected to the BFS (Gr... |
Given a matrix NxM of positive integer values and a starting position (that has value 0), determine the maximum sum path of length K that starts and ends at the aforementioned position. Legal moves are up, down, left, right and each position can be visited multiple times but only contributes to your sum once.
Example: ... |
If I understand(*) correctly, a decision problem is some function $f(x)$ whose function argument $x$ can be represented by data of a limited length (e.g. not an irrational number) and whose value is either 0 or 1.
If there exists some algorithm which can calculate the function value $f(x)$ in less than $\sum_{i=0}^{i_\... |
TL;DR: I implemented a special (?) binary tree and can't find any further details on the method I used on the internet. I would like to know if there are any scientific papers discussing my implementation.
Long version:
I saw this very interesting binary tree using "bin numbers" in RFC 7574. The leaf nodes contain da... |
Let $f$ be a binary relation defined on set $S$, which contains numbers from $1$ to $n$. It is also given that number of $|\text{Img}(f)| \le k$. I want to store the function $f$ such in way such that space required is minimum.
I am trying to store the function with a graph, but number of edges turnout to quadratic in ... |
I have difficulties understanding how the priority queue is used in Dijkstra algorithm. Wikipedia lists 3 operations performed on priority queue:
add_with_priority(),
extract_min(),
decrease_priority().
With the first two I have no problems, both operations are screaming fast. But the last one is executed with the p... |
I have an algorithm that solves the Vertex Cover problem. The algorithm is
Repeat while there is an edge:
Arbitrarily pick an uncovered edge $e = uv$ and add $u$ and $v$ to the solution. Delete $u$ and $v$ from the graph.
I know this strategy is a 2-approximation to Vertex Cover and that its worst example is the ... |
I've been trying to find an efficient way to solve the problem of finding a minimum (not minimal) set of time points that cover a given family of intervals on the real line, that is, for each interval $I$ there should be some time point $t$ from the chosen set such that $t \in I$. However, I am not sure if it's that st... |
I used a set of natural language statements and their formalization from Gries and Schneider. I attempted to transform the propositions into Haskell equations. For example, for S0 : $a \land w \Rightarrow p$ the conjunction was split giving $a \Rightarrow p$ and $w \Rightarrow p$ and then the contrapositive rule was... |
I'm a Computer Science student currently learning about concurrent processing. I found the benefits and disadvantages in my book vague, did some online research and put together a more detailed way of defining the disadvantage of concurrent processing; thoughts and corrections are appreciated.
Book version: "The drawba... |
If i have a language like $L = \{a^n b^m c^n b^m a^n \mid m,n\ge0\}$
when i pick a word for the language, would it be correct if i pick any of
these words: $w = a^k c^k$, $w = a^k b^m c^k $, $w = b^m b^m$, $w = b^m c^n b^m$.
|
For the expression (ab)*ba I came up with the following (very poorly drawn):
However, this was not the correct answer - apparently the solution requires five states. I don't understand why my DFA doesn't describe the expression. My interpretation of the expression is "ab any number of times, followed by ba". Is this c... |
It is a very standard situation that we have a class of problems $P$, and a subclass $\tilde P\subset P$ which has a certain restricted property.
For example, $P$ could be the problem of searching through an arbitrary list of people for someone with height $1.8$ meters, while $\tilde P$ could be the same problem, excep... |
What we see on our devices is essentially the private IP given to us by the ISP; thereby, whenever we access the internet, this private IP is first converted to public IP (by ISP through NAT), following which requests are made on the internet. If the assumptions above are right, then how does a website gets my private ... |
Can the same PDA accept both by final state and empty stack in the sense that there are some set of strings that are getting accepted by empty stack, while other set of string by final state and language accepted by the PDA is union of these two?
For example, Consider the PDA shown below:-
I was trying to figure out t... |
Are all integers kept in 2's complement form in all microprocessors or do microprocessors use 1's complement form and unsigned integer form too?
|
I know there is this paper but I wanted to do a special case proof for just IMP for fun. So the theorem is:
$$ \langle P , \sigma \rangle \to_{Big} \langle \{ \} , \sigma' \rangle \iff \exists N \in \mathbf N: \langle P , \sigma \rangle \to^N_{Small} \langle \{ \} , \sigma' \rangle $$
in words; the program P in state... |
Obviously, B would be recursive if for every TCF f, there was an inverse fuction that would return all possible values, as we could just take these and then check if any of them is in A. However I cannot find a proof (or counter-proof) that you can invert TCFs this way. AFAIK, all injective functions are invertible, bu... |
Suppose I have two digit arrays, A and B as follows
A = [3,4,5,6]
B = [9,8,3]
Now, I have to interleave the two arrays which would mean to pop the first element from both the arrays, at any given point of time. One such interleaving would be as follows,
Choose 3 from A
A = [4,5,6]
B = [9,8,3]
Choose 9 from B
A = [4,5... |
Today I stumbled upon a problem which looked like the partition problem but certainly is different.
Given array of positive integers, guaranteed to not be divisible into two continious subsets of equal sum, remove a ceratin continious subset to form two subsets of equal sum.
Example:
Array: 7 5 9 1 3 9 6
Remove eleme... |
Simple question from an algorithm noob...
If $i=1$ then the inner loop will include what I believe to be an invalid range. Is this acceptable pseudocode?
For i=1 to n
For k=1 to i-1
...
|
I was reading this answer about Turing machines and it refers to a bussiness-card-sized one, which claims to be a universal Turing machine, based on this paper. However, I don't understand the logic of that particular machine. I understand that in a universal Turing machine the "program" is just another machine encoded... |
I am trying to write a general purpose locking algorithm which allows me to lock a range of contiguous values in a sorted array. To start with, these could be exclusive locks - so two concurrent locks must be non-overlapping. What could be a good, scalable algorithm to do this? (Scalable ~ concurrent)
A specific exampl... |
Given two lambda terms $t_1$ and $t_2$, it is semi-decidable if they are equivalent (i.e. can be rewritten as each other using alpha, beta, and eta conversions). An algorithm to do this is to try every sequence of rewrites starting with $t_1$, and if any of them end with $t_2$, then output true.
What other algorithms c... |
The problem goes like this:
Given arrays $\{ a_i: 0\leq i \leq n-1 \},\{ b_i: 0\leq i \leq n-1 \} $ and $\{ c_i: 0\leq i \leq n-1 \}$, we want to know what is the $k$-th smallest combination $a_r+b_s+c_t$ where $r, s, t$ are arbitrary indices.
Since $k$ is relatively much smaller than $n^3$ (we may suppose $k \approx ... |
There is a lot of research about techniques that try to reuse the previous result of an instruction, either memory loads or arithmetic, such as dynamic instruction reuse, value prediction, based on the concept of value locality.
What I wonder if there is any commercial CPU from Intel/AMD/ARM that actually uses any of t... |
I found the following question -
For the circuit shown in the figure, the delay of the bubbled NAND gate is 2ns and that of the counter is assumed to be zero
If the clock (Clk) frequency is 1GHz, then the counter behaves as a
(A) mod-5 counter
(B) mod-6 counter
(C) mod-7 counter
(D) mod-8 counter
What I can see i... |
I have been reading $CO$ by Carl Hamacher. I have read generally $PC$ is incremented during the fetching phase of the instruction only, so if interrupt occurs because of branching or call during execution of instruction, then first the current instruction is completed followed by the storage of address of next instruct... |
I was trying to solve the question given below.
Algorithm :
Using divide and conquer technique, divide the input till we get a very small size array's ( let us say of size 2 ). Solve these small size array's in a brute force way. In the Merge phase it will take $\mathcal{O}(n)$ time to sum both arrays, if we get a po... |
As we know that average access time is given by
t=p*(tc)+(1-p)*(tc+tm)
where t represent the average time, p is the hit ratio , tc is the time to access the data from the cache and tm is time to retrieve data from main memory.
I was wondering wouldn't it be possible to decrease this time to
t=p*(tc)+(1-p)*(tm)
if we se... |
I have a map that is 300x300 units. I have to place squares of 20x20 units inside that map from outside to inside. There are 3 different types of square, the space available inside the map needs to be split equally to them, so from outside to inside the squares type 1 start to fill in the map until their limit is reach... |
How to build tree with more than 6 vertices, that after operation splay() would have depth = number of vertices? Is it possible?
UPD:
Example for n = 4:
insert 60
insert 10
insert 20
insert 50
splay(10)
You can use splay tree visualization
|
There is a factory which produces 5 types of ice cream. If the $i_{th}$ ice cream is produced then $b_i=1$ otherwise $b_i=0$
How can I express the following constraints:
The simultaneous production of all 5 types ice cream is not possible
The type 1 and type 2 must be either both produced or none be produced ($b1 \opl... |
I am revising for my algorithms exam and I have come across one topic in particular that I do not quite understand; which is how to analyse dependent nested loops. I know if we have a 2-nested loop, both of which iterate $n$ times, the order will be of $n^2$; but if we have a dependent nested loop such as:
input = an n... |
Let $X$ be an integer sampled uniformly from the (integer) range $\{ 0...2^k - 1 \}$ .
Now, consider the distribution of
$\#\text{bits}(X) = \begin{cases} 1 & X = 0 \\\\ 1 + \lfloor \log_2(X) \rfloor & \text{otherwise}
\end{cases}$
and
$\#\text{bytes}(X) = \begin{cases} 1 & X = 0 \\\\ 1 + \lfloor \log_{256}(X) \rfloor... |
I have an upcoming CS course in uni that uses C and I want to get ahead a little bit this Christmas break but I'm having a hard time figuring out where I can actually code using C. My school uses this compiler called Seashell but it's not available until the term starts.
I've looked at visual studio but I only see C++,... |
Consider a system which has 2 level paging.The page table is divided into 2K pages and each page is having 4K entries.Memory is word addressable and Physical address space is 64MW which is divided into 16K frames.Page table entry size is 2 words.
(A)Length of logical address
(B)Length of physical address
(C)$1^{st}$ le... |
Problem to get the min. no. of swaps required for arranging pairs togethe.
There exists an array of size 2N with integers ranging from 0 to 2N-1 arranged at random. Each integer is paired with another
i.e. 0 paired with 1, 2 paired with 3,...2N-2 paired with 2N-1. What is the minimum number of swaps required to have
a... |
I have been learning Verification by model checking recently and I get the following question:
$Whether\ the\ LTL\ formula\ M, q_3\ \models (X\ \lnot a) \rightarrow (F\ G\ \lnot a)\ is\ established\ or\ not\ in\ this\ model\ M?$
And there is the description of the model.
.
I think it is correct, because the next state ... |
I have been learning Verification by model checking recently and I get the following question:
Is the CTL formula $s_{0} \models EG\ AF\ p$ valid in the following model?
I think it is incorrect because there is a deadlock or infinite loop about $s_0$ after the state is starting from $s_0$, which make it invalid unde... |
I have looked into wikipedia and this MIT slide. A step by step iteration of the algorithm with a clear example would be appreciated.
|
I'm studying continuous CSP from the slides of my professor and i got that with the PATH-CONSISTENCY algorithm you can check consistency for PA (Point Algebra), SIA and ORD-Horn; however it cannot be used to determine consistency for IA (Interval Algebra), since it is just a necessary but not sufficient condition. From... |
Is there a set A such that it's not recursively enumerable and not(K'≤ A) ?
where K' is complement of K= {n| φ n (n) halts}
Thanks!
|
Say you have N input Boolean function, let's use a parity tree for the example. The function outputs a one or a zero depending on the values of the N inputs. Are the N inputs considered the preimage of the function?
|
Suppose you have a graph with weighted edges and nodes. Edges always have non-negative costs (representing e.g. fuel costs), and nodes always have non-negative benefits (representing e.g. collectible fuel tanks). A path from A to B is a series of contiguous edges starting at A and finishing at B. The net cost of a path... |
Consider the sequence of machine instruction given below:
\begin{array}{ll} \text{MUL} & \text{R5, R0, R1} \\ \text{DIV} & \text{R6, R2, R3} \\ \text{ADD} & \text{R7, R5, R6} \\ \text{SUB} & \text{R8, R7, R4} \\ \end{array}
In the above sequence, $R0$ to $R8$ are general purpose registers. In the instructions sho... |
I am trying to solve a problem which turns out to be a form of the set cover problem. I've implemented the greedy Set cover approximation algorithm for set cover, but it turns out to not be accurate enough for my needs.
Specifically I have a fixed, finite, list of special sets and I am trying to create a function which... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.