instruction
stringlengths
35
29.1k
I have no formal training in computer science as I have not yet taken any such classes, so perhaps this question appears naive. I was reading about BPP and it was claimed that a deterministic Turing machine is a special case of a probabilistic Turing machine. I don't understand why this is.
I'm having trouble drawing an automata with this description S ← abb|aab|aaabbb|aaaS|Sbbb. I have tried drawing the abb and aab states but am having trouble making this into one automaton
So I couldn't figure this one out, what do i do when i have multiply logs as the running time of an algorithm. For example: f(n): loglogn g(n): logloglogn Does f = Omega(g) in this case? as in g is a much slower growing algorithm than f?
I'm trying to see if I got these running times right, are these running times for these algorithms correct. Algorithm 1: x=0 for i=1 to n for j=1 to i if( i+j > n) return; //so whenever i+j first reaches n, the algorithm stops Running time I got: O(n)? Algorithm 2: x=0 for i=1 to n for j=1 to n x...
I'm having difficulty understanding what my book is trying to say in regards to preemptive and non-preemptive CPU scheduling. It says the following: CPU Scheduling decisions may take place under the following four circumstances: When a process switches from the running state to the waiting state (for example, I/O r...
Given any arbitrary boolean expression using AND, OR and NOT gates what is the time complexity of minimizing the expression such that minimum number of gates are used. The following Wikipedia article only talks about the space complexity of the problem (which is PSPACE), but does not talks about the time complexity. ht...
I want to express a simple correctness theorem for a term-desugaring function $\Delta$. The goal is to express that if the evaluation of a desugared term yields a value, this value is the desugared result of evaluating the original term. Since the implication operator $\Rightarrow$ is already used in my dynamic semant...
Can quantum computer become perfect chess player? Can it determine whether (when both players are perfect) win white or black? (or is it dead heat?)
We have languages $A= \{a\}$ and $B = \{b\}$. If we consider $(A\cup B)^*$, where ${}^*$ means Kleene star, we have a set of words like $\{\lambda, a,b,aa,ab,aaa,\dots\}$, where $\lambda$ is the empty word. Another example we do is $A^*(BA^*)^*$. If we concatenate two languages, $\lambda$ will not be in the set, but th...
What is the communication complexity of the best known algorithm for computing the average of a set of N*D numbers distributed across N nodes with D values per node? Assume you have full control over the network topology and protocol.
hi how to make regex and 'DFA' to don't accept this 'bab' on this alphabet = {a,b} and accept all language except 'bab'
I am looking for a mathematical formula / algorithm to find the negation of a 8-bit hexadecimal without having to expand into a binary form. E.g; 0000BDDA -> 48602 FFFF4226 -> -48602 Need to get from 0000BDDA -> FFFF4226 without 2' complements / expanding it to binary. I've been cracking my head at it but to no avail...
Considering functions f and g, is the following true? $ (f \in O(g)) \implies (f \in \Theta(g)) \lor (f \in o(g))$ If not, can you please state an example? Despite thinking hard, i could not find one. Thanks a lot!
I have two large files containing paragraphs of English text: The first text is about 200 pages long and has about 10 paragraphs per page (each paragraph is 5 sentences long). The second text contains almost precisely the same paragraphs and text as the first. It is also 200 pages long with 10 paragraphs per page. How...
Finding a Regular Expression for an Intersection of Two Regular Expressions PAIR of regular expressions is ((ss*)t*) and ((ss*) + (tt*)). How do I find a regular expression that represents the intersection of the languages defined by the pair?
I have read about Automata Theory where it is about the study of abstract machines and automata. And i know that an abstract machine takes the input, process it and create the output, just like Conway's Game of life. But, what a formal defination can relate it to Cellular Automata, what about Elementary Cellular Automa...
Could some one please explain how to get the time complexity of checking if a number is prime? I'm really confused as to if it is $O(\sqrt{n})$ or $O(n^2)$. I iterate from $i=2$ to $\sqrt{n}$ and continuously checking if n%i != 0. However, do we consider the complexity of the square root function also? If we do, the Ne...
On the 6th slide at https://web.stanford.edu/class/ee364b/lectures/bb_slides.pdf, while defining L2 and U2, why are we taking min for both?
I was reading Wikipedia about the von Neumann bottleneck. Surely there is some simple answer to this. Why can we not read and write to the same address at the same time? We can if the addresses are different.
For example, if we had an extremely large expression, how do we even first get it into the program? I can't imagine entering each clause in one by one..
I'm trying to write a formal proof in automata theory to show a few properties of DFAs but I am having some trouble with this that I am trying to incorporate into my proof. I want to show how many languages $S$ there are such that $S\subseteq\{0,1\}^*$ and $\forall s\in S, |s|\leq 5$ where $s$ is a string. I got that t...
"If we consider the squares of an infinite chess board as nodes of our graph and consider each to be connected to the other eight squares that are a knight's move away from it what is the percolation threshold of this graph?" Note:One way I have thought about this problem is to try to use vectors: We can think of a kni...
Let $h$ be a homomorphism and let $L$ be a language. Writing ${}^*$ for Kleene star, I want to show that $(h^{-1}(L))^* \neq h^{-1}(L^*)$. Can I prove this just by showing that we can have $h^{-1}(L)$ to be empty (because no strings are mapping into $L$) and therefore the right side is the empty set? Doing the same ...
Let's say I have a formal language, a^n b^n which mean ab,aabb,aaabbb Can I write any regular expression or grammar to create a language like this? I am positive not entirely sure that there is not regex possible, however have no idea about the grammar part?
How would I calculate the execution time, T(n), for this algorithm? int search(int a[], int l, int r, int x) { int m = (l+r)>>1; if (l > r) return -1; // not found if (a[m] == x) return m; if (a[m] > x) return search(a, l, m-1, x); return search(a, m+1, r, x); }
In case of NFA, if the NFA is in a state and reads $\epsilon$ ( empty string ) the NFA splits in to two, with one being at the current state and other with the state along the $\epsilon$ transition. In case of PDA where transitions are of the type $a,b \to c$, with $a$ being the input alphabet being read, $b$ being the...
My problem is to find an efficient data structure that allows the encoding of a (non-directed) graph on the surface of a cylinder (without top and bottom discs). Usually I would store a graph as a list of edges, which are pairs $(a,b)$ of vertices. My problem is that I can have two kinds of edge from $a$ to $b$ either...
INPUT: undirected graph, s, t OUTPUT: connectivity of s and t I perform BFS on s AND t, each taking turns to make one traversal. When a vertex exists in both s and t's BFS tree, we can assume it is connected. When one tree is done traversing but the other is not, s and t are not connected. Does such an algorithm exist ...
I am trying to understand ambiguous grammar in programming languages. I was given this ruleset and told it was ambiguous. If my understanding is correct, this means that it is possible to create the same sentence using different parse trees. After looking at it for a while, I can't find the sentence/parse trees that sh...
For my computer science study, I have to design a replay attack (if possible) for the following authentication protocols. I use the standard security protocol notation. In these protocols, $A$ is Alice, $B$ is Bob and $E(A)$ is for example Eve impersonating Alice. $K_{AB}$ is a shared secret key only Alice and Bob kn...
I have a very large set of animal migration data, consisting of many series of vectors - each series is basically a path of a single animal. The dataset I'm using consists of 244 of these series. I want to train a predictive model so that when it is given a collection of these series and a map of environmental variab...
What type of virus protections are available and their suitability to a cyber-security company. I'm talking about top notch stuff. Are there any methods or techniques that are rare or unusual? Othere than Anti-Virus softwares, are there other ways to keep your systems protected from virus?
I thought this would be a very simple O(n) b.c. you can do the insert any where with in the list. The longer the list, the longer it will take on average to do the insert. However according to bigocheatsheet it is O(1) or has no dependency on the size of the list. What is wrong here?
I was trying to find out how to find whether $N$ is a perfect power or not for some $a$ and $b$ (so the algorithm should discover that it is not a perfect power if it is not expressible in the form $a^b$). My intuition tells me that for every value of the exponent $b$ we can binary search $a$ in the set $\{ 1,...,N-1 \...
I was doing a presentation on Rabin's Compression Theorem, when someone in the audience brought up a point I have no answer to. Rabin's Compression Theorem states that every reasonable complexity class has a problem that can be solved optimally in it. The proof is a little involved, but not horribly difficult. The aud...
I've got an algorithm I'm working on that generates, stores, and iterates through a large number of finite sets. I'm finding that memory is a bottleneck long before time is. The finite sets are subsets of the vertices $V$ in my graph, so each finite set is small, there's just a lot of them. In an effort to save space, ...
The problem I have seems fairly simple and I feel it must have some kind of name. I have a (directed cyclic) graph. Each node has an associated reward for visiting it, and each arc costs a certain amount of time to traverse it. The reward is consumed on visiting once, so a path may visit a node multiple times but recei...
We are given an $n \times n$ grid with some of the squares darkened. Our goal is to move from the bottom-left to the top-right corner with the following constraints: 1) We cannot step on a darkened square. 2) Each move must be up or to the right. 3) We cannot move in the same direction consecutively four times. Design ...
I know that quantum computers are able to process a superposition of all possible states with a single pass through the logic. That seems to be what people point to as being what makes quantum computers special or useful. However after you have processed the superpositional inputs, you have a superpositional result, of...
So we're using this book by Shlomi Dolev on self-stabilization in class. Not being from a theretical CS background, I think the book is rather terse. Most of it is fine but there's this section on "recomputation of floating output" that I just couldn't get and I would like to know if anyone could help explain the conce...
I just found out something really quite extraordinary. While looking through Stackoverflow, I came across a question about removing goto from a php function. PHP doesn't have goto I thought and looked it up on php.net. It turns out I was sort of right. PHP introducted goto in version 5.3 which was release in 2009....
I am interested in the complexity of the following problem: Input: A list $a_1\leq ⋯ \leq a_n$ of positive integers. Question: Are there two vectors $x, x'\in\{−1,0,1\}^n$, with at least one $x_i$ and one $x'_i$ non-zero (the subsets must be non-empty), such that $$\sum_{i=1}^nx_ia_i=0, \sum_{i=1}^nx'_ia_i=0 \text{ and...
Considering plain RSA encryption, assume we have B who wants to send 10 messages to either A1 or A2. The recipients' public key, namely the exponent e1, e2 and prime product n1, n2 for A1/A2 respectively, is publicly known. When B sends out, he will either encrypt his messages via $c_i = (m_i)^{e_1} mod (n_1)$ or $c_i ...
From the analysis of Dijkstra there is a $O(mlogn)$ factor that assumes we do a decreasekey for every single edge of the given input graph. However I find it hard to come up with an instance that can actually require this. All you have to do create the edges and then add the weights in a way that would induce a large n...
I know by definition that a minimum spanning tree (MST) of a weighted, connected graph has the lowest global value for for sum of all edges in a path that connects all vertices. I'm curious if all MSTs are also optimized for lowest individual edge value possible. (I know that ones calculated with Kruskal's Algorithm ar...
Regarding time complexity I've read conflicting things: 1) That it is worst case. 2) That is average case. For example if I want to know the time complexity for inserting into an arbitrary point in a linked list ( not the beginning or the end ), on average it will take (n/2) operations so we can drop the constant and s...
I have a floating point number system and I have a number for which I need to calculate the exact relative error after rounding. The number is clearly an overflow. Does anyone know what I should do? I've tried converting the number to from the decimal base to the base of the system, then just chopping of and rounding ...
Apologies, not a computer scientist by trade but I'm playing with linear programming these days. Let $\{x_i\}$ be $N$ optimization variables with bounds $$l_i \leq x_i \leq u_i$$ I'm interested in telling if $\exists$ a feasible region under the constraint $$\sum_i x_i = C$$ for a fixed value of $C$. This is pretty eas...
Why are there $2^{2^{n}}$ possible boolean functions of n inputs? How to derive that? For 3, I can only write down 16 and cannot go further. 8 of $f(x_{1},x_{2},x_{3})=0$ 000 = 0 001 = 0 010 = 0 110 = 0 111 = 0 110 = 0 101 = 0 011 = 0 and 8 of $f(x_{1},x_{2},x_{3})=1$ 000 = 1 001 = 1 010 = 1 110 = 1 111 = 1 110 = 1...
Someone asked for examples of context-free languages with non-context-free complements. The first answer says: The language $L_1= \{ww \mid w \in \{a,b\}^*\}$ is not context-free (as can be shown using the pumping lemma; see here). Its complement $L_2 = \{a,b\}^* \setminus L_1$ is context-free (as shown here). Maybe...
Elementary Cellular Automata and Conway's Game of Life show interesting Cellular structures, suppose we have a computational model {a Cellular Auotmaton} that can simulate both CA types (ECA & Conway's Game of life) from one input. Meaning that, if we had a system with an input of (x), (x) can show a structure to an EC...
This problem has been given by Shallit as an open DFA/ complexity theory problem and is currently not even known to be decidable. It seems to be circulating on the internet in a few places (e.g. [1][2]) but not in any papers. Almost nothing seems to be known or published. I am looking for any nontrivial analysis or ref...
Suppose we are working in ${\mathbb R}^d$ (dimension is not fixed), and we have a set of $n$ points $X = \{x_1,\ldots,x_n\}$ in that space. Given a query point $y$ inside the convex hull of $X$ and an integer $m$ where $m<d+1$, we want to choose $m$ out of the $n$ points so that the residual of the projection of $y$ on...
I know how to show $\overline{Lx}$ is unrecognizable. I know how to show Lx is undecidable. I would like the mapping reduction function that shows that Lx is recognizable or unrecognizable. For instance, to show $\overline{Lx}$ is unrecognizable, show $\overline{Htm}$ <= $\overline{Lx}$ Given $\overline{Htm}$ = {M desc...
I can only write down 16 and cannot go further. 8 of $f(x_{1},x_{2},x_{3})=0$ 000 = 0 001 = 0 010 = 0 110 = 0 111 = 0 110 = 0 101 = 0 011 = 0 and 8 of $f(x_{1},x_{2},x_{3})=1$ 000 = 1 001 = 1 010 = 1 110 = 1 111 = 1 110 = 1 101 = 1 011 = 1 That's the maximum I can go. How do I proceed?
[Edited] I am reading about matrix grammars from several sources and got confused about its generative power and classification to the Chomsky hierarchy. In here it is stated that: A matrix grammar is a quintuple $G = (N, T, M, S, F)$, where $N,T$, and $S$ are specified as for a context-free grammar, $M = \{m_1, m_2,...
For each language $L \in L(RE)$ there are a homomorphism $h$ and two context-free languages $L_1$ and $L_2$ such that $L = h(L_1 \cap L_2)$. I understand that this is because context-free languages are not closed under intersection so $L_1 \cap L_2$ will produce non-context-free languages. Since context-sensitive gramm...
I am learning algorithms from the clrs book. I am having trouble understanding the notation the book has placed. The book wrote the following: $t_j$ denote the number of times the while loop test in line 5 is executed for that value of $j$." So does that mean $t_2$ would represent the entire set time the while loop...
Suppose I have two sets, A and B, which each have one or more strings. I'm looking for an algorithm that'll go through each string in A and find the string(s) in B with minimal Levenshtein distance. Lets assume the following constraints: Strings won't be too long: probably between 20 and 30 characters. The alphabet w...
I was reading operating systems concurrency control topics where I came across TestAndSet() intruction. I first referred this book. But it has got very less coverage on TestAndSet and then I googled. Obviously I came across wiki page. The wikipedia page gives two code excerpts. The TestAndSet() function #define LOCKED ...
Suppose I want to express Data Encryption Standard(DES) encryption algorithm as a boolean circuit. How can I determine if what I want is practical, and if it is how can I do it?
I am writing a small Ruby on Rails engine that does simple full-text search. When someone imports text from a given model (eg. Articles, Posts, etc) an inverted index is built that looks like the following: Term Doc. info Doc. frequency Spelling suggestions appear {:title=>[1], :body=>[1, 2, ...
I've been reading up on quantum computing online from various sources, including this link http://twistedoakstudios.com/blog/Post2644_grovers-quantum-search-algorithm. I get how quantum gates work, destructive interference, and how you can simulate a quantum computer using matrix math and complex numbers. Does entangle...
I just found this sentence on page 6 of Garey and Johnson's "Computers and Intractability". Any algorithm whose time complexity function cannot be so bounded is called an exponential time algorithm (although it should be noted that this definition includes certain non-polynomial time complexity functions, like $n^{\lo...
Given a set $S$ of $N$ points on a sphere, and another point $P$ on the sphere, I want to find the $k$ points in $S$ that are the closest (Euclidean or great circle distance). I'm willing to do a reasonable amount of pre-computation. The solution must be exact and efficient (faster than linear time).
I was reading about pure mathematics and I am wondering if there is a relation between it and Cellular Automata. Broadly speaking, pure mathematics is mathematics that studies entirely abstract concepts. For example, elementary cellular automata transforms an input of {3 cells} based on a rule set to a fractal like r...
I am reading the paper "A new approach to intrusion detection using Artificial Neural Networks and fuzzy clustering" by Gang Wang, Jinxing Hao, Jian Ma and Lihua Huang (Expert Systems with Applications, 37(9):6225–6232, 2010, available at Science Direct). I don't understand the term "detection stability". What does tha...
Given the language $EQ_{\mathrm{dfa}} =$ $\{\langle A, B\rangle\mid A$ and $B$ are two DFAs and $L(A) = L(B)$ $\}$ Prove that $EQ_{\mathrm{dfa}}$ is decidable by testing the two DFAs on all strings upto a certain size. Calculate a size that works. (This is from Sipser chapter 4) I make a directed graph as usual but if ...
Consider the counting knapsack problem $\mathsf{\#IDKNAP}$ : Input: $n \in \mathbb{Z_+}$, $s \in \mathbb{Q}_+$, where $s$ is represented by a fraction $\frac{p}{q}$ in its lowest terms. Output: the number of 0-1 solutions (i.e. those having $s_i\in \{0,1\}$) to $s_1 + s_2 + \dots + s_n \leq s$. What is the counting...
Meek's version of the Single Transferable Vote system [.pdf] is used in multiple big elections including those of New Zealand and Stack Exchange. Demonstration (with thanks to the Department of Internal Affairs of New Zealand). I have a basic understanding of how the votes are counted, but there's one thing I haven't b...
I've been recently investigating metacategories (arrows and objects) alongside Automata theory and noticed that a category is a sort of parent container for DFAs, which are just a specific type of function over sets. If the relationship between automata and categories is significant, does that mean an automata could en...
You play a TV game in which you have to open one door out of $n$. Behind each door, there is a treasure with probability 1/2, independent of the other doors, so your apriori chance of winning is 1/2. In order to increase your chances, you can coordinate with a friend. You do the coordination before the game starts. The...
Take the language $L = \{a b^n c^n \; : \; n \geq 0\}$. It's obvious that $L$ is non-regular because $\{b^n c^n \; : \; n \geq 0\}$ is non-regular, but I don't know a satisfying way to show that to the hypothetical Devil's advocate reading my proof without dragging out a full argument using the pumping lemma. Is there ...
I'm trying to make a simpler version of CARDIAC for only performing addition. Now, I am encountering several problems in making something similar and looking for some ideas (I'm new to Computer Architecture). Here's an excerpt of what CARDIAC is (Wikipedia): CARDIAC (CARDboard Illustrative Aid to Computation) was a le...
I was reading about the history of computers where i came by machine code A Machine code or machine language is a set of instructions executed directly by a computer's central processing unit (CPU). Each instruction performs a very specific task, such as a load, a jump, or an ALU operation on a unit of data in a CPU r...
Consider the following problem: you are given a set of one million machines (hosts), and you would like to have the ability to execute at will an arbitrary command against the whole set; for the moment, let us suppose you want to run one command at a time. How to do that efficiently? Is also desirable to have the abil...
If I understand correctly, quantum computers work by trying multiple methods of solving a problem simultaneously, using quantum superposition. However, if you try to "look" at a superposition-ed atom, you will find either one or the other-1 or 0. What I've heard is that this is random. So, if you compute all these solu...
Why does the following procedure not work? Let given vertices be $(u,v)$ Run a dfs from any vertex. Compute : $low[u]$ for all vertices in the graph $low[u] = min(disc[u], disc[w]) $ where w is an ancestor of u and there is a back edge from some descendant of u to w. In the tree formed by dfs, find the $lca(u,v)$ ...
I am confused about 'single' vs 'multiple' agent reinforcement learning. Let's say that I have 1 hunter who I am training to hunt 1 static prey, so that only the hunter is moving around. This is definitely single-agent RL. If there are two hunters and two preys (moving or static), then this becomes multiple agent RL....
I have a thermal camera that I would like to overlay, automatically, to the output of a RGB-D camera (e.g. Kinect). I have retrieved the intrinsic and extrinsics parameters of both cameras. My objective is to calculate the disparity map between the two. That is, to map the matrix resulting from the depth image to the t...
If I am correct, programming language theory studies syntax and semantics of programming languages, and design and implementation of programming languages (e.g. compiler, ...) Does programming in programming languages, i.e. creating programs in programming languages, belong to programming language theory? Does pro...
I've had multiple lectures on the pumping lemma but still can't grasp exactly what it is...my main questions are as follows What is the pumping lemma for? How do you use it to prove a language is not regular (with an example please) e.g. if L is in sigma and L is regular, prove that sigma*-L is regular It doesn't need...
I was reading about dynamic programming and I understood that we should not be using dynamic programming approach if the optimal solution of a problem does not contain the optimal solution of the subproblem. The Longest path problem is very clear example on this and I understood why. But I am not able to find out any o...
This particular language: $$L = \{ u u^R v \,:\, u, v \in \{0, 1\}^+\}$$ is giving me a lot of trouble. I highly suspect that its non-regular, considering that $\{ u u^R : u \in \{0, 1\}^+\}$ is non-regular, and I can't seem to reason out a DFA for it. However, trying to achieve a contradiction with the pumping lemma i...
I am reading the paper Measuring the hardness of SAT instances by Ansótegui, Bonet, Levy and Manyà (Proc. 23rd AAAI Conf. on AI, pp. 222–228, 2008) (PDF). I am trying to understand the last part of the demonstration of the Lemma 3 (in bold). For this, I get an example. Let be $\Gamma = (a+b)(a+b')(a'+c)(a'+c')$ then it...
From various sources (one being this), I've heard that quantum computers find the correct answer in a sea of possible ones by destructively interfering the wrong ones with each other, and the right one keeps building on itself. How does this work? Does every wrong answers have an opposite, but still wrong, answer? How ...
I wonder, how is that operating systems make use of libraries as stdio.h if they themselves are the services? I am right? Is the operating system that interacts with the hardware to operations of I/O? How you write to a file system with the C library, for example?
A process was running on a uniprocessor system. It is being context switched. While the scheduler is performing this context switch can another process be allocated the CPU while the context switch is being performed?
What is the best algorithm for computing the number of ways an integer $n$ can be split into a product of $k$ distinct integers given a prime factorization $n=p_1^{a_1}p_2^{a_2} \ldots p_i^{a_i}$? Clearly, there are simple exponential time algorithms, but I'm wondering if any algorithms polynomial in $\log n$ are known...
With $\Sigma = \{a\}$ I want to see if a language $C = \{a^p \ | \ p \ \text{is prime}\}$ is regular and whether or not $C^*$ is regular. How would I go about showing whether $C$ or $C^*$ are regular? I know I can construct a DFA/NFA to accept them but I am very confused about the fact that there are an infinite number...
If we know that a language is regular, we can solve the set membership question for a given string by running it through the corresponding DFA for that language. But what about the other way? Means, if set membership question can be solved for a particular language does this imply that the language is regular?
I was browsing the forum where i came by this question, it says that rule 110 from {ECA} is a computation model. What is the difference between a computation model and model of computation and how can we relate them to computers ? A model of computation is the definition of the set of allowable operations used in comp...
This is an exercise problem from the book "Learning from Data". Given $w_1$ and $\epsilon \gt 0$, find $w_2$ such that, $$\lvert \mbox{sign}(w_1^Tx_n)-\tanh(w_2^Tx_n)\rvert \le \epsilon$$ Where $w_1, w_2, x_n$ are all real vectors. I know that for large $y$, $\mbox{sign}(y) \approx \tanh(y)$. But I am unable to proc...
When solving backward data-flow problems, many resources (Wikipedia and many presentations found online) recommend traversing the control-flow graph (CFG) in post-order for fastest convergence, which makes sense. Other resources (such as the "Engineering a Compiler" book) suggest to use reverse post-order (RPO) on the ...
Let a input string be given as $w_1w_2...w_n$. Then if a NFA is currently in state $r$ ( and has read the input upto alphabet $w_i$ ) then before reading the next input symbol the NFA splits into two NFA, one being in state $r$ and other being in $s$, if there is a transition of the type $r \xrightarrow{\epsilon} s$. I...
The current state of video buffering technology is to encode a video multiple times at different resolutions, then when your network speed changes you change which video you are buffering from. Would it be possible to give this same user experience but implement something like the interlacing method used in PNGs or in ...
The paper _Fast Approximation Algorithms for Knapsack Problems (E. Lawler, 1979) gives an FPTAS (fully polynomial time approximation scheme) for the multiple choice knapsack problem (MKP). But MKP is strongly NP-hard, so it cannot have an FPTAS unless P=NP. Is the result of this paper wrong?
I am newbie in Machine learning. As we know, in machine learning the aim of an algorithm is to find out (approximate) the output from some examples as training example. these training examples help the algorithm to predict the output of other examples which have not occurred yet. According to Wikipedia, we need "induct...
So i know that rule 110 from Elementary Cellular Automata is universal but i am wondering if we had other chaotic behaviors let's say there exists a system that shows nearly infinite chaotic behaviors {a structure at a time} similar to ECA structures, how can we prove or disprove universality from that system ? Suppose...
For instance, why is it hard to accurately compute sin(1e99)? I suspect it has something to do with rounding error.