instruction
stringlengths
35
29.1k
I am wondering at a high level the mathematics of the Polyhedral Model. The polyhedral model (also called the polytope method) is a mathematical framework for programs that perform large numbers of operations -- too large to be explicitly enumerated -- thereby requiring a compact representation. The polyhedral method ...
Understand that BFT algorithms are always prepared for the worst possible circumstances and pays a price for this in terms of speed. Can one reasonably make the statement / assessment that non BFT algorithms such as Raft is more scalable in terms of TPS compared to other BFT algorithms such as Istanbul BFT (IBFT) and T...
I feel stuck at this point. I have spent several days trying to get my head around the algorithm, but both resources I have [1] [2] seems to skip over whatever details that would make me comfortable trying to explain/implement it. I'm going to hope that someone here knows Farachs suffix tree algorithm, but I'll link to...
It occurred to me that, the way compression essentially works, is that you have a mapping of long patterns to short patterns, which you replace one way to compress and the other to decompress. My understanding of the way compression algorithms work, is that they create this mapping dynamically, with things like huffman...
Density-reachability is a canonical extension of direct density-reachability. What is meant by canonical extension? Source: A Density-Based Algorithm for Discovering Clusters in Large Spatial Databases with Noise https://www.aaai.org/Papers/KDD/1996/KDD96-037.pdf
A logistics company has two trucks and has to deliver some packages to some addresses. The manager has to create a plan for every driver. Input Data: A set of V locations, an array d[v,u] for every pair of locations u,v belongs to V. The distance (integer) is also stored between the locations. A starting point and an ...
Is there a good algorithm for calculating the longest common subsequence where we consider two sequences identical if they can be transformed to one another with at most 1 swapping of subsequences (i.e. taking two non-overlapping subsequences of the same length and substituting them for each other)? For example ABCDEFG...
The test-object is a signed distance function that is computed with ray-marching. When the ray hits an object the intersection-flag is set to 1 or otherwise set to 0. To speed up the process (since all of the computation is done on the native CPU) I implemented adaptive subsampling in screenspace. The following image s...
For example, if I have a start state of $i$ and a string $w$, how could I create a Turing machine that would halt when the tape content is $w \Box w$? The language is $\{a,b\}$. My initial idea was a machine that: On $i$, moves right and changes to $p$. On $p$, if letter read is $a$, move $n+1$ cells to the right and c...
I've been researching the different answers I've been given to this, would somebody just be able to give me a clear answer of the difference between Shift, reduce and go-to. - In a parsing table. Of course, reduce is in the same, but how do you know when to shift or go-to? Thanks.
This is a homework question that I am unable to solve. Any help would be really appreciated. Given $B$ an increasing binary tree with root $r$ and $n$ nodes labelled $1, 2, . . . , n$ such that on every path from root $r$ to a node, the labelling is increasing. Prove that there are $n!$ different increasing binary tree...
We have years of data on several Gas-Stations. Data about the Gas-Stations: the number of tanks, Gallons per tank, Location, number of pumps, kind of fuel, etc. Data on fuel consumption for x gas station: Time-Date when filled, Time-Date when empty Data about consumers: Gas Price, Peak hours for gas charging, peak seas...
Often a binary tree is represented in a particular implicit data structure packed into an array whereby the left and right children of t[x] are found at t[2x+1] and t[2x+2]. This is commonly done in implementations of heaps, for example. Does this representation have a canonical name? I am somewhat fed up of referring ...
In order to find the appropriate length of chromosomes in GA programming, the author of this book states: Suppose six decimal places for the variables' values is desirable. It is clear that to achieve such precision each domain Di = [ai,bi] should be cut into (bi - ai) * 10^6 equal size ranges. Let us denote by mi...
I am a math major without a strong background in theoretical computer science and I have to show that the worst case running time of the Delaunay algorithm is $O(n^2)$, when I know that the expected runtime is $O(n\log n)$. Can someone help me with this?
given the following hash table with linear probing when the hash function is: $$k mod 10$$ how many different sequences will produce the given table? (starting from an empty table)
Similar questions were asked elsewhere, but no satisfying answers occurred yet. In a graph with weights for both vertices and edges, I want to find a subgraph, whose sum of internal edge weights is bounded and the sum of internal vertex weights is maximum. Is this problem NP-hard? Please note that the subgraph has to b...
By definition, a parameterized problem $(Q, \kappa)$ is in $W[1]$ if it can be transformed into a combinatorial circuit $\varphi$ in polynomial time, such that the weft of $\varphi$ is 1. On the other hand, $(Q, \kappa) \in A[1]$, if it can be transformed into a parameterized model checking problem $p$ -$MC(\Sigma_1)$....
In computational geometry, we can define a duality between points and lines. The line is the primal (or dual) object of a point, or a point is the primal (or dual) object of a line. However, the exact definition of the primal and dual planes is often not given in the literature. It's a little bit confusing which one is...
This Grammar: A-->Bbab|aa B-->b I think we can't because basically there is no relation between terminals? like no relation between a and b! or am i missing something? and the language of this grammar has only 2 members ! can we using Operator precedence parsing with this grammar?
Wondering the general overview of how to compute the fixed point on a program's dataflow lattice. A fixed point of a function $f(x)$ is one where the output of the function equals the input, so: $$f(x) = x$$ Given $f$ is an order preserving (monotonic) function $x ⊑ y \Rightarrow f(x) ⊑ f(y)$, in this presentation, the...
Is there a standard term for a priority queue which can only hold a single occurrence of any element? This would be a priority queue for which operations such as "raise the priority of element x to the new value p" would make sense. In this kind of an abstract container, if you insert some element ("key", but not in t...
Say I have a strongly connected directed graph with weights (positive or negative) and w/o negative cycles that already has all the shortest path from s to v computed. Say I update one edge in the graph. Is there an algorithm close to linear time to find the SSSP from s once again on this new graph?
Proving that Class P is closed under concatenation. The answer is given below: But I do not know why stage 2 is repeated at most O(n), could anyone explain this for me please?
I'm reading through Open Data Structures by Pat Morin and am currently looking at scapegoat trees. The book is free and can be downloaded from here: http://opendatastructures.org/ods-java.pdf On page 179, the author uses a "credit scheme" to prove an upper-bound on the cost of all rebuild() calls during a sequence of m...
I have been trying to solve this problem with witness theorem. So the problem is as below: Define $L^* := \{x \in \Sigma^*|$there exists k and $x_1,...,x_k\in L$ such that $x=x_1x_2...x_k\}$. Prove that $L \in NP$ implies $L^* \in NP$. So my initial thought is to find a witness language $\in P$ for $L^*$ from the fac...
I have seen estimates for the runtime of Shor's Algorithm,, which relies on Quantum Fourier Transformations. What is the runtime of those transformations themselves? Either big-O or more accurate estimates are welcome.
There is a proof in this document (page 8, Section 4, Lemma 3: https://inst.eecs.berkeley.edu/~cs170/fa16/lecture-11-29.pdf) that mirrors a proof my professor gave in my algorithms class. The lemma states: Suppose that there is a deterministic exact algorithm for counting distinct elements that uses o(min{|$\Sigma$|, ...
This might be a rookie question, but I wanted to understand the following line. My book says, each time a host wants to send a packet, it places the address of the destination host in the packet's header. Okay, I understand this. Also, packets forwarded using destination address have their address mapped to an outgoin...
Are there term rewrite systems, that can rewrite complex lambda term (with nested function application) into some other lambda terms, I.e. reorde function application and, possibly, introduce new variables and add some additional functions into the final term? Google is no help here, because it says, that lamda calculi...
Well, I know the difference between functions used in math and C language. But what are those specific areas where mathematical functions are used?
In the section of my textbook covering the pumping lemma, there are practice questions asking us to prove a given language is not regular. I have not been able to solve this one: The set of strings of 0s and 1s, beginning with a 1, and interpreted as an integer, that integer is prime. My attempt: Assume to the co...
Think about a setting where there are $n$ tasks and $m$ machines. We are interested in task-machine assignment. Let $p_i$ be a non-negative completion time of job $i$. Also, $x_i$ denotes the machine where task $i$ is scheduled. A machine processes the task having the smallest completion time, then the second etc. So f...
For my project, I try to use minimum fractional vertex cover number (MFVC). (Please find below definition details) MFVC can be formulated as optimal solution of a linear program relaxation. However I find that every linear program relaxation is either infeasible, unbounded, or has an optimum solution. Does is mean ...
Easy question. I have a homework problem with its answer that i am unable to interpret. An explanation on how to arrive at the answer is what I'm looking for. Please let me know what the palette is too. I'm having a difficult time finding information on this problem.
Theorem II.5.8 in P. Odifreddi's Classical Recursion Theory states that If $\{\psi_e\}_{e\in\omega}$ is an acceptable system of indices, then there is a recursive permutation $h$ such that $$ h(\psi_e(x)) = \varphi_{h(e)}(h(x)) . $$ where $\varphi$ is the standard enumeration of p.c. functions. My question is wheth...
According to this post, "neural networks are a special form [of a computational graph]". I think that one can infer from that that all neural networks are computational graphs. My question then would be: are there computational graphs that aren't neural networks?
A polygonal chain $C$ is called monotone with respect to a straight line $L$, if every line orthogonal to $L$ intersects $C$ at most once. I want to design a linear-time algorithm to check whether there exists a line $L$ such that a given chain $C$ with $n$ vertices is monotone relative to $L$, and find such a line. My...
Say I have an image, represented as a 2D array of pixel values. Also, say I have a set of points on that image where each has a current (x, y) position and a Destination (x, y) associated with it. I want to find a path for each point to its Destination so that the points do not collide with each other in (x, y, t) wher...
I'm doing research work for my last year in high school. My work is about processors and for the experimental part i've coded an app that can mesure how many Floating Point Operation can a processor do in one second. My problem is that i get really different results depending when I execute my benchmark, I can get 5,6 ...
A set of m items need to be placed into n stacks, where m > n. Each stack has z positions. An item has different widths when placed into different positions in a stack. The width of an item depends only on the position within the stack but not on which stack it is placed in. The width of a stack is the maximum of the ...
I have done some research but I cannot answer this question. Please Help.
The question and its answer is given in the following picture: But I do not understand why stage 2 causes at most $n+1$ repetitions, and why stage 3 uses at most $O(n^2)$ steps, and I understand that the algorithm runs in $O(n^4)$ time not $O(n^3)$ as written, am I right?
Normally to show that an optimization problem is hard, we show the corresponding decision version of the problem is hard. However, is this sufficient to support the conclusion? Does there exist any optimization problem which is easy but its decision version is hard?
I have a set of R x C matrices similar to the following (can be much longer): C1 C2 C3 C4 C5 C6 R1 0.32 0.81 NA NA NA NA R2 0.90 -0.44 0.95 NA NA NA R3 NA 0.93 0.86 0.24 NA NA R4 NA NA 0.70 0.74 0.15 0.05 R5 ...
I'm trying to add two 16 bit numbers that use a similar format as IEEE 754. The format is in the image below: I can't figure out how to add together two numbers for the life of me. Specifically, 0x82A3 + 0x0B98. In my attempt to solve this, I got 0x0B98 as the final sum, but that doesn't seem right to me.
I check for the symmetric directed graph and it's impossible to be bipartite , because we can't divide the vertices into two sets since all will have in - and out arrow but in general it could be right ? if I draw a graph with one direction
My prof introduced us an algorithm with semaphores that was used to solve the "dining philosophers" problem. The algo is ok, apart from that it limits concurrency. What does mean that it "limits concurrency" and why this happens ?
I am only several days exposed to computational theory, so my understanding is quite slim: in a question, it says that for a regular language L1 and a recursively enumerable but not recursive language L3, L3 ∩ L1 is recursively enumerable. But I thought it would be recursive? Now, the text and I came to the same first ...
As far as my understanding goes, to show that a problem A is NP-hard, we use another NP-complete problem B. We reduce (in polynomial time) from B to A, i.e. use A to solve B. This shows that A is harder than or equal to B, which proves that it is NP-hard. However, I don't understand why A is harder than B? I feel like...
Consider the language $L= \{ x\in \{0,1\}^* |x$ ends with $00 \}$ The Nerode relation $R_L$ says $xR_Ly \iff \forall z\in \Sigma^*:xz\in L\iff yz\in L$ By looking at the language : I can conclude that the equivalence classes should be something like $[\epsilon]=\{x|x$ doesnt end with $0\}$ $[0]=\{x|x$ ends with $0$ but...
Every once in a while, I come across the term numerical stability, which I don't really understand. In particular, I have seen a description of the practice of "adding logs rather than multiplying numbers" as "numerically stable." I would like to know why this is considered numerically stable. By "adding logs rather th...
I believe this is true but have not been able to get a formal proof for either. But is it true that any minimum spanning tree is reachable by applying Kruskal's algorithm? Similarly, is this true for Prim's algorithm? EDIT: To be more precise, I want to know if given an MST for a connected, undirected, weighted graph, ...
Let $(u,v)$ be an edge in the graph, I have to develop an algorithm to find the length of the shortest cycle containing this particular edge. Also, the graph has only positive edge weights Here's what I have so far, and I wanted to know if I am in the right path (or, if this is correct): •Remove $(u,v)$ from the graph ...
public static void MergeSort(int[] a, int p) { MergeSort(a, 0, a.length - 1, p); } private static void MergeSort(int[] a, int start, int end, int p) { if (end - start > 0) { int middle = (start + end) / 2; MergeSort(a, start, middle, p); MergeSort(a, middle + 1, end, p); Merge(a, start, middle, end,...
According to Redko the equational theory of regular languages with operations $+, \cdot, *$ over a single letter has no finite set of axioms. Why does this imply that it has no finite set of axioms over an arbitrary alphabet? Suppose I have a finite set of axioms for the equational theory of an alphabet with more th...
Given a distance-1 neighborhood matrix representing an undirected graph, I'm trying to calculate the distances between two nodes so I can work out the distance-2 matrix, then the distance-3 matrix, and so on... How to find this distance? Any help would be appreciated.
Consider the following example: Algorithm $A$ has Algorithm $B$ as its subroutine. The running time of algorithm $A$ without counting the time spent running the algorithm $B$ subroutine is $O(n^4)$. One call of algorithm $B$ takes $O(n^3)$ time. In a single run of algorithm $A$, algorithm $B$ is called at most $10n^2$ ...
Has there been published work on hiding symbolic math within numeric software, partitioning parallel processes between speculative symbolic optimization search and numeric evaluations? Real world numerical applications of mathematical software frequently must take days to complete a computation while leaving vast compu...
I just didn't understand the second part of the prove "G has twice as many edges as vertices only "... what do I actually have to prove ? I understand it like $n=2e$ , is it right ? then isn't it's just similar to the degree equation ??
My friend and I were studying NP-hard problems and NP-completeness. I don't think we have understood the concept very well so I thought I would come here to solve our doubt. To show that a given problem is in NP, we have to verify a solution to a given instance of the problem can be solved in polynomial time. We get t...
I have an array of the size N with K distinct elements.We don't know what the K is. I would like to sort this array in O(kn). I have found this answer and I would like to understand what does exactly @Aidan Connelly was talking about(I'm unable to comment on this answer) I'm getting the array lets say it's (-50, 23456...
Forgive me if this is a stupid question - it's been a while since I thought at all about complexity theory and I want to make sure that I have covered all the possible angles with regards to the basics. My question is, is it immediately true that class P is a subset of the class NP? That is, do we need to prove that th...
What is the easiest and the most straightforward way to find whether a given language is decidable? For example, how do we know if the following languages are decidable or not? `Binary representation of all prime numbers` `{ empty string(eps) }`
I am interested in counting the number of solutions of a particular type (say #) in HORN SAT. I have 2 questions concerning the same. Suppose we have a HORN SAT -: $(x_1) \land (x_2 \implies x_1)$, then the solutions are $(1, 0)$ and $(1,1)$. For solutions of type #, I would like to eliminate $(1,1)$ as after negating...
We have two $NP$ complete problems $\Pi_1$ and $\Pi_2$. Suppose $\Pi_1\rightarrow\Pi_2$ be a many one parsimonious reduction. If $\Pi_1$ has an FPTAS then does $\Pi_2$ also have? If $\Pi_2$ has an FPTAS then does $\Pi_1$ also have?
I'm reading this book about assembly however I got stuck on one part, I can't seem to comprehend how memory address is 'applied' to the address pins This is the image from the book What I know here is the data pin applies voltage on the memory cell's input or output pin. And for the select pin the book explained that ...
If r and s are any two regular expressions, then (r ∪ s)* = r* ∪ s* ∪ (rs)*. I think this is not true. And I believe this would always be true : (r ∪ s)* = r* ∪ s* I wanted to clarify this because of (rs)*. What do you think the right hand side would be if r* ∪ s* ∪ (rs)* ?
I believe this statement to be true. And here's my reasoning: Based on regular languages properties, the concatenation of two regular languages is regular. And since L′ = L · L, it follows that L′ must also be regular. Do you think my reasoning is valid?
I'm having some trouble interpreting the camera matrix $K = \begin{bmatrix} f_x & s & x_0 \\ 0 & f_y & y_0 \\ 0 & 0 & 1 \end{bmatrix}$ after it multiplies some 3D vector. Assume that $f_x = f_y = f$ and $s = 1$ $\begin{bmatrix} f & 1 & x_0 \\ 0 & f & y_0 \\ 0 & 0 & 1 \end{bmatrix}\begin{bmatrix} X \\ Y \\ Z \end{bmatri...
Prove that for every computable function $f \colon \mathbb N \to \mathbb N$, there exists a computable function $g \colon \mathbb N \to \mathbb N$ such that for every $n$ we have $f(n) ≤ g(n)$. Can anyone please explain me, why my proof below is not correct? Lets assume, for the sake of arriving at a contradiction,...
I've looked at the feedback vertex set and thought about connecting the problem to finding vertex disjoint cycles. My first thought was that if there are at most k vertex disjoint cycles in a graph, then k is a bound for the feedback vertex set problem and there is a subset of k vertices satisfying the requirement (i.e...
I need to read the digits of images like the one below: From what I understand, this will involve: Registering and segmenting the image into each individual digit Hand labeling a bunch of these individual digit images Training a classifier based on that hand labeled data Putting it all together Am I on the right tra...
This is part of a bigger proof I'm trying to solve, which eventually came down to one thing: Let $G=(V,E)$ an un-directed, complete, metric graph (maintains the triangle inequality) with an even number of vertices. Let $PM$ denote a minimum-weight-perfect matching on $E$ and let $MST$ denote a minimum-spanning-tree of ...
In this paper with the title of "NP-Complete Scheduling Problem" by J. D. Ullman, I am trying to understand the reduction from 3-SAT problem to a scheduling problem in order to prove the later is also np-complete. An instance of 3-SAT is given as below: and this is the instance of the scheduling problem defined as: S...
There is a problem. Given string $text$ containing only letters and string $mask$ containing letters and asterisks (*), where asterisk means substitution of zero or more letters, find all substrings of $text$ that fit $mask$. There is an example: let's $text=cabccbacbacab$, $mask=\textbf{ab}*\textbf{ba}*\textbf{c}$. Th...
I am learning something about P/T petri nets from the book from Wolfgang-Reisig authors and on the seventh chapter's end there is an exercise I can not really work out. It asks me to construct initial marking such that the following marked graph is live and safe. Note that yellow highlighted place is for the latter par...
I am a little bit confused with the unbounded minimization ($\mu$ operator of the $\mu$ recursive functions). The $\mu$ operator is $\mu(f)(x) = \min(n | f(x, n) > 0)$ and the operator is said safe if we only apply it to functions such that for every $x$, $f(x, n) > 0$ for some $n$. In that case, every recursive functi...
Is there an efficient algorithm ("does not necessarily have to be a polynomial time algorithm") to compute all "minimal" solutions for a Dual Horn formula (conjunction of clauses where each clause contains at most one negated literal)? By "minimal" I mean, consider the following dual horn clause (formula)-: $x_1 \lor ...
I am having a difficulty proving that the set splitting problem is NP-complete using SAT. Suppose S = {1,2,3,4} and C is a collection of subsets of S, say C1 = {1,2}, C2 = {3,4}, C3 = {1,3,4}. Each number is given a color red or blue ... need to verify if none of the subsets have only one color. How do I use SAT probl...
Write a grammar for a language $$L=\{ba^{2^n}b | n\ge 1\}.$$ It's not even context-free as I think. I just can't produce it, although I've tried a lot. Now my best attempt is: \begin{aligned} S &\to RLM \\ M &\to AM | A \\ LA &\to aa \\ aA &\to Aaa \\ RA &\to \varepsilon \end{aligned} But I've found example with deadl...
In a process like $$ R \stackrel{def}=((a.\bar{b}.0)\setminus\{b\})[a\to b]\mid(\bar{b}.b.0)+\bar{b}.c.0 $$ $b$ is restricted to perform on the inner process of RHS $(a.\bar{b}.0)\setminus\{b\}$, thereafter the $a$ is relabeled to $b$. What I am confused is in drawing the LTS of it, the $a$ action occur at first proce...
I'm very confused about the reasoning for these circuits being called 'full adders' and 'half adders' I've read before that 'half adders' are called so, because two of them make up a 'full adder', and a 'full adder' is 'full' because you can get all the values $(0,0), (0,1), (1,0), (1,1)$. But what irks me is that addi...
Does composition of several linear transformation plus non-linear activation function in each layer and different layers (as they are in feedforward neural net) represent or approximate a multivariable polynomial? Here is what I am wondering about. Removing the affine linear transformation part of the neuron does chain...
I'm asked to draw a simple connected graph, if possible, in which every vertex has degree 3 and has a cut vertex. I tried drawing a cycle graph, in which all the degrees are 2, and it seems there is no cut vertex there. I know, so far, that, by the handshaking theorem, the number of vertices have to be even and they ha...
I need to build a TM with exactly 1 tape for the language L = {w| w is a word with same number of a's and b's in it, for example: abba, aababb} The TM has to have ONLY 1 tape and it has to run in O(nlog(n)) time. I understand how to do it in O(n^2) but i have no idea how to make it nlog(n). If i have the input w = "aaa...
I detect a unmanned aerial vehicle(UAV) in a picture using template matching. The template library only contains targets with different scales, rotations and other differences.I want to simplify the template library using clustering. I learned the k-means and Gaussian mixture model(GMM)but they all need determine the v...
I have implemented a genetic algorithm for an optimization problem and I'm now trying to improve it to see if I can find better solutions or faster convergence. I am confused about the selection part of the algorithm and how it relates to selecting parents for cross-over. In my mind these things are not the same yet ma...
Let assume that P=NP so we have both search and decision algorithms for 3SAT at polynomial time. Can you help me to find an optimal algorithm for optimize 3SAT, i.e.: to find the maximum number of clauses in $\varphi$ that can be satisfied. Thank you! P.S. You can assume that you have search and decision algorithms f...
Please consider the following question: Given an integer m by n matrix A and an integer m-vector b, the 0-1 integer programming problem asks whether there exists an integer n-vector x with elements in the set ${ 0, 1 }$ such that $Ax \leq b$. Prove that 0-1 integer programming is NP-complete. Am I correct that $Ax$ is ...
$L=\{$$($$m$,$w$,$n$$)$| $m$ is an encoding of a non-deterministic Turing machine, $w$ is any word/string in the closure of alphabet, i.e. $w\in\Sigma^*$, $n$ is any positive integer, i.e. $n\in\Bbb{Z}$ and $n>0$, and $m$ accepts $w$ for a maximum of $n$ moves/steps/operations $\}$ Alphabet is $\Sigma=\{0,1\}$ If this ...
When you use resolution variable elimination to preprocess/simplify a formula in cnf form the resulting formula is equisatisfiable. What I wonder about is if I can use this technique to remove variables i don't care about while leaving the truth values of the variables I care about untouched in the final model I get f...
How "meaningful" is Turing test? Because even though it's sometimes presented as a "scientific" way of classifying the goodness of AI, I do view it as a sort of naive, left-handed way for defining or measuring computer intelligence. Because there are many more aspects to computer intelligence than mere "whether it can ...
Why is binary search time complexity for worst case log (n) + 1 instead of just being log(n)? the way I understand it, the number of times we divide the list till we find our desired element is log (n) times in the worst case scenario. Where does this extra 1 come from? (it's log (n) + 1 according to the power point of...
$$T(n) = (\log n) \cdot T(n/\log n) + \Theta(n^i \cdot (\log n)^k)$$ and $$T(n) = (n\log n) \cdot T(n/\log n) + \Theta(n^i \cdot (\log n)^k)$$ for any given $i$ and $k$. I think it helps to know that for $0<j\leq 1$ \begin{equation} \lim_{n\to\infty} \frac{n/n^j}{n/\log n} = 0. \end{equation} But what is a simple way t...
Wouldn't this language be in P, since it is a context free language. And every context free language is a member of P? Or would it be otherwise?
The following graph has consistent heuristic. An A* algorithm will alter its first guess ACD to the correct shortest path ABD... if it has consistent heuristic, doesnt it mean, that AB should be found before AC?
Within some shape, I want to find a set of points where the distance between each point is maximized. This seems similar to sphere packing to me except that part of the sphere can be outside the shape.
From Online Computation and Competitive Analysis By Allan Borodin, Ran El-Yaniv, to prove that an online algorithm $\text{ALG}$ is $c$-competitive for a minimization problem (i.e., there exists a constant $\alpha$ such that $\text{ALG}(I)\leq c\cdot \text{OPT}(I) +\alpha,$), it is sufficient to find a potential functio...
I've struggled in the closure properties of the general class of languages because I couldn't use any automata concept and grammars. In specific, I'm interested in dependency of operations. (The operation $A$ is dependent to other operations $\Sigma$ when every class of languages is closed under some operations $\Sigm...