instruction stringlengths 35 29.1k |
|---|
I recently took a test and I had a particularly difficult time with one problem. I would like to know more about this problem: what general class of problems does this problem belong to, what are some good resources to learn more about this class of problems, how should I have recognized the problem for what it was?
S... |
Given ordered array of float numbers, Check if array represents Normal Distribution.
I wrote algo to find triangular distribution as follows:
1. Find index "i" in array such that sum {A[0] + ...A[i-1]} almost equal to sum {A[i] + ... + A[n-1]}
2. Check if A[i....i-1] is almost increasing sequence
3. Check if A[i ... n ... |
This might be a basic technicality but I'd like to make sure how to handle it.
The question is: how do we measure an algorithm's approximation (multiplicative) factor on instances with optimal value $0$.
Suppose I have a minimization problem $Pb$, and it is NP-Hard to decide if a given instance $I$ has optimal value $O... |
When a CPU simulates a certain program, as they do all the time, this is inherently slower than if the program would have been "baked in" into the hardware and computed directly. We know this from practical experience.
My question is: Is there some theoretical relationship that shows that a program that is simulated by... |
I am aware that the following problems are undecidable and tried to reduce the given problem to one of the following but with no success:
Halting problem
Blank Tape Halting problem
State-Entry problem
If a TM accepts nothing
If a TM accepts everything
I am looking for hints :)
Do I have to make multiple reductions?
D... |
Let's say that conditional branches are resolved at the 2nd-stage on a 4-stage pipeline. Why is there different penalties on a taken branch versus an untaken branch ? Should the penalty be the same for both? I always assumed that the not taken and taken branch penalty is 2 cycles but this is incorrect according to my f... |
Question: There are n+1 loading docks. a permutation of boxes 1->n is placed on the first n. there is a fork that can move one box to an empty location at a time. Give an algorithm to sort then boxes with minimum distance travelled.
Answers:
Case A: If distance travelled includes distance traveled by the fork witho... |
I'm trying to come up with a CFG for a language: {$0^n1^{2n}01|n\in\mathbb{N}$}
I tried doing:
$A\rightarrow\epsilon$
$A \rightarrow A10$
$S \rightarrow A01$
It only worked for {01, 01101} but doesn't work for the other cases.
Can someone help me?
|
I want to produce $k$ shortest path ($k$ would be less than 10) between all pairs in a graph. The graph is (actually a subway map):
positively weighted
undirected
sparse
with about 100 nodes
My current plan is to apply $k$ shortest path routing to each pair; I am now looking for a more efficient alternative (possibly... |
Is it correct to call something with no elements a binary heap? I think it is correct, for one element too, but I'm not sure. It seems to satisfy the definition (from Wikipedia):
Shape property: a binary heap is a complete binary tree; that is, all levels of the tree, except possibly the last one (deepest) are fully f... |
I seem to recall an academic paper from some years ago which used machine learning (possibly genetic or evolutionary programming) to predict whether a Turing Machine would halt.
By predict, I mean the standard notion in ML: minimize the error on some validation set. For simplicity, let's assume that the ML is a binary ... |
I am solving a problem in the Kaggle learn section : https://www.kaggle.com/c/facial-keypoints-detection
The problem involves detecting facial keypoints in a 96x96 image, some 30 features are detected. It is a supervised dataset.
I am using a convolutional neural network with max pooling, 2 convolutional layers and 2 m... |
This is in regards to the definition 2.13 of non-deterministic PDA given in Theory of Computation 3rd ed. by Michael Sipser.
The transition is defined as
$$
\delta: Q\times \Sigma_\varepsilon \times \Gamma_\varepsilon \to P(Q\times \Gamma_\varepsilon)
$$
where $Q$ is the set of states, $\Sigma = \Sigma_\varepsilon\cup... |
I may come across something like (let $X$ be a binary representation of a Turing machine $M$), I know that we can easily encode the description of the machine as sequence of numbers (by assigning a number to every symbol and arranging the description in some particular way) and then encoding this sequence by a single ... |
I was researching the topic of Fibonacci numbers and asymptotic complexity of generating them. Coming across a seemingly paradoxical conclusion, I've decided to check out if you agree with my explanation.
The naive algorithms runs in $O(n)$, if we ignore the cost of addition.
The Binet's formula or matrix exponentiati... |
I understand how neural networks that are implemented in software learn. You simply change the synaptic weights in the program. But how would you get a hardware implementation of neural networks to learn? The synaptic weights in the case of a physical system are INSIDE the machine, so how do you adjust the synapses? Do... |
The paper "Monotone Minimal Perfect Hashing: Searching a Sorted Table with O(1) Accesses" <http://www.itu.dk/people/pagh/papers/sparse.pdf> is the only one that uses Kolmogorov Complexity to obtain a lower bound in the space of a data structure that rank with erros.
My question is: What are the other Algorithmic option... |
I have learnt Neural Network for a couple weeks. I just met a problem when I tried to use ANN to recognize a dataset.
So I'm gonna describe the problem:
Set A has 15 members which are in set {1, 1.5, 2, 2.5... 4}.
I need to recognize set A if it is in type 2 or not. There are 3 types:
Type 1: Sum(A) < 30
Type 2: 30 <=... |
Everyone knows "Garey & Johnson", which is my go-to reference whenever I need a problem to transform from for an NP-hardness proof. However I recently find myself in need of an APX-hardness proof, and I wonder if there is a similar (and more up to date..?) collection of problems that have been shown to be APX-hard.
Doe... |
Given a two-dimensional data set where each point is labeled $ \{0,1\}$, I want to implement a sparse classifier with $L_p \ \text({ 0<p \leq 1) }$.
I have been reading on logistic regression and regularization. Let me give you an example of what I have been working on. The concrete example is: Let $\left((x^{(i)},y... |
I found the proof below in a textbook. I would like to know why it is important for the proof that it uses $\lceil \frac{n}{2} \rceil$ instead of just $\frac{n}{2}$? I know that you can't split into calls which aren't natural numbers, but how do I present this argument formally?
The proof:
The recursion splits the prob... |
I have just learned about the "bias-variance tradeoff" in machine learning, in the context of it being applied to simple regression models.
Now I am wondering: is this tradeoff a general universal principle that is applicable to every (conceivable) learning algorithm, or is it specific to particular algorithms, like re... |
I've looked at several explanations of the Hungarian Algorithm for solving the Assignment Problem and the vast majority of these cover only very simplistic cases.
The most understandable explanation I've found is a YouTube video.
I can code the algorithm but I'm concerned about one special case. If you watch the video... |
Assume that we have some efficient way of creating a suffix tree of a string. Then I'm interested in efficient ways of finding:
Length of longest repeated substring. Given some string $S$, then a repeated substring is a substring $R$ of $S$ that occurs more than once in $S$. Then I wish to find the length of the longe... |
I know that the subset sum problem is NP-Complete because I can reduce a known NP-Complete problem to subset sum.
However, since subset sum can be solved by dynamic programming, I was not completely convinced that it is NP-Complete. I then realized that the dynamic programming solution in fact tries all possible combi... |
I'm trying to figure out how to calculate the route cost on this graph (it's the missionaries and cannibals game)
I have my definition as:
Mi = Missionary on the initial side, C = Cannibal on the initial side, B = Boat [I = Boat in the Initial Side, F = Boat on the Final Side],
Mf = Missionary on the other side of the ... |
For which context-free grammars is it idempotent to remove $\varepsilon$-productions? Given that there are multiple rewriting algorithms which preserve language and leave the grammar without $\varepsilon$-productions (apart from $S \to \varepsilon$ iff $\varepsilon \in L(G)$), is this sensitive to the choice of algori... |
Need to know the relation between EXPTIME and NP HARD complexity classes.
|
Input:
$X$ = {$x_1$,$x_2$,$x_3$,...,$x_n$}
$Y$ = {$y_1$,$y_2$,$y_3$,...,$y_m$}
$k$, where, $k$ $\leq$ $m$
Output (Yes/No):
Satisfying the following condition, can all the elements in set $X$ be assigned to elements in set $Y$, such that, no elements in $X$ is left unassigned?
Condition: At least $k$ elements in $Y$ i... |
I was reading an article at
What does "context" in "context-free grammar" refer to?
The production
zA -> xy
is described as being an "unrestricted" production. In what way is it "unrestricted"?
I even visited https://en.wikipedia.org/wiki/Unrestricted_grammar
which talks about unrestricted grammar as the one that is... |
Given a binary $n$-times-$n$ matrix $A$, we'd like to cover the regions comprised of $1$'s with non-intersecting rectangles. A collection of disjoint rectangles that covers all $1$'s (and only $1$'s, i.e., it mustn't cover any $0$'s) is called a cover. (Notice that a problem instance may have many different covers.)
A ... |
Does computer convert every stuff using Ascii or UTF?
Meaning if there is a mathematical calculation including 65 (as a number) will it convert it into binary (00100001)?
And then how it differentiate it with 'A', whose code point is also 65 with code 00100001?
|
Sorry for the vague question, but I'm trying to figure out what to call something and a more specific question title would likely require too much space. Anyway...
I'm getting into ROM hacking for fun, and I've been diving into it without any external knowledge or tools, just so I can have the pride of being able to fi... |
Below is the description of the answer to a question which says the following:
Design a data structure to support two operations for a dynamic multiset S of integers which allows duplicate values.
Insert operation for one element
Delete-larger-half(S) deletes the
largest ceil(|S|/2) elements from S.
m insert and... |
Let $f:\mathbb{N} \to \mathbb{R}$ be a lower semicomputable function, i.e. there exists a recursive function $g:\mathbb{N}\times \mathbb{N} \to \mathbb{Q}$ s.t.
$$\forall x \in \mathbb{N} \quad \lim_{k \to \infty} g(k,x) = f(x) \qquad\qquad (1)$$
$$\forall x \in \mathbb{N} \quad g(k,x) \le g(k+1,x)\qquad\qquad (2)$$
Qu... |
( This may be related to NFAs with more than one initial state )
Consider a dfa $M$ with alphabet $\Sigma$ and states $Q$, typically also characterized by a specific initial state $q_0\in Q$. As the above-cited question points out, nfa's that nondeterministically select among several possible initial states can be conv... |
This is a variation of the well-known $k$-center problem with priorities given on the vertices.
Problem:
Let $G = (V,E)$ be a complete graph with a distances on the edges satisfying the triangle inequality. Then, additionally, there is a priority function $p: V\to (0,\infty)$. Given some $k\in\mathbb{N}$ then we wish ... |
Let's say we take someone's garden (A) as the environment. We want a robot to pick up a series of eggs that chickens have laid in the garden, while covering as little ground as possible (those heavy rover tracks damage the turf, you know). So we evolve a solution whereby the genes representing the robot's behaviour (i.... |
(Copy of https://stackoverflow.com/questions/38868226/what-is-the-status-of-the-tsx-related-skylake-errata-skl-105 which didn't get much attention).
As is well known, Intel had to disable TSX in the Haswell-series of processors via a microcode updates. This was due to a bug in the TSX implementation that could give err... |
Suppose I knew my current location as a geographical point (Lat/Lng) and had a standard radius to search (meters). Now given a list of previously searched geographical points as the centers of circles with the same standard radius that are nearby my point but do not encompass my point what would be a good algorithm for... |
Question:
As I'm working on a Hindley-Milner typed lambda calculus, in order to make it usable I need to add some types such as list and pairs. The way I currently do it is, I have an unsafe keyword that lets me explicitly set the type of a global function that tells the type checker to just trust the explicitly given ... |
Consider the following problem:
Can $X$ be proven in fewer than $Y$ steps, from axioms $Z$, with finitely many transition rules $\tau$?
This lies in $NP$, since if I supply a proof $M$, and individual steps can checked against the list of possible transitions $\tau$ in polynomial time, then $M$ can be checked for lengt... |
I'm wondering if there's a name/reference for the variant of knapsack problem where all items have the same value (so we only care about maximizing the number of items), but there are multiple weight constraints.
Maximize $\sum_{j=1}^nx_j$
subject to $\sum_{j=1}^nw_{ij}x_j\leq W_i$ for $1\leq i\leq m$
and $x_i=0,1$.
Th... |
To the best of my knowledge, finding a perfect matching in an undirected graph is NP-hard. But is this also the case for directed and possibly cyclic graphs?
I guess there are two possibilities to define whether two edges are incident to each other, which would also result in two possibilities to define what is allowed... |
A parser is a procedure which decides if an input belongs to a certain language and produces a witness in the form of a parse tree.
Let a streaming parser be a parser which for any prefix $u$ can produce a partial parse tree corresponding to the productions that must be expanded to eventually accept any completion $uv$... |
Let $N \leq 1000$, a 2-3-monotone sequence $s$ of length $N$ is defined as:
$s_i < s_{i+2}$, for $1 \leq i \leq N-2$
$s_i < s_{i+3}$, for $1 \leq i \leq N-3$
$s_i \in \{1,\dots, N\}$
Given $N$, calculate all the possible sequences of length $N$ given above formula.
I have already come up with a solution in $\mathcal... |
I'm reading into grid systems/distributed systems and came across pilot jobs that I can't find a decent explanation for. The wikipedia page is not understandable to me.
I know multi-level schemes from distributed graph algorithms, and I guess in this context it means first the resources are scheduled to the application... |
I'm reading the paper N. J. Larsson, A. Moffat: Offline Dictionary-Based Compression, which describes a compression algorithm that, if I understand it correctly, is quite similar to Byte pair encoding.
Given a string $S$ of length $n$, I'm trying to understand how one can compress it in linear, $\mathcal O (n)$, time w... |
Given a 3D matrix of size $N \times N \times N$, let $\mathcal{S}$ be a set of points in the Matrix and $\mathcal{S}'$ be the complement of $\mathcal{S}$. Can we find a set of equations of the form:
$F: (f_1 \land f_2 \land \ldots \land fn)$
where $f_x$ is of the form
$f_x \implies ai + bj + ck + dN + e \text{ } \{<,>,... |
What is the difference between a dedicated GPU and an integrated one?
|
In Sipser's "Introduction to the Theory of Computation" it states "A GNFA accepts a string $w$ in $Σ^{*}$ if $w = w_1 w_2 · · · w_k$ , where each $w_i$ is in $Σ^{*}$".
However, wouldn't a more precise definition be "A GNFA accepts a string $w$ in $Σ^{*}$ if $w = w_1 w_2 · · · w_k$ , where each $w_i$ is in $Σ$" ?
|
How would one go about enumerating all the optimal answers for interval scheduling?
Not sure what to begin with, my guess is to use the other approaches i.e. earliest start time, shortest interval and fewest conflict in conjunction with the optimal implementation which is to use the earliest finish time approach.
|
Given $N$ points in a grid having some weight, I have to find the side length of a square sub-grid with maximum sum of weight of points contained in that square sub-grid. Also square sub-grid must have side length less than $L$ (given integer).
$ 1\le N \le 100000$, $1 \le L \le 100000$ , $1 \le x_i \le100000$, $1 \le ... |
This is the question 1.12 from Introduction to the Theory of Computation 3rd Edition by Michael Sipser. The questions says,
Let $D=\{w\mid w$ contains an even number of $\texttt{a}$'s and an odd
number of $\texttt{b}$'s and does not contain the substring
$\texttt{ab}$}. Give a DFA with five states that recognizes ... |
I am wondering if it is possible to simplify $O(A \times B \times C + A^B)$ into $O(A^B)$, i.e. omit the left part. $A$, $B$, and $C$ are all independent from each other.
Personally, I think that the simplification is possible. $O(A \times B \times C)$ is a polynomial growth, and (I think) it can be rewritten as $O(A^3... |
In fuzzy logic, when we associate an element with a set, we usually do it in terms of membership grade which suggests the "belonging" of this element to the set. Membership grade value 0 means that the element is certainly not the set member while grade value = 1 means that the element is definitely a part of the set. ... |
For(int i=1;i<=n;i*=2)
Statement
I'm making notes for competitive exam and made this problem. But I'm not getting solution. Is it O( log n)? If so why?
|
Are there papers in the literature that address the following object detection task ?
The task can be described as follows:
Given a set of images, the labels are just coordinates (x,y) that represent the object locations that we wish to detect. A coordinate is not necessarily at the centre of the object and the object... |
The Maximum Diversity Problem calls for choosing $m$ items from a list of $n$ items, such that the diversity defined as some metric distance between items is maximized.
I have a simpler problem, which I was hoping I could solve in a simpler manner. In my case I have a list of $n$ items each with a certain non-unique ke... |
I'm quite new to understanding persistent data structures, so bear with me.
Consider some database with data of the form $(\text{id}, d_1, d_2)$. The last two could e.g. mean production data and sales date, respectively. The database is constant, i.e. we will not be adding or removing data points.
Let $n$ be the numbe... |
Modern computers don't have circuits dedicated for subtraction. They do it by using the method of complements.
All is well when the 2 operands are signed 2's complement numbers. The result of addition will be another 2's complement which, when interpreted as a 2's complement number, will give the correct result provide... |
A book by Korth et al. defines BCNF as follows:
A relation schema $R$ is in BCNF with respect to a set F of functional dependencies if, for all functional dependencies in $F^+$ of the form $α→β$, where $α⊆R$ and $β⊆R$, at least one of the following holds:
$α→β$ is a trivial functional dependency (that is, $β⊆α$).
$α... |
I don't know the correct terminology for asking this question, so I'll describe it with lots of words instead, bear with me.
Background, just so we're on the same page: Programs often contain caches - a time/memory tradeoff. A common programmer's mistake is to forget to update a cached value after changing one of its u... |
Im searching about conditional random fields for a long time and cant understand the concepts of this algorithm.
I understood markov chains, and understood that conditional random field is a more complex modification of markov chain, Im right?
So, what is the best didactic explanation of conditional random fields?
|
After a year hiatus from Computer Science courses in college, im back to hitting them hard for the next two years straight. In the next few weeks before classes start again I have been trying to refresh my memory on key concepts by writing and trying to explain them to people that have never gotten deeper into a comput... |
Take a multiset $S=\{s_1,\ldots,s_n\} \subset \mathbb{N}$ and some $k \in \mathbb{N}$. Take $T$ to be the set of all sequences of the form $s_{\pi(1)},\ldots,s_{\pi(i)}$, such that $\sum_{j=1}^{i-1} s_{\pi(j)} < k \leq \sum_{j=1}^{i} s_{\pi(j)}$ where $\pi$ is a permutation of the indices of $S$ and $i\leq n$ . Is the... |
I am trying to solve an optimisation problem and come up with two Integer Linear Programming models. For each model, I am able to find a function that calculate the number of possibilities based on different variables, e.g. problem sizes.
I cannot directly conclude that one model has a smaller search space than the oth... |
This all seems fairly related to the knapsack problem, bin packing and the subset sum problem, but I can't find the appropriate problem name.
I have a multiset $S$ of $n$ (not necessarily unique) integers in the range $\{1,2,\dots,k-1\}$.
The problem is to partition this multiset in submultisets such that each submulti... |
The book Cycle Representations of Markov Processes
solves the problem of Mapping Stochastic Matrices induced from a Markov Chain into Partitions using a $\lambda$-preserving ($\lambda$ is a Lebesgue Measure) transformation of the interval $f_{t} = (x+t) \bmod t$ ( $t$ is the rotational length to be considered is $\fra... |
We know that we cannot find an algorithm that would prove that a computable function "f" is total if it IS total. How come?
When a function is total, it must have a proof (derived from soundness and correctness of logic). And proof is a finite sequence of symbols, so why does simple enumeration through all the sequence... |
I am struggling right now, and I need help.
|
I am studying propositional logic and I am trying to solve some exercise related to the following definition:
Given two logical propositions $\alpha$ and $\beta$, we say that $\alpha$ is stronger than $\beta$ if and only if $(\alpha \implies \beta)$ is a tautology. Determine which of the two propositions is stronger in... |
I was working on some questions in the book "Elements Of The Theory Of Computation", by Lewis and Papadimitriou, and I need help with one question - question 4.1.8 (chapter 4):
Give the full details of the turing machines illustrated:
>LL.
I managed to solve everything but this, and that is because I don't know what... |
I just started reading communication networks.
Now, routers contain the network layer, data link control layer and physical layer.
That being true I am confused as to why the network layer is required or to be more specific what is its function.
In "Computer Networks A top-down approach", it is written that the networ... |
We know that any "effectively computable" process is computable by a Turing machine (Turing-Church thesis).
Although it seems that "effectively computable" is still open to discussion, the intuitive interpretation is that any process that is "mechanical enough" can be computed by a Turing machine.
Turing's initial obje... |
Say I have following text: "abbcccddddeeeee".
As you can see, each letter has a different frequency of occurence.
When making a Huffman-Trie to encode this String, will this trie be unique?
I thought a bit on the problem and I can't come to a definite conclusion, but I think the trie will NOT be unique. Say the begin-s... |
I understand that registers are temporary storage compartments which (usually) hold 8 bits, or 1 byte, of information at a time. This information is sent from a register into the Central Processing Unit (CPU) where, with the help of a control unit and an ALU, the byte is decoded and sent back to occupy the space of ano... |
The function:
double sum1(std::vector& v)
{
if (v.empty()) {
return 0.0;
}
for(size_t i = 0; i < v.size() - 1; ++i) {
std::sort(v.begin()+i, v.end());
v[i+1] += v[i];
}
return v.back();
}
There are n-1 sorts each one shorter by 1, so time taken by the function for n elem... |
In the programming pearls book by Jon Bentley, there is a section about the problem of finding a random set of m integers from range 0 to n-1 integers. To do so they use Knuth's algorithm given by the following code (see also here). How can I proof that this code indeed chooses every set of m integers from the range 0 ... |
I'm having some difficulty understanding the rules for valid red-black tree.
If my understanding is correct there are 4 rules that a tree has to follow to be a red-black tree.
Every node has a color either red or black.
Root of tree is always black.
There are no two adjacent red nodes (A red node cannot have a red pa... |
I have the following problem:
Given positive integers $a, b, c, d, n$, compute the maximum possible value (which is garuanteed to be less than $10^9$) of the function $$f(x,y) = cx + dy$$ where the only pairs $(x, y)$ that are considered for which $x$ and $y$ are positive integers and $ax + by \leq n$.
I'll be very ... |
Object detection can be divided into Feature-based methods and Appearance-based methods. I want to find out what the most common Appearance-based methods are for object detection. There is not much information about which are the most common approaches, therefore it would be useful to hear from someone who have experie... |
Recently in an interview I was asked to implement k-means clustering using the Map Reduce architecture. I know how to implement a simple k-means clustering algorithm but couldn't wrap my head around to do it using Map Reduce(I know what Map Reduce is). Can someone provide me an explanation/algorithm of how to do that? ... |
I'd like to measure how much information a document $D$ contains.
Clearly, the New York Times published yesterday contains more information than my diary wrote on the same day. But, I do not know how to quantify those differences.
I think there are at least two alternatives. Those are the information entropy, and tf-i... |
I found this proof in Wikipedia, but one of the most important steps in it doesn't make any sense to me. I'll explain:
By the definition of PP there is a polynomial-time probabilistic
algorithm A with the property that ${x\in L\Rightarrow \mathrm {Pr}
[A(x) = 1]>\frac{1}{2}} $ and ${x\not \in L\Rightarrow \mathrm... |
Before I ask my doubt I would like to state that problem which led me to my doubt. It can also serve as a good example scenario.
A $20\ Kbps$ satellite link has a propagation delay of $400\ ms$. The transmitter employs the "Sliding Window protocol" scheme with Window Size set to $10$. Assuming that each frame is $100$... |
I have an assignment in my university where I have to implement Uniform Cost Search and A* Search.
We have an input which includes a map and queries.
The map is weighted, directed graph, represented by an adjacency matrix. The queries include Uniform Cost Search and A* Search queries (Ex: Uniform(or A*) + initial locat... |
One is required to find power (positive integer) of matrix of real numbers. There are lots of efficient matrix multiplication algorithms (e.g. some parallel algorithms are Cannon's, DNS) but are there algorithms that are intended exactly for finding power of matrix and that are more efficient than sequential execution ... |
I came across following definition of 2NF normal form:
A relation schema is in second normal form (2NF) if every nonprime attribute is not partially dependent on any key of R.
Then the book reworded the definition as follows:
A relation schema R is in 2NF if every nonprime attribute A in R is fully functionally depe... |
I am trying to find a way to efficiently solve a puzzle that I play a lot by turning it into a graph partitioning problem (which is basically is in its actual form). I know that generally, graph partitioning problems are considered NP-hard or even NP-complete, but considering the unique constraints of the input graph, ... |
this is my first time posting on stack exchange, so excuse my naivety. I'll be straight to the point. I did my Bsc in studying Games Technology. The degree wasn't so much computer science focused and I think I've missed on some core subjects that i really need to get done with. As far as I have identified I lack some k... |
I have been playing around with analysis of circuits and am trying to generate test vectors. In order to exercise the circuit in the manner I require, I need a vector that includes every change in the circuit's inputs where only 1 input toggles, but in order to be efficient, it must include each change only once and mu... |
Turing's objective while building his concept was to formalise how humans do abstract reasoning.
Now correct me if I am wrong but that reasoning seems just an exercise where you manipulate a set of formal statements i.e. strings with no semantics attached to it.
So if Turing machines is the same as reasoning, is there ... |
My search space is discrete and in the order of $10^{1360}$, with a probably very complex fitness surface. Is it hopeless to attempt to use GA for such a problem? One fitness evaluation could take 1-3 minutes per candidate solution.
|
Where is the formal spec located?
Like this?
Are tests made from formal or informal spec?
I saw a project where they where generated from a the formal
spec and that never made sense to me.
Is the verification step manual or can it be automated?
If it is manual, we now have 3 things to maintain and keep in sync.
The p... |
It was already asked here whether NP=coNP implies P=NP. I'd like to approach that question from the perspective of the Polynomial-Time Hierarchy.
Here is a theorem from Oded Goldreich's "Computational Complexity" (Proposition 3.10):
For every $k \ge 1$, if $\Sigma_k = \Pi_k$ then $\Sigma_k =
\Sigma_{k+1}$, which in t... |
In the paper "A Conflict-Free Replicated JSON Datatype", I encountered this notation for formally defining "rules":
What is this notation called? How do I read it?
For example:
the DOC rule doesn't have anything in its "numerator" — why not?
the EXEC and GET rules appear to have two separate terms above the line, wha... |
My goal is to algorithmically take a list of relations between nodes (in other words, a list of undirected edges between nodes of a graph) and label each group of nodes such that all nodes that have a path between them have the same label (I believe the term for this is a "connected component") and nodes that do not ha... |
I tried to implement the lambda calculus successor function on my own, but it's different from the Wikipedia entry on Church encoding. The entry wraps the 'b' around the rest of the expression after injecting the 'c', whereas I tried injecting 'b's application on 'c'. Is there a fundamental difference between these t... |
I have real data I am using for a simulated card game. I am only interested in the ranks of the cards, not the suits. However it is a standard $52$ card deck so there are only $4$ of each rank possible in the deck. The deck is shuffled well for each hand, and then I output the entire deck to a file. So there are on... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.