instruction
stringlengths
35
29.1k
When looking at this question: How to apply a 1-qubit gate to a single qubit from an entangled pair? And other questions, it makes it seem like when you have a quantum circuit involving $N$ qubits, that when you want to peform a gate operation on a subset of the qubits, that you must still make a matrix that applies to...
Basically, the problem is: For a set $S$ of positive numbers, find a minimal number $d$ that is not a divisor of any element of $S$, i.e. $\forall x \in S,\ d \nmid x$. Denote $n = |S|$ and $C = \max(S) $. Consider the function $F(x) = $ the least prime number not dividing $x$. It is easy to see that $F(x) \leq \log x$...
I wanted to understand the Myhill-Nerode Theorem so I made up a small example to do so. L = (a $+$ b ) Clearly, this language is regular. So, I should be able to establish a finite number of equivalence classes by using this method. I start with a suffix of length 0, which is only $\lambda$: a$\lambda$ = a $\in$ L b...
According to the wikipedia page on homoiconicity: In a homoiconic language the primary representation of programs is also a data structure in a primitive type of the language itself. I was wondering if the lambda calculus was homoiconic (I assume not, because applications are not data (which, for the calculus, would ...
can graham scan algorithm work with convex hull vertices when vertices are not sorted? I am investigating a convex hull algorithm that involves sorting. In fact, its running time is limited by sorting, so it is $O(n \log n)$, where $n$ is the number of points on the plane. That algorithm first sorts the points by x-co...
Well this is general question. And if anyone want to make it implementation specific then I will prefer Unix related stuff. But first need to know following problems in generality: I read single process can have multiple threads. Multiple threads of same process does share things among them. I want to know what they sh...
I've read posts everywhere and watched videos but still I don't understand one part of it. How are they able to process all these operations in parallel. So based on the landscape example here. How would a quantum computer be able to check all those areas at once rather than the traditional algorithm to check random ar...
Imagine we have a random number generator where g(n+1) = f(g(n)), where f is some function (e.g linear recurrence). I'm trying to find a system where it's fast to find many steps in the future immediately, whereas it's hard or impossible to work out a previous state. for example, if I know state = X at time t, I wou...
I am having problem with solving the following recurrence relation. $A$ is a set, there are at most $k+1$ of this set and $|A|$ is at most $n/2$. $T(n) = O(n log k) + \sum_A T(|A|)$ I guess it can't be solved by the techniques presented in CLRS book (like master theorem), I also tried to solve it using induction on $n$...
I have been following the third edition of Introduction to Algorithms (by Cormen, Rivest, et al.), and have been studying the deletion algorithm for red-black trees. However, I am confounded at the moment while I am trying to delete a node from the tree. The algorithm could be found at Page No. 324, third edition, Intr...
I am studying the lecture The Complexity of Propositional Proofs. ​Here there is a definition together with a discussion (page 3). I don't understand that discussion. Let $F$ denote the set of propositional formulas over the connectives $\wedge$, $\vee$, $\rightarrow$ and $\lnot$, with a countably infinite supply of p...
Why is $\log(n!)=\Theta(n\log n)$? I tried: $\log(n!) = \log1 + \dots + \log n \leq n \log n \Rightarrow \log(n!) = O(n \log n)$. But how can we prove $\log(n!) = \Omega(n \log n)$ without Sterling's approximation?
Suppose that something is wrong with its configuration (ie topology), for example there are too few neurons in a certain layer, or not enough layers. I have an intuition that some neurons' "delta" ($\Delta$) values will be fluctuating wildly without settling down to fixed values. Is this a justifiable belief?
What are the fundamental differences between predictive modeling and clustering? according to literature, predictive modeling is a supervised learning with aim to construct models to predict the value of target attribute. On the other hand, clustering is a unsupervised method to split a data set to a couple of groups. ...
I am working on my cs project about AI & Turing machines, so i know that Artifical Intelligence is meant to implement different algorithms into the machine {the computer} to solve a problem or a set of problems together and i am getting AI as: (the machine is 'programmed' on a certain algorithms to solve problems or to...
How would I convert a 16K x 32 SRAM into a 64K x 8 SRAM? The 16K x 32 RAM module is a single unit that cannot be altered internally and is capable of address decoding, has tristate outputs, and read/write/and chip enable. Also only the memory read of the circuit has to be implemented.
The overarching theme of computer science seems to be that polynomial time or space or what-have-you for an algorithm is a success, and exponential is a failure. The definitions of P and NP revolve around this. This seems to be the case in OMBL (online mistake-bound learning) as well. On the other hand I heard from a r...
I am currently studying materials for my uni subject. There are two examples of Kleene algebras, but I don't see what is the difference between them. Class ${2^{\Sigma}}^{*}$ of all subsets of $\Sigma^{*}$ with constants $\emptyset$ and $\{\varepsilon\}$ and operations $\cup$, $\cdot$ and $*$. Class of all regular sub...
Considering only the alphabet $\Sigma = \{0,1\}$, the strings which can be given as input to the Turing machines are from the set $\Sigma^{*}$. But does it make sense for the input to be an infinite binary string ? For example if a Turing machine accepts all strings starting with a 0, does a binary string of infinite z...
In the context of signal processing and sparse representation of signals, there is a topic called dictionary learning which is basically about how to's of the selection of basis functions used for sparse representation. I am looking for sources explaining the topic with a section on dictionary learning algorithms and p...
I am writing a simple calculator in yacc / bison. The grammar for an expression looks somewhat like this: expr : NUM | expr '+' expr { $$ = $1 + $3; } | expr '-' expr { $$ = $1 - $3; } | expr '*' expr { $$ = $1 * $3; } | expr '/' expr { $$ = $1 / $3; } | '+' expr %prec '*' { $$ = $1; } | '-' expr %prec '*' { $$ = $1; ...
Sorry if the Question sounds a little trivial. Let A* be the set of all languages over A={a,b}. Then A can be written as {aUb}* which is a regular expression.So this is the set of all languages(actually set of all strings) regular.Am i thinking in the right direction.
I'm working on some compiler software, and I'm looking for information on canonical forms for expressing software, algorithms, mathematical expressions (including predicate logic), etc. I assume canonicalization is generally intractable, but NP algorithms and more-constrained problems (e.g. pure functions) are also int...
We are given one machine and $n$ jobs that we want to process. For the $n$ jobs we have the following data: $r_{1}, ... , r_{n}$ are the release times $p_{1}, ... , p_{n}$ are the processing times $d_{1}, ... , d_{n}$ are the deadlines/due dates $c_{1}, ... , c_{n}$ are the completion times(when the jobs are finished ...
I recently started self studying about algorithms and decision problem, so I don't have a firm grasp on this particular area. In this context I found myself thinking about the following . If $L_1$ is semidecidable and $L_2$ is decidable, what can one say about the language set defined by their difference $L_3 = L_1 \t...
Let's say that you have a 6 qubit system and you want to apply a Hadamard gate to qubits 2 and 4. How would you construct a matrix that did that, while leaving the state of the other qubits alone?
The problem in my book is T(n) = 16T(n/4) + n! I don't know how to get at the correct solution my book has, which says Θ(n!) here are pictures of the master theorem and the problem in my book.
I want to show that $L = \{a^n b^m a^{n+m} \mid n, m \geq 0\}$ is not regular. Can I say that the complement of $L$ intersected with $a^*b^*$ equals $\{a^n b^n \mid n \geq 0\}$ and since I know that $\{a^n b^n \mid n \geq 0\}$ is not regular, then $L$ is not regular? Or would I have to use the pumping lemma?
Say we have a $n \times n$ table which elements are sorted column-wise, for example: $$ \left( \begin{array}{ccc} 2 & 4 & 1 \\ 3 & 5 & 6 \\ 7 & 9 & 8 \end{array} \right) $$ I would like to prove that if we sort this table row-wise, it will be still sorted column-wise. This is one of the steps to prove the shell sort ...
The general form of my question would be, what is the most efficient way to compare the total values of two different arrays to see which one is greater? Would be as simple as prefix sum ($O(n)$) for both arrays? Or is there a more efficient method? The specific question I'm staring at is: Let $A$ and $B$ be two unsor...
I have a set of k n-dimensional points: P1(x11, x12, ..., x1n), P2(x21, x22, ..., x2n), ..., Pk(xk1, xk2, ..., xkn). A distance D(Pa, Pb) is defined between any two points, which satisfy usual properties: D(Pa, Pb) >= 0 D(Pa, Pb) = 0 <=> Pa = Pb D(Pa, Pb) = D(Pb, Pa) D(Pa, Pc) ≤ D(Pa, Pb) + D(Pb, Pc) What is the algo...
My tutor often says that proving membership of NP is the easy part of proving that a problem is NP-complete, and that this should only take a minute. What I don't understand is what exactly you're suppose to do at this step   I understand that you're suppose to verify the correctness of a solution but how do I do that?...
im looking for some guidance on how to get started with sorting an array of booleans so that the falses would be in front of the trues. so if given this: a = {true, true, false, true, false} it would return: a = {false, false, true, true, true} here is the exact question: Suppose you have an array of booleans of s...
By total-ordering I mean the following definition[0]: Total Event Ordering: Controller replicas should process events in the same order and subsequently all controller application instances should reach the same internal state. If my understanding is correct, there isn't any difference and the two words can be us...
I'm studying heap sort and was presented with the following question. What is the minimum number of items that must be exchanged during a remove the maximum operation in a heap of size N? Give a heap of size 15 for which the minimum is achieved. There should be at minimum two sorts for this problem which I understan...
Suppose that $Z = X \vee Y$, where $X$, $Y$ and $Z$ are 96-bit binary numbers. If I'm given the values of $Z$ and $Y$, is it possible to work out what $X$ is? I know this is possible with XOR but can it be done with OR?
Is word size, the size of a memory location? the size of the data bus? or the cpu register size? Suppose you have a computer, memory address #0 has byte AB memory address #1 has byte F3 memory address #2 has byte EA So each memory address stores one byte. And you have a data bus that can pick up 4 contiguous memory...
In the carryless multiplication of two polynomials in a 8-bit environment, is it possible to obtain the original 8-bit values from the result? As an example: $$\begin{align} (x^{11} + x^{10} + x^9 ) + (x^7 + x^5 + x^4 + x^3 + x^1) &= (x^6 + x^5 + x^1) \times (x^5 + x^3 + x^2 + x^0)\\ (x^{11} + x^{10}) + (x^6 + x^4 + x^...
So this problem is pretty nasty. I can easily find the number of iterations for each nested while loop. The first runs log_9(n) times and the second runs log_4(n) times. My problem that I do not know how to address is the initialization of i = n. I'm quite lost on this part so anything helps! function p(n) i = n...
I know that we can prove closure of two regular languages under operations like union, intersection, concatenation etc. by constructing NFAs for them but how to do the same thing using regular expressions, specifically proving that reversal of a regular language is closed using regular expression?
I have a problem that is NP-hard and even NP-hard to approximate within a factor $n^{1-\varepsilon}$ $\forall \varepsilon > 0$. I'm looking now just for approaches that can help me to design a "justifiable" solution. I don't need to improve the brute-force solution, I just want to design a heuristic that I can justify ...
I was reading on Complex Systems journal and found a paper where the author states that a cellular automaton can be viewed as a computer. In the introduction part: Cellular automata can be viewed as either computers or logical universes where computers may be embbed. What i am trying to understand is, is it always a...
I've been trying to investigate 3-SAT for variables appearing 3 times and so far I'm getting some mixed answers as to its complexity. For example, https://people.maths.ox.ac.uk/scott/Papers/restricted3sat.pdf says instances of 3-SAT in which every variable occurs three times are always satisfiable (this is an imme...
So Fibonacci heaps can perform insertions in amortized constant time, and I came up with a sequence of heap data structures $H_k$ such that insertions can be performed in amortized $O((\log n)^{1/k})$ time where $n$ is the size of the heap. If we didn't know insertions could be performed in constant time, then my resul...
I've been trying to find lists of graduate level CS classes that have had their lectures videotaped. There's a similar question on MathOverflow, which has compiled a fairly extensive list of stuff: Free online video lectures of mathematics courses. What I'm mostly interested in is finding links to materials like the fo...
I'm using a Raspberry Pi 2 which works with 900MHz. (Asked this question there and they think it belongs to cs) My question is: since it also runs an operating system in the background, I expect this would take some of the processing power. So, how significant is the speed reduction due to operating systems? If I run a...
I have the following homework exercise: We are given a network $N=(G,w,d)$, $G=(V,E)$ together with a designated source node s∈V and target node $t \in V$, where $w\colon E \to Z^+$ and $d\colon E \to Z^+$. The values $w_{i,j}$ correspond to arc weights, $d_{i,j}$ correspond to delays, i.e., using the arc $(i,j)...
A storage system has 6 hard drives set up as RAID 5, where HD 6 is the parity disk using odd parity. One day, the system crashes due to failure of HD4. During recovery, we find out that HD1 stores 11110000; HD2 contains 10011100; HD3 contains 00011000; HD5 contains 10101010 and the parity disk contains 11110111. What ...
I'm a bit confused about the definition of a Petri-Net. From Wikipedia (EN) I have this defintion: A Petri-Net is a 5-Tupel (P, T, F, W, s) P and T are disjoint finite sets of places and transitions, respectively. So the defintion says: $P \cap T = \emptyset $ & $P \cup T \neq \emptyset $ Let's say T is $ \emptyset ...
We have been studying the development of SLR parsers, and that now we have done the arithmetic expression grammar (the unambiguous version), I was curious to see if the same could be done to the if-then-else grammar which is pretty much ambiguous. So I started with the following rules ( as given in Principles of Compil...
I have a set of $n$ values,$v_i$ and want to insert them into a hash-table, $HT$, in a way that each bucket (or hash-table cell) has at most $d$ values. I set $k=\frac{n }{d}$, where $k$ is the number of buckets. Then, I use SHA hash function, $H$, to find the index a bucket in the hash-table and insert the values into...
I am wondering what is the true algorithm for the Shannon-Fano code? The the result I am getting based on the Algorithm in Wikipedia page contradicts the supposed/expected length of the produced code. According to the proof of Kraft's inequality, $l_i = \lceil \log_2{\frac{1}{P_i}} \rceil= \lceil -\log_2{P_i} \rceil$....
I am trying to come up with a mutual exclusion algorithm that is based only on atomic reads and atomic writes of shared memory (i.e. no compare-and-swap or similar). Apart from mutual exclusion and deadlock freedom, it needs to fulfill the following properties: It needs to be robust in the face of processes dying at a...
I have a tree. This tree has no particular root (free-tree). I want to find a path that visit all nodes. This path has to be the shortest possible. All edges are considered to have a distance of 1. My problem is not finding a Hamiltonian path, because I don't have any restriction on the number of times a node can be vi...
You are designing an elevator controller for a building with 25 floors. The controller has two inputs: UP and DOWN. It produces an output indicating the floor that the elevator is on. There is no floor 13. What is the minimum number of bits of state in the controller? Answer: The system has at least five bits of state ...
This grew out of a discussion of deliberately bad algorithms; credit to benneh on the xkcd forums for the pseudocode algorithm, which I've translated to Python so you can actually run it: def sort(list): if len(list) < 2: return list else: if list[0] <= minimum(list[1:]): return list...
I am looking for a method to categorize a given word into semantically into classes. A simple example would be: chair -> furniture The most reasonable way to do so that comes to my mind, would be to create a tree containing words, where chair is a predecessor of furniture. Then one could define a threshold that describ...
I have the following algorithm in ML: fun change(till,0,chg,chgs) = chg::chgs | change([],amt,chg,chgs) = chgs | change(c::till,amt,chg,chgs) = if amt<0 then chgs else change(c::till, amt-c,c::chg, change(till,amt,chg,chgs)); The algorithm takes a list of currency denominations as till and returns all the combinat...
This may get slightly philosophical, but consider the following program: bool lampState = false; TimeSpan timeout = 1; while (true) { lampState = !lampState; Thread.Sleep(timeout); timeout = timeout / 2; } DotNet Fiddle link for C# code This is obviously an implementation of Thomsons lamp in C#. So the que...
I know there is a stack based approach with O(N) complexity and O(N) space. Can B be created using O(1) space? Such as in place using a single loop or even some sorting algorithm ? If so, can you please provide a high level description of the algorithm ? I've been working on a solution for some time now and am unable ...
I am developing algorithm for solving following problem: Given a set of items with unknown feature(s) (but know distribution of feature(s)). Algorithm must choose what items to measure(every measure has some cost)). I use Value of information theory to find this measurements. After measurements are done algorithm cho...
When completing exercises on Codility.com you submit your code to a server for analysis. You then receive a report containing the detected algorithm complexity of the code. I was just wondering how it does this automatically - i.e. without any O(n) analysis?
Here's the problem I'm trying to solve: I have a bunch of widgets, whose weights vary over a small range. I would like to find the optimal grouping of them such that each group meets a minimum weight requirement, while maximizing the total number of groups I can form. Knowing a specific name for this class of problem w...
Good evening! I'm actually doing an internship at the Archives Nationales of France and I encountered a situation I wanted to solve using graphs... I. The dusty situation We want to optimize the arrangement of books of my library according to their height in order to minimize their archive cost. The height and thicknes...
This question is about Model Checking for Software Formal Verification How do you model the joint behavior of 2 independent and concurrent transition systems? Specifically, given the two independent and concurrent Transition Systems below; TS1 and TS2 (left to right). A tutor proposed that the resulting Interleaving ...
I have two opposing ideas. I think that all the instructions in a RISC take the same time what makes me believe RISC is associated with synchronous. At the same time i think that CISC should be synchronous and RISC should be asynchronous. Can you tell me if RISC is associated with asynchronous and CISC is associated wi...
What are the implications of a non-blank character being over-written by a Turing machine M for the given input variable 'x'? Intention of the question: I am trying to answer how the halting problem can be made decidable provided we have a TM which can say whether 'M' overwrites a non-blank character by Blank or n...
A Bloom filter is a space-efficient probabilistic data structure to perform membership-tests on a set (see Wikipedia's page for a definition; I use the same notations below). I am interested in a special application where the number of bits per element $m/n$ is very low, with typically $m<n$ (this results in a very com...
With LL grammars, there seems to be a very intuitive explanation, in terms of first and follow tables.( The first letter/s encountered in a particular state, can only mean a particular rule). With LR grammars however such an explanation seems to be difficult. Of course you could go through the entire construction of th...
I have written some code that animates two boxes using HTML5 and JavaScript threads. I set them up to move at a fixed rate, which is the same: executeEvery(box1.animate(), 10); executeEvery(box2.animate(), 10); The result is weird for reasons not important here. This to me seems to be the two executeEvery calls not wo...
Why does Bresenham's line algorithm eliminate dy/dx division and the multiplication of that (potentially floating point) number?
I thought about the following problem: There are goods $\mathbb{G} = (g_1, \dots, g_k)$ on the line. Coordinates are expressed in meters and sorted in increasing order. All goods have different storage life $\mathbb{S} = (s_1, \dots, s_k)$ expressed in seconds. Restrictions on the data: $k < 1000, |g_i| < 10^7, |s_i| ...
What does $\log^{O(1)}n$ mean? I am aware of big-O notation, but this notation makes no sense to me. I can't find anything about it either, because there is no way a search engine interprets this correctly. For a bit of context, the sentence where I found it reads "[...] we call a function [efficient] if it uses $O(\lo...
in these days I'm doing research about the history of the mailing lists. Someone can suggest me interesting "Papers" or Article on the web in order to learn much about history and principal use of this service?
The Toffoli gate takes in three inputs and gives out three outputs, and is often referred to as the quantum AND gate. It takes in a,b,c and gives out a, b, c XOR (a AND b). Why does it do that, instead of just giving out a,b,b AND c? or a,b,(a AND b)?
With 2 qubits, there are 4 ways to entangle the qubits - the four maximally entangled two-qubit Bell states, of which one is $1/\sqrt{2}(|00\rangle + |11\rangle)$. Is it possible to entangle more than two qubits together? If so, is there any practical use to doing so?
I'm reading up on System Z introduced by Judea Pearl (in System Z: a natural ordering of defaults with tractable applications to nonmonotonic reasoning). A central definition is that of tolerance of a subset $R'$ of a rule set $R$ for a rule $r = \alpha_r\to\beta_r$ (denoted by $T(r\ \vert\ R')$). Tolerance of $R'$ for...
I'm looking for a paper that discusses the maximising of one colour in a vertex colouring. Suppose that for an unweighted, undirected graph $G=(V,E)$ we define a vertex colouring as a function $c : V\to\mathbb N$ (where we use $\mathbb N$ for the colours). I would then like to maximise $\#\{v\in V\mid c(v)=n\}$ for par...
The original statement referred to by this question is: The more I ponder the principles of language design, and the techniques which put them into practice, the more is my amazement and admiration of ALGOL 60. Here is a language so far ahead of its time, that it was not only an improvement on its predecessors, but al...
I'm looking for interesting open questions in complexity theory that someone with an undergraduate degree in math and comp/sci could theoretically tackle. I have strong interest in the polynomial hierarchy, and the study of probabilistic classes like RP, co-RP, ZPP, BPP, and also their logarithmic counterparts. I also ...
For example, for the language $L = \{a^nb^m|n \neq m\}$, why does it have infinitely many equivalence classes? How do I show/see that?
I heard once that you could translate any digital circuit into a modulus operation, perhaps modulusing against different numbers? It was a long while ago though and don't remember where I heard it. Is this true or does it ring any bells?
I'm looking for an explanation or reference on the implementation of computer clock. To keep the question at the level of logical abstractions: say, we put together some combinational and sequential logic from basic gates. The role of the clock (an oscillator of some sort, but that's going into more detail than needed ...
If so, I cannot find any examples of this. Edit: By "used", I mean are they still used in rendering in games or whatever. I haven't seen it used anywhere except in MS Paint because Wu's algorithm looks way better (yet is still not expensive as far as I know).
According to CLRS the master method requires the recurrence to be of form $T(n) = aT(n/b) + f(n)$ where $a \ge 1 $ and $b > 1$ are constants and $f(n)$ is asymptotically positive. This makes it sound like even $a \not\in \mathbb{Z}_+$ is a legitimate value of $a$ as long as $a \ge 1$. I have trouble visualising what ki...
Per recommendation I am reposting this from Stack Overflow. Recently I have been thinking about following issue. Consider the code for a standard "Hello world!" program: main() { printf("Hello World"); } Now almost any change in this code will make it completely useless, in fact almost every change will prevent t...
The original statement for this problem can be found here This is a question from IEEExtream 2014. There is an array of integers given. Input is X, so output is the number of subsets where there GCD equals to X. Eg: OriginalSet = {2, 3, 5, 6, 6} numberOfSubsets(2) => 3 // there are 3 subsets where their GCD equals to ...
Let $G'_{m,n}=(V,E)$ be the grid graph $G_{m,n}$, to which we add "diagonal" edges. For example, here is $G'_{6,3}$: And for each vertex $v_i \in V$, we have a associated positive value $c_i$ Consider the following algorithmic task: Input: $m,n,\{c_i\}_{v_i\in V}$ (in unary) Output: The minimum weighted vertex cover ...
I was reading Data Communication book by Forouzan in which there is a one restriction put on CIDR subnetting by Internet authorities: First IP address in the block should be evenly divisible by the number of addresses. For example, below, the first address, when converted to a decimal number, is 3440387360, which when...
What does x-bit binary number mean? for example: if x = 8 is 8-bit means: any number consists of 8 bits, like : 10101110 or it has another meaning??
Which calculus is based on first-order functions and is Turing complete? I know of calculi which are Turing complete, but based on higher-order functions: Lambda calculus SKI combinator calculus There is also a calculus based on first-order functions, but is not Turing complete: Kappa calculus I know that first-ord...
If $L_{1} \subseteq L_{2}$ and $ L_{2}$ is regular, does it follow that $L_{1}$ is necessarily regular? I don't understand this question, is there any proof to show this or is there an assumption we make?
This is the problem: $d_{T}(v)$ denotes the degree of a vertex in a spanning tree $T$ and $w: V \rightarrow R^+$ is a weight function defined on vertices. The goal is an algorithm that finds a spanning tree which minimizes the value $\sum_{v \in V}{d_{T}(v)*w(v)}$. My idea is to define a new weight function on edges i...
Physics is defined as the study of an object {matter or energy} with its interaction with other objects: Physics is the study of matter, energy, and the interaction between them. On the other hand, Digital physics is based on computations and information. Digital physics is a collection of theoretical perspectiv...
I was learning about Max Flow and Residual Graphs and was wondering if there was a formal proof for the statement: the flow value can increased along an augmenting path $p$ in a residual network I was reading the slides linked at the end of question and they seem to omit the most important part of the algorithm whi...
If we have: x = 1101 and y = 101 How to XORing these numbers?
Problem. To obtain a path from vertex s to vertex t whose minimum-weight edge must be the maximum one among the ones of all the paths from s to t. This path is just the bottle-neck path from s to t. The following is my algorithm for finding bottle-neck path by sub-ranges searching. Actually I just want to get the small...
I am studying the Zero Mean Normalized Cross Correlation (ZNCC) method for pattern matching. I would like to match the pattern of a square region of size $N \times N$ from two different images. Hence I define two vectors $P$ and $Q$, each of size $N \times N$, for storing the pixel intensity inside each of the two regi...
I was reading the following notes on maximum flow and it said the term "maximum-bottleneck (s-t)-path" but I couldn't find were it precisely defined it, so I am left guessing what it means. I am assuming it means a path from s to t with maximum total capacities once you sum the capacities across the path. However, I am...
We know that Turing machines and Lambda Calculus are equivalent in power. And There are proofs for that, I'm sure. But is there an algorithm, a systematic way for us to convert a Turing machine into a Lambda Calculus expression? Is it impossible to have such algorithm? (meaning does it go down to undecidability or NP-C...