instruction
stringlengths
35
29.1k
Suppose I have $P$, which is the base-$p$ representation of an integer $n$ and I want to calculate it base-$q$ representation $Q$. The obvious algorithm is: interpret $P$ to obtain $n$, then calculate $Q$ from $n$. This is easy. But if $n$ is very large this could require a lot of memory, and it could require a large...
New to computer science and am attempting to verify if there are any non-quadratic approaches (i.e. better performance than Big-O of n^2) for finding a potential specific difference between either adjacent or nonadjacent elements in a sorted array of integers? For example, if you have an array that's already been sorte...
I read that recursively enumerable languages are closed under intersection but not under set difference. We know that, $A \cap B = A - ( A - B)$. Now for LHS (left-hand side) to be closed under intersection, RHS(right-hand side) should be closed under set difference . But we know that RHS is not closed under set diffe...
If the false positive error rate is greater than 0.5 then a Bloom filter is no different from coin flip, right? Still, if one does implement this data structure with, say, P=0.55 then it would still work. Should the constructor method of a Bloom filter implementation forbid values of P greater than 0.5?
Regarding the median of medians solution to the $k$th smallest element in an array, why does the algorithm split the array into subarrays of length $n/5$, where $n$ is the length of the initial array? Why not $n/7$ or $n/3$? Why 5??
I'm having trouble being 100% sure about this answer. I feel like it's false but I'm having trouble coming up with a complete answer. Can someone explain this step by step? Thanks.
Lets construct a DFA over{a,b} That accepts only the string "aabb" in it. My problem with this video is that the tutor has moved arrow from state D to B why didn't he set a self loop on D .Im really helpless . Move forward to minute 11
How would you go about showing that the language $L = \{\langle M, w \rangle\ |\ M$ moves left at least three times while computing $w \}$ is decidable or undecidable? Intuitively my thoughts are that you might be able to show that $\bar{L} = \{\langle M, w \rangle\ |\ M$ moves left at most twice while computing $w \}...
I'll use scala notation but hopefully things will make sense in general (I'm trying to prove that you can define a monad using either [flatMap (aka bind) and unit] or [compose and unit]) The book Functional Programming in Scala (github at https://github.com/fpinscala/fpinscala) makes the claim that if we have a type co...
I read that we can find complement of DPDA by just complementing(toggling) the states of DPDA. Why can't we do the same with NPDA ? Also is DCFL closed under complement just because we can toggle the states of DPDA ?
Assume we have a sequence of $0$s and $1$s: $n_1, n_2, ..., n_N$, in which $0$ stands for a leaf node, and $1$ stands for an uncertain node that may or may not be a leaf node. How can we check if this sequence is a valid result of a binary-tree preorder traversal? Ex. $1, 1, 0, 1, 1, 0, 0, 1$ is a valid sequence. ...
Given a set $\{x_1,x_2,\dots, x_n\}$ and sets $\mathcal(F)=\{f_1,f_2,\dots, f_m\}$. Is there any hardness result or approximation algorithm to find a set cover with this extra condition. For every vertex $x_i$ appears in the intersection of at most k sets.
I saw this post and wondered why the approach described in the accepted answer works. The same problem and solution is described a bit nicer here. So let's say we receive a stream of $n-2$ pairwise different numbers $a_1 + a_2 + \cdots + a_{n-2}$, from the set $\left\{1,\dots,n\right\}$. What I learned from the above p...
Can we develop a turing machine which on given a language L as input gives as output whether this language is regular or not?
I have an exam coming up in three days, and there's a thing that I really need to be able to completely understand - that is, of-course, pumping lemmas for CFL. I know how to do prove that a regular language is not regular using PL, but for CFL it's a bit more variables, and I am not entirely sure how to split a string...
Let say the following: Given Ax and Bx two literals which represent POSIX regular expressions. Let def A as the set of literals that match Ax. The same def for B. Using relative complement operation, is there always regular expression for $A/B$ set, for every pair of Ax,Bx? I attach an example: Ax := a.* Bx := a.*b$ /...
$S \rightarrow AB$ $A \rightarrow aA \mid bA \mid \epsilon$ $B \rightarrow aBb \mid \epsilon$ Does this grammar generate regular language? According to me this grammar generates language of the form $$ L = \{ (a+b)^* a^nb^n \mid n\ge 1\} $$ I think it's a DCFL. If the condition would have been $n\ge0$ then it's regula...
Automatic parallelization isn't a new thing by any means, and lots of questions have been asked about whether Java or C or C++ or a host of other languages or specific compilers (gcc 5 v 6, clang, Hotspot, etc.) support automatic parallelization. In many cases, the problem seems to be that compilers sometimes try to au...
There are n hotels given at a0, a1, ..., an such that 0 < a0 < a1 < ... < an. The only places you are allowed to stop are at these hotels, but you can choose which of the hotels you stop at. You must stop at the final hotel (at distance an), which is your destination. Moreover, you are required to complete your journey...
Let us assume there's a folder structure as shown below: The letters a-d represent folders and the number 1-5 represent video files where for the file n, size(n)=n. So, 1 = 1MB, file 2 = 2MB, etc. a ├── 1 ├── b │   ├── 2 │   └── 3 └── c ├── 4 └── d └── 5 3 directories, 5 files I want to write a script...
An oracle Turing machine (OTM) $\bar{M}$ can be denoted $M^{O}$ if it is a Turing machine (TM) $M$ with an oracle $O$. Given the oracle $O$, there exists a relation $R$ between OTMs and TMs such that $$\left( \bar{M}, M \right) \in R \Leftrightarrow \bar{M} = M^O$$ Given an OTM $\bar{M}$, how to find the TM $M$ such th...
When one wants to know that whether a partial function $f \colon \Sigma^{*} \supsetneq \mathrm{dom}(f) \rightarrow \Sigma^{*}$ is Turing-computable, there are two methods that I think they are both useful. We can define a total function $\bar{f}$ such that $$ \bar{f}(x) = \left\{ \begin{aligned} &f(x),&x \in \mathrm{...
$S -> AB$ $A -> aA / epsilon$ $B ->aBb / epsilon$ What is the class of language generated by the above grammar ? I think that it generates $a^* a^n b^n | n>=0$ so it should be regular as regular is concatenated with DCFL which is able generate epsilon. But the answer is CFL . I think that answer would be CFL if n woul...
The problem is defined as follows: Instance: A finite set $A$ of "possible diagnoses," a collection $C$ of subsets of $A$, representing binary "tests," and a positive integer $J≤|C|$. Question: Is there a subcollection $C′⊆ C$ with $|C′|≤ J$ such that, for every pair $a_{i},a_{j}$ of possible diagnoses from $A$, there ...
About dynamic array, doubling it's size with every element that is beying its limit: From what I understand, the number of operations between the $n$th element and the $n+1$th depending on if $n+1$ is $2^k + 1$ (for some $k \in \mathbb{N}$). If so, we need to allocate a new array and copy the last n elements + the new...
I was asked in an interview to create a knapsack of only even items in n*C time, c being the capacity, n being the number of items to choose from. I tried approaching it with a third dimension, where it would be of height n and signify at each ij whether the knapsack with these maxes contains even numbers or not, but I...
It is common in data science to receive two equal length vectors (array of dimension 1), say Categories and Weights. We aim to find all unique values of Categories and sum up the corresponding Weights. E.g. Categories = ["abc", "def", "a", "a", "def"] Weights = [ 1 , 2 , 1 , 10 , 1000] Let's call our algorit...
To give background, there's two ways to multiply two complex numbers: Method A: requires 3 multiplications and 5 additions Method B: requires 4 multiplications and 2 additions And it's given that multiplying two $m$ bit numbers is $O(m^2)$ and that adding two $m$ bit numbers is $O(m)$. Now given a list of complex nu...
I came up with a problem, and I'm having trouble finding existing work on it. I'm not sure if there is a polynomial-time solution for it. Is this a well-known problem (or equivalent to one)? We define a function limited_sort(input, n) -> output that takes an array of comparable elements input and an integer n and retur...
When we say a class of languages is decidable we mean that the membership problem can be solved. However even though the membership problem is solvable for the class, there may exists some problems for the same class which are undecidable. For example Context free languages are decidable yet the problem of determining ...
I have an exam tomorrow and the professor said that from the following two facts we should be able to show that the union of 2 regular languages is regular: Given 2 regular languages, their intersection is regular A compliment of a regular language is regular I'm pretty confused on how I would get started with showin...
Is next time complexity sub-exponential? $O(2^{N^{LOG2(1.5)}}/8)$ unformatted: O((2^N)^LOG2(1.5))/8) just in case I didn't format it properly.
How logic programming (https://en.wikipedia.org/wiki/Logic_programming, especially answer set programming) is related to the reasoning in the (first-order) logic? Maybe logic programming can be expressed using lambda calculus and then this connection between logic programming and logic and be exspressed as type of Curr...
I am programmer with a grip on automata, but not on logic. I read in papers that the two are very tightly related. Deterministic Finite Automata (DFA), Tree Automata and Visibly Pushdown Automata are all related to Monadic Second Order Logic (MSO). Although, I understand the automata and people (in papers) have tried t...
I was asked to describe how I would build a Fibonacci heap that consists of 1 tree with 7 vertices, 2 of them are leaves, and 2 of them are fathers that have a leaf as their son. From what I see, this is a heap with 1 tree from degree 2 ($F2$), that has 2 sub-trees from degree 1 ($2 * F1$) and 2 sub-trees from degree 0...
I want to prove (or disprove) that $$\sum_{i=1}^n\log_2 i = \Theta(n\log_2 n)\,,$$ but I totally get stuck with this example. May someone help me with that.
The domino tiles can be listed in an orderly way as shown in the figure : figure link Write a function such that given two variables ("minor" and "major") where "minor" is the lowest value and "major" the highest value of a domino tile, calculate its order number associated with the previous figure. Example : given a...
when discussing average time complexity as in this table. O (log n) I'm assuming it is 2 but wanted to verify. Also is it always 2 for these data structures? I'm in the opinion that the base of the log is not considered a constant so it should be included in the Big O notation. Whether or not is should be included. W...
My question is not for a solution to the problem, though I do need to put thought into it but rather my question is if this conceptual problem has a name or has been addressed at already in computer science. I want to create a list of numbered defines, each uniquely mapped, and divided into groups based on type. The go...
Let $L$ an arbitrary regular language and $\qquad L_2 = \{uav : uv \in L\}$. Am I correct to say that this language is not regular by saying: $L$ has an even number of $a$'s. So $u$ and $v$ have an even number of $a$'s. However, $uav$ will have an odd number of $a$'s so $L_2$ is not regular?
I am curious if there exists a method for specifying a permutation $F_k: X \to X$ with a small(ish) $k$. Something that comes very close to my goal is a block cipher, say AES. But block ciphers have fixed block size (e.g. 64, 128 bits), and I want something with parameterizable (and smaller) "block size" $\log_2 |X|$. ...
Problem 1: Let $A,B$ be languages over some alphabet $\Sigma$, if $A \equiv_m B$, then for every finite language $C$, $A \cup C \equiv_m B \cup C$. Problem 2: Problem 1 but using polynomial time reductions. Note: $A \equiv_m B$ means $A \leq_m B$ and $B \leq_m A$, same for $\equiv_p$. Every finite language can be decid...
I remember reading a paper about finding k nearest neighbors for all N multi-dimensional objects in the set. I've tries to find it again many times, but have failed so far. The algorithm was as follows: Each object is assigned a sorted queue of nears neighbors (maximum size is k). Let's assume that $k < log(N)$ Each t...
So here is a HW problem I have been working. On I was wondering if anybody could give me a hint of what I am doing wrong. I don't want to be given the answer just hints and advice on how to solve it. I am given this simple algorithm that finds the greatest value and the second greatest value in a array. If A[1] < A[2...
I have a reinforcement based neural network training on the OpenAI gym CartPole-v1 environment. For the structure and training algorithm, assume it is the same as the one in this article. Typically, it averages becoming more effective, eventually perfectly solving the environment (500/500 reward for several hundred gam...
I know this question is very trivial to ask, but I have got some doubt while solving this problem.Code is given below public class BinarySearch { public static int binSearch(int a[], int x) { // a is sorted int low = 0, high = a.length - 1; while (low <= high) { int mid = (low + high) / 2; if (x < a[mid]) high = mi...
for i = 1 to n s = 0 for j = 1 to i - 1 s = s + j * (i - j + 1) r = s * s I calculated the time complexity of this code to be of order $O(n^2)$, but my professor says it is actually $O(n^4)$ because of the statement $r = s * s$, as $s$ is dependent upon $j$ and $i$ which in turn are dependent on ...
I am confusing on completing one epoch, I am using Single Layer Feed Forward neural Network approach. Lets suppose i have a data of OR Gate: X1 X2 Target 0 0 0 0 1 1 1 0 1 1 1 1 Now we initialize weights (w1 and w2 with 0) and bias 1, it satisfy our first condition 0 0 0 with delta rule (T-...
What instruction really means? I am facing problem in understanding it. If the instruction is to copy this and create a new file and place there so it seems it d doesn't need processing so what will control unit do?
In languages like Haskell, with a Hindley-Milner type system, when does a type $t$ generalise a type $u$? I use the definition: $t$ generalises $u$ iff $\forall\ v: v \text{ unifies with } u \rightarrow v \text{ unifies with } t$. I have an algorithm that given these types returns a unifier if one exist. The unifier is...
I understand what address buses and data buses and control buses do, but... Why does data not go to the keyboard controller, or come from the VDU output controller?
Black box of $f(x)$ means I can evaluate the polynomial $f(x)$ at any point. Input: A black box of monic polynomial $f(x) \in\mathbb{S}[x]$ of degree $d$. Question : $\mathbb{S} \subseteq \mathbb{Z}$, unbounded from both sides Here $\mathbb{S} \subseteq \mathbb{Z} $ is an interval unbounded from both sides. For examp...
I am given an example of a case where the master theorem does not apply, but it seems like it should apply. This was the reasoning: $T(n) = 3T(n/3) + n \log n$ with $ a = 3, b=3, f(n) = n\log n$ and $n\log_b a = n\log_3 3 = n$ $f(n)$ is asymptotically larger than $n\log_b (a)$ , but not polynomially larger. The rati...
Say, given a $4\times 4$ grid with black and white dots on vertices. Each dot can form one (and only one) bond with a nearest dot of opposite color. Suppose every dot is guaranteed to find its other part. For one set of dot arrangement there can be many valid bond configurations. Question: an efficient algorithm to fin...
I have read (here and here ) about the computational power of neural networks and a doubt came up. There is a way to reduce an ANN to another ANN (not taking into count the training algorithm) ? e.g. Reduce a Recurrent Neural Network to a Multilayer Perceptron, meaning that if I have a trained RNN, I can get a MP that ...
I have reached a chapter in the notes I am following where a program written in C++ is using a Monte Carlo method to estimate $\pi$. It mentions a 'seed', but does not say what this is. I have tried finding out what a seed is online, but I only seem to get results about 'why you should/shouldn't use a fixed seed', and ...
I am supposed to create CFG for this languague: $L= \{w : w \in \{a, b\}^*, |w_b| = 3k, k \geq 0 \}$ where $|w_b|$ is count of terminals $b$ in $w$. For example: aa - OK, no 'b' abb - wrong, only 2 'b' aaabbb - OK, 3 times 'b' aababbb - wrong, 4 times 'b' abbbbbaaa - wrong, 5 times 'b' abababbbaaab - OK, 6 times 'b' an...
The convex hull of a point set is a well understood problem and nice optimal solutions are known in the case of a finite point set and a simple polygon. For a convex polygon, the hull is the polygon itself. When it is concave, the difference is made of "pockets" which are also polygonal regions, and you can iterate unt...
I am working on a classification problem. My algorithm involves splitting the data into several subsets based on a specific feature (e.g. number of XX) then training a classifier on each of these subsets. At test time, the incoming data will be passed to one of the trained classifiers depending this number of XX. Would...
Is this true? O(n) + O(k) =O(n+k).I have searched for it ,the answers were quite ambiguous and I couldn't find a good explanation.
What is the relationship between the sizes of minimum sized vertex covers and complete graphs?
Show that for any leaf v in a binary search tree, if u is the parent of v, then either key[v] is the largest key in the tree smaller than key[u], or key[v] is the smallest key in the tree larger than key[u]. I don't understand "key[v] is the largest key in the tree smaller than key[u]" and "key[v] is the smallest key i...
I have a map with up to thousands of points on it. Now I want to label those points on the screen. But this would only make sense for a limited number of points and the label of points close by should not overlap with others. What would be a way to go about this to not cover the screen with labels?
Was crawling the internet, and found this in a paper (1) "[...], a variant of dynamic programming called dynamic dynamic programming has been shown to have a worst-case sub-exponential time complexity of $2^{O(\sqrt x)}$ when the total bit length $x$ of the input set is used as the complexity parameter." As I understan...
How to prove that SAT is in L if and only if NP=L? I know that reducing SAT in cook-levin theorem is computable in deterministic linear space . How to do it in log space? Any reference will also help.
I have a subject called computer architecture in university but I don't get a clue of it. We get assignments like: make a 2-bit two’s complement carry lookahead adder using 3 4-bit adder. This is a circuit I have to make in Logisim, however, it's like you need an already deep insight in the subject to be able to make t...
There's the classical problem of sorting numbers in a list with the restriction that you can only swap two neighbouring numbers. It's easy to see that getting an optimal number of needed swaps can be achieved by insertion sort or bubble sort. We can generalize this problem by changing the underlying structure from a li...
Would it be possible to explain the physical significance of pumping length $p$ in pumping lemma for regular languages? Somehow, the physical significance of pumping length $p$ in pumping lemma for regular languages escapes me. I have explored a number of tutorials and presentations on this topic. The nearest I came t...
Given a knapsack $A$ composed of $(u_i, v_i)$-item where $u_i$ is the item identifier and $v_i$ is the weight of the item. I call a maximal subset when you consider a subset $S$ of $A$ where the sum $R(S)$ over $v_i$ in this subset is less or equal than $P_{max}$ and if you try adding any item $(u_j, v_j) \in A \setmin...
As of 1993, there are 4536 scheduling problems, 3821 were proven to be $NP$-hard, 417 polynomially solvable, and 298 still open. Where can I find the most up-to-date list of scheduling problems and their statuses (if they are $NP$-hard, polynomially solvable or open)?
In chapter 10.3. Selection in worst - case linear time ($k$th minimum) from Introduction to Algorithms by Cormen, Leiserson and Rivest, the time complexity expected for step 5 of the algorithm presented in this chapter is said to take $T(n)=7n/10 + 6$ at worst. From my point of view the time complexity is the one spec...
I’m fairly new to this area so my understanding is pretty basic. Am I correct in saying that symbolic a.i would take data and use logic to search through and find the right answer. An example is a doctor machine. We feed the machine a ton of medical textbooks and it answers questions by looking up the answers from tho...
In SICP, lazy evaluation is defined as delaying the evaluation of procedure arguments until the actual values are needed. (https://mitpress.mit.edu/sicp/full-text/sicp/book/node85.html) letrec can be implemented by creating a closure (an expression + an environment) and mutating its environment to add a binding to its...
Now the title may be misleading, but I don't know how to give it a better name. My question is if I have data in a 2d matrix and under the assumption that: -I know for sure that there are correlations between some of the rows and columns, but I am not sure which rows are correlated to each other so I can't pre-order it...
As we know segmented paging is an improvement over segmentation and paging but I am having some doubts regarding the memory overhead of these three system.It is clear that segmentation need less memory overhead.But about other two system please confirm these two points. number of pages in pure paging=number of pages...
Chen et al. say that The four-color theorem implies a $4k$-kernelization for Planar Independent Det, which is the dual problem of Planar Vertex Cover. I knew that Vertex Cover has a kernelization with $2k$ vertices. Furthermore, I know that we have a lower bound which is $n/4$ for IS. But how to get a $4k$ vertex ke...
Given an image of a dress (from different angles), what could be ways to fit it on a human image (again multiple angles corresponding to dress)? Any link to research papers or tutorial regarding this?
Let's say there is the alphabet {0,1} given and you are supposed to build a NFA for language L= {w | w includes two successive zeroes}. So we are supposed to build a NFA for the language which only accepts words with two (or more) successive zeroes, where alphabet is {0,1}. Now my question, is it allowed to build a NFA...
Assume that $\forall 1 \leq i \leq n : a>0, c_i > 0 $ where $n \in \mathbb{N}$. I need to show that it is possible to compute this sum in $O(n)$ time: $$I = \sum_{(\epsilon_1,...,\epsilon_n) \in \{0,1\}^n}a^{c_1 \epsilon_1 + ... + c_n \epsilon_n}$$ (a sum over all binary vectors of length $n$) I notice that in $I$, for...
A family of deterministic finite automata of degree $n$ over an alphabet $Σ$, with $\bigcap Σ = ∅$, consists of a set $\mathcal{A} =\{(K_i,Σ∪\{1,\dots,n\},δ_i,s_i,F_i) : 1 ≤ i ≤ n\}$ of deterministic finite automata. We fix implicitly a subscript function over $\mathcal{A}$, so that we can refer to the “$i$-th automa...
The Cook-Levin theorem shows that any NP problem is reducible to an NP-complete problem. Therefore if a polynomial-time algorithm for an NP-complete problem is found, it will mean that all problems in NP can be solved in polynomial time. But If an NP problem is shown to have an exponential lower bound, would that prov...
I recently made the photo of tapestry, but I am not able to identify the smallest patch which contains the pattern. Now I wonder: How could I write a program that does so? A first step could be identifying axis-aligned bounding boxes (AABBs). The most simple way I can think of is having a combined quality metric: $$er...
Here is my problem : Given a range, let's say 0 to 10.000, and some numbers in that range (like 23, 1456, 280, 3586), I want to find, for any input x, the two closest numbers to x, the smaller one the greater one. For example for x=100, the two numbers are 23 and 280, for x=350 they are 280 and 1456. Is there a faster ...
I get confused because i don't know if it is possible to use Test and Set primitives in case where more then one process can be enter in critical section at the same time.
L={ $a^mb^nc^pd^q: m+n=p+q$ } I cannot find a grammar to prove that it is context free. However I can visualise a PDA which can accept this language. The PDA would push O's for every a and b which it can later match against c and d. Please someone suggest a grammar for this language ?
I think the following encoding also works. ZERO := λf. λx. x ONE := λf. f TWO := λf. f f THREE:= λf. f (f f) Note: the original encoding is ZERO := λf. λx. x ONE := λf. λx. f x TWO := λf. λx. f (f x) THREE:= λf. λx. f (f (f x)) Why is the original one better?
Let's take the following definition of a FPT Turing reduction from Flum & Grohe's book. Let $F$ and $G$ be parameterised problems. For any instance $x$ of $F$, write $k(x)$ for the parameter of $F$ and $|x|$ for the size of $x$. For any instance $y$ of $G$, write $l(y)$ for the parameter of $y$. An FPT Turing reduction...
If two computer system's has to do some kind communication like data transfer or receiving should its clock sync to do that?If not then how they transfer bytes without having syced clocks?
Exercise 1.3 from Vijay Vazirani - 'Approximation Algorithms' asks: Consider the following factor $2$ approximation algorithm for the cardinality vertex cover problem. Find a depth first search tree in the given graph, $G$, and output the set, say S, of all the nonleaf vertices of this tree. Show that S is indeed a ver...
There is a flash game that you can very easily find on Google called Blockage. Rules & Goal of the game : Get all coloured blocks from their initial position to a corresponding target spot of the same color. Once a block is placed on a target spot of the same color, it cannot move anymore. You can select a specific...
Let $L_1$ be a DCFL and $L_2$ be recursive language. Is $L_1\cap L_2$ a DCFL? According to me the intersection should be a Recursive language. However the answer given is DCFL. Can anyone confirm?
My professor mentioned the below statement in class but without a proof. I am trying to prove it for myself as I don't understand 100% why this is always the case. Given is A, a subset of {0,1}$^*$. ε $\in\ A^+$ <-> ε $\in\ A$, where ε is the empty word. I thought of doing a proof by contradiction to show -> by assumi...
On the Wikipedia page for Fixed Point Combinators is written the rather mysterious text The Y combinator is an example of what makes the Lambda calculus inconsistent. So it should be regarded with suspicion. However it is safe to consider the Y combinator when defined in mathematic logic only. Have I entered into som...
Given a list $L$ of positive integers, assuming you can only modify the list by "splitting" its numbers a finite number $n$ of times. Write an algorithm which minimize the maximum of the last generated list. By "splitting" a number $x$ I mean deleting $x$ from $L$ and adding to $L$ two positive numbers $\alpha,\beta$...
My professor mentioned the below statement in class but without a proof. I am trying to prove it for myself as I don't understand 100% why this is always the case. Given is A, a subset of {0,1}$^*$. ε $\in\ A^+$ <-> ε $\in\ A$, where ε is the empty word. I thought of doing a proof by contradiction to show -> by assumi...
Pratt's paper suggests that the average time complexity for his gaps are $0.315 n(\log_2 n)^2$ (gaps generated from the ascending sequence of numbers in the form $2^p3^q$). Pratt's paper claims that $\Theta(n (\log_2 n)^2$ is better than all other shell gaps, suggesting the assertion, $n^{\frac{3}{2}}=o(n (\log_{2} n)^...
$\oplus P$ is low for itself ($\oplus P^{\oplus P}=\oplus P$). Are there other complexity classes $\mathcal D$ that satisfy $\mathcal D^{\oplus P}=\oplus P$? Are there complexity classes $\mathcal C$ that satisfy $\mathcal C^{\oplus P}=\mathcal C$?
Rice theorem says that any non trivial property of a language recognized by a Turing Machine is undecidable. Now does this theorem applies to machines as well since we can define a language consisting of strings which are encoding of machines? For example whether a machine will run more than 100 steps on some input? Th...
The propagation delay between two links is 200 bit time .....i want to know what is the difference between 200 bit time and 200 mill seconds
"Propogation delay betwween two links is 200 bit times" I am little confused here, Propogation delay should be in seconds, milliseconds etc but here it is in bit times. I also want to know what is bit time and is it same as Propogation delay.