instruction stringlengths 35 29.1k |
|---|
Given the following (arbitrary language, although I think it is close to Algol 60) program:
program main; // A main parent level
var i : integer; // A 'global' variable
(* Note that all parameters are passed by value here *)
function f1 (j : integer) : inte... |
In the timepiece (excuse the pun) that is Time, Clocks and the Ordering of Events, Lamport describes the logical clock algorithm as the following:
Each process $Pi$ increments $Ci$ between any two successive events.
If event a is the sending of a message m by process $Pi$, then the message $m$ contains a timestamp $T... |
Hopefully this is not a duplicate
How do I prove a Language L={a,b,c} is decidable or not
I read somewhere that if a turing machine accepts a language and halts on every input string then the language is decidable.
Having said that how do i design / prove that a turing machine accepts {a b c}
I am new to concepts of au... |
How many comparisons in the worst case, does it take to merge 3 sorted lists of size n/3? (where n is a power of 3)
I was told it takes:
$$2(n-2) + 1 = 2n-3$$
However, I can't seem to figure out why.
The way to merge them I was thinking just to merge two of the lists, and then merge that big 2/3 list with the remainin... |
I'm designing a Turing machine that decides a language denoted by a regular expression. Let's say this expression is $a^*bbc^*$. Does this machine accept the string $bb$ since $a^*$ and $c^*$ can have zero instances or more?
|
I have the following DFA. (Yellow stated are accepting states.) I want to eliminate states step by step to find the regular expression of it.
In my steps, I think there is a bug because I do not know what to do with state 4.
If you know how to convert this DFA to regular expression please help me.
|
my issue comes from image processing. The image below is for a better understanding of the problem. I have to detect three dots (shown in black, marked with red arrows). The other points I get from my image after processing it are shown in green. As you can see I get many more points from the image than just the black ... |
A Bloom filter is a probabilistic data structure designed to tell, rapidly and memory-efficiently, whether an element is in the set or no.
If we can use hash tables where we have O(1) in best time, O(n) in a very bad situations. Why do we need a new abstract data structure that look-up for an element with less certain... |
Please help me regarding this one! What will be the communication and computation complexity of this code??
While (m>0) do
{
While ((m mod 2)==0) do
{
m ← ⌊m/2⌋
//parties communicate m times;
}
m = m – 1;
}
This code been modified from the book "Fundamental of computer algorithm" b... |
I have a homework that I should find the formula and the order of $T(n)$ given by
$$T(1) = 1 \qquad\qquad
T(n) = \frac{T(n-1)}{T(n-1) + 1}\,.
$$
I've established that $T(n) = \frac{1}{n}$ but now I am a little confused. Is $T(n) \in O(\frac{1}{n})$ the correct answer for the second part?
Based on definition of big-O ... |
I've been reading lately about SAT problem, NP and co-NP.
Many sources say that the SAT problem is co NP, though, I can't find a co-NP problem equivalent to SAT.
Does anyone have any idea about this ? (Or could lighten my misunderstandings)
|
I am quoting a paragraph from the book "Operating System Principles" by Galvin.
Usually, each page-table entry is 4 bytes long, but that size can vary as well. A 32-bit entry can point to one of $2^{32}$ physical page frames. If frame size is 4 kB, then a system with 4-byte entries can address $2^{44}$ bytes (or 16 TB... |
Which natural language processing problems are NP-Complete or NP-Hard?
I've searched the natural-lang-processing and complexity-theory tags (and related complexity tags), but have not turned up any results.
None of the NLP questions that are recommended are helpful, the closest are the following:
https://cs.stackexcha... |
I have read the Operating System Concepts book, watched a lot of videos on YouTube, practiced with past qualifying exam questions and several exams from other CS departments around the world.
Although I feel better about going into the exam, I have been searching for:
Large diagram that puts most of OS concepts in pe... |
I have a linked list in which I have kept the elements in order (increasing/decreasing). I want to be able to perform a binary search on this linked list. For this I am keeping pointers to the middle element of list of length n, n/2, n/4 so on. I am not able to figure out what would be the order of storage in this case... |
I have two non-overlapping sets of items, with feature counts for each. What standard algorithms can I use to extract the most statistically distinct features of each set?
For example:
Items served at American restaurants (5 restaurants surveyed):
bread: 4
burgers: 2
cheese: 1
cronuts: 2
pasta: 2
Items served at Ita... |
Suppose we have a set $D$ of denominations of coins and a our input is a "tip jar" containing some finite number of these coins (e.g., five nickels, a dime and three quarters). In the first two problems, we want to know whether it is possible to divide the money in the jar equally between two people; in the third one,... |
In DRAM timing constraints, tFAW means length of a rolling window that allows up to four row activations in same Rank. This constraint is mainly due to power budget of each rank.
However, I am curious why 4 is the magic number?Would it be wrong if we use Eight Activation Window and double the value or use Two Activatio... |
Statement:SCC in G is same as Rev(G)
Ex:Consider the following graph g
0->1
1->2
2->4
3->1
4->3
The strong components set would be S={0,1,2,3,4}
If I reverse the above graph
(i.e)
1->0
1->3
2->1
3->4
4->2
Then the strong components set would be S'1={0} S'2={1,2,3,4}
Which shows that strong components in G is not same a... |
According to what I have read from two different sources, cache coloring is (was?) required in order to:
Counter the problem of aliasing: Prevent two different virtual addresses with the same physical address from mapping to different cache sets. (According to a CS Stack Exchange Answer)
Exploit the spatial locality p... |
In short: What is the basic difference that allows model checking for hardware to be "easily" solvable, but makes it undecidable for software?
I guess it has to boil down to the difference between hardware being finite automata and software having the expressiveness of a Turing machine, which would basically mean that ... |
From the book The Nature of Computation by Moore and Mertens, exercise 8.9:
Consider the problem ACYCLIC GRAPH of telling whether a directed graph is acyclic. Show that the problem is in NL, and then show that the problem is NL-complete.
I am mainly interested in the first part. It's quite easy to show that it's in c... |
We have a graph $G=(V,E)$ and we need to divide this graph into two clusters $A$ and $B$. Some pairs of vertices $u$, $v$ should not be in the same cluster, and we define an edge $(u,v) \in E$. The total cost of a solution is the total number of edges with endpoints both in the same cluster. My goal is to find an algor... |
Find the total number of positive subsequences in a sequence of numbers with an algorithm that is faster than $O(n^{1.5})$. For example, {-2 3} is a positive subsequence of {1 -2 3} since -2+3 = 1 is positive. The following is my code:
import java.util.*;
class PSIv3
{
public static int mergeSort(int[] a, int i, int ... |
I am solving a problem with a bridge, where you have a one way bridge with people coming from each side. To solve this problem while preventing deadlock (two people going opposite directions on the bridge at the same time), I used a mutex lock. However, this could still result in starvation. How would I prevent starvat... |
if we define $F_n$ be the $n$th fibonacci number and $\varphi$ be golden number then can we say that
$2^{F_n} \in \Theta(2^{\varphi^n})$
or in other word
$2^{\frac{\varphi^n - (-\varphi)^{-n}}{\sqrt{5}}} \in \Theta(2^{\varphi^n})$
It's simple to show that $F_n \in \Theta(\varphi^n)$ but about above one I don't have a... |
I have data collected from a computer simulation of football games which seem to have
recurring patterns of the following form.
if madrid plays arsernal and the match ends under 3 goal, then on their next match against each others,
madrid will win. if madrid happens to loose and then plays against chelsea next, they w... |
This question occurred to me some time ago when I was thinking about whether or not if statements are fundamental in computation.
Consider a program that manages a single bank account (for the sake of simplicity). The bank account could be defined as something like
Account
{
int balance; // current amount of Money... |
I'm reading Sedgewick and Wayne's book of Algorithm. When I read the following proof in the attached picture, I don't understand why it assumed the comparison number is lg(number of leaves). Any help is appreciated!
|
In computer architecture class, my lecturer was explaining about I/O interfaces and modules, but somehow neither me nor my classmates understood almost a word he said.. We still don't get which parts of a computer is an I/O interface.
For example, which one of these are an I/O interface? A VGA card or PCI Express?
|
I've come across the CYK algorithm and was wondering, as it's quite old, if it is still relevant today.
Is it or an extension of it still being used in compilers (for example), or have other algorithms proven to be better?
|
In mathematics, there are many existence proofs that are non-constructive, so we know that a certain object exists although we don't know how to find it.
I am looking for similar results in computer science. In particular: is there a problem that we can prove it is decidable without showing an algorithm for it? I.e. we... |
This question occurred to me some time ago when I was thinking about whether or not if statements are fundamental in computation.
Consider a program that manages a single bank account (for the sake of simplicity). The bank account could be defined as something like
Account
{
int balance; // current amount of Money... |
The ACM Contest Problem 102 (HTML or PDF) can be paraphrased as:
Given 3 bins each containing possibly different number of bottles of 3 colors, move the bottles so that there is one color per bin, minimizing the number of bottle movements.
Specifically, we wish to decide on an allocation of colors to bins so that mov... |
Could someone give an easily accessible reference containing an algorithm that could be conveniently implemented into a code for computing Knight's Tour (preferably also with fairly
good efficiency)?
|
I think I understand why the string $( [ ) ]$ is not in a Dyck language.
In my words,
D2* is all the dyck words of 2 parentheses.
From the definiton of $D2*$, every words must have exactly 2 pairs correctly nested pairs of parentheses.
All the words of the language are given by
$\sum = { (1, )1, (2, )2 } $
The alpha... |
I'm having difficulty trying to use the pumping lemma in order to show that $L= \{0^i \mid \ i \text{ is a power of 2 }\} $ is not context free.
I"m starting by stating that $ s = 0^p$ and then $ s = uvxyz $ and that in order for a language to be context free it must follow the 3 conditions: $|vy| > 0$ , $|vxy|\le p$ a... |
how does that recursion work
#include <stdio.h>
int ack(m,n)
int m,n;
{
int ans;
if (m == 0) ans = n+1;
else if (n == 0) ans = ack(m-1,1);
else ans = ack(m-1, ack(m,n-1));
return (ans);
}
int main (argc, argv)
int argc; char ** argv;
{ int i,j;
for (i=0; i<6; i++)
for (j=0;j<6; j++)
printf ("ackerman (%d,%d) is:... |
I am currently studying linear congruential generators, and there was an example in which I didn't get the code:
public class Random {
static final int a = 48271;
static final int p = 2147483647; //2^31 - 1
static final int q = p/a;
static final int r = p%a;
int state;
public Random() {
this ( (int)(System.curren... |
I am reading this text and it is making absolutely no sense to me. It as if it assumed I will understand. Not to mention the writer apparently had a book made and his grammar is poor. Some of the plain English sentences do not even make sense or have the letter s on the end of words where they should not be. please hel... |
I don't see why $n, n/2, n/4, n/8, \dots, 1$ takes $\log_2 n$ steps. Is there a more general statement on this repeated division?
|
Suppose we have input $s_1,\dots,s_n \in \mathbb Z$ and $t \in \mathbb Z$. We want to know if there exist variables $x_1,\dots,x_n$ in which each $x_i=1/2^k$, where $k \in \{0,1,2,3,4,\dots,\infty\}$, such that $s_1x_2+\dots+s_nx_n=t$.
Is this problem NP-complete? Is it solvable in polynomial-time?
|
I'm so confused by some of the theorems online about tree heights. Does tree height mean the number of edges or nodes? if nodes, does it include the node it is counting from? Can the height of a tree start from 0?
|
I'm not an expert of the theory of algorithm, so please forgive me if this problem is nonsense, but I want to find good algorithm to solve below problem.
There is a array of integer each of which has been assigned with random initial value such like [1,5,-3,4] or [123, 543, 295, -703, …]
You move values from one elemen... |
Having a bit of an issue with this question and deciding which of these situations requires dynamic programming and which are NP-complete. In all of these situations the input is a "tip jar" consisting of some number of coins/bills of the various types in D (e.g., five nickels, a dime and three quarters) and the proble... |
I am faced with the following question:
Design a Turing Machine that recognizes the language $L = \{1^{2n+1}\mid n \text{ is a non-negative integer}\}$. Show the state diagram.
I started doing this using $Q \times \Gamma \rightarrow Q \times \Gamma \times \{L, R\}$, and setting up a 7 tuple but I cannot come up with ... |
I am trying to solve the following problem from Aho, et al., Compilers: Principles, Techniques, & Tools (2nd ed.), exercise 2.2.2e:
What language is generated by the following grammar? $S\rightarrow\textbf{a | }S\textbf{ + }S\textbf{ | }S\textbf{ }S\textbf{ | }S\textbf{ * | ( }S\textbf{ )}$
This looks like some combi... |
If an algorithm has running time of $\Theta(n^2)$, is it possible to have a best-case running time of $\Omega(n)$? Or is the fastest running time only $c n^2$ for some constant factor $c$?
|
Manually self-migrated from stack overflow.
A set of objects of a type T is often represented using its indicator function (set T = T -> bool). However, for practical purposes this representation isn't necessarily very useful. For instance, if T is the natural numbers, there's no way to print0 out all of the numbers ... |
Firstly, I'd like to apologize for any misused terms or ways I could have made the description much more succinct. It's been a while since I took machine learning during my bachelor's.
I have two disconnected, directed graphs that I am attempting to merge together. Each node in the graph represents a set of data. Each ... |
My textbook shows that when setting up a recursion tree for a recurrence, like
$$T(n) = 3T\big(\frac{n}{4}\big) + cn^2$$
you place the cn^2 term at the root to represent the cost of at the top level of recursion and the three subtrees of the root represent the costs incurred by the subproblems of size n/4.
Why do you p... |
What is the complexity of the Canadian traveller problem variant where the only thing that is seen is a single node ahead on a directed acyclic graph so that we cant go back once we go to a new node and there are some nodes that have a probability associated and we dont know the probability of others?
|
I've just done a mini test and scored 9/10, however, from my understanding, I think this question is incorrect.
Here is the only question which I don't understand how it can be correct:
So I joined up the relations and get this:
A | R.B | S.B | C | D
1 | 2 | 2 | 4 | 6 //this meets theta-condition R.A<S.C AND ... |
The question has been discussed here but unfortunately is closed.
Reference : m-element random sample being equally likely ...(CLRS 5.3-7)?
My question is as follows.
Suppose $n = 5, m = 3$. This implies that we need to randomly select a $3$-subset out of $5$ elements. The algorithm makes $3$ recursive calls. The proba... |
In a previous question What exactly is an algorithm?, I asked whether having an "algorithm" that returns the value of a function based on an array of precomputed values was an algorithm.
One of the answers that caught my attention was this one:
The factorial example gets into a different model of computation,
called... |
A soft question, when I was in high school and in University I took scientific writing classes and people told me I should use passive voice as much as possible to sound objective, but when I entered grad school people told me I should not use passive voice unless I work in Chemistry. So Which one should I follow?
|
This is in context of hashing of strings. I'm not sure why a string like, CS, could be represented as CS = 'c'*256 + 's'
Does anyone know about this?
|
I've been reading about fixing up after an insertion into a red black tree. (http://web.cse.ohio-state.edu/~lai/2331/0.Red-Black%20Trees.pdf)
The most surprising part is not that there are 6 things that we need to do after inserting into a red black tree. i.e. if both parent, uncle red, then parent, uncle black, grandp... |
Is there a difference between perfect, full and complete tree? Or are these the same words to describe the same situation?
|
Our teacher gave us the following definition of Big O notation:
O(f(n)): A function g(n) is in O(f(n)) (“big O of f(n)”) if there exist
constants c > 0 and N such that |g(n)| ≤ c |f(n)| for all n > N.
I'm trying to tease apart the various components of this definition. First of all, I'm confused by what it means for g(... |
Given a set of integers $\{x_0, x_1, ... , x_{n-1}, x_n\} \subseteq \mathbb{Z}$, a set of integer variables $\{y_0, y_1, ... ,y_{n-1}, y_n\} \subseteq \mathbb{Z}$ and an integer $m \in \mathbb{Z}$ is the following equation an instance of an integer linear program (ILP):
$
(x_1\cdot y_1) + (x_1\cdot y_1) + \cdots + (x_{... |
I have been struggling trying to write a regular expression for a binary number that includes "10" and has an odd number of 0's, so far I have (1) * (00) * 10(1010) * (00) * (1) * but it doesn't accept 0100 for example or 010101 etc, also if I write a finite automata for this how do I prove its correctness ?
|
On the wikipedia page for the knapsack problem it says that the runtime is $\mathcal{O} (nW)$ and goes on to say that this doesn't violate its classification as NP because the input size is related to $\log W$, where, I believe, $W$ is the size of the knapsack. Why is the size of the input related logarithmically to $W... |
I am currently at student at Turing and I would like to learn more about algorithmic design while studying programming. Our school mainly deals more with web software, Ruby, and Rails, but I would like to gain an education in algorithms and data structure while here.
Do you have any books for beginners on algorithms or... |
I'm learning how to use recursion trees to solve recurrence relations and while I know how to solve it for the form
$$T(n) = aT\big(\frac{n}{4}\big) + n$$
I'm stuck when the equation has a numerical term, like
$$T(n) = aT\big(\frac{n}{4}\big) + 3$$
Using a recursion tree, what gets multiplied at the first, second, thir... |
Wikipedia says that the following recurrence is inadmissible since there is a non-polynomial difference between $f(n) = \frac{n}{\log n}$ and $n^{\log_b a}$:
$$ T(n) = 2T\left(\frac{n}{2}\right) + \frac{n}{\log n} $$
In human language, what does non-polynomial difference mean? Why was $n/\log n$ compared to $n^{\log_ba... |
This statement is Theorem 1.1 (page 39) of Computability, Complexity and languages by Martin Davis:
If function $h$ is obtained from the (partially) computable functions $f$, $g_1$, $g_2$, ..., $g_k$ by composition then $h$ is (partially) computable.
What I understand from this theorem is if there is at least one par... |
So I am learning about DFA and NFA, and I need some clarification for it.
DFA
accept empty set
transition for every element in the alphabet
path are deterministic
NFA
accept the empty set and empty string
path are not deterministic
My question is does NFA need a transition for every element in the alphabet? If ... |
I was reading binary search and suddenly realized that it would be very difficult for a binary search tree to find the middle value and then split in two. Are these related at all?
|
I do not have a background in Computer Science, work as a Software Engineer, and am attending college for my Master's degree in Computer Science. I have a data structures and algorithms course that I am taking currently with the "Introduction to Algorithms" text book by Cormen, Leiserson, Rivest, and Stein (CLRS). This... |
When applying the pumping lemma to $L = \{ 0^n \mid n>0\}$ I do the following:
$S = 0^p$
$x = \varepsilon$
$y = 0^p$
$z = \varepsilon$
so $S = xyz = (\varepsilon)0^p(\varepsilon)$
For $x y^i z$ if i choose $i = 0$ (pumping down)
i get $S = \varepsilon$, which is not an element of $L$.
Therefore according to the pumping... |
I was learning about NP problems. I read that for many problems, like Clique, we can easily convert its decision problem to derive a solution of search problem. (For Clique problem, you only need to enumerate the vertices of $G$ and delete any vertex that if your decision function tells you is not in the clique) But fo... |
I'm looking for a particular case of longest common substring (LCS) problem. In my case I have two really big strings (tens or hundreds of milions byte characters) and need to find the LCS and other long strings.
A simplified example
$S_0$ = ABBCADGGHEEASSSCC
$S_1$ = ABDCADGGHMEASSSAC
the LCS = CADGGH (6 chars) and o... |
Is there any difference between a $\lambda$-term and a $\lambda$-expression?
Looking at the recursive definitions on Wikipedia of
$\lambda$-term and $\lambda$-expression, they are equivalent. But I am confused as they are slightly different and refer to what they define by a different name.
|
I'm learning to use a Karnaugh map, but I'm not sure if I obtained the simplest expression possible. Have a look at this example:
Truth table (inputs are A B C; output is F):
A B C | F
0 0 0 | 1
0 0 1 | 0
0 1 0 | 1
1 0 0 | 0
0 1 1 | 1
1 0 1 | 1
1 1 0 | 0
1... |
Let a real polynomial representing a boolean function be $P(x_1,\dots,x_n) = \sum_{a\in\{0,1\}^n}c_ax^a = \sum_{a\in\{0,1\}^n}p(a)\prod_{i\in 1_a}x_i\prod_{j\in \bar{1}_a}(1-x_j)$ where $1_a$ is the set of $i$ such that $a_i=1$ and $\bar{1}_a$ is the complement of $1_a$. How do you represent $c_a$ in terms of $p(a)$?
I... |
We recently in computational complexity class dealt with approximation algorithms and I was wondering how one would prove a heuristic having a certain ratio in regards to the optimal version. Looking at some notes it seems that one has to relate the approximation to an intermediate algorithm, right?
|
I'm looking for a data structure / algorithm to store an unordered set S of binary strings of a fixed length n (i.e. all matching the following regular expression: [01]{n}).
Insertion and lookup ("Is element x in the S?") should maximally take polynomial time to |S|.
The space complexity should be logarithmic to |S| fo... |
I'm wondering if somebody can please help me to understand how I go about converting this grammar to an unambiguous grammar. If you can point me in the right direction, I would greatly appreciate it.
S -> AB | aaB
A -> a | Aa
B -> b
|
I know this question might seem weird, maybe I'm just overthinking, but this is really troubling me because I've been a computer engineer for some time now and conditionals (if statements for instance) always seemed pretty clear and intuitive!
I mean, let's assume that I have a program which starts at
int main(int arg... |
Initially the ambiguous grammar is as follows (with some cropped production rules):
<STMT> --> <IF-THEN> | <IF-THEN-ELSE>
<IF-THEN> --> if condition then <STMT>
<IF-THEN-ELSE> --> if condition then <STMT> else <STMT>
To resolve the ambiguity, the previous grammar is transformed into the following one i... |
When applied to domains that are episodic and have a "final" state but no final action, like a game, how does SARSA update the Q-values?
e.g. A game agent would receive this series:
$$
s_0,a_0,r_0,s_1,a_1,r_1,.....s_{N-1},a_{N-1},r_{N-1},s_N
$$
Based on the traditional definition, which updates the current Q-value ... |
I was doing some complexity theory exercices and I came over this one:
$AlwaysHalt = \{R(M) | M$ halts with all $x \in \{0,1\}^*\}$
Is $AlwaysHalt$ recursively enumerable?
I would say YES and construct the following TM that accepts this language:
Enumerate all $x \in \{0,1\}^*$ starting with length 1 and then increasin... |
Approximating the traveling salesman problem (TSP) within a constant factor $k$ is hard. The standard proof shows that the existence of such an approximation allows the Hamilton Cycle problem to be decided. This standard proof is discussed in many places including accepted answers on cs.stackexchange here and here.
B... |
For simplicity assume that both have the same size N.
the lengh of this subsequence can be at most N, so maybe it's
max(C(N,1), C(N,2), ... , C(N,N))?
|
So basically, there are several (finite number of) Turing machines being able to read off and write to the same set of tapes (the number of tapes is finite, but each tape may have infinite tape spaces). And then we consider a group/machine of these machines to solve a problem. Would this machine be Turing machine-equiv... |
Modern non-cryptographic 32- and 64-bit valued hash functions, for example, lookup3, MurmurHash3 and CityHash, have quite sophisticated loops, each iteration of which include many multiplications, XORs and rotates. Why this is needed, since there are good avalanche procedures (32 -> 32 and 64 -> 64 bits), which mix the... |
I'm looking for an algorithm that -- given a positive integer $n$ -- outputs a positive integer $\bar{n}$ with the following two properties:
$(\bar{n}+1)^2>n$;
$(\bar{n}-1)^2<n$;
So we have $\bar{n}=\lfloor\sqrt{n}\rfloor$ or $\bar{n}=\lceil\sqrt{n}\rceil$ for every $n$. The point is that I don't care which it is, a... |
The Y combinator has the type $(a \rightarrow a) \rightarrow a$. By the Curry-Howard Correspondence, because the type $(a \rightarrow a) \rightarrow a$ is inhabited, it must correspond to a true theorem. However $a \rightarrow a$ is always true, so it appears as if the Y combinator's type corresponds to the theorem $a$... |
From https://en.wikipedia.org/wiki/Abstract_machine
A typical abstract machine consists of a definition in terms of
input, output, and the set of allowable operations used to turn
the former into the latter.
The best-known example is the Turing
machine.
In a Turing machine, what is its set of operations?
Is $... |
Procedure: Start a secondary TM in parallel with the first, but have the second perform exactly 1 step each 2 steps the first TM performs (i.e. it runs at half speed). If the second machine ever reaches the same configuration as the first, a loop was detected (obviously).
Claim: All infinite local loops in a TM can be... |
I just started a course called 'Automata and Formal Languages'.
I'm having difficulty in proofing\disproofing this equality.
$ (L_{1} \circ L_{2})^{+} = L_{1}^{+} \circ L_{2}^{+}
$
Where:
$ L_{1} $, $L_{2}$ are Languages.
$\circ$ is the concatenation operation between two languages.
$+$ is the Kleene plus closure d... |
I'm doing some practice papers for revision for my finals and I came across this question:
"This question is about recursion. A recursive method can always be implemented by an iterative method that uses a stack to keep track of intermediate values. Could the stack be replaced by, for example, a queue? Explain (no exp... |
When bulk-loading R-tree with points one can simply sort the elements by some coordinate and split to equal-sized chunks. But if the elements have some extent, sorting them by their coordinate value (whether minimum, average or maximum) can still lead to large overlap if there are some large elements involved.
(Update)... |
Turing Test definition taken from wikipedia:
The Turing test is a test of a machine's ability to exhibit
intelligent behavior equivalent to, or indistinguishable from, that of
a human. In the original illustrative example, a human judge engages
in natural language conversations with a human and a machine designe... |
I need someone help me about . how can compute time complexity for this algorithm (Menezes-Vanstone Elliptic Curve Cryptography).
I have spent much time reading journals and papers but as yet have been unable to find any record of that performance complexity.
It is known that the algorithm is
encryption function is :
$... |
Problem: Find optimal values for four parameters which are used to tune an algorithm under the constraints of accuracy, time and memory.
I have an indexing scheme used to search for the K-nearest neighbors of a point in many dimensions. This indexing scheme has four adjustable parameters. For each given fixed problem s... |
There is at least one (1) distributed version propsosed for the push-relabel maximum-flow algorithm. I wonder if and how this algorithm can cope with nodes leaving or enterig the graph during runtime. Is there any work about this?
1 Andrew V Goldberg and Robert E Tarjan. A new approach to the
maximum-flow problem. Jour... |
Kolmogrov complexity is known to be uncomputable. Why can't we enumerate all programs of size i = 0 in lexicographical order - if any produce string s, that is the Kolmogrov complexity; if not, increment i and iterate? Won't that prove that no program of length < i generates string s?
|
Does anyone have a good reference to pseudocode for Monge-Elkan string comparison algorithm?
I have access to the two original papers, but they do not show the pseudocode of the actual algorithm. Also, I have seen some implementations in Java (preference), but they are part of the larger package and with a complex inh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.