instruction stringlengths 35 29.1k |
|---|
Capsule networks seem to match performance of convolutional neural networks on image classification tasks (more specifically on classification of handwritten digits in the MNIST dataset) 1.
I have also read in various articles that capsule networks require less training data than convolutional neural networks. Does th... |
So I finally realized the difference between transition systems and automata, and now am closer to understanding Model Checking. One of the last pieces is understanding what exactly "state" is in Model Checking.
It is mentioned that you create a Kripke Structure, which is pretty much just a state-transition system. But... |
S' -> S $
S -> I ; S
S -> return E ; S
S -> return I ; S
S -> ''
I -> id
I -> id = E
I -> id = I
E -> C && C
E -> C || C
E -> ! C
E -> C
C -> A > A
C -> A < A
C -> A >= A
C -> A <= A
C -> A == A
C -> A
A -> T A'
A'-> + T A'
A'-> - T A'
A'->''
T -> F T'
T'-> * F T'
T'-> / F T'
T'->''
F -> id
F -> const
F -> ( A )... |
The atomic propositions in Symbolic Model Checking form the state in the state-transition graph (the model $\mathcal{M}$ in Model Checking). The other part of Model Checking is the specification, which is usually some sort of temporal logic formula over the atomic propositions in the model.
My question is about the ato... |
When machine code is actually being executed by hardware and the CPU, what does it look like?
Would it look like binary, as in instructions being represented by ones and zeros, or would it be something made up of hexadecimal digits where opcodes are bytes presented as hex numbers which can be broken back down into bina... |
Is a full stop regarded as a character along or must it be with a space in huffman encoding. I know of taking a comma with a space to a character.
|
I (think I) understand the enumeration and then diagonalization proof of the undecidability of the halting problem, but I came cross this proof in SICP below, which does not seem to require the enumeration. Did I miss anything?
(define (run-forever) (run-forever))
(define (try p)
(if (halts? p p)
(run-forever)... |
I'm studying Context free Grammar and I have a question to a specific Exercise:
Why is i. True? How is this possible?
|
Basically what the title says. Why can you "ignore" the "xy" part if you want to prove whether a language is regular?
|
I have been working on understanding formal verification of software. Formal methods include things like modeling your software with Petri Nets, Automata, or State-Transition Graphs. Other techniques for formal verification include using type systems, model checking, automated theorem proving, proofs, and doing program... |
The global pointer is initialized to 01x10008000. The data segment starts at 0x1000000.
I want to load the first word found in the data segment. So I place 0x8000 in the address field of lw.
lw $a0, 8000hex(\$gp)
Apparently 0x8000 in binary is 1000 0000 0000 0000 which is a negative number because the sign bit is 1.
T... |
I am new to this independent set problem in graph theory. As per my understanding so far an independent set is a set of vertices in which no two vertices are adjacent. And the maximal independent set is a set of vertices in which if some vertex is added it will construct an edge.
I understand this now my question is i... |
I found this solution but I don't understand it. Can anyone explain the idea behind it ?
the solution:
A O(n) time and O(1) extra space solution:
The idea is similar to this post. We use array elements as index. To mark presence of an element x, we change the value at the index x to negative. But this approach does... |
I wrote my implementation of Bubble Sort according to my understanding of the general principle of how the algorithm works, and then compared it against another implementation I found online.
def my_bubble_sort(n):
switched = True
while switched:
switched = False
for i in range(1, len(n)):
... |
I am confused about what does a VC dimension of a set of hypothesis means.
I have two hypothesis, say $H_1$ with VC dimension of $x$, and $H_2$ of VC dimension of $y$. Does this automatically mean that the VC dimension of this set is $max(x,y)$?
Or does this mean that I can use the combination of these two somehow to g... |
I posted a question about a month back regarding the significance of Turing machines (relative to other models of computation). In that post, I mentioned vaguely some conversion between an input string and a physical system as a model of computation. (I just got my BS in CS, so it's likely I have no idea what I'm talki... |
A question from a lecture of mine.
The way I see it, while summing sets is meaningless, O(f(n)) + O(g(n)) is obviously limited from above by the greatest function in either, which means that I practically take the maximum of O(f(n)) and the maximum O(g(n)), and claim that either is the maximal one, or they are equal.
W... |
Given that there are examples of formal proofs used to formally verify real-world software applications, I would like to know what these people and teams actually do to create these formal proofs. That is, the kind of code they write and/or the types of formal proofs they create, and how the proofs work. For example, m... |
To mathematically solve a game you have to prove, using various tehniques, that some player will win, lose or draw the game. Specifically I'm interested in solving games by brute force (trying out all the possible combinations).
If I were to try every possible move for some game I would get a tree of all the moves and ... |
I'm reading the paper Enhanced Simplified Memory-bounded A Star (SMA*+). In short, the authors propose a limited-memory version of A* where we cull nodes if we are out of memory, to re-expand them later on.
To do this they choose the worst node to cull. And they propose a heuristic to maximize to choose what is conside... |
Bear in mind I'm almost a complete noob at complexity theory.
I was reading about how AKS Primality shows that numbers of size n can be shown to be prime or composite in polynomial time. Given that, does that imply finding all prime numbers less than a number n is also doable in polynomial time and thus the algorithm r... |
$$L = \{a^{m+n}b^{m+k}c^{n+k}\mid m,n,k\ge 1\}.$$
Is $L$ DCFL or not?
According to me it should be DCFL since we can write $L$ as $\{a^{n}a^{m}b^{m}b^{k}c^{k}c^{n}\mid m,n,k\ge1\}$. So, now after push and pop on the stack, it will be empty. So, according to me it will be DCFL but I have doubt since DPDA can't count $n$... |
I am reading Theorems for free! by Philip Wadler which is a paper about how to derive theorems from the type signature of a function.
Parametricity is just a reformulation of Reynolds’ abstraction theorem: terms evaluated in related environments yield related values.
What is an environment in this case ?
More general... |
I want to show that $\text{NP} \neq \text{SPACE}(n)$ and tried it like this:
Let $L$ be in $\text{SPACE}(n)$ so there is a deterministic $k$-tape TM which decides $L$ in polynomial time. Let's consider a binary alphabet. There are $2^{kn}$ possible strings on the working tapes so for an input of length $n$ the TM can b... |
According to book by Peter Linz, the transition function for non deterministic Turing machine is:
$Q\times \Gamma\rightarrow 2^{Q\times \Gamma\times \{L,R\}}$
where,
$Q$ is a set of states
$\Gamma$ is a set of tape alphabet
$L$ is a movement of head to left
$R$ is a movement of head to right
whereas the definiti... |
I'm working on an exercise that involves checking if the Rice's theorem can be applied on a two languages.
The first language is $E_{TM} = \{ \langle M \rangle \text{ | M is a Turing Machine and } L(M) = \emptyset \} $.
I already know it's undecidable, thus Rice's theorem should apply without any problem and in fact it... |
What is the definition of a 'simple path' in a finite acceptor?
My concern is whether self loops can be considered as a part of simple path from initial to final state?
|
How can I chose the condition for expanding of the array in chain-hashing if I want that given some cell (that contains elements) , the number of cells that I need to move about them is O(1) until the next cell that contains elements?
And in addition, I want that - the number of cells that I need to move about them bet... |
I came across the fact that
The number of DFAs that can be constructed for $n$ number of states and alphabet containing $m$ symbols is $n\times (\color{red}{n}^m)^n \times 2^n$
So I was wondering whats about NFA? I mean how many NFA can be constructed for for $n$ number of states and alphabet containing $m$ symbols.... |
We have given convex polygon of $N$ vertices, and two circles of radius $r$. Is it possible to check if we can place those two circles completely inside the polygon, such that they don't intersect, but they might have one point in common.
For example if we have given square with sides of length $1$, and $r = 0.25$. The... |
Wiki and my classes Textbook defines a decider as:
In computability theory, a machine that always halts—also called a
decider (Sipser, 1996) or a total Turing machine (Kozen, 1997)—is a
Turing machine that halts for every input.
So shouldn't this decider be able to decide the Halting Problem?
Because it halts alw... |
As I understand, diagonalization cannot be used to prove or disprove P vs NP, because for some oracle $A$, $P^A = NP^A$, whereas under another oracle $B$, $P^B \neq NP^B$.
I don't fully understand this logic. Diagnolization (Time Hierarchy Theorem) proves that $P \neq EXPTIME$. Does it therefore mean that there is no o... |
I was thinking a way to send password to server secure way without using secure connection,I found one solution.I want to find flaw in this.(Note: I am begginer,dont judge me, I know little about cryptography and little about networks)
So server contains hashed version of my password.
When i want to send password I sen... |
Is every formal language not closed under infinite union operation ?
I know that Regual Languages are not closed under infinite union operation and I have counter-example for it but I don't have any counter-example for other languages. Intuitively , I think it should not be closed but intuition could be wrong also. S... |
The scenario is the creation of street maps. For example, two people at Open Street map edit the same part of the map at the same time. Now the one that submits the data later should see a diff. Assume they both started with no vertex, but they had the same aerial image as a basis to create the digital map.
Let's defin... |
Here is the problem I tried to solve. Finally, I gave up and found a solution which was correct. Here is it.
Here is the problem description:
For a undirected graph with tree characteristics, we can choose any
node as the root. The result graph is then a rooted tree. Among all
possible rooted trees, those with min... |
I have an array of 100,000 strings, all of length $k$. I want to compare each string to every other string to see if any two strings differ by 1 character. Right now, as I add each string to the array, I'm checking it against every string already in the array, which has a time complexity of $\frac{n(n-1)}{2} k$.
Is ... |
In the general stochastic MAB model, the reward obtained at each trial is generally assumed to be independent of previous trials and obtained from some fixed (but unknown) distribution.
However, if the reward function is a monotonically increasing function of time, what would be the corresponding MAB model? Should it b... |
In the wiki page of Vertex Cover, it is claimed that an exhaustive search algorithm can solve the problem(the decision version of vertex cover problem) in time $2^{k}n^{O(1)}$.
Intuitively, with a fixed parameter $k$, in the worst case, the exhaustive search needs to check whether every vertex subset of size $k$ is ve... |
An Exercise from a Textbook:
L3 := {ε,01,0011}
is L3 ∈ DTime(log(n))
The answer says yes it is, it is even in DTime(1).
How is this possible? I would say it takes at least n steps to check the word. How is it possible to do it in less than n steps?
|
This question occurred to me while reading http://arxiv.org/abs/1806.08762/ Any observed sequence is necessarily finite, and any finite sequence is computable, either by explicitly storing all the data and just printing it, or by fitting an $n^{th}$-degree polynomial to an $n$-length sequence, etc.
So there's no such t... |
I would like to find a reduction from Max-Cut to Max-2Sat.
Could someone shed light on this problem, preferably spiced with some intuition?
Thanks,
Matan.
|
Given the definition for all x ∈ Σ∗
x ∈ L ⇔ ∃ u ∈ Σ∗ with |u| ≤ p(|x|) and M(x, u) = 1
Lets say the input x = ababab
Then the certificate u shouldn't be longer than p(|x|).
But what would be p(|x|)? In my example?
|
Using the following context as an example for the calculations:
Data bus connecting the processor to a memory 32 bits, considering a memory with capacity of 16kB.
How many bits does a data bus need to have?
|
I have read that in some pipelined architectures, memory access requires more than just one clock cycle. In that case how does processor handles the next instruction if the next instruction tries to access something the previous memory instruction has yet to write to its register files?
|
This is the code:
j=2
while j<(n*n)
j=j*j
At first my approach was to treat this like this loop
i=1
while (i<n)
i=i*2
Which generates on $i$ various powers of $2$ ($i=2^0, 2^1, 2^2....2^k$).
At a certain $k$ iteration, $i$ is equal to or exceeds $n$.
So $2^k=n$ is the time when the while stops.
We find $... |
Lob's theorem states that:
Let $\textbf{Prov}(n^A)$ be the arithmetic statement such that $PA\vdash$ $A$ iff $\textbf{Prov}(n^A)$, where $PA$ is peano arithmetic, and $n^A$ is the godel number of $A$.
Then
$$PA \vdash\textbf{Prov}(n^A)\rightarrow A\quad\quad\text{
implies} \quad \quad PA\vdash A$$
Where the same app... |
I got this question in an interview recently. I was given a bunch of points (for eg.- Start(88, 81), Dest(85,80), P1(19, 22), P2(31, 15), P3(27, 29), P4(30, 10), P5(20, 26), P6(5, 14)) on a 2D plane and any two of them were Source and Destination. I was asked to calculate the least cost to travel all the points startin... |
Using a monte carlo approach and evalutation function. Some moves will deemed to be more advantageous than others.
As a computer plays itself, it will generally go for the best moves possible. And hence train itself to deal with these moves.
But what if a human does a few seemingly detrimental moves to throw the AI off... |
When do you use Turing- and when Karp Reduction? What are the advantages and disadvantages?
I've read about Karp Reduction mainly used in the Context of reducing a Language:
e.g. L1 $≤_p$ L2
|
This is my first time in the field of TOC so I am not able to provide any self-approach while asking .In the above example what will happen if input string is "1001" or "1111"?The state q4 can be reached with the first 3 inputs only ,so what will happen after that ?
|
I'm reading SICP, and I'm a little bit confuse about this statement:
Consider the problem of computing the exponential of a given number.
We would like a procedure that takes as arguments a base b and a
positive integer exponent n and computes b n . One way to do this is
via the recursive definition
b n = b ⋅ b ... |
I'm working through Types and Programming Languages right now, and I'm a little confused about the recursive definition given for nameless/de Bruijn terms (chapter 6, definition 6.1.2). Below is the definition given:
Let $\mathcal{T}$ be the smallest family of sets $\{\mathcal{T}_0,
\mathcal{T}_1, \mathcal{T}_2, \ldo... |
I am kind of new to timed automaton domain. I am trying to understand in which way they are different to Markov Decision Process. First I know there objectives is to solve the non-determinism of a MDP. However, is there anything else? Are they still memoryless? I am not able to find any information about this topic.
|
Background:
In a nutshell. I coded a video player application (on linux). I used a proprietary library/API, with this, video and audio frames comes with well defined format. After decoding (via API), I call scheduling() function for video and audio frames and library does the rest. For argument sake I oversimplified th... |
Given:
$L_1 = \{0^k1^k|k \in \mathbb{N}\}$
$L_2= \{1\}$
$L_1 \leq_p L_2$
There must be a function
$$f:Σ^* \rightarrow Σ^*$$
such that
$$w \in L_1 \iff f(w) ∈ L_2$$
Let's say a word in $L_1$ is mapped to $1$ in $L_2$.
If it is not in $L_1$ it is mapped to $0$.
So each word in $L_1$ is mapped to $1$.
So the input for th... |
If I have an instance of $k$-SAT with $m$ clauses, then a trivial upper bound on the number of variables $n$ is given by $n \leq mk$. But we can only have $n = mk$ when no variable is repeated and that would be a trivial yes-case of k-SAT. I am making some running time analysis based on number of clauses, and therefore... |
I am trying to design an algorithm that allows to create balanced teams for a summer camp. There are about a 100 campers of different ages. Gender ratio isn't necessarily 50/50. Also there are a different number of campers for each age group.
The idea is to create fair and well-balanced teams while having approximately... |
Ex.1. Give a Search Problem whose deciding Problem is in co-NP.
Assuming 3SAT is in NP then asking wether a given Boolean formula has a Solution is a search problem in NP right?
Then would asking wether a given Boolean formula has no Solution be in co-NP?
|
Given numbers $0<x_1<x_2< \dots<x_{n^2}<1,$ for every subset of $n$ of them $x_{i_1}<x_{i_2}< \dots<x_{i_n},$ let us consider the size: $$\max\{x_{i_1}, x_{i_2}-x_{i_1}, x_{i_3}-x_{i_2},\dots,x_{i_n}-x_{i_{n-1}},1-x_{i_n}\}$$
Give an algorithm to find the minimal size that subset of $n$ numbers can achieve.
My though... |
I've found plethora of papers describing the performance advantages and basic correctness proofs of the hub-based labelling shortest path algorithm.
However I'd like to implement the algorithm, and short of doing it from scratch don't see much of any other way.
Is there a resource or a project where such an algorithm... |
I am trying to prove using the resolution technique that the following two clauses are contradicting:
$\forall_x Shaves(Barber, x) \iff \neg Shaves(x, x)$
$\exists_x Shaves(x, Barber)$
After turing those into the conjunctive normal form and skolemization I get the following clauses:
$\neg Shaves(Barber, x)\ \lor\ \... |
I think this is again an easy one:
$DTIME(f(n)) \subset DSPACE(f(n))$
They say its trivial but I dont see it, why?
And would
$DTIME(f(n^2)) \subset DSPACE(f(n^2))$
also be true? if yes why or why not?
|
I'm trying to design a CFG that accept the words of the following language:
$$L = \{a^i(b+c)^jd^k \mid i<j+k; \quad i,j,k>0\}$$
My first approximation would be to do $i = j+k$ as something like:
$S\to aSd \mid X$
$X\to aXY \mid aY $
$Y\to b \mid c$
But then I don't know how to make the jump to the $<$.
|
Suppose A∪B is NP-hard, does it follow that A is NP-hard or B is NP-hard?
Equivalently, is the property "not NP-hard" closed under union?
A related question was already asked:
Are NP-complete sets formed from two other sets only if at least one is NP-hard?
but it seems no consensus was formed.
|
Lets say Problem A,B are in NP.
Can we reduce Problem A to B? Meaning A $≤_p$ B? or A $≤_t$ B
Is there a difference in "hardness" of a Problem even in NP?
Or must Problem B at least be NP-Complete?
|
I have a NN that has ten outputs. The output values range between 0 and 1. The elements in the target array are all zeros except one element, which is "one".
I am searching for a Fitness Function that will correctly evaluate (score) the Neural Networks.
Currently, I am trying to calculate the distance between the targe... |
Suppose a program has a set $S$ of $n$ numerical ranges, each described by a pair: (lower bound $l_n$, upper bound $u_n$).
The program receives a number $x$; it must return all ranges in $S$ that enclose $x$.
An example in practical terms: in timeseries data, you have a set of $n$ independent events that occur over ran... |
I've developed LSD radix sort algorithm that is
stable,
about as fast as the classic LSD radix sort,
require only $O(\sqrt{RN})$ extra space when we sort into R buckets.
The same technique also allows to perform stable, efficient, almost in-place merge & quick sorts; as well as stable almost inplace merge/partition ... |
My math level is very very poor so I can't get the statistics.
Can anyone explain in simple words?
I.e. if I have frequency data:
Apple:
Colors:
Green = 3, Red = 2, Orange = 0;
Shape:
Sphere = 5, Ellipsoid = 0.
Orange:
Colors:
Green = 0, Red = 0, Orange = 5;
Shape:
Sphe... |
I have been thinking a lot on some questions related to centres, diameter ($D$), and radius ($R$) of an undirected connected graph, but couldn't find anywhere the answers, so am posting here.
Ques1. If $x,y$ are two vertices such that distance between them is $D$, then is it true that any shortest path between them wil... |
Show that, for every n >= 7, there exists a tree of n non-labeled nodes such that picking each of the n nodes as a root results in a different rooted tree.
|
My idea is to (not formal) push an 'a' when we see an a, nondeterministically guess when n a's were seen from the input word, go to the next state. From there, when we see an a, push 2 'a's into the stack and again guess when n a's were seen (now there should be 3n 'a's in the stack) and go to the final state, where if... |
I've read about the reduction from $2$-partition for the problem of minimizing weighted completion time with release dates but I'm not very experienced in doing reductions so I want to verify that my understanding is at least in the right direction.
First, my understanding of the problem is that we would like to compl... |
I know how to get longest zigzag sub-sequence and length of it. There are several methods available for that. But some times there are many sub-sequences available which have same length. How to obtain that?
|
What is the relationship between $\text{deg}(T)$ and the number of leaves of $T$, if $T$ is a tree?
|
Suppose we have a term rewrite system $\mathcal{R} = (R, \Sigma)$ with basic rewrite rules $R$ over a signature $\Sigma$. Suppose also that this rewrite system $\mathcal{R}$ is confluent and terminating, and that each constant symbol of $\Sigma$ is a normal form with respect to $\mathcal{R}$.
Now suppose that we want t... |
This is a question from Cormen 3rd edition(exercise 10.1). I am of the opinion that the complexity should be O(1), as we just have to look into the next pointer of the current node.
But the answers from the web suggest that it should be O(n). Where am I getting it wrong?
Can someone please help me out???
Thanks in adv... |
I wanted to verify some graph properties on all possible graph enumerations (or graphs satisfying certain properties). There is a list of all the graphs upto 10 vertices here, but that is not sufficient for my use.
So I had two questions:
Which would be the most user friendly and RAM efficient program/library to work ... |
Given two sorted arrays of floating point numbers $X$ and $Y$, we can define the S-distance as follows. The S-distance is defined as the minimum cost associated with the transformation of one point pattern $X$ into a pattern $Y$ by deleting, adding, and moving points (that is adding a constant to all points). The cos... |
Yes, I know it's uncomputable in the general case. What I want to know is what special cases have been solved, and if there is work ongoing on finding or developing more of them.
To be a little more explicit about the sort of thing I'm looking for, total functional language compilers have to approximate the halting pro... |
I am seeking a data structure that maintains an array of N numbers and supports the following two operations:
Double the first i numbers
Subtract the first i numbers of a previous version from the current version.
It always starts with an array filled with 1s, and we only need to know the final array (after all opera... |
Let's assume the you have two algorithms for computing some single but complicated number (e.g., the Ramsey number $R(5,5)$). Both are provided as high-level, half-formal textbook descriptions.
The first algorithm, by means of some textual reformatting and filling in the usual gaps in high-level reasoning, can be easi... |
I have a formula in FOL:
$\forall x \exists y: B(x) \implies C(y)$
and in SPASS: forall([X], exists[Y], implies(B(X),C(Y)))
I want to check the formula: $\exists x: B(X) \implies C(X)$ and in SPASS exists([X], implies(B(X), C(X)))
The problem is I want to determine that X and Y are different (like in my first formula) ... |
Let's say I have a map with factories and selling points. I want to trace the paths from factories to the selling points with the lower possible cost.
The image bellow is an example of a possible solution for that map, then the output of the algorithm should be two trees with the edges of those trees.
If there is only... |
What is the meaning of the term $\mu t$ in the type theory formalized in this paper (section 2.1, page 2)?
|
For a lecture I am attending, we have to prove that
$$\forall \big(a \textsf{U} (b \land \forall \square a)\big) \equiv \big(a \textsf{U} (b \land \square a)\big).$$
That is, we need to prove that for the CTL formula $\forall \big(a \textsf{U} (b \land \forall \square a)\big)$, the LTL formula $\big(a \textsf{U} (b \la... |
The problem is taken out of Theory of Computational Complexity:
Now, I think I've successfully proven that $ALL_{NFA} = \{(A) : A$ is an NFA and $ L(A) = \Sigma^*\} \leq_p MIN_{NFA}$. Which implies that $MIN_{NFA}$ is PSPACE hard, as the latter is itself.
However I'm stuck proving this problem is in PSPACE - I've tho... |
This was an old exam question. I think, though, that it is some sort of trick question. Isn't this simply decidable and therefore also trivially co-semidecidable?
Because I wouldn't know how to prove that it is co-semidecidable for itself. Being co-semidecidable means that there is a chance that the algorithm (that ch... |
It is well-know from Puterman's book (1994) that in any finite-state MDP, if there exists an optimal policy, then that policy is stationary and deterministic. How about MDPs with continuous state spaces with finite-action space? Assume that the rewards are bounded.
|
Are there some references about concatenative programming languages with the normalization property?
|
In my economics research I am currently dealing with a specific shortest path problem:
Given a directed deterministic dynamic graph with weights on the edges, I need to find the shortest path from one source $S$, which goes through $N$ edges. The graph can have cycles, the edge weights could be negative, and the path... |
For language $L$, we have $\forall\varepsilon > 0,L\in\mathcal{O}(n^\varepsilon)$. What is the class of $L$?
It is obvious that $L\in$ polynomials. Is there a smaller class for $L$? For example, $L\in\mathcal{O}(\lg(n))$ or $L\in\mathcal{O}(\mathrm{polylog}(n))$?
|
As far as I've understood it seems that LL1 are a subset of LR0, but studying the following grammar I end up in a contraddiction.
Grammar :
S -> (S) | [S] | {S} | ε
This is an LL1 while it seems to me that it isn't LR0 because of a conflict shift-reduce in the initial state I0 of the LR0 automa caused by this:
S -> .... |
I have 20 words. One permutation of these 20 words is the "correct" one. Assume I have a metric to find the correctness of the permutation.
I'm trying to figure out how to use simulated annealing to find the correct permutation of these 20 words. To begin with, I'm not even sure if I understand simulated annealing enti... |
In order to understand examples of formal proofs, I am interested in how CompCert applies "proof" techniques. Specifically, I am wondering what a particular example is of something CompCert "proves" in their GitHub repo, so I can get a grasp of how proofs are applied in practice (to something that is somewhat familiar,... |
In order to understand how to apply Model Checking, I am wondering how to apply it to a pseudo-realistic async program.
Say I have the following pseudocode:
var array = []
window.onclick = a
function a() {
setTimeout(b, 10)
}
function b() {
setTimeout(c, 100)
}
function c() {
var data = new Data(1)
array.pu... |
I am reading https://www.cs.cmu.edu/~fp/papers/pldi88.pdf and https://en.wikipedia.org/wiki/Higher-order_abstract_syntax for trying to understand encoding of linear logic using HOAS into Coq. But I still cannot grasp whats going on? Is there simple concrete example available for using HOAS? E.g. exmaple in concrete syn... |
This question could be trivial but I have tried to come up with an algorithm to list the most and least frequent elements in an array of int with just one loop, i.e O(n).
[1,2,1,1,3,3]:
Most frequent: [1,1,1]
Least frequent: [2]
I'm aware that it's possible to do that with two loops. One to aggregate the count of each ... |
In Coreman , it's written :
The $O(n^2)$ bound on worst-case running time of insertion sort also applies to its running time on every input. The $\Theta(n^2)$ bound on the worst-case running time of insertion sort,however, does not imply $\Theta(n^2)$ bound on the running time of insertion sort on every input.
So, is... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.