instruction
stringlengths
35
29.1k
I've seen scattered references to typed assembly in high assurance literature, but I don't really understand the advantage. If the compiler/runtime are capable of passing the types down to the CPU, then aren't they are capable of emitting equivalent checks in assembly? Bloating an instruction set with high-level primi...
Is there a good (perfect) hashing algorithm for the following problem? We have $n \ll m$ (say $n=150$ and $m=5\times 10^{12}$) and we want a hash table to store integers up to $m$ whose prime factors are all smaller than $n$.
I've been given this exercise as homework but I'm hard-stuck on it for a few hours now. Basically what I need to show is that cross correlation of 2 vectors of size n and m, for m <= n, can be computed in O(n*log(m)). say |x| = n, |y| = m. I tried computing (∗R) because its the same vector with a shift of indexes. I ze...
How can a operating system run on more than one CPU architecture? Does the OS detect what type of architecture it is currently running on? If so, does it simply use a different set of code for that architecture? How does the CPU detect the type of architecture?
The Chinese Postman problem (A.K.A Route Inspection Problem) I'm trying to match pairs of odd-degree nodes in a grid-graph representing an indoor map to ensure the graph is Eulerian (consists only of nodes with even degrees). My plan is to form a matching between the odd-degree nodes and consider Euler paths of the gr...
I've been reading the decidablity and undecidability chapters in Sipser's "Intro to Theory of Computation" however I could not find an explanation on the existence of a language that is both non-context free and decidable. The only reference to this was a simple language hierarchy diagram showing where the decidable/r...
There is as input a set of $m$ sequences of length $n$. I thought it was pretty straightforward at first that the time complexity of the algorithm provided below is $O(m^2n^4)$ but then it occurred to me that the time taken depends on the length of a LCS such that the longer a LCS relative to the input length the short...
Suppose we have a System F term $f : \forall \alpha. \alpha\times\alpha\to\alpha$, interpreted in a parametric model which is a bicartesian closed category. I was wondering if in such context it is possible to prove that (in the model) $f$ must be a projection (either $\pi_1$ or $\pi_2$), exploiting the naturality of $...
Where is the difference between a "meta model" and "design patterns"? If you take, for example, Fowlers "Identity Field" from his book "Patterns Of Enterprise Application Architecture": Why is this a pattern and not a meta model? Thanks!
I'm not an instructor. I'm a student doing such course. And I'm just trying to figure out what to do, because we're not given an input language. What kind of (input) language would you suggest for an University compiler project? It's a project typical to the compiler course in CS programs. However, I've been confused...
I am trying to use BNF to describe its own grammar to get used to it. What I can not find any information about is whether BNF must consist of zero or more rules or one or more rules. The difference would be: <grammar> ::= <grammar> <rule> | <rule> vs. <grammar> ::= <grammar> <rule> | "" The only difference I can see...
How am I supposed to perform this subtraction? For instance: $01110000_2−11101011_2$ $01110000_2$ has a positive sign, so there is no need to perform two's complement. $11101011_2$ has a negative sign, so I need to perform two's complement. Two's complement for $11101011_2$ is $00010101_2$ Finally, I must perform the s...
In step 6 of the Christofides algorithm it is implicitly suggested that there is an invarient that the euler circuit can always be shortcutted to an hamilton circuit, what exactly assures us that? e.g (let u,v,w be vertices in the graph.) in the euler circuit, if vertex v has already been visited once, and is being rev...
The data pages that are actually modified need to be copied. This approach, called copy on write, improves performance by reducing copying. According to me it is unnecessary as every process has its own data. (not sure) A third process working with that data is really not possible. Please tell me if it's possible, if p...
Let $L=a(a+b)^*b$, a regular expression. I will try to build the automaton by the $a^{-1}L$, $b^{-1}L$ rule $a^{-1}L = \{a,b\}^* b=M$. $b^{-1}L=\emptyset$. $a^{-1}M=b\cup\{a,b\}^*b=N$. $b^{-1}M=\{\varepsilon\} \cup \{b\}\cup \{a,b\}^*b = P$ But why are the result of 3 and 4 when doing $a^{-1}M$ and $b^{-1}M$ as given...
I'm trying to figure out the regression equation for the 0-1 Knapsack problem recursive algorithm: // Returns the maximum value that can be put in a knapsack of capacity W int knapSack(int W, int wt[], int val[], int n) { // Base Case if (n == 0 || W == 0) return 0; // If weight of the nth item is mor...
I want to iterate through the numbers $0,1,2,\dots,n-1$ in some order, where each number in the sequence differs by only one bit from the previous bit. I'm going to be using each number as an index into a matrix, and each index must be in the range $0..n-1$. Gray codes look useful. The problem is that standard grey c...
I'm doing C programming stuff, and I'd like to know little bit about memory management - My problem is that I'm not understanding where the computer (or the OS or the programs) stores the information related to allocated space and how the unallocated space information is processed and how it is reported as a runtime er...
For any language $L \subset \Sigma^*$, define $S(L)$ to be $$\{x\in L \mid \neg \exists y \in L: \exists z \in \Sigma^*: (z \ne \epsilon) \land (x=yz) \}$$ Show that $S(L) = S(S(L))$ I'm confused about the question here. The way we define $S(L)$ takes elements from $L$ $(x \mid x \in L)$, but $x=yz$ and $y \notin L$. ...
I'm stuck on "For any language $A$, let $A^R = {w^R | w \in A}$ Show that if A is regular, so is $A^R$." According to my research (see references), the steps required to prove this question, are: Reverse all the links in the automaton Add a new state (call it $q_s$) Draw a link labeled with ϵ from state $q_s$ to ever...
In his 1959 paper, On Certain Formal Properties of Grammars, Chomsky defined a "regular" grammar as a specific form of a type 2 (context-free) grammar. (See Definition 8 of that paper.) He then goes on (in Section 6) to demonstrate that regular (type 2, context-free) grammars can generate more languages than type 3 (fi...
I have a fairly simple real-valued genetic algorithm that seems to work fairly well, however it currently has some issues that I'm hoping to get some help with. If we consider a 1-dimensional problem, I use the following method to produce 3 children/offspring $(c_{1,2,3})$ from 2 parents $(p_{1,2})$: $$c_{1} = 0.5p_{1}...
OddPath be a set of all G, s, t, such that G is a directed graph with a path from node s to node t, and the shortest such path has odd number of edges. How can I show OddPath is NL? I think about it for a long time, the main problem is that I don't know how to get length of the shortest path in non-deterministic log pl...
What's the complexity of inserting an integer $n$ to an empty hash table? My guess is that it's $O(\log n)$ as we require to scan every bit of $n$ to compute its hash. However, I often see it as $O(1)$. Am I mixing up things here ?
Generally, I want to use the diagonal argument to prove it. I tried to define a language $A$ which is constructed by a Turing machine $D$: It will only take a input which has a form of a Turing machine $\langle M\rangle$ (the description of $M$) and simulate $M$ on $\langle M\rangle$. If it halts in polytime and accept...
I've been learning about NP-Complete problems, and came across the rectangle fit problem. Basically, the rectangle-fit problem is the problem of whether or not a set of 2d rectangles can fit in a larger 2d rectangle. What I have not been able to find, or solve myself, is what a possible solution looks like. Say there ...
By dynamic array, I mean an array that when it becomes full we replace it with a new array having greater capacity than the previous array. I read in a textbook that doubling the size of the array is the most efficient resizing. I want to know if this is in fact demonstrably true and not just a matter of personal prefe...
I'm looking for hints on the following exercise from Introduction to Automata Theory, Languages and Computation by Hopcroft and Ullman. Let $G$ be a grammar where all the productions are of the form $A\to xB$ and $A\to x$, where $A$ and $B$ are single variables and $x$ is a string of terminals. Show that $L(G)$ can be...
How do we count the numbers of traingles (i.e., different triads of vertex $u,v,w$ such that edges $u-v,v-w,w-u \in E$ ) in a given graph $G$? It is obvious that it can be done in $O(N^2)$: is there anything better?
I read in a book that the Intel 80286 microprocessor has an addressing capability of 16 MB. Does this mean it can process 16 MB of data at a time? Please explain what is actually meant by addressing capability.
I found one interesting point in nominal unification. Just after proposition 2.16 of Nominal Unification by Urban, Pitts, and Gabbay, it said the following, which I found confusing: For non-ground terms, the relation $=_{\alpha}$ and $\approx$ differ! For example, $a.\!X=_{\alpha} b.\!X$ always holds, whereas $\emptys...
I was reading about the Logic Theorist proving many of the Whitehead and Russell's Principia's theorems. However, I cannot find any technical explanation on how the program proved those theorems and specifically what method did it use to solve the Pons Asinorum. I'm interested in understanding how "independent" it was ...
I have a data set to which I want to apply logistic regression. I set my cost function to be $J(\theta) = -\frac{1}{m} [\sum\limits_{i=1}^{m} y^{(i)} log{(h_\theta \cdot x^{(i)})} + (1-y^{(i)}) log(1-h_\theta(x^{(i)}))$ and I am running gradient descend algorithm. When I plot the cost function as a function of the num...
We all know the structure of a binary tree: struct binary_tree { binary_tree *parent; int data; binary_tree *left; binary_tree *right; }; So a doubly linked list has the following structure: struct linked_list { linked_list *prev; int data; linked_list *next; }; But a binary tree can a...
Related to linear regression with noise I've been given the following functional, depending on the function $h$: $$ E_{out}(h) = \int \int (h(x)-y)^2 dx dy$$ I want to prove that the function that minimizes $E_{out}$ is $$h^*(x) = \int yp(y|x)dy$$ But I don't have any math tools to do it. Which things should I know to ...
This is my understanding: There are two types of processes: user and kernel(OS). Each process can have single or multiple threads. The threads of a user process are called a user-level thread and the threads of a kernel process are called kernel-level threads. Scheduler, dispatcher etc. contains kernel-level threads. B...
I want to approximate the output of a Monte Carlo simulation that takes a probability density function sampled at x-axis points $0,1,2,3,\ldots,n$ and outputs what tends to look like a dampened harmonic oscillator. Four examples appear below. The blue dots are the sampled pdf (or pmf), and the heights of the black lin...
Let's consider two-head (and two tapes) Turing machine. Let some problem $P$ be decidable in $LOGSPACE$ on that machine. What about complexity of that problem on the normal Turing machine ( one head, one tape?) I asked that question because I am thinking of some problem- I have to be able to get value of $i$-th cell bu...
Let's consider the following situation: We have a problem $\mathsf{L\text{}}$ . We would like to solve it in $LOGSPACE$. Let assume that our problem $\mathsf{L\text{}}$ can be divided to two parts: $A$ and $B$. We can solve $A$ using computatation model $M_1$ in $LOGSPACE$. We can solve $B$ using computation model $M_...
Is is decidable whether 2 given PDAs accept the same language? Also, is it decidable whether the language accepted by a given grammar is context free (the given grammar could be unrestricted but there may exist an equivalent CFG for it)
I'm trying to run Gensim's LdaModel on a corpus. I load the corpus myself from two XML files. I made a class to iterate over the text pieces in the XML files. It converts every text piece to a BOW using a dictionary I built using the XML files. This all works, I've checked that. I then use this iterator to train an LDA...
The Completely Fair Scheduler executes the task that has so far received the least share of CPU time and is thus the most 'disadvantaged'. So if a task sleeps for a really long time, say 3hrs, how does CFS prevent this task from being executed for the next like 3hrs (to adapt its CPU share to the much larger values of ...
I'm asking the question on the behalf of my classmates. We have a trouble about parallel programming that we can't comprehend threads, semaphores, forks and etc. We have been taking third time the course called as system programming. The instructor of the course goes with Unix, C and POSIX standarts. There are some boo...
Let say I have a directed graph G with positive edges and I create a new graph, G', by replacing the weight of each edge by the negation of its weight in G. If for a given source vertex s, I compute all shortest path from s in G' using Dijkstra’s algorithm. Will the resulting paths in G’ be the longest (i.e., highest c...
I am studying about set cover problem and wondering that which problems in real world can be solved by set cover. I found that IBM used this problem for their anti-virus problem, so there should be many more others that can be solved by set cover.
Given a matrix of size m x n, I am trying to traverse it using BFS from top left corner to bottom right corner. Instead of using a normal queue for BFS, I am using a min heap. For each cell, I am inserting the adjacent values (top, left, right, bottom) in a min heap. I am specifically trying to understand how big the ...
I was going through Andrew S. Tannenbaum's computer networks book, and on page 206 of it, he has derived the number of check bits needed to correct single bit errors. The derivation goes as follows: For m data bits, there are 2^m legal messages. Each of these messages has n illegal codewords at a distance on 1 from it....
Does $LL(K)$ grammar has one to one correspondence with $DCFL$ ? If I am understanding right, then the given statement says that $2$ distinct $LL(k)$ have one to one mapping, i.e they should not generate the same $DCFL$. Let us say:- $G1 : S-> aB,B->a$ generates $aa$ and $G2: S->aa$ also generates $aa$. Here, both ...
I want to build an adder in logisim only with 2-input-NAND gates. The adder consists of 2 inputs (1 x constant 1 and 1 x arbitrary number) and an output. The first thing which came into my mind is a 8-bit full adder but maybe there is an easier solution for this (because of the constant 1). Has anyone an idea? THX
How is the search for the item supposed to find the specific item if the data is all clumped together and all the search is given is the output of the hash function. I don't understand how it knows which of the pieces of data is the one that corresponds to the key if linear probing has been used so it could be any of a...
This is a research problem and I am just wondering if there is any already existing answer in any computer vision related paper that may have skipped my notice since this is not my active area of research. Imagine you have a shape. Now there is a large class of algorithm in existence collectively known as visual descr...
By the statement of the question i am trying to generalize the structure of the array.for me Being at their correct position means they can't be shifted. I tried to come up with a few examples and deducted such an array has to be 2-sorted or all the sorted elements are in the first half. for a k-sorted array we can use...
When we solve the recursive functions using substitution method, the impact of ceil and floor functions is trivial when the size of the input is large enough. For example the answer of $$ T(n) = T(\lceil n/3 \rceil) + O(n) $$ is equivalent to $$ T(n) = T(n/3) + O(n) $$ when the $n$ is large enough. Since $$ T(n) = T(\...
My processor noted that an infinite number of processors will allow me to test how much speedup I can achieve. I am not exactly sure how this applies. For instance, let's say I have a program that takes $1000$ seconds to execute and is broken into 4 phases(A, B, C, D). If two of the phases are $50%$ parallelizable an...
I'm reading a book on data structures and there is a comparison between linked list, array and dynamic array. The parameter name is wasted space. Here are the values: \begin{array}{cc} \text{Linked list} & O(n)\\ \text{array} & 0 \\ \text{dynamic array}& O(n) \end{array} What is the wasted space para...
I have the following table that compares different operation complexities for a linked list and array: Linked List | Array | Dynamic Array Deletion at ending O(n) | O(1) | O(n) Insertion in middle O(n) | O(n) | O(n) Deletion in middle O(n) |...
In a programming contest I've encountered a problem which is for sure a linear programming problem. I know quite a lot about LP (the simplex method, its exponential complexity, interior point methods, their polynomial complexity, etc.), yet I stumbled upon it. What is the simpliest algorithm for linear programming by m...
What is the cardinality of the following set $M: = { \text{M is a Turing Machine with} \sum_{i}=\text{{0,1} and LA(M)=L}}$ where $ \text{L is a recursively enumerable language such that } L \subseteq \text{{0,1}}*$ Which means how many TMs semidecide a recursively enumerable language L? We know that the set of all r.e...
When reading about shortest paths in Cormen . I came across this paragraph which says that 'shortest path cannot contain' positive edge path even. But I don't understand the logic behind their explanation Can a shortest path contain a cycle? As we have just seen, it cannot contain a negative-weight cycle. Nor can it...
I am working on a problem which could be reduced to a graph optimization problem as below. A set of colored nodes is given. The edges are to be inserted between the nodes. A node can have only 4 edges at max. A table provides rules for profit contribution from the edges. Eg., An edge connecting red to red: profit is ...
As far as i can understand the problem of checking safety property, can be reduce to solving for inductive invariants in VC's and there is following parts to it: Generate VC's from the program. Solve it: If user provide inductive invariants just check the Validity of the whole VC formula. Inferring problem : simultan...
I'm trying to solve an exercise on inductive definitions, the premiss is: Let $\to$ be a relation on $A$ and $\to^*$ its reflexive, transitive closure, which is defined by following two rules: $a \to^*a$ (reflexive) ${a \to^*b \quad b \to c \over a \to^*c }$ (step) The questions are: What are the induction rules f...
Let $x,y,n$ be $1234567809, 12345, 9087654321$. My laptop can perform 1 64-bit mod operation in 1 microsecond. Estimate the number of seconds needed for each of the following: Find $x^y \pmod{n}$ Find $t$ such that $x^t \equiv 2672633475 \pmod{n}$. I guess around 10^45 digits, am I right and how do I calculate time...
Let G(V,E) be a graph and H(V',E') be some induced subgraph of G. Let v be a vertex from V'. Is there an efficient way to calculate the degree of v in the subgraph H if we have some representation of G? (Preferably it should be O(1))
This grammar is left recursive: Expression ::= AdditionExpression AdditionExpression ::= MultiplicationExpression | AdditionExpression '+' MultiplicationExpression | AdditionExpression '-' MultiplicationExpression MultiplicationExpression ::= Term | MultiplicationExpression '*' Te...
Suppose we have two human bodies. We need to find some number that represents a similarity score between the two bodies. However in order to achieve that we need to find the similarity between the corresponding body parts. Suppose we already have a function that returns a similarity score for body parts. Example: doubl...
If $a$ and $b$ are different elegant programs (minimal program for some output), is their joint Kolmogorov complexity the sum of their individual complexities, i.e. $K(a,b) = K(a) + K(b)$?
I'm working on finding an Euler circuit for an indoor geographical 2D grid. when abstracting the grid as a an undirected graph, all nodes in the graph are connected (i.e, there is a path between every node in the graph). The graph could be huge (more than 100,000) nodes. The requirements are simple : 1- The generated p...
I am attempting to work through an example of how to select an error bound, and then determine the number of simulations necessary by the amplification lemma to obtain the desired error bound. I have probabilistic Turing machine $M$ with an error probability of $.5$. I'd like an error bound of $.25$, so I will bound th...
As an exercise we were supposed to find a grammar $G$ that generates language $L(G) = \{w \in \{a,b\}^* \mid |w|_a = |w|_b\}$. That was not so hard, I found a grammar which I think is correct: $S \longrightarrow bA \mid aB$ $A \longrightarrow a \mid aS \mid bAA$ $B \longrightarrow b \mid bS \mid aBB$ Though then I fou...
Since $K(a|a) = 0$, is $K(b|a) \geq 1$ when $a\neq b$, as we need at least one bit to distinguish between $K(a|a)$ and $K(b|a)$? If not true in general, is it true if $a$ and $b$ are elegant programs?
I was just thinking about the powerset construction and it is clear to me that the powerset construction will result into a DFA $D$ with possibly redundant states, as the NFA $N$ is not minimized. But in case where $N$ is minimal will $D$ will also be minimal? So is there a DFA $D'$ with less states for the same Langua...
I want to understand how a turing machine that will accept only words of length bigger than 100 will look like. My idea: it will copy a word and move to the right 100 times. If non of the cells was empty it will accept. Furthermore if it is true I can also conclude that it is decidable . If there is no problem with ...
Here is a link to the isolation lemma. Please refer to the statement and Spencer's proof at the given link. https://en.wikipedia.org/wiki/Isolation_lemma In its statement, shouldn't there be a condition $N>=n$ since the probability is defined as $1-n/N$? Also, is it not required that the intersection of all sets in a ...
On a standard computing model that reflects reality for sequential processing, such as a RAM machine with penalized access time for growing memory, can a comparison sort algorithm work in both logspace yet sub-quadratic time? Standard algorithms for sorting are O(n*log(n)) time yet I've found that once these programs a...
I'm looking at Push–Relabel Maximum Flow Algorithm (or Goldberg-Tarjan Algorithm) and trying to solve some homework question. As part of the answer I'm trying to prove $x_{f}(s)\leq0$ during the entire algorithm run (where $s$ is the source, and $x_{f}:V\to\mathbb{R}$ is the excess function $x_{f}\left(u\right)=\...
(I expect that the hard part of this question is getting the right language for the problem. My attempts at searching for an answer didn't get anything useful, which suggests to me that whatever they are, I'm not using them!) Consider a map where each x,y coordinate has an associated "height" value. If we have two po...
Suppose that we take a neural network of a given topology, and run it through two training processes, obtaining two different sets of converged weights at the end of the training. What is a good way to measure the difference between the two sets of weights? If this were a curve-fit where the parameters were largely ort...
Given n pancakes, for each permutation we can compute the minimum number of pancake flips. If we take the maximum over all possible permutations, we get the worst case pancake number $P_n$. I think I can prove that $P_n \geq n$. My argument is that I can start from the sorted pancake, and do a "anti-sorting" of the p...
Algorithm complexity is designed to be independent of lower level details but it is based on an imperative model, e.g. array access and modifying a node in a tree take O(1) time. This is not the case in pure functional languages. The Haskell list takes linear time for access. Modifying a node in a tree involves making ...
I am an undergraduate studying Data Coms and Networking and this question about go-back-N ARQ popped up that I am struggling to get my head around and cant find anything similar online. Any help at all would be greatly appreciated. The only thing I have at all is that throughput could be defined by (Packet bits + overh...
I was reading about Dijkstra algorithm and was referring two books 1) Introduction to Algorithms by Cormen Section 24.3 2) Algorithm design by Kleignberg Section 4.4 And found a subtle difference in their way of show Dijkstra algorithm book 1: Dijkstra(G, w, s) Initialize(G,s) d(s) = 0 initialize others to inf S = {} Q...
I am reading the NP-hardness proof of Super Mario Bros. in the paper "Classic Nintendo Games are (Computationally) Hard" by Greg Aloupis, Erik D. Demaine, Alan Guo, and Giovanni Viglietta. I can get the basic idea of the proof framework presented in Section 2.1. I think I also understand the Start gadget, Finish gadge...
Theorem : To prove $ \mathsf{\text{} Regular} \subseteq \mathsf{\text{}NC^1}$. To prove the theorem stated above we need some theorems and definitions given below : Barrington Theorem : A branching program of constant width and polynomial size can be easily converted (via divide-and-conquer) to a circuit in $\mathsf{\...
The question whether there exist languages in $\mathsf{E}$ that require circuits of size $\Omega(2^{\delta n})$ for some $\delta > 0$ is open, and this would imply some derandomization results. Suppose we have a language $L$ which is complete for $\mathsf{E}$. Then, how can $L$ have sub-exponential size circuits? If $...
I'm introducing to the Natural Language Processing field and it's application. I'm planning to build a question answering system for a project, but some approaches are making me a bit confuse about the use of ontologies and it's application on the architecture of the system. I understand that an Ontology in definition ...
It is possible to find the total number of inversions by $\mathcal{O}(n\log{}n)$ running time (extension of merge-sort algorithm for example). Is there more asymptotically efficient way to do it? $\mathcal{O}(n)$? Or is there any proof that’s not possible?
Here is my Halting Problem proof, that largely mirrors other (non-diagonalizing) proofs that I've seen. $H(p,i)$ returns $1$ if program $p$ halts on input $i$. $H(p,i)$ returns $0$ if program $p$ does not halt on input $i$. Let $f(t,t)$ be an interface for any program that returns a $0$ or a $1$. $g(x)$ is $0$ if $f(x...
I know that similar questions have been asked before but I still wasn't able to find answers to all my questions. In many proofs in complexity theory we use an enumeration of some $T(n)$-time Turing machines. For simplicity, let's consider polynomial-time TM's. I want to know exactly how we construct such an enumeratio...
We are given a $n \times n$ grid, where each node can maintain a single "active" edge with one of its 4 neighbors at each time step. The active edge of each node changes periodically clockwise or anticlockwise, in the sense that if, for example, at time $t$ node $v$ has an active edge with its upper neighbor, and it ro...
From what I can see it seems like RNNs favour using a backprop through time method which I haven't seen really applied to other neural networks. Can someone explain the significance of tying the weights and why it is necessary to be done for backprop through time?
Is it possible to simulate a stack-based machine using a 1-tape turing machine? I cannot wrap my head around it as turing machines do not provide mechanisms such as pointers. I failed to find any examples or explanations. If it is possible, how?
Given a sorted array of $n$ integers ,and some other integer $m$, find the $3$ numbers in the array $x,y,z$ such that $x+y+z\ge m$,and their sum is minimal. If there are no such,return null. Any ideas for an efficient algorithm to find it?
Why each function may be computed with circuit with 2^n gates ? I am trying to understand this thing, but I can't. In particular why function constant $1$ requires $2^n$ gates. For me, it should be simple to return $1$ regardless of input.
For a prime power $q$, consider polynomials $f_1,f_2 \in \mathbb{F}_q[x]$. Then, do we have an efficient way of checking whether there exists an algebra isomorphism between: $$\frac{\mathbb{F}_q[x]}{\langle f_1 \rangle} \text{and} \frac{\mathbb{F}_q[x]}{\langle f_2 \rangle},$$ and computing one such isomorphism if it ...
Ever example of computation on a probabilistic Turing machine that I have read uses only a binary tree to show the computational branches of a probabilistic Turing machine. I know that an NTM may use as many branches as needed during a computation, so is this also the case for a PTM? Or is a PTM limited to only binary ...
Given a Turing Machine M with n states, alphabet A, m variables, a set S indicating the possible values that each variable can take, and an input x, is there a minimum number of steps that M has to take? I'm wondering if it is possible to construct a Turing Machine that takes only one step regardless of any of the afor...
So this is my first time posting, but I don't know where else to go. I've spoken with several PHD and Masters students and they referred me here. I've been looking at the Vertex Cover problem and came up with an algorithm to find the optimal minimum. I've tried this on several graphs as examples and it's found the opti...
I am having trouble finding the solution to this interview-like question: $T(n)$ is given as: $$T(n) = \begin{cases} 1 & n \leq c, \\ 2T(f(n))+1 & n > c, \end{cases}$$ where $c$ is some constant. Find a function $f(n)$ so that $T(n) = \Theta(\log\log\log\log n)$.
I am totaly new to theoretical computer science, so I am sorry if I get the terminology wrong: I was reading the definition of a grammar, what I didn't get was the formal definition of the production rules: Let V be the set of Variables and sigma the alphabet. Let P be the set of Rules or productions. Formal: $P \subse...