instruction stringlengths 35 29.1k |
|---|
I am trying to use epipolar geometry concepts to estimate the relative pose of cameras between two images. I am currently using a simulator to get my camera images, so the distortion is zero and I know the camera parameters beforehand. I am using OpenCV (through the findEssentialMat, recoverPose, solvePnP functions) fo... |
Does there exist an algorithm that can solve the minimum cost maximum flow problem even if the residual graph contains negative weight cycles?
I have an implementation that uses shortest paths to compute the minimum cost maximum flow but this fails to find the minimum cost flow even though such a flow is well defined. ... |
So the question is: "Imagine the compression of a text written only with the first 5 characters of the alphabet (a, b, c, d, e). Knowing that their apparition's frequency is 1)e, 2)a, 3)c, 4)d, 5)b, code the letters on the minimum bits possible."
so here's how I did start:
We have 5 characters, so 3bits will be enough... |
I'm really new to learning about PDA's and stuff, i understand that on a edge between 2 nodes you'll have something like this a,b->c. This means:
if a is in the beginning of your string and b is on top of your stack you can
remove a from your string (the one you run through the PDA),
remove b from your stack
place c... |
How to judge whether a rectangle in the figure is inside the given point cloud? For example, in this figure, the red rectangle is outside the point cloud and the green rectangle is outside the point cloud.
|
I have an automaton, for example the below automaton and would like to generate a single formula (LTL or CTL, or some other representation) that satisfy exactly the traces provided. e.g.,
$t_1 = i^*f_4f_5f_7f_8f_7f_5f_4i^+$
$t_2 = i^*f_4f_6f_7f_9f_7f_6f_4i^+$
$t_3 = t_1^*t_2^*t_1^*$
$T = \{t_1 ...t_x\}$
I may have the... |
According to Wikipedia's article on Turing Reduction
It can be understood as an algorithm that could be used to solve A if it had available to it a subroutine for solving B.
Does solving mean always halting (accept/reject)? Should B assumed to be decidable language for the sake of proofs ?
|
When I was fairly young, I taught myself to count in binary. I thought it would be a fun party trick to impress people. I soon found out that it was not.
Over the years I've come to appreciate Gray code/reflected binary code for its property of only flipping one bit for each increment/decrement of the underlying count.... |
Consider the dominator tree of, say, the graph of objects in memory, computed by a memory profiler - one of the most powerful memory leak debugging features, I believe.
The dominator tree tells you "if you manage to make this object unreachable, you'll reduce overall memory consumption by its whole subtree".
Obviously,... |
Determining if a graph is $3$-colorable is NP-complete. But this is equivalent, by a resolved case of Hadwiger's Conjecture, to checking if the graph has $K_4$ as a minor.
Per https://en.wikipedia.org/wiki/Graph_minor#Algorithms, this can be done in $O(n^3)$ time, where $n$ is the number of vertices, as $K_4$ has a con... |
Given two ellipsoids $e_1, e_2$, and we need to find another ellispoid $E$ such that $E=\arg\min_{E\ :\ e_1,e_2\subseteq E} {V(E)}$ (where $V(E)$ is $E$'s volume). In words, $E$ has the minimal volume among all ellipsoids that contain both $e_1$ and $e_2$.
So, I am looking for some algorithm/ formula for computing $E$.... |
I am interested in combinatorial (worst-case) one-way functions. I came across this problem which may be related to coding theory problems (I am not an expert in coding theory).
INPUT: Two vectors $R_{n*1}$ and $C_{1*n}$.
QUESTION: Is there a binary matrix $A_{n*n}$ such that vector $R$ contains the parity check of ea... |
Here is a description I read from one of the sources about 2WNFA:
"Unlike ordinary finite automata, a 2DFA needs only a single accept state
and a single reject state. We can think of it as halting immediately when
it enters one of these two states, although formally it keeps running but
remains in the accept or reject ... |
I was given a HW assignment that asks me the following:
Given a system of $m$ linear equations in variables $x_1,x_2,...,x_n$ over $\mathbb{F_p}$, find a randomized algorithm that find an assignment for all the $x_i$ such that the expected number of equations solved are $m/p$. Then do a derandomization that gives an ef... |
I have a decision problem $X$ of which I think I can show its complexity by using a reduction from a problem $Y$ that has been shown to be strongly NP-hard.
I tried to follow the same procedure as for proving NP-completeness which I try to summarize here:
Show that problem $X$ is in NP (polynomial time verifiable)
Mak... |
I often wondered why languages like c do not have simple syntactical allowances that would help readability. For example, large numbers such as 1073741823 can be hard to read so my opinion is modern day languages should allow delimiters such as , (comma) so you can write a statement such as x = 1,073,741,823. That is... |
I just watched a video by Computerphile on the halting problem (https://www.youtube.com/watch?v=macM_MtS_w4) . I’m having some difficulty understanding the argument as it is made. Let me explain it as I see it:
So that our terminology is the same, H is a (hypothetical) program which can analyze another program to see... |
Recently I have come across a paper which talks of "(1+ε)-inapproximability" and of "logarithmic approximation".
While I have a basic knowledge of computational complexity (I more or less know what it means to be in P, NP, NP-hard and so on), I tried to study some basic texts on approximability but I'm not sure I reall... |
In the context of Turing machines, consider a $k$-sized macro machine (k-MM) which operates on groups of $k$ symbols at once. This is a common optimization in the search for Busy Beavers, explained e.g. by Holkner: Acceleration Techniques for Busy Beaver Candidates, 2004.
Holkner writes:
The number of shifts required ... |
I want to create a hybrid genetic algorithm for a project to solve really high dimensional problems (1000+) One of my ideas is to incorporate a local optimization method within GA so each individual will be optimized to its local optima before fitness evaluation.
I've read some papers on hybrid GAs with hill climbing.... |
If we have a finite automaton that accepts a string,
is there any numerical relationship that always is true like S ≥ |w| or something similar?
Where |w| the length of the string and S the number of transited states (counting multiplicities).
For example, if we have this automata and the string w = 010 :
S = 3 and |w... |
Let's define Cyclic deterministic finite automata (CDFA) as a DFA that treats its input a bit differently -- namely, CDFA when given input $w$, firstly transforms its input into $w@$, where $@$ is a special character outside the alphabet that acts as a loop, gluing end of $w$ to the beginning of $w$. So, when CDFA read... |
I want to find out whether, assuming a language $L_1$ being mapping reducible (i.e., $L_1$ maps to $L_2$ and the complement of $L_1$ maps to the complement of $L_2$) to a language $L_2$ and $L_2$ being recursively enumerable, $L_1$ is recursive or not.
I tried creating a recursive Turing machine for $L_1$ by using the ... |
My problem is to find all integer solutions to an ILP. As an example, I'm using an ILP with two variables, but I may have more than two variables. I describe the method I currently use to solve this problem near the end, but I'm interested in knowing if there is a proper and efficient algorithm or method for solving th... |
This is the question where I'm stuck:
With a 32-bit virtual address, 4 KB pages(12 offset bits), and 4 bytes per page table
entry, we can compute the total page table size:
Number of page table entries = 2^(32-12) = 2^20
Size of page table is 2^20 * 2 = 4MB
I understand this, but what I don't get is that each page t... |
Let's say I needed to render an image at 1920 x 1080 and also at 1024 x 768. Instead of drawing two separate images, it might make sense to draw the scene in a common "virtual" coordinate system and then translate that to the appropriate output coordinate system.
Is there a name for this problem? I'm having a hard time... |
Given a convex polytope $\{x\in \mathbb R^n | Ax\leq b\}$ where $A$ is a matrix, and $b$ is a vector, and inequality between two vectors (like $Ax\leq b$) means inequality between their components ($\forall i : (Ax)_i \leq b_i$).
Is it NP-complete to compute its volume? Or are there efficient algorithms for doing that?... |
This is an exercise from old exam on formal languages that I don't know how to solve:
Let $p \ge 5$ be a prime number and $L_p$ be a language of words over $\{0,1\}$ that read in binary from right (i.e. from least significant bit) give a number that gives remainder modulo $p$ from the set $\{1,2, \ldots, \frac{p-1}{2}\... |
This is a follow-up question on my previous one, How hard is recovering a binary matrix from its check sums?. Consider the following problem, which adds an extra restriction that the matrix be invertible:
Parity Problem
INPUT: Two vectors $R_{n*1}$ and $C_{1*n}$.
QUESTION: Is there an invertible binary matrix $A_{n*n... |
Russell's paradox: The set that contains all the sets that do not contain themselves. Does it contain itself? It contains itself if and only if it does not contain itself.
Russell's paradox for the lambda-calculus: The functions that may not be applied to themselves when combined with themselves, they negate themselves... |
It appears that "Basic Regular Expressions" as defined by POSIX.1-2008 do not support alternation, a|b (although some grep implementations recognize the escaped version, \|).
Since the regular languages are closed under union by definition, does this mean that POSIX BRE has less expressive power than a finite automaton... |
Powerset construction is used to convert a non-deterministic finite automaton (NFA) into a deterministic finite automaton (DFA). Is the method/algorithm used to do this deterministic itself and if so, why?
|
I'm doing a research on NLG systems.
I need to annotate my corpus (~6 million words) automatically. My algorithm works well and I want to calculate Cohen's Kappa. What I cannot understand is the second annotator; I don't have the possibility to have another annotation.
Is there any solution for this problem? Can I ha... |
The general formula for time complexity is $T(n) = aT(n/c) + bn^k$.
If $a> c^k$, the complexity is $O(n^{\log_c a})$.
If $a = c^k$, it is $O(n^k \log n)$.
If $a < c^k$, it is $O(n^k)$.
$a$ is the amount of times the recursive function is called, but what do $b$, $c$, and $k$ represent?
|
An n delay transducer in the context of the problem simply means that the output is same as the input but after waiting for 2 more symbols in the input.
2-delay transducer: We can't show any result till we see 2 symbols. So, to store in DFA we need states 00 01 10 11.
But in order to create 00 01 10 11, we need another... |
This is an exercise from an old exam that I don't know how to solve.
For any undirected graph $G$, let $c(G)$ be the length of the longest (simple) cycle in $G$. Show that if there exists a polynomial time algorithm which, for every graph $G$, returns some cycle in that graph which length is at least $\frac{c(G)}{2}$,... |
I'm not sure what terminology to use. Here is some input:
John has items: A B D
Peter has items: A C D
And I want to produce such a table, that would count the # of people having these items (0-count is not required to be outputted):
A 2
B 1
C 1
D 1
A,B 1
A,C 1
A,D 1
A,B,D 1
A,C,D 1
What's the ... |
I have N tasks, each of them requires some time to complete. Time to complete is not the same for all tasks. Each task may depend on a number of other tasks (assume, that no dependency cycles are present). I have M (M is fixed, small and << N) workers that may be used to complete the tasks. I need to find a sequence of... |
Let us consider a specific case of an extended Kakuro puzzle. Given an integer $n$, we must form $n$ as the sum of $k$ distinct positive integers each less than or equal to $r$. From a mathematical standpoint we know that any number including, and between $L=\frac{k(k+1)}{2}$ and $R=k(r+1)-L$ is achievable in such a wa... |
So, I know Church-Rosser has 2 thesis:
CR1: If $ E_1 \leftrightarrow E_2 $, then there exists an Expression E so $ E_1 \rightarrow E $ and $ E_2 \rightarrow E $
CR2: If $ E \rightarrow N $ (with N in normalform), then there exists a reduction row in normalorder (first reduce the left most ouuter most index) from E to ... |
I'm working on a tool that can analyze sizes of individual functions in a compiled binary. For each one it calculates how much space would be saved if the function was removed.
However, the current algorithm is quadratic in the number of functions and as such is quite slow. Is there a better one? The problem formulatio... |
The structure of the question is as follows: at first, I provide the concept of collective recognition, further I provide explanation of the various methods of group classification that I found, in the end I introduce you the question. Those who are experts in this field and may not need explanations might just look at... |
Let's say I have a graph with $N$ nodes, $A$ arcs and an average branching factor $b$. I want to find the $K$ shortest paths between two nodes.
Is there some relation (even approximate is fine) that expresses the dependency between the parameter $K$ and percentage of nodes included in the paths discovered by running t... |
A cache with 64 blocks(block0 to block63) and each block of size 16 bytes (or 4 words).
This is what I think of the address arrangement, if it is byte addressable.
block0 has addresses: 0, 64, 64*2, 64*3, ...., 64*15
block1: 1, 64+1, 64*2 + 1, 64*3 + 1, .... 64*15 + 1
block2:
...
...
...
...
block63: 63, 64... |
We have many problems, like factorization, that are strongly conjectured, but not proven, to be outside P. Are there any questions with the opposite property, namely, that they are strongly conjectured but not proven to be inside P?
|
Where can I find a proof that Martin-Löf Type Theory isn't Turing Complete, if such proof exists?
|
So every NFA can be transformed to a DFA and every DFA can be transformed to a minimal DFA.
But every NFA can also be transformed to a GNFA (generalized NFA) with 2 states. This is just the start and end-state with the RE of the $ L_{NFA} $ written on the bow between.
So I think the GNFA can be smaller (less states) ... |
(I was not really sure in which "stackexchange" I should put this question. I hope CS is ok.)
Let's say I have the following tree A. Every node has a unique ID, which will be counted up, beginning from 0. The ID counting is taking place in breadth-first order.
Now I want to pick out a part of the graph A. The informat... |
I have read about the N-queens problem and I don't understand the following objective function:
$O(board)=N^2/2-L$
$N$ ... number of queens
$L$ ... number of pairs of queens that attack each other
Why they use $N^2/2$? They wrote that it is the number of pairs of queens but I don't understand that can someone maybe exp... |
When someone tells a computer scientist that a CPU is, say, 32 bits, what all does he/she infer from this information?
I know that it means that the physical address has 32 bits. This meas that the physical memory can't hold more that 2^32 bytes of RAM. This also means that the word size is 32 bit or 4 bytes. Please co... |
Does there exists a computable problem P such that:
Is proven that P can be solved with an algorithm that has a certain complexity.
The best algorithm know unluckily is still slower (greater complexity) than the proven bound.
Example:
A problem that we have proven can be solved in worst case in $O(n^2)$ operations.
... |
Given an expression (a word in the one-sided Dyck language), I want to write a program to examine whether the pairs and the orders of “{“,”}”,”(“,”)”,”[“,”]” are correct in the expression. For example, the program should print true with begin-end pair of symbols indices for exp = “[()]{}{()()}” and false for exp = “[(... |
So let's say i have a graph like this and salesman starts his journey at "A"
How do i solve the TSP problem for this graph with pen and paper on exam?
|
A quick thought experiment here:
Suppose one could construct an oracle that could yield a solution to an NP-complete problem (3SAT, TSP, SUBSET, etc) for smallish (30-60) inputs in a single operation.
Would there be areas in computer science/graphics/processing/etc where this would be particularly useful? Which NP com... |
Given a set of data points (shown in red), it is possible to fit a line $y = mx + c$ through the points using linear least squares regression.
I would like to modify this to fit a 1D lattice (grid) along the line such that $d$ is the offset of the the grid along the line and $i$ is the interval between neighboring grid... |
I want to add a constraint to a convex program, to guarantee some matrix $A$ to be positive semidefinite.
How should I do it?
The library I am working with can cope with linear/ quadratic inequalities only.
By definition, $A$ is positive semidefinite iff $\forall x \in \mathbb C^n : x^T A x \geq 0$, but this is a set o... |
I've found several open source visual programing tools like Blockly and friends, and other projects hosted at Github, but could't find any that work directly with the abstract syntax tree.
Why is that?
I'm asking because once I discovered that every compiler out there has a phase in the compilation process where it par... |
Can we define feature relevance in terms of regression coefficients? Lots of works report definition of feature relevance in terms of probability and mutual information but I did not find any literature defining the relevance of features in terms of regression coefficients although many works have experimentally proved... |
I've seen answers on the subjects, however I still don't get such answers. In the Cormen book (Introduction to algorithms) it is explained that the worst case for a $Max-Heapify$ call happens when the last level is "half full", in this case the worst case cost is modeled by the inequality:
$$
T\left(n\right) \leq T\lef... |
I'm doing some homework where I have to count the number of functional dependencies (direct and indirect).
But then I'm faced with an unexpected situation, where a class has a relation with an interface. I can find no bibliography on the subject and the teacher didn't talk about this.
Intuituvely, I thought as it being... |
So, $ A\leqslant_mB $ (many to one reduction) means that language $A$ can be reduced to language $B$ if there exists a Turing-calculable function $f$ so $ f(A) \subseteq B$ and $ f(\overline{A}) \subseteq \overline{B} $.
$ A\leqslant_TB $ (Turing reducibility) means that language $A$ can be Turing-reduced to language $... |
As shown in Byrant's original paper, the time complexity of (single-variable) composition algorithm is cubic, and it is a tight upper bound. My question is about synchronous composition, written as
$$f' = f(x_{1},\dots,x_{n})|_{x_1=g_1, \dots, x_n=g_n}$$
where you replace all variables of $f$ synchronously with other B... |
Source:https://en.wikipedia.org/wiki/Abstract_data_type
Can we say that float data types (or all primitive data types or only integer) are abstract data types?
|
So I'm doing exercises from Dasgupta's Algorithms. The exercise i'm having trouble with is:
Show that, if $c$ is a positive real number, then $g(n) = 1 + c + c^2 +...+c^n$ is:
$\Theta(1)$ if $c<1$
$\Theta(n)$ if $c=1$
$\Theta(c^n)$ if $c>1$
(I dont know if this is a hint but it is included in the text:
"The mor... |
Problem statement:
Input:
(a) A natural number $n$.
(b) $m$ requirements on $I_1,\ldots,I_n$ of the form:
Segment $I_i$ is entirely to the right of segment $I_j$.
Segments $I_i$ and $I_j$ intersect.
Output:
Is it possible to find $n$ non-empty segments (on the real number line) which fulfill the $m$ requirements?
H... |
I'm trying to find an algorithm for finding all faces in a wireframe mesh. Wireframe means only the vertices and edges are given as input. There is no restriction on the number of edges a resulting face can have and the face can be convex or concave.
Simple Example
In a wireframe of a square-based Pyramid there are 5... |
I am learning about radix trees (aka compressed tries) and Patricia tries, but I am finding conflicting information on whether or not they are actually the same. A radix tree can be obtained from a normal (uncompressed) trie by merging nodes with their parents when the nodes are the only child. This also holds for Patr... |
What is the good way to extract the objects(circles) from image as shown in picture below?
respectively create two images one with lines and one with circles from source image.
I started with detecting contours in image to filter everything that may be circle from image which gives me results like this:
I'm new to co... |
What interesting alternatives are there for constructing an arbitrarily large static array from smaller scattered blocks of fixed-sized non-contiguous blocks of memory?
This is similar to the problem solved by hardware MMU pagetable mappings from virtual memory to physical memory, but in this particular case the scale... |
The halting problem says that it is impossible to create a general algorithm which can for all inputs and programs determine whether they halt. However, this assumes that the programs and/or the things running them are Turing-complete.
Since all computers have a finite amount of memory and are therefor not Turing-compl... |
According to some slides I found on google, the treewidth of any $k \times k$ square grid graph $G$ is $tw(G) = k$. I just started researching about treewidth and tree decomposition, and for the most part it makes sense. However, I am particularly interested in the $k \times k$ square grid graph case, but have been str... |
One example in my textbook says that
$$\log\log n^n=\log n\log n=\log n+\log\log n = \mathcal{O}(\max(\log n, \log\log n))=\mathcal{O}(\log\log n)$$
and I was wondering why is that true?
I thought that
$$\log n \leq n \Leftrightarrow \log\log n \leq \log n.$$
So, for $C=1$ and $n\geq 1$ we have $\log\log n =\mathcal{O}... |
Let's say we have trained a Support Vector Machine with a Gaussian Kernel. When we feed our model an example, it classifies it based on its similarity to landmarks (distance to examples in our training set).
If instead our model is a K-Nearest Neighbors algorithm, with k=size of the training set, it classifies a given ... |
After some efforts, I'm really doubtful about the application of that queueing model in analyzing network servers (specially in my case, IP Multimedia Subsystem) as well as predicting the workload. Therefore, as a newbie in this area, the purpose of my question is to ask if somebody can give me some advice for my follo... |
TQBF consists of alternating quantifiers, so does $\Sigma^2_n$ for fixed $n$. So given a formula in TQBF, shouldn't there be a level of the polynomial hierarchy that solves it?
I think this is incorrect because TQBF consists of any number of quantifiers, but each level in the PH has fixed number of quantifiers, so ther... |
I was told about an algorithm to solve ODEs which I thought was very clever. I am sure its not something new. It works by discarding the $\mathcal{O}(h^2)$-term from the usual formula for computing the second derivative:
$$f''_i = \frac{f_{i-1} + f_{i+1} - 2f_{i}}{h^2} + \mathcal{O}(h^2), \qquad i = 0,1,2,\cdots,N$$
on... |
Say you have a string S and wish to store indices of it, e.g. letter at index 3 of "toast" is 'a'. Seems that people generally consider an index as taking O(1) space to store*. But doesn't it take O(log(|S|)) space?
If we use binary bits...
length 4 string => index must be at least 2 bits
length 8 string => index must... |
I'm working on an algorithm and I'm trying to figure out its time complexity given the operations it takes to complete a input set of specific length, I have been testing the algorithm with varying input lengths.
The results shows that every time I double the input length, it takes 4 times more operations than before t... |
In algorithm analysis what exactly defines a subproblem?
I know that one of the optimality conditions for greedy algorithms is that all subproblems of the solution are also optimal, but to me this begs the question. Are subproblems defined relative to a data set, a problem on that data set, or a solution to that proble... |
I've just started reading about theory of distributed systems and am a bit confused. There seem to be two ways of defining a synchronous distributed system and I'm not sure whether they are equivalent.
Lynch, in her book Distributed Algorithms (p. 5) writes
The synchronous model: This is the simplest model to describe... |
I have the following multi-edge, undirected graph.
I would like to extract the following tree from it, if I start from the node $A$.
Do you know of any algorithm that I can use to achieve that ?
The problem I am trying to solve is the following.
The first graph represent different relational tables I want to join. E... |
To quote Hubie Chen's A Rendezvous of Logic, Complexity, and Algebra (2009) on constraint satisfaction and complexity,
An operation $f : D^m \to D$ is a polymorphism of a relation $R \subseteq D^k$
if, for any choice of $m$ tuples $(t_{11}, ... , t_{1k}), ... , (t_{m1}, ... , t_{mk})$ from $R$, it holds that the tup... |
I'm trying to identify communities in a direct graph.
I only know how to use Spectral clustering and Girvan-Newman method but the both the methods work only with undirect graph. Am I wrong?
So what method could I use to solve the following problem?
The text of the problem is the following:
Trawling - Identify the comm... |
I am trying to solve the following question: Given a text file containing a bunch of biological information, find out the one gene which is {up/down}regulated. Now, for this I have many such (60K) files and have annotated some (1000) of them as to which gene is {up/down}regulated.
Conditions
Many sentences in the file... |
Let's say you have $n$ symbols. You can encode a $\log_2(n!)$-bit message by permutating the symbols. I will call this a permutation code (if you have seen this concept before, I would love to see a reference).
Let's say we are encoding a message with $k<\log_2(n!)$ bits. It is possible to add error correction. One way... |
When, beyond theoretical exercises, do we care how many solutions we can find for something?
I had an analogous question for TMs before - why is it useful to study machines that can only deliver acceptance and rejection as output? Here, the answer (at least in a practical context) seems more clear - find a solution (e.... |
We know that every optimisation problem has an equivalent decision problem.
So say I keep going up a mountain (I.e. I am maximising my altitude) following a certain number of finite steps (similarly to a TM). Is that enough to assert that I am solving a decision problem?
If yes which one?
|
We have the big O notations for sequential algorithms , but is there a notation to represent parallel algorithms in a similar way?
Motivation:
A sequential algorithm may be O(n7) but its parallel implementation might make it O(1) so what is the motivation and tradeoff between spending time to design lower complexity ... |
I thought I understood the Master Method quite well till I saw this question
$T(n) = 3T(\frac{n}{3})+\frac{n}{2}$
My approach:
$a = 3 ; b=3$ and $f(n) = \frac{n}{2}$
$n^{\log_b{a}}$ = $n^{log_3{3}} = n$
This looked like a classic solution of master method using case 1.
But since case 1 implies $f(n) = n^{\log_3{3} ... |
Do additonal symbols on a turing machine actually change what is computationally possible on a machine, or do they just make them easier to work with? For example is there anything a 3 symbol turing machine could compute that a 2 symbol turing machine could not? (Assuming each machine can have any number of states).
|
I'm trying to find an optimal solution that will work for the bridge crossing problem. In case you don't know it you can check out the Ted Ed video on it. They show how you can do it with 5 people but I'm trying to see if there is a way to do it with n number of people. The same rules apply but the optimal solution sho... |
If a decision problem A belongs to the polynomial complexity class P, must there be at least one YES instance and one NO instance of the problem? I know that in the definition of a Turing machine an accept state and separate reject state are defined but I'm not sure if that applies to this case. Is it maybe possible to... |
Is there a name for the "measure of connectedness", i.e. :
$$\text{MoC} = \frac{d(G)}{|G|-1}$$ with domain of function $D_\text{MoC} = [0,1]$, average degree of graph $d(G)$ and amount of nodes $|G|$? Meaning a quantitive measure for connectedness or meshedness of a graph? E.g. a complete graph would have a MoC of 1, w... |
We use electronics to build computers and do computation. Is computation independent of the hardware we use? Would it be possible to do whatever a computer does with pen and paper? If computation is not dependent of how we make our computers, then does the same principle which apply to a computer apply to how brain wor... |
According to halting problem, there is no algorithm which can decide if another algorithm and its input will halt or not.
Suppose human intelligence can be simulated in a computer.
Also suppose than human can determine if an algorithm will halt for its input.
Then, the simulated brain, which is a program in a computer ... |
I have found this tool:
https://www.tools4noobs.com/online_tools/string_similarity/
and it says that is based on the article:
"An O(ND) Difference Algorithm and its Variations"
available on: http://www.xmailserver.org/diff2.pdf
I have read the article, but I have some doubts about how they programmed that tool, for exa... |
We have some tiles that each tile has 2 number written on it. We can rotate each tile in order to swap the position of numbers. We want to find the longest chain of tiles starting with a certain tile so that adjacent tiles have the same number on their common endpoint. If the tiles were
7-4, 11-8, 11-11, 4-2, 7-5, 11-... |
I am following CLRS for studying Amortized analysis with potential function and there I came through the following :
Let a data structure go through states : $D_0 $ $D_1$ $D_2$ $ ....$ $D_n$ while applying operations $O_1$ $O_2$ $O_3$ $....$ $O_{n-1}$
$\therefore$ the amortized cost can be written as :
$\hat c(O_i) ... |
I was trying to learn B+ tree deletion operation and trying to contrast it with B tree deletion operation. However barely any book provided detailed step by step B+ tree deletion operation. So I was referring B+ tree key deletion from here.
The page says deleting 15 from this:
yields this:
Thus this somehow demotes k... |
My idea is that the number of states in the minimum DFA is equal to the number of equivalent states. So, if there exists another minimum DFA, then it must have different equivalent states than the previous DFA which is not possible.
How do I formally prove this?
EDIT: Maybe something like "since two states are equivale... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.