instruction stringlengths 35 29.1k |
|---|
I am looking for an efficient algorithm to solve the following problem:
Given $n$ points in 2D Cartesian space $p_1,\dots,p_n \in \mathbb{R}^2$ and an integer $m$, we want to find $s_1,\dots,s_m$ such that $1 \le s_1 < s_2 < \cdots < s_m \le n$ and that maximizes
$$\sum_{i=1}^{m} \|p_{s_i} - p_{s_{i+1}}\|_2,$$
where $\... |
An AVL tree is a BST, and a BST is a complete tree, but AVL tree doesn't necessarily have to be complete. Thus, why do we define AVL tree a BST?
|
http://jgaa.info/accepted/2011/HasheminezhadMcKayReeves2011.15.3.pdf
Hello I stumbled upon this paper. On page $4/20$ the figure shows an infinite sequence of $5-$regular, connected planar graphs. But they do not define it rigorously. The first graph of the sequence is clearly the icosahedron, and I feel that the next... |
For this question, I implemented this:
public void setZeros (int[][] matrix) {
firstScan(matrix);
secondScan(matrix);
}
public void firstScan(int[][] matrix) {
int i, j;
for (i =0; i < matrix.length; i++) {
for (j = 0; j < matrix[0].length; j++)
{if (matrix[i][j] == 0) {markRowsAndColu... |
I'm having problem trying to determine if all square numbers (1, 4, 9, 16, ...) written in binary form (1, 100, 1001, ...) is a regular language.
After some attempts to find a common pattern of those numbers, I found out that for any square number $n^2$, $n^2 mod 4$ either equals to 0 or 1, and so I am able to draw a D... |
It consists of one read only input memory and write only output medium. The computation proper takes place in a working memory of limited size. When stating that a problem can be solved with a certain number of bits, what we mean is that the working memory consists of that many bits. The input and working memories are ... |
Are languages whose sets are empty recursively enumerable or recursive? For example, consider the language $L$ $\subseteq$ {0,1}*:
$L$ = { $w$ | $w$ consists of only 0's} $\cap$ { $w$ | $w$ consists of only 1's }
I believe this language creates an empty set. There are many different ways to design a Turing Machine th... |
Let $$A= (Q,Σ,δ,s,F)$$ be a NFA. Prove the following statement:
$∀q ∈ Q: (∃ w_2 ∈ Σ^* :δ (q, w_2) ∩ F \ne ∅ ⇒ ∃w_1 ∈ Σ^*:w_1w_2 ∈ L(A))$
I figured out that it means that if all the states have a path to the final state, that the word describing their path is a suffix of a word that is accepted from the NEA.
The thing... |
I have an NP-hard problem which I'm not going to tell you, and I suspect it becomes easier on planar graphs. I tried method Baker but it did not work because we have a restriction on vertices that avoid us to solve the problem in part of the graph then calculate the union of the solution in each part. Also, we try bidi... |
Example of start top-left, Coin Collecting problem in grid:
https://www.youtube.com/watch?v=94FEC_uNwVM
Example of start bottom-right, Dungeon Game problem in grid: https://leetcode.com/problems/dungeon-game/description/
I knew the Coin Collecting problem, so I started trying to solve Dungeon Game the same way, startin... |
Write $\bar n$ for the decimal expansion of $n$ (with no leading 0). For a set $S$ of natural numbers, let its set of expansions (in base 10) be $\bar S = \{\bar n \mid n \in S\}$. Is there a nice characterization of the sets $S$ such that $\bar S$ is a regular language?
Obviously adding or removing a finite number of ... |
There are two definitions of NP I found:
1) NP is a set of problems that have poly-size certificates, and with a given input, there is a poly-time certifier that checks the proposed solution.
2) NP is a set of problems that can be solved by non-deterministic algorithm in polynomial time.
I think (1) is a standard def... |
If the regular language $L$ is defined as $\{ w \in \Sigma^* \mid |w| \leq 140 \}$. Why does any DFA for it must have at least 142 states? Why not only 140 states?
|
I got recently confused when I noticed that there exists 2 types of polytime reductions, which lead to 2 different concepts of NP-hardness.
This is well explained in the answer to this question:
Can one show NP-hardness by Turing reductions?
While a Karp reduction is required to show whether a problem is NP-Hard or co-... |
Say I have a simple program that has the pseudocode like this:
min = 1
max = 100
c = 5
random = randomInt(min,max)
while(c != random):
random = randomInt(min,max);
Theoretically, from what I understand, I cannot guarantee this will halt. However, is this true for both PRNGs and say, random integers generated using... |
Let $M=(m_1, m_2)$, $M'= (m_0', m_1')$ be two two-block messages.
In other words, $|m_1|=|m_2|=|m_1'|=|m_2'|=n$.
We say that $M, M'$ collide for key $k$ if
$$E_k(E_k(m_1)⊕m_2) = E_k(E_k(m_1')⊕m_2').$$
How many two-block messages should one sample from $\{0, 1\}^{2n}$
s.t. with probability $≥ 1/2$ two (distinct) sample... |
One used equivalence relation in regular languages is that for a language $L$ over alphabet $\Sigma$, $(x\sim^Ly)\Leftrightarrow (\forall w\in \Sigma^* xw\in L \Leftrightarrow yw\in L)$.
That means, if two words $x,y$ are not in the same class, there exists $w\in \Sigma^*$ such that $xw\in L$ but $yw \notin L$.
It is i... |
I have a good idea of how deletion can be decoded in VT codes using Levenshtein algorithm. However, I don't have any idea how can an insertion be decoded? Can anybody give me a small example using a short VT code? Mostly papers say that a 1-deletion code can handle 1-insertion error as well, but I don't know how?
|
let ${L^*}$ be the Kleene star language which is definded like that :
$${L^*}=\{w_1,w_2, \dots ,w_n\mid n \geq0 \text{ and each $w_i \in L$}\}$$
I have to show of this correct or not !
$$ {L^*} \text{is decidable } \Rightarrow {L} \text{ is decidable} $$
$\textbf{my idea was to use the reduction function }$
le... |
How to solve this problem efficiently?
You are to find all pairs of integers such that their sum is equal to the given integer number N and the second number results from the first one by striking out one of its digits. The first integer always has at least two digits and starts with a non-zero digit.
The second intege... |
If i want to calculate the movements of each moving objects driven by regular algorithm, then how to measure required computing power? Is required computing power proportional to the quantity of the objects? If so, how can i measure required computing power?
|
Consider a directed graph G = (V,E) with non-negative costs on each edge.
With s being a starting vertex. Prove that by adding a constant k to each edge
(s,u) ∈ E such as u ∈ V, the shortest path tree starting from s will remain the same.
In an attempt to solve the above question (with a proof)
I thought that if... |
We define a language $L$:
$\qquad L=\{\langle M,w,k \rangle \mid M(w) \text{ reaches configuration } \alpha q \beta \text{ with } |\alpha \beta| \geq k \}$
with $M$ Turing machines with state set $Q$ and tape alphabet $\Gamma$, $\alpha$ and $\beta \in \Gamma^*$ , and $q \in {Q}$.
A configuration like this : 10q11 or B... |
I am currently going over this paper, and in fact have already tried to implement it:
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4634483/ [1]
Paper looks at the amplitude of the step and the time between the swings. ALthough I seem to understand the general idea, I am slightly confused about one of the formulas, whic... |
Problem:
Let $\varphi = \varphi_1 \land \varphi_2$ be Deterministic Buchi Automata (DBA) expressible LTL formulas.
Let $A$, $A_1$ and $A_2$ be translated DBAs such that ${\cal{L}}(A) = {\cal{L}}(A_1) \cap {\cal{L}}(A_2)$.
What can be said about the relation between the number of states in $A$ and that in the synchrono... |
I'm trying to come up with an algorithm for optimizing cutting a rod. Most of the examples I see online are for a stock of rod of a single length and optimizing the way to cut it up for max price.
I need something where the user enters length cuts they want (e.g. 2 of 1" length, 5 of 6" length, 10 of 8" length) and th... |
I know that the clock speed is determined by the slowest stage within the processor (usually fetch) because one clock cycle will take as much time as the slowest pipeline stage to ensure everything is synchronized.
So as fetching from DRAM is usually the slowest stage (for example during LDR instruction to memory whic... |
The problem I have been given is to find a two-tape ND Turing Machine over {a,b,c} that only accepts odd length strings with a c in the middle position. The problem with this is that the question specifies that it must be done in n+2 transitions.
I can figure out how to do it in 1.5 * n transitions, by iterating over t... |
I want to write a CFG that generates the words over {a,b} with the same number of ocurrences of a's and b's.
I have come up with a couple of possibilties so far. I think they're correct but they're all ambiguous, and I want the grammar to be non-ambiguous, this is one option:
S -> aX | bY | ε
X -> bS
Y -> aS
This is... |
I want to remove the epsilon transition from following grammar:
\begin{eqnarray}
S & \rightarrow & A | B \\
A & \rightarrow & \epsilon \\
B & \rightarrow & aBa \\
B & \rightarrow & b \\
\end{eqnarray}
This is the result of removing $\epsilon$ transition:
\begin{eqnarray}
S & \rightarrow & \epsilon | B \\
B & \rightar... |
Suppose $G$ is a CNF (Chomsky normal form ) grammar which has $v$
variables. ($|V| = v$) If there is a string that $G$ derivatives in
more than $2^v$ steps, prove that $L(G)$ is infinite.
Any ideas how can i prove this?
I know derivation tree in a CNF grammar is binary. So my idea is to calculate maximum number ... |
Just as the title says, I wish to check the position of a point relative to polygon in $\mathbb{R}^2$. My take on this problem is the following:
1) draw a horizontal line to the right of each point and extend it to "infinity".
2) cnt = number of times the line intersects with polygon edges.
3) if(cnt is odd or point i... |
Lets consider the class of "simple" LOOP-Programs.
A LOOP-Program P is inducively defined as:
$P_1: x_i = x_j$ and $P_2:x_i = x_i +1$ are LOOP-Programs. We also define a length property $l(P)$ where $l(P_1) = l(P_2) = 1$
P: $P_1;P_2$ is also LOOP. (sequential execution of statements). The length of these programs is $... |
I came about this problem looking for interesting DP problems. I tried with no luck to find which could be the overlapping sub-problems to explore and solve and tabulate. But it is my belief there are none and this problem can't be solved using DP.
Explanation of the problem rules can be seen here:
A turskish Roulette... |
Define a "non-standard" flow to be a flow where the quantity flowing through an edge may be negative.
Formally, given a directed graph $G$, and two designated and distinct
vertices $s$ and $t$ (such that no edges are leaving $t$, and no edges
are entering $s$), a non-standard flow $f : G_E \to \mathbb{R}$ is a
v... |
You are given a Graph G and an integer k.
The question is: Does G contain a vertex set X of size at most k such that deleting X results in a graph of degree at most 1?
Design an FPT (or a kernelization) algorithm for this problem and argue why it is correct.
Hint: Observe that vertices of higher degree must be "dealt w... |
I'm still confused with the terms Weakly NP-complete and strongly NP-complete.
Many people states that weakly NP-complete problems are the problems with time complexity growing as a polynomial in the magnitude of the input, while strongly NP-complete problems are the problems with time complexity growing as a polynomia... |
At section 8 of the paper On the Synthesis of a Reactive Module, the authors state the following theorem:
Proposition 2 (Non-Emptiness Condition)
Let $A = (Q, \delta, Q_0, \Omega)$ be a tree automaton with
$\Omega = \{(L_i, U_i) | 1 \leq i \leq m\}$ and $|Q|=n$.
Then, $T_\omega(A) \neq \emptyset$ if and only if for so... |
BQP : (bounded-error quantum polynomial time) is the class of decision problems solvable by a quantum computer in polynomial time, with an error probability of at most 1/3 for all instances.
Question : We know that $\mathsf{P}$ and $\mathsf{NP}$ classes are defined on Turing model of computation where as $\mathsf{BQP}$... |
My confusion arises when solving the average case. I thought that it would be: 1/n * (number of elements)
But in the solution, they do 1/n * (sum of all the elements). I know that this all goes down to N when in big-o notation but why are they summing all elements of the array and how did they get to just the sum formu... |
If a CNF contains only Horn and Xor clauses, and does not contain clauses of other types, then can its Satisfiability be determined in polynomial time?
|
My intuition says it would simply be the number of edges leaving s.
I'm assuming it's a valid flow network so sum of capacities leaving s is the same as the sum of capacities entering t, so a max flow exists.
This variation simplifies the running time because for any augmenting path, we can add the same amount of posit... |
According to "Constructible function", Wikipedia:
In complexity theory, a time-constructible function is a function f from natural numbers to natural numbers with the property that f(n) can be constructed from n by a Turing machine in the time of order f(n).
But $\log\left(n\right)$ doesn't map onto natural numbers b... |
I want to show this problem is decidable by describing a TM that answers the question.
I originally thought this was quite simple, and that the answer would just be a TM that outputs "yes" for any valid input of a TM M. My reasoning was that given any TM M, we can just add a new unreachable state to it and the new mach... |
Assuming the edges are undirected, have unique weight, and no negative paths, do these algorithms produce the same Minimum Spanning Trees?
|
I have started study of approximation algorithms and have confusion about the definition of approximation algorithm. I have two textbooks: by Cormen and the second one by Williamson.
Cormen's textbook says
If an algorithm achieves an approximation ratio of $\rho(n)$, we call it a $\rho(n)$-approximation
algorithm.
... |
I have the following example that I have to prove
{a>7 ^ b>=0} n:=a-b {n<a ^ a+b>=0}
Using the Consequence Rule I assumed that the P is true
{true} n=a-b {n<a ^ a+b>=0}
so logically, the Q should be true, but I'm not sure if that'd be enough.
|
The normal Ford-Fulkerson method finds augmenting paths (as long as one exists) while including "back-flows", but if those back-flows are ignored, does there exist a flow network for which algorithm will not terminate? Assume integer capacities for each edge.
Edit: I learned that even if the back-flows are ignored, wit... |
I was just wondering, I think merge sort is more efficient but not sure if that is true. I know it's to do with the complexities but am still struggling to understand.
|
I understand how bubble sort works and why it is O(n^2) conceptually but I would like to do a proof of this for a paper using the master theorem.
As an example: The recurrence form for merge sort is T(n) = 2T(n/2) + O(n) which, using the master theorem, gives us O(n log(n)).
I am unsure of how to do this process with... |
Recently I came across some news that Google and IBM are planning to unveil a 50 qubit quantum computer. I read that in this design, each qubit is not connected to all other qubits rather only to the two nearby qubits(neighours). In layman terms, what difference will this create in terms of the system's computational... |
What are the drawbacks of Normalized Mutual Information (NMI) clustering evaluation method?
For evaluating what clustering algorithms, is the NMI evaluation method suitable?
|
I am looking for an example that shows how to canonically label a graph using brute-force approach. An example with a 3 vertex or 4 vertex simple graph is preferred.
|
We're given $T$ a minimal spanning tree (MST) of a non-directed, connected graph $G=(V,E)$ with non-negative weights for each edge $e \in E$. Let $e^* \in T$ be an edge in $T$ and let $G'=(V,E')$ be the graph which we get after removing $e^*$ ($E'=E\setminus \{e^*\}$). $G'$ is also connected.
I need to propose an al... |
I learned in my data structures class that QuickSort can be optimized by calling the InsertionSort method when the length of the subarray is less than a certain threshold. However, when it comes to the actual time complexity calculation of the optimized version of QuickSort, I'm having trouble finding the result. The p... |
How to prove that for a full (each node that's not a leaf has 2 nodes) binary tree $T$ of $n$ leaves there's a series of frequencies $f_1,f_2,...,f_n$ such that if we use Huffman algorithm on the series we'll get $T$?
First in order to get frequencies from $T$ we can assign the probability of $\frac{1}{2^d}$ to each ... |
While going through bubble_down implementation for min-heap in The Algorithm Design Manual By Steven Skiena, since routine pq_young_child gives the index for youngest child which can be replaced with the parent I feel the lines 10 - 13 are useless or maybe I am not able to identify the cases it handles. Here is the imp... |
I would like to classify data coming from a sensor. In the literature Hidden Markov Model and SVM are used, but I would like to improve results with another methods.The picture how data and classes are as follows;
x is time axis and y is sensor outputs axis.
The yellow is how signal looks like and it randomly changes ... |
folks.
Hope you all doing well. I have a question regarding to the topic Equivalence of NFA and DFAs.
While converting from NFA to DFA why we always say we'll have 2^n states, and should it be always 2^n ?
Thanks in advance.
|
I'm taking Andrew Ng's machine learning course and week 5 covers the training of neural networks. The modified cost function for neural network training is derived from the logistic regression cost function, and is described as follows:
$$\begin{gather*} J(\Theta) = - \frac{1}{m} \sum_{i=1}^m \sum_{k=1}^K \left[y^{(i)}... |
I need to prove that if $L1,L2$ is regular languages
$L=\left\{ a_{1}b_{1}a_{2}b_{2}\cdot\cdot\cdot a_{k}b_{k}\mid a_{1}\cdot\cdot\cdot a_{k}\in L_{1},b_{1}\cdot\cdot\cdot b_{k}\in L_{2}\right\} $
will be regular as well.
My approuch is :
There is $A_{1}=\left\langle Q_{1},\Sigma,\delta_{2},q_{0_{1}},F_{1}\right\rangl... |
Are there useful programs that don't take inputs from a user, environment etc. such as key input, or the current time?
A program that computed/printed out predefined data could be turned into a file, right?
|
When you insert a new item in a B+tree leaf node, and the node is full, two new nodes are created and they're both filled halfway and the values get re-distributed accordingly.
Before the insertion:
After inserting 6:
Problem that I'm having is that this leaves lots of empty spots across my nodes. I could even end up... |
The algorithms I've seen for building an LL(1) parse table involve calculating first and follow sets such that:
predict(nonterminal, production) ==
if epsilon in FIRST(production):
first(production) union follow(nonterminal)
else:
first(production)
where production is a sequence of symbols... |
I'm having a hard time understanding the following. Assuming we have a complete graph with $n$ vertices, where initially, one of those has an information. At this point, all we care about is that in each time $t$ a node that has the information chooses randomly one of it's neighboors and sends it the info, only if the ... |
I need help with my CS homework, and I don't quite know what to do..
The problem is to define a function and return a string as shown as:
1111
2222
3333
I wrote my function as:
def steps():
for i in range (1,4):
string = str(i) * 4
print(string)
How do I put in the little spacings? I k... |
Problem:
I am trying to solve the $N$-Queens problem using Constraint Satisfaction and Heuristic Repair (also known as Min-Conflicts). I wrote a program to do this for any given $N$ queens and $N * N$ board.
I observed that a solution should be found in $N$ passes or less (since we need to find $N$ non-conflicting loca... |
In this article :
Kinodynamic Motion Planning
B. Donald, P. Xavier, J. Canny, J. Reif
https://www.cs.duke.edu/brd/papers/src-papers/jacm-final.pdf
The authors present a PTAS algorithm that can compute a safe, close to optimal trajectory from a point A (having a certain speed vector) to a point B (having a certain spee... |
I am a musician/producer and very interested in the way humans are able to identify sounds.
I am interested in a way to have an algorithm identifying different instruments that were originally mastered as stereo or mono.
Maybe computers would be able in future to isolate different instrument tracks and remaster them.
... |
We have a DFA $A = (Q,\Sigma, \delta, q_0, F)$.
States $p, q$ $\in Q$ are equivalent, $p \sim q$ if $ \forall w \in \Sigma ^ \ast$ $ \delta^*(p,w) \in F \iff \delta^*(q,w) \in F$
States $p,q$ are equivalent after $i$ steps, $p \sim ^i q$, if $ \forall w \in \Sigma ^ \ast$ such that $|w|\le i$ $ \delta^*(p,w) \in F \if... |
I'm writing an algorithm that, given a limit N, and given a list of elements of value V, find all the possible combinations so that the sum of the elements is equal to N. Note that several elements can have the same value.
A simple example to demonstrate this, if N=16, and that we have 3 elements, a, with a value of 3,... |
I have a DAG with $n$ nodes and $n-1$ edges. The edges in DAG (fixed) are defined as follows: For every node $i$, $1 \le i \le n-1$ is connected to node $i+1$. The lengths of the $n-1$ edges are given as input.
I need to compute the sum of all of the distances between all pairs of different vertices, i.e., to compute... |
Is there a numbering (not Gödel numbering) of all computable functions $U(p, x)$, such that the set of numbers of functions defined in zero is exactly the set of even numbers. More formally: $I = \{p,\ |\ U(p, 0)\ \mathrm{defined}\} = 2\mathbb{N}$.
My guess that it's true. But I'm not sure how to prove it.
Ideas:
We c... |
I'm trying to understand functional dependencies in databases.
Let's say, there are 3 tuples in an instance of a certain relation S as shown below.
I'm trying to determine if a certain functional dependency will hold over S. Please correct me if I'm wrong.
1) A -> B should hold because no 2 similar value of a give 2 d... |
I'm having trouble with this problem. Can't find a CFG. Someone an idea?
$$L=\{a^n b c^n | n \ge0\}$$
|
Let $s = \{x_1, x_2, \ldots, x_n\}$ be a set of $n$ random non-negative integers where $\sum_i x_i = n$. And let $\{y_1, y_2, \ldots, y_{\sqrt{n}}\}$ denote a subset of size $\sqrt{n}$ of $s$, chosen uniformly at random. Defining $y$ to be $\sum_i y_i$ I am interested in calculating the value of $y$.
By linearity of ex... |
I am trying to do automated programming research: business software generation from the knowledge base that is implemented as Scheme (Lisp dialect) code (in the framework of http://opencog.org/ Atomspace). My question is - how to generate Java source code in academically acceptable way?
I know or I can imagine several ... |
In my CS class, we've discussed two ways of dealing with the temporary array required for the merging phase of mergesort. One of them is to pass a full-size temporary array as a parameter, e.g. merge(array, tempArray, first, last), and another is to create a temporary array of appropriate size (or two half-sized arrays... |
Why is big omega of finding a peak in an unsorted array Omega(lg n), not Omega(1)?
I understand that peak finding is O(lg n), because in the worst case, we find a peak in the last possible step, so when drawing a decision tree, the height of the tree (lg n) would be the worst case situation. However, in the best case, ... |
Does affinity propagation work well for for multidimensional data? While I was reading about it I couldn't find much information on this topic and all the examples I've seen we about 2D data. Could it be that Affinity propagation is still good for 3D and 4D data but is bad for 10+ dimensions? I am quite sorry for askin... |
I have noticed that while doing research in computer science you come across many weak but negative results. Now, not every negative result deserves a paper of its own. So I was wondering, is there a website where people can dump their weak results?
If so, how do I look about on this website?
For example, recently we s... |
I am trying to understand quantum computing concepts and have gone through alot of websites and books such as: Quantum Computing by Mikio and https://people.eecs.berkeley.edu/~vazirani/f04quantum/notes/lecture1.pdf
So I do understand conceptually how to make measurements but I have enclosed images of a circuit i devise... |
Let $G$ be a DAG with $v \in V$. Suppose that there exists some $i$ such that for all topological orderings $v_1, \ldots, v_n$ we have $v_i = v$.
What's a set of necessary and sufficient conditions about $v$ for this to occur?
|
I am learning OS from Silberschatz book. I read the Valid-invalid bit in a process page table also. But I could not understand why valid-invalid bit is required. The pagetable is dynamically built as pages are mapped to frames. So all the entries in page-table are valid.
thanks
|
I see that most definitions of what it is to be Turing-complete are tautological to a degree. For example if you Google "what does being Turing complete mean", you get:
A computer is Turing complete if it can solve any problem that a Turing machine can...
While it is very well defined whether different systems are Tu... |
I have a problem at work where I have set of hyperrectangles, in no particular order, that do not overlap and when unioned create a hyperrectangle with no gaps. At the moment I am looking for a way to efficiently figure out which hyperrectangle a given coordinate is within.
I do not always have too many hyperrectangle... |
For example, many reductions from $A_{TM}$ will often have the lines:
Simulate M on w:
if M accepts
...
else
But: a reduction is a computable function, right? So why are we allowed to say "if M accepts"?
Also, I can take the same logic and reduce $A_{TM}$ to a deciable language:
Let L be the empty lang... |
I am working on a proof of the theorem that every LEFT-RESET Turing machine has an equivalent conventional, single tape Turing machine. The transitions for the LEFT-RESET Turing machine are {Right, RESET}, and the transitions for the conventional Turing machine are {Left, Right}. Here is the general outline of my proof... |
I am going through the book operating system principles by Hansen . Hansen begins the third chapter on concurrent programming by discussing interleaving of the machine instructions of processes being run at the same time .
Then it begins with providing the language notation for multiprogramming and writes the followin... |
Reading this wikipedia article on B Trees, I have implemented the algorithm.
I got to the section on Initial construction and ran my algorithm implementation and it differed. With 8 being the root index.
Am I right in thinking, that when you bulk load your leafs are going to full, but when you add the indexes individua... |
I want to figure out how two languages are different. If we have TM M and TM N, how would I figure out if the languages are different? My intuition is that if a M accepts an input a and N does not then that would prove the languages are different, right?
I'm not too sure if I'm thinking of this correctly.
|
So, I'm refreshing my undecidablility knowledge, and I came across this statement reading about Post's Correspondence Problem on Wikipedia:
A simple variant is to fix n, the number of tiles. This problem is decidable if n ≤ 2, but remains undecidable for n ≥ 5. It is unknown whether the problem is decidable for 3 ≤ n ... |
Let be $k\ge1\in \mathbb{N}$. Is there a deterministic automata graph that recognizes the language $L_k=\{w|w \mbox{ contains an a within the k last chars}\}$ ?
The language is $\{a,b\}$.
Reformulation : the question is like : How to construct an automata that does $L_k=\Sigma^*(\Sigma^k\mbox\ b^k)$. (I'm not sure... |
I am currently running my head around to understand if i am actually getting it correct or not?
A memory chip with 1 byte cell size has 12 address lines. How many data lines does the chip have? What is the memory size of the chip in Mbytes?
12 address lines means it has 2^12 cells in the memory, right?
Then what is MBy... |
We have $A_{TM}=\{(M,w)|M$ is a TM, $w\in \Sigma^*_{TM},M$ accepts $w\}$
We intend to show that $HALT(M,w)\leq_T A_{TM}$ i.e. if we are given a machine for $A_{TM}$, we can decide whether $M$ halts on $w$ using it.
So, if $M$ accepts $w$, machine halts and we are done.
But if $A_{TM}$ says rejected how to know if $M$ h... |
For proving a language is not CF, I was wondering when we split up the string to 5 pieces are we allowed to proportion it anyway as long as we satisfy the following conditions :
\begin{align}
|vwx| &\le p \text{ (pumping length)}\\
|vx| &> 0
\end{align}
Could I possibly make the $u$ value take on a majority of the str... |
I read a paper which mentioned routine induction many times.
But when I google it, there are nothing showed up.
I think routine induction means the induction on the structure, analyzing possible cases in proofs.
am I right?
Just to make sure, I am asking it here.
|
I am a little bit confused about the emptiness problem of the linear bounded automaton (LBA). I know that this problem is undecidable. However if we assume that is decidable, what could be wrong if we reduce it to the acceptance problem of LBA?
|
Are Interrupts really just an abstracted form of polling?
I saw a system-file-watcher library that stated it used polling, as opposed to listening for events. Is the .NET framework SystemFileWatcher class just an abstraction of polling?
In a computer, interrupts are stacked, and the CPU checks the interrupt stack after... |
$L$ is the class of languages that are decideable in logarithmic space on a deterministic Turing machine. In other words,
L = SPACE$( \log n)$
But why $\log n$, instead of $\log^2 n$ or $\sqrt n$. This is what, I find out in the Theory of computation book by Michael Sipser Theory of computation book by Michael Sipser... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.