instruction stringlengths 35 29.1k |
|---|
I'm trying to learn for my exam and had the following practice question:
Take a code with the following code words.
101100010111
110001001001
101110111011
Errors of how many bits can be corrected?
The answer i received was:
The hamming distance is: 4.
Therefore only single bit errors can be corrected.
How did they ... |
I TA for a course in theory of computation and this came up as an interesting question.
$E_{TM}$ is the set of TM descriptions where the machine's language is empty.
Of course, $E_{TM}$ is undecidable for arbitrary TMs (as well as $A_{TM}$).
Now suppose we restrict our attention to decider TMs (ones that always halt).
... |
I'm giving a language
$L=\{0^m 1^n 2^m \mid m,n ∈ N\}$. I designed this stack machine in order to accept $L$.
Here, I'm skipping $1$s (no matter how many $1$s there are). Is it acceptable to skip the input this way?
|
I don't think so, because $A_{TM} = \{<M,w>\mid \text{M accepts w}\}$ is not Turing-decidable. Is this the right way to think about?
|
For the language, $L(aa^*ba) \cup L(abbb^*)$ and the grammar
\begin{align*}S&\to aAba \mid abbB\\
A &\to Aa \mid \lambda\\
B &\to Bb \mid \lambda
\end{align*}
Would the grammar above constitute as LL? I'm having trouble recognizing what exactly constitutes an LL grammar.
|
Suppose that we have multiple minimum paths from $u$ to $v$ of a graph $G=(V,E)$. Now, we take this paths and create a subgraph $G'=(V',E')$ where for each $v \in V$ and $e \in E$ we have that $v \in V'$ and $e \in E'$ if and only if $v$ and $e$ exists in one of the minimum paths.
Now, my question is:
It is possible t... |
I am trying to find the worst-case complexity of the following algorithm. The input to the algorithm is a list of positive integers $a_1,\ldots,a_n$ and a bound $C$.
$S\gets$ empty set
$k\gets0$
for $i\gets1$ to $n$ do
add $i$ to $S$
$k\gets k+a_i$
if $k>C$
$j\gets\arg\max_{i\in S}a_i$
$k\gets k - a_j$
remove $j$ ... |
Is Turing machine is robust ?
if it solved with one tape, can it solved with multi-tape?
I know that TM is robust but i can't understand why
|
If you do a quick search for suffix trees on Google, you'll find a bunch of sources saying that Don Knuth called them the "Algorithm of the Year 1973." However, I can't seem to find a source on this.
Is there a reference to a paper, communication, etc. where Knuth specifically says this about suffix trees?
|
When proving a language is non regular we can use Kolmogorov complexity.
As far I know to do this we just have to use this satisfy the following conditions
Given $Y^A_{x,n}$= the nth string $y∈Σ^∗$ (in lex order) such that $xy∈A$ (if n such y exits). So what completes $x$ if adding $n$ such y's brings us to an element ... |
I am trying to prove that bidirectional BFS could have a worse run time than regular BFS. I am confused on how this would be possible, considered bidirectional BFS always divides the run time in two, since it is executing two searches. Would a specific order of nodes and vertices have to take place in order to give bid... |
I am trying to calculate the complexity of the euclidean algorithm for finding the greatest common divisor (gcd) (recursive version).
Here's the pseudo code:
algorithm euclid(a,b)
if b = 0 then
return a
else
return euclid(b, a mod b)
end if
My initial thought is that every time the recursive function is calle... |
Say I have a list of $n$ integral intervals $[a,b]$ where each represents a set $S = \{a, a+1, \ldots, b\}$. An overlap is defined as $|S_1 \cap S_2|$. Example: $[3,6]$ and $[5,9]$ overlap on $[5,6]$ so the length of that is 2. The task is to find two intervals with the longest overlap in $o(n^2)$ using just recursion ... |
I am trying to write a Matlab (or C) routine for the exact probability F of observing K or more successes when a success probability P is expected ($\sum_{k=i}^n \binom{n}{k}p^k(1-p)^{n-k}$).
I am trying to figure out the following:
I need to know, if it shoud work for large numbers:
i.e. K=501000, N=10^6, P=0.5
Is... |
We are developing game of sprouts bot using min-max algorithm. We need a good heuristic function for evaluating the state of the game/player. Can someone please suggest?
|
Is Euclidean TSP strongly NP-hard? What I mean is if it is NP-hard with weights specified in unary?
Can someone provide a reference?
|
Decide whether the language $L$, defined by the following grammar is regular or not:
$S \rightarrow aab$
$S \rightarrow aacSb$
$S \rightarrow acSab$
$S \rightarrow acSacSb$
Where should I start?
I have tried defining a new language $L' = \{(aac)^n\ w\ b^n | w \in L\}$, which should be non-regular, because of dependenc... |
Are there examples of functions that can be defined computably, though the existence of their range is not computable?
|
Let $A$ and $B$ be two arrays of size $n$. How many pairs of indices $i, j$ satisfy $1 \le i < j \le n$ and $A[i] > B[j]$?
After quite a bit of thinking the best i had gotten to was make a for loop inside of another, which i don´t think it´s a good solution. So i´d like to know some ideas on how to implement this alg... |
Hi! I faced a problem with calculating IPC.
I can tell the answers were derived from IPC=instruction/number of cycles.
But I have no idea why it has to be calculated that way.
Just to understand the meaning of IPC, it seems like how many instruction
can one cycle(clock) handle which obviously is not the case for this ... |
Given a sequence of N activity durations, the time P of pause between activities, and D, the length of a day (there are no breaks between days, only between activities in a day), what is the minimum sum of the cube loss across all days and how many days are required for the solution. The activities need to be scheduled... |
My question is what the title says. Given an weighted directed graph $G=(V,E)$ and the minimum distance between two vertexes $u$ and $v$, I want to know if the distance between $v$ and $u$ is always the same in $G^{T}$ (the graph with all edges inverted).
I did some tests and couldn't find a graph where this is false, ... |
I would expect issues with the Facial Recognition technology to prompt evaluators to measure performance with metrics such as:
accuracy (e.g. false positives)
poor image quality input handling
speed of algorithm
What are the metrics used to gauge state of the art Facial Recognition? Please feel free to add the list
|
Given $Y^A_{x,n}$= the nth string $y∈Σ^∗$ (in lex order) such that $xy∈A$ (if n such y exits). So what completes $x$ if adding $n$ such $y$'s brings us to an element in the set $A$
Given $A \subseteq \Sigma^*$ has the following property, then it is not regular
For every $c \in \mathbb{Z^+}$ there exits $x \in \Sigma^*... |
I have a question regarding the banker's algorithm step 2. When it says the Need[i] <= work. Need is an n * m matrix and work is a vector of length m. I want to know what Need[i] <= Work means. Does it mean that I have to find the vector magnitudes of Need[i] and work and compare them?
|
I'm not quite sure when they would have the same asymptotic running time. Would it be if the graph was each node connected to one other node in a line? I know that for a bi-directional BFS to have a worse running time a star graph would work, but I'm not quite sure how they would have the same asymptotic running time o... |
Given n packets, each packet has b(i) bits and takes t(i) seconds to stream. We cannot send 2 packets at the same time. Given r > 0 and for each t > 0, the total number of bits we send from second 0 to t must be <= r*t (bandwith limit).
Example:
Given n = 3, (b1,t1)=(2000,1), (b2, t2)=(6000,2), (b3,t3)=(2000,1) and r ... |
Take a look at the following expression:
{(AnB)m|n>0,m>0}
Or, to put it simply: the words in the language, have repeating parts consisting of, some A's followed by a single B.
There are TWO school of thoughts about this, which can be broken down, by this question:
Is the word ABAAB, a part of the language?
I say, that... |
Is it possible to encode $y=0\implies G=0$ else $G=x$ by Integer Linear Programming where $x,y,G$ are integer variables?
The answer mentioned below gets to the point of taking absolute value of difference of two integers $a,b$. How do we get $|a-b|$ from ILP?
|
Here Nested loops are used, the time complexity of outer loop will be O(n) but how to calculate the complexity of inner loop as it depends on the value of i
|
Let's say we have given matrix $N\cdot N$, with zeros and ones only at $P$ position at it. We want to implement queries $q(x_1, y_1, x_2, y_2)$ which will return the number of ones in the sub-rectangle described with those two points. Since $N$ can be up to $10^4$ we cannot create standard DP matrix for answering the q... |
Is there a method to apply when trying to finding out the time complexity of a piecewise function?
\begin{align*}
F(x) &= \begin{cases} 2^x & x < 8, \\ x^2 & x \geq 8. \end{cases} \\
\end{align*}
This case seems straightforward as the function is $\Theta(x^2)$ for a large enough value of $x$, but what should be done in... |
With great pleasure I was just reviewing Marvin Minsky's publication "Steps Toward Artificial Intelligence" from 1961.
Now I would like to know whether there are any more compilations about the approaches to artificial intelligence with a similar depth and scope by authors with similar credibility, dating before or af... |
I'm currently working on designing a relatively simple processor using a custom ISA .
It will use interrupts for I/O .
From what i know , once the interrupt controller issues an interrupt , the processor acknowledges it and set it's PC to the IVT , from where it executes the relevant interrupt handler , which specifie... |
We have a set of $k$ path requests from $src$ to $dst$ that arrive sequentially.
Each request may have multiple paths, but can choose only one of them. For example, in the Figure shown, there are two paths from $s1$ to $s4$ i.e., path1 : $s1-s2-s3-s4$ and path 2: $s1-s5-s6-s4$.
Further, each node on the path has an a... |
So in reading I have come across the terms "InLeft" and "InRight" and I am unable to find a concrete definition for it.
I have found it used in the specification for COQ, and in some notes on compilers (there it was refered to as INL and INR).
As far as I am able to ascertain it is to do with making a difference betwee... |
Let the function cane and its auxiliary helping function down be the smallest functions satisfying the following requirement. For every x∈ℕ, for every y∈ℕ, and for p=(x,y), all of the following statements hold:
down(x+1,y)=(x,y+1)
down(0,y+1)=(y,0)
cane(p)= 0 if down(p) is undefined
cane(p)=1+cane(down(p)) if both down... |
Assume L is regular language, define 1 = {: ∈ , ∉ }, prove or dispute L1 regular or not ?
|
I've revisited trying to understand the proof to why NTM exists iff there is a verifier. I think I'm finally understanding the proof but I want to make sure and thus have some questions as follow up along with to check if I'm understanding.
For the forward implication (there exists a verifier $V$ and we want to show t... |
I have this task for Analysis of Algorithms module in university
$$
\begin{align*}
W, V &= \{v_1, v_2, v_n\}, S = \{s_1, s_2, s_n\}\\
G(W) &= \max~_{i:w_i\leq w} ~\{G(W-s_i) + v_i\}, G(0)=0\\
\end{align*}
$$
I am not sure what does the marked text mean in this recurrence formula. Because I think $W$ is a variable not ... |
So i came upon this thread :
https://gateoverflow.in/57631/relation-between-np-recursive-and-recusive-enumerable
and the guy says Every language in NP is recursive and Every language in NP is recursively enumerable.
but i dont get it, isn't NP the set of problems which we can only determine if a given answer is true ... |
I have a recurrece equation
Changed notations:
$\qquad\displaystyle G(W) = \max \{ G(W - s_i) + v_i \mid 0 \leq i \leq n, w_i \leq W \}$,
I am not sure if I understand $\ w_i $ correctly.
On each iteration my $ w_i \leq W $ . So my $ w_i $ will be previous $ W-s_i $ since G takes one argument?
|
I have the following problem:
given
a directed graph $G=(V,E,d)$, where $d:V\to\mathcal{I}(\mathbb{Q}_0^+\cup\{+\infty\})$ (here $\mathbb{Q}_0^+$ denotes the set of non-negative rationals and $\mathcal{I}(\mathbb{Q}_0^+\cup\{+\infty\})$ the set of intervals, bounded or unbounded above, with non-negative rational boun... |
what are the language that the DFA accept ?
so my approach for the first one is : a needs to be 4n+1 for all n>=0, #b%2=0
also i found out there some loops inside the DFA and a:b ratio is 3:1
but how do i write it formally ? L = {W |.... } ?
second DFA is that the word must end with letter b, there also few loops, so... |
What happens if I build the following mapping function from $A_{\mathrm{TM}}$ to $A_{\mathrm{LBA}}$ (LBA means linear TM with a limited tape space and $A_{\mathrm{LBA}}$ is decidable):
If $M$ accepts $w$ then returns an LBA which decides the language {'111'}.
Clearly if $(M,w)$ is in $A_{\mathrm{TM}}$ then $f(M,w)$ is ... |
So considering CYK is O(n^3) and since we can just use LR(k) algorithms for DCFG's which they can check if a string is in the language in O(n) then whats the usage of CYK?
is it being used anywhere?
If I'm not mistaken(correct me If I'm wrong) the benefit of CYK is that since we can convert any CFG to CNF form therefor... |
So in a book that I'm reading it says that we can convert any given Turing machine to a standard turing machine with only 6 states
furthermore we can convert any given to a turing machine with only 3 states given we have no limitation on which version of turing machine we use(multi tape, non deterministic, etc so its n... |
Given an undirected graph $G=(V,E,p,c)$ and a positive integer $k$, $p: V \longrightarrow R^+$ which associates a positive weights $p(v_i)$ to every node $v_i \in V$, and $c: E \longrightarrow R^+$ which associates a positive cost $c(e_{i,j})$ to every edge $e_{ij} \in E$. How can I find a subgraph $G'=(V_{G'},E_... |
I have encountered a problem that is essentially the textbook statement of the Traveling Purchaser Problem. I don't know if this is the proper place to put this, if not then I will delete it.
Also a note is that while I have done some studying on my own of computer science, I did not have much formal education in it... |
$L = \{w \in \{a, b, c\}^*\mid w\text{ contains at least one }a\text{ and at least one }b\}$.
what's the proper regular expression for the following language?
|
Suppose we have a sequence $s$ with $n$ elements from $s[1..n]$. I want to check if there exists $m \leq n$ elements in this sequence that each satisfy some simple condition (that can be tested in $O(1)$ for each $s[i]$), such that all of these elements are spaced apart by at least $k$. Is there an algorithm that can a... |
I've come across this problem and I can't find a decent DP solution for it.
Given an initial amount of money and a bunch of items to buy (where each item has a 'value' and 'price' assigned to it), maximize the total 'value' such that the money spent does not exceed the initial money. With the exception that if the tota... |
How to solve the recurrence $T(n) = T(n/2) + T(n/4) + T(n/8)$?
We assume that $T(n)$ is constant for sufficiently small $n$.
|
1 for(i=1; i<=n; i++){
2 for(j=1; j<=n; j*=2){
3 a[i][j]=b[i][j-1]+1;
4 }
5 }
line 1 : n+1 times
lnie 2 : n/2+1 times
line 3 : constant time c
so, I computed $(n+1)(n/2+1)c=(n^2+2n+2)/2+c=\theta(n^2)$
Is it right computation?
|
I had this question in my HW:
Prove of disprove: If $L_1$ and $L_2$ are non-regular context free languages then $L_1 ∪ L_2$ is not regular.
My intuition is that it is wrong. I thought about the following two languages:
$L_1 = \{a^ib^jc^k : 0 \leq i \leq j \leq k\}$ and
$L_2 = \{a^ib^jc^k : j<i \lor j>k\}$.
The unio... |
I don't understand the proof of below sentences.
$O(f(n))=O(g(n)) \iff \Omega(f(n))=\Omega(g(n)) \iff \theta(f(n))=\theta(g(n))$
$f(n)=\theta(g(n)) \iff g(n)=\theta(f(n))$
How can I prove these statements?
|
Can I prove following statements with using available automated theorem provers?
$(a+b)^2=a^2+b^2+2ab$.
If $ 11 \mid 2a-3b$, then $ 11 \mid 7a-5b $.
If $ ax^2+bx+c=0$, then $x=\frac{-b\pm\sqrt{b^2-4ac}
}{2a}$.
If $a$ is even then $4a$ is even.
and so on!
I am asking this question because I just found the applicati... |
How to prove that the language over the alphabet $\{0, 1, +, =\}$ is regular or not:
$\{a+b=c:a,b,c \text{ are integers in binary for which } a \text{ plus } b\text{ equals } c\}$
I started with the pumping lemma:
|$y$| ≥ 1
|$xy$| ≤ $p$
for all $i$ ≥ 0, $xy^iz$ ∈ $L$
But I don't know what to do next. How can split ... |
So I have this algorithm that outputs the largest value of an array:
Input: $A[1,\dots,n]$, $n\geq 1$
Output: Largest value of an array
Maximum (A)
m = A[1]
i = 1
while i < n
if A[i+1] > A[i]
m = A[i+1]
i = i+1
return m
I have to prove this algorithm wrong and I'm confused how to do that, be... |
We are given NFA $A$, which for every input word $w$ has at most 10 runs over word $w$, beginning at the starting state.
Show that there exists an algorithm, that converts such NFA to DFA in polynomial time. We don't need that algorithm to work if given automata is not such a NFA.
I think we need to construct DFA wit... |
So I'm building this iterative simulation of a surface (composed of line segments) that cannot self-intersect, which means I have to check intersections at the end of a timestep. The thing is, I know, at the beginning of every timestep, that no intersections exist within the set of all line segments that constitute the... |
$L = \{w \mid M_w \text{exists and it accepts a word } x_1 = 0x \text{ if and only if it accepts } x_2 = 1x\}$ ($x \in \Sigma^*$, so $x_1$ is starting with a 0 and $x_2$ is obtained from $x_1$ by changing the first 0 to a 1).
|
Studying for an exam and considering the general set of languages that solve the problem of whether or not some condition is fulfilled while processing a string.
I consider the language L_overwrite which solves the problem of if one arbitrary character overwrites another different one.
I'll call these arbitrary charact... |
Let me first say I come from a physics background and have about zero exposure to computer science, so the question may be very naive. Shannon's entropy looks perfectly natural and useful from a statistical/thermal physics point of view, but now I'm trying to understand how it is applied for real computers.
Normally t... |
Let $k,n,K,m \in \mathbb{N}$ such that $k<n$. Let $l\in \mathbb{R}$, such that $0 \leq l \leq 1$. I am analyzing an algorithm and I need $O(N)$. Could you help me with the reduction of the expression $N$:
$$N=\log_S(1-\sqrt[K]{l})$$
where
$S=(\sum_{i=1}^m 2^{k-n}\binom ni)/2^{k}$
Using hint of DW, I try.
$$N=\log_S(1-\... |
I came across this question in an exam book and was unable to find a solution:
Prove that C(n) = {a^k | k is a multiple of n} is a regular language for every natural number n ≥ 1.
I wasn't able to construct a DFA as the number n is left variable in the original question. Is it possible to construct a DFA with a variabl... |
Let's say you want the top k elements. Then given the array, there is an O(n) O(n) space approach. But what if you have a stream of elements, this means that each time you'd append an element to the end of your list, you'd have to do this O(n) time O(n) space approach. Let's say your elements are distinct elements of a... |
The problem statement can be made as follows. There is a 1D length of raw material that contains "net" and "waste" intervals. Using 2n cuts, sections of material can be removed so that less waste has to be processed later. For a given value of n, where should the cuts be placed so that the amount of waste that is remov... |
Given two arrays $A$ and $B$ of integers, both of size $N$, such that for all $0 \le i \le N-1$, $A[i] \ge B[i]$, we have to convert array $A$ to array $B$. For this we can do only one type of operation: choose some $l$ and $r$ ($0 \le l \le r \le N-1$) and set the values of $A[l],A[l+1],\ldots,A[r]$ to $k$, where $k \... |
If an algorithm runs in $O(|V||E|)$, is its running time bounded by some polynomial of $|V|+|E|$? If not, what is its running time called?
|
I already saw this answer. But I didn't understand totally.
So I found the solution to this equation $T(n)=4T(n/2+2)+n$.
Here is the recursion tree. But I can't compute the height as $lgn$ from this tree.
How to compute height? (Image is from solution)
|
Let's say we have given $n$ points on the x-axis, each point described with two integers: $x_i, a_i$, $x_i$ meaning it's position on the x-axis, and $a_i$ meaning that it can activate all the points that lie in the range $[x_i, x_i + a_i]$.
The problem is for each of those n points to find the maximum number of points ... |
Hopefully I am posting this in the right place, I am currently in a course of knowledge representation, and I came across an exercise about entailment:
$$A\land\neg A\vDash C\,.$$
I would argue that this expression is not entail, but it is actually entailed, but I don't see how, can you help me figure out why?
|
So maybe I'm confused in these concepts
but i thought that time sharing computer is a computer which the processor switches between different processes quickly to achieve a good response time
but isn't this the same as Round Robin algorithm?! i mean aren't we scheduling between different processes in Time sharing c... |
Let $k \in \mathbb{N}$ and $m \in \mathbb{R}$. Consider the following function $S\colon \mathbb{R} \times \mathbb{N} \to \mathbb{R}$:
$$
S(m,k) = \begin{cases} 3m & \text{if } k = 0, \\ 4S(\tfrac{m}{2},k-1)+3m & \text{if } k \geq 1. \end{cases}
$$
Find a closed-form expression for $S(m,k)$ using repeated substitut... |
Consider a restriction on 3-SAT in which no literal occurs in more than two clauses.
How do we show that this is NP complete ?
(edit - I was getting confused over the definition on the 3-SAT,here by 3-SAT it implies that a clause can have at most 3 literals.)
|
I do not understand how do you write schduled loop from unscheduled one. The unscheduled loop straightforward if you follow the stall rules.
The rules say you are supposed to stall after L.D but in the right loop theres no stall.
|
Given a CFG for a (infinite) language $L$, is there an efficient algorithm that generates all possible words of length $n$ in $L$?
Preferably efficient in time, and with low memory usage.
I'm only interested in the words themselves - not their derivations. If the language is ambiguous and has multiple derivations for a... |
I have to write all possible Red Black Trees which can represent these 5 numbers {1,2,3,4,5}.
Now we have 120 ways to write 1,2,3,4,5
{1,2,3,4,5} {1,2,3,5,4} {1,2,4,3,5} {1,2,4,5,3} {1,2,5,3,4}
{1,2,5,4,3} {1,3,2,4,5} {1,3,2,5,4} {1,3,4,2,5} {1,3,4,5,2}
{1,3,5,2,4} {1,3,5,4,2} {1,4,2,3,5} {1,4,2,5,3} {1,4,3,2,5}
{1,4,3... |
I am working on a Systematic Literature Review (SLR) and about to done with data synthesis. After SLR, I want to create an Ontology and include different details of the SLR in Ontology. I have almost completed the practical steps, but unable to write the motivation behind using Ontology in SLR.
I want you all to please... |
I am writting a small compiler for a compilers' class. The algorithm is having a shift/reduce conflict when I try to enclose if-else with braces '{', '}'.
The non-ambiguous if-else statement I took from the dragon book, which turns to be ambiguous when I add the braces. To build the parser and test it I am using the P... |
The shared bus between the program memory and data memory leads to the von Neumann bottleneck, the limited throughput (data transfer rate) between the central processing unit (CPU) and memory compared to the amount of memory. Because the single bus can only access one of the two classes of memory at a time, throughput ... |
Is there a way possible to find the middle element of a doubly linked list using head and tail. I tried traversing to the next element from the starting node and the previous element from the end node and check if the reference of both is same or not. This works fine if there are odd number of elements in the list. I a... |
Do all longest paths share a common point? (Gallai 1966)
A few years later, Walther produced a counterexample on 25 vertices (a). The simplest counterexample was found by both Walther and Zamfirescu independently and has 12 vertices (b).
I found this examples in numerous study, but i couldn't find a vertex that doe... |
There is a universal metric of information: amount of bits. It's universal in the sense that if we write a piece of information in DNA (4-ary digits), we can simply multiply by 2-log-4 to get the amount of bits.
I'm wondering if there is also a universal measure of the size of a program. I know about Kolmogorov comple... |
In his paper The Bose-Nelson Sorting Problem (1973, Chapter 15 of A Survey of Combinatorial theory on page 163 available on Google books), Knuth says that the optimal bound of 5 comparators for a 4-input sorting network comes from an "elementary information-theoretic argument".
Information theory is not a part of my to... |
This has been confusing me for a while, how do we exactly choose the pumping length when we want to prove whether a language is CFL or not. For example, when we want to prove that {ww, w: {0,1}* } why do we choose p = n as 0^p 1^p 0^p 1^p ?
|
I'm a bit confused regarding the relation between trace equivalence and bisimilarity. These lecture notes I found and a few others documents I've read state that "if an LTS is deterministic then two states are bisimilar if they are trace equivalent".
When reading around the topic I found this page, which shows the fol... |
I know Shannon Entropy is defined for messages. When it's said the size of a file stored in a HDD is 1 MB, are we talking about the Shannon Entropy? If so, how do we extend the definition to static information (not flowing like messages)? If not, how come they have the same unit, i.e. bits?
|
This is a follow up to the following question: Bounded Quadratic Congruence Problem Variant (for some specific Residue)
As indicated that for square residue the problem is solvable in polynomial time. Let us consider a modified version of the same problem:
Given: 3 positive integers $a,b,L$. Problem: Is there a positiv... |
Suppose we call two finite state machines equivalent if they "perform the same computation" - they accept the same language, or they produce the same output for any given input. Is there an algorithm for checking if two finite state machines are equivalent?
|
When encoding a a 2D Datamatrix barcode, I want the smallest output size. There are means to encode a compressed a string using some methods like C40.
Reference:
Here's a reference: https://en.wikipedia.org/wiki/Data_Matrix#Text_modes
Some sections of the string will compress more efficiently than others depending on t... |
Schema:
http://comet.lehman.cuny.edu/jung/cmp420758/DBMidexamFa14-SelectedSolution.pdf
Write SQL code to find the following details:
For each project: find the project number and the number of employees who do not work on the project but who work on a different project controlled by the same department.
Edit:
Here is m... |
We have given binary matrix (matrix containing only 1 and 0) of size $n\cdot m$. We want to order the matrix such that the biggest rectangle containing only ones is with maximum size.
For example if the following matrix is given:
1000 0010
1101 0111
1101 0111
1101 0111
We should output 9 because the biggest rectan... |
I was thinking about how the BitTorrent protocol automatically gives every peer a list of IPs of every other user who is currently seeding / leeching off the torrent in question. Is there an existing protocol where, somehow, the destination address is vague enough or unknown to the sender (and perhaps becomes more know... |
I am very new to Graph Theory and I am trying to prove the following statement from a problem set for my class:
Prove that if G is a regular graph on n vertices $(n \ge 2)$, then $\omega(G) \in \{1, 2, 3,... \lfloor n / 2 \rfloor, n\}$
I am confused by the part where it places the clique number to be in this set: $\... |
I need to generate the shortest possible path for aerial photography using a fixed wing unmanned air vehicle (UAV).
The image below shows the area I'm going to search. The white cells are the cells I want to photograph (must be traversed), and the black tiles are not of interest (doesn't have to be traversed). The midd... |
On a recent trip to the London Science Museum I saw Babbage’s Analytical Engine.
Apparently this had an ALU (or equivalent). Is the Analytical Engine binary? I can build an ALU out of logic gates but I can’t conceptualise how to do it with gears. I’m trying to map across the concepts.
My question is: Can you explain ... |
A polynomially bounded Turing machine is the one which, on input $w$, uses no more than $f(|w|)$ cells on its tape, where $f$ is a polynomial. For this problem halting is decidable.
I do not understand why is halting decidable for this problem because $f$ is unknown to us.
|
Generally speaking, an algorithm takes some inputs and provides some output. I would like to understand how the algorithm performs when the inputs are incomplete for various real-world reasons. Are there any papers on this issue?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.