instruction
stringlengths
35
29.1k
I might have gone too deep in my search after the answer which might be much easier than what I figured. Essentially I wanted to figure out how I/O are executed in a Von Neumann machine, but more I read, the more confused I became. What they are saying in "Introduction to computing systems" (Patt and Patel) and other w...
I have been developing a GA for one of the projects I'm working on. I have everything implemented with no problems and I really like how GAs work in general, it's a really cool and relatively new concept. However I'm wondering which specific algorithms I should use for selection, crossover and mutation. I understand th...
As a homework we had to prove a set of upper bounds on a given probabilistic algorithm to find a satisfying assignment for a satisfiable 2-CNF formula. The problem is reproduced below. I'm sorry for all the incorrect language; English is not my native language and scientific language is especially difficult for me. Ob...
Suppose that I have a binary tree with $N = 2^h - 1$ nodes, initially all nodes are unmarked Over time via this process nodes became marked. Suppose that nodes have unique identifiers in range of $[1,N]$ each time, I send you the identifier of a node. when you receive a sent node. you mark it and also invoke the follow...
I read the wikipedia page on the Longest Common Subsequence problem to understand the LCS Table approach, but it seems to result in different solutions given different orders of the original sequences. For example, the traceback table generated here is correct, since the longest common subsequence of AGCAT and GAC has ...
What does rounds in communication complexity mean in setting of deterministic/non-deterministic $2$ party communication or multi party setting? Is it number of bits exchanged between players participating/involved? In multiparty setting what does simultaneous and non-simultaneous messaging means? Is it related to roun...
Some days ago i've discovered that in most of what we call "models of computation ", we can possibly model tasks other than computation itself . For instance, in lambda calculus we can model control flow tasks ( modeling if, while, forif controls) with function applications, whereas in Turing Machines the control flow ...
I'm trying to write an algorithm to print all the paths from point (0,0) to (n,n) in a grid. The only possible moves are right and up. Also, you can't move below the diagonal y=x. e.g if you're at (1,1) you can only move to (1,2), but not to (2,1), since it's below the y=x diagonal. I wrote an algorithm that calculates...
I have been playing Manufactoria, a game in which one has to build a production line that tests/modifies "robots". Each robot has a "tape" where each cell is colored either red, green, blue or yellow. The production line can test/modify a robot by popping colors off the start of its tape, by moving the robot to differe...
What is best (in terms of time complexity) known algorithm (approximate or exact) for finding diameter of a large undirected graph? The diameter is defined as longest of shortest paths between any two nodes. I know that naive solution takes O(nm) steps and is basically taking pairs of all vertices and finds distances b...
Given a directed graph $G = (V,E)$ with positive edge weights, find the minimum cost path between $s$ and $t$ that traverses exactly $k$ edges. Here is my attempt using a flow network: \begin{align} \min \sum_{(i,j) \in E} c_{ij}x_{ij} \end{align} \begin{align} \sum_{j \in V} x_{ji} - \sum_{j \in V} x_{ij} &= \begin{c...
I'm trying to compute $g^m$ mod $n$ where $m,n$ are 1024-bit numbers. The method I want to use is fixed base exponentiation with precomputations, also known as fixed-base windowing.The paper I'm following is Brickell et. al. "Fast Exponentiation with Precomputation: Algorithms and Lower Bounds" which can be found here....
How can we perform time complexity analysis on a function that has no loops? int somefunction(int param) { if (something) do this; else do this; } Would the time complexity of this function change depending on how many times the function is called within a program? I currently believe that the time complex...
Lets consider a new operator $B$ where $a B b$ means "in every execution, if $b$ holds some time, then $a$ does so before it" and we're asked to define it in CTL. My working: the system can only fail if $b$ holds. If $b$ doesn't hold, we're in the clear - so one possible path could be $(¬ □ b)$. The only other path th...
$$ a_i * x_i + b_i * x_j = N $$ $\text{given } a_i, b_i, N \in \mathbb{N}$ i want to find a solution where $x_i, x_j \in \mathbb{N}$ or output if there exists none. What is the fastest way to calculate this?
" The 8080 was an 8-bit CPU, meaning it processed 8 bits of information at a time. However, it had 16 address lines coming out of it. The ‘‘bitness’’ of a CPU—how many bits wide its general-purpose registers are—is important, but to my view the far more important measure of a CPU’s effectiveness is how many address lin...
I'm working on a dependency managemen solution for a JavaScript. I'm trying to find the best pattern for grouping similar items in a graph into their own 'modules'. Given a dependency tree like shown below, I have a 'main' module ( app ), that has 5 children ( login, dashboard, form, builder, users ). These children ...
I am reading about this in the context of the K semantic framework. I keep encountering terms such as rewrite-term and rewrite logic. My main aim is to understand what is K doing and how it works, so maybe this would be a bit off-topic.
Suppose I have the following inputs: 1110 1111 If I perform a logical right shift by 2 on each, are the 5-bit outputs these: 00111 00111 or these: 01110 01111 If it's neither, then I'd appreciate an explain why and what I've done wrong!
For the recurrence relation $$T(n) = 16T(n/4) + n!\,,$$ I have found that $T(n)\in Θ(n!)$. Can this be deduced using the Master Theorem?
I have a text file with all possible 5-grams (26^5 = 11.881.376) organized in rows as: aaaaa aaaab aaaac aaaad ..... and I have a txt file (organized in rows) with all English words. I have to find how much time every 5-gram is at the beginning of a word. I'm using this code: def frequency(five-grams, dict): result...
I've been using kernel ridge regression. My problem requires predicting some values which I know to be integers. By rounding the results to the nearest decimal, I get excellent results. However, If there's potential for more improvement - I'd like to try it! I recalled that the $l_1$ penalty usually results in fewer sm...
I've been trying to make a CFG, a pushdown automaton and a regular expression for the language $\qquad L(M) = \{ww : w \in \{a, b\}^*, |w| \text{ is even}\}$. I understand how the reverse of the string work, that is $\qquad L' = \{ ww^R : w \in \{a, b\}^*\}$, what i am asking for is to do it this way , i have alread...
I am trying to find a $\Theta$ bound for the following recurrence equation: $$ T(n,p,k)=T(n,p,k/2)+T(n,p/4,k)+T(n/8,p,k)+npk $$ npk / | \ / | \ T(n,p,k/2) T(n,p/4,k) T(n/8,p,k) the max height of the recursion tree is $ \lo...
What is the definition of the complexity class $D^P$? In recent papers I sometimes read $D^P$ but could not find a definition of it. Unfortunately Complexity Zoo does not give one, too. Is it the same as: "A language L is in the class $DP$ if and only if there are two languages $L_1\in NP$ and $L_2\in coNP$ such that $...
Consider the following problem: Input: integers $n > m > k$; $n$ numbers $0 \leq p_1, \ldots, p_n \leq 1$; $n$ numbers $r_1, \ldots, r_n$ where ($r_i \geq 0$). Let $X_1,\dots,X_n$ be $n$ independent random variables with distribution $X_i \sim \text{Bernoulli}(p_i)$ and define $Y_i = r_iX_i$. Output: a subset $S$ o...
I am reading this text book and it says that stay put turing machine recognizes the same languages as regular turing machine by just adding transition functions (without adding any new states or symbols). I am trying to figure that out.. But so far, no luck. I think the key here is "recognizes" rather than "decides"? H...
A quantum computer can possibly calcluate computable functions faster, but it can't calculate functions which a normal computer can't calculate? If a function is not computable? Does this mean it will never be computable? Even if we change the axioms which our mathematical system is based on or we find a contradiction ...
I have seen in some ML tutorial that functions of the form $f(\vec x) = \vec x^T A \vec x$ ($\vec x \in \mathbb{R}^n$ and $A$ is an $n\times n$ real matrix) can be PAC learned. Can anyone point me to a reference to this fact?
From Wikipedia, Regular Language All finite languages are regular. and Also Regular Grammar, is a way to describe the Regular Language Right regular grammar (also called right linear grammar). Left regular grammar (also called left linear grammar). From Wikipedia its Example : a* b c* can be described as Regular G...
I'm working through Knuth; The Art of Computer Programming, Vol. 4 Fascicle 0 and I'm having a little trouble making sense of the method Knuth describes for computing an orthogonal latin square. The text of Knuth's explanation is available in this PDF, starting on page 16 (pp 6) and continuing to the next page: http://...
I've been trying to make a CFG, and npda/pda for this language (to construct an npda for accepting the language): L(M)={ww:w∈{a,b}∗,|w| is even}. i had already solved the reverse of the language (like this): L′={wwR:w∈{a,b}∗}, Please check this snapshot to know what i am asking to do ! (L') : http://i921.photobucket.c...
currently i'm preparing for an exam in a high performance computing course. In this course we discuss several common parallel algorithm patterns called "dwarfs". The first dwarfs we had was the "dense linear algebra", so basically matrix multiplication. In one of the first slides there is a example for a basic matrix m...
According the Peter Linz Book, am a confusing about the two example the Grammar G1 = ({S},{a,b},S,P1) with P1 given as S -> abS|a and G2 = ({S,S1,S2,},{a,b},S,P2) S -> S1ab S1 -> S1ab|S2 S2 -> a G1,G2 is regular.. i generated from G1 Language= {ababa,...} and it Regular expression (ab)a and from G2 = {aabab} is that...
As the title says, what is complexity of checking whether a natural number is a perfect square?
I'm studying with "Numerical Solution of Partial Differential Equations by K.W.Morton and D.F.Mayers". On page 25, it says "2(add) + 2(multiply) operations per mesh point for the explicit algorithm (2.19)", but it seems 3(add) + 2(multiply) to me, how did I get wrong? (2.19) $U_j^{n+1}=U_j^{n}+\mu(U_{j+1}^{n}-2U_j^{n}...
I'm about to work with concept drift problem in data streams. I need to start with real data sets from UCI machine learning repository and add to them concept drift (in attributes domain). Do you know tools that can help me with this? Maybe someone knows it is possible to use MOA[1] framework for this? What is best wa...
I am not too intelligent,but i got this in my mind.Lets say i download a file from abc.com and the speed is limited for an IP(say 60kbps).Can i initiate parallel downloads from multiple ip addresses which could be virtual IP's OR two diff.devices and break my download into parts,download each part at 60kbps and then jo...
In CLRS book, in the road cutting example there is a recursion formula $$ 1+\sum_{j=0}^{n-1}T(j) $$ and it can be proved that the sum is $$ 2^n $$ by simple induction. In 3-rd edition it is a formula 15.3 on a page 364. As I can understand from the recursion-tree aproach, the recursion tree which can be...
I have a problem whose lower bound of problem complexity is proven to be $O(n+m)$ (n < m) and I also come up with an algorithm whose time complexity is $ O(n+m)$, space complexity is $ O(n)$. (All on deterministic turning machine) If there exists an algorithm that uses O(1) space to solve the same probelm, what will be...
DISCLAIMER: I understand that I might not be posting in the right part of StackExchange, or this question might have been asked before (I haven't found it). If this offends anybody, I apologize. I'm 15 and a sophomore in High School. I have an interest in Computer Science in general. The thing is, I've learned a few la...
I don't know if it is the right site to ask this. But we're studying about ambiguities of grammar. Including left most derivation and right most derivation. We are given the problem: E -> E * E | E + E | N N -> 0N | 1N | Output: 0110 + 110 * 01111 My question is, is there a shortest way to attain that output? Because...
I need to implement an algoritm, but I can't understand the theory behind it. How can I prove that if v is an articulation vertex in a graph G , that it will not be an articulation vertex in G' complimentary graph ? I know that an articulation vertex , is one which when removed disconects the G . And that the complemen...
My attempt to solve this: If $\mathcal{A}$ is an arbitrary infinite recursive set then the members of $\mathcal{A}$ can be ordered in ascending order. We can do bijection between $\mathcal{N}$ and $\mathcal{A}$. Halting problem is $\mathcal{K}\subseteq\mathcal{N}$ and therefore it's also $\mathcal{K}\subseteq\mathcal{A...
I have written a program to calculate the number of stable partition in a graph. ( That is: find which partition of the nodes does not have edges between nodes of the same block. ) The professor, asked me a way to evaluate the performance of my algorithm (not the program), but my algorithm is simply a brute force of a...
I came up with the following. Am I doing something wrong? Suppose $P=NP$. Let $A$ be an NP hard problem. Let $A'$ be the polynomial reduction of $A$. By the assumtions, the Halting problem holts for $A$. Let $T'$ be the running time of $A'$. Clearly, $T' \in O(P(n))$, with $n$ as input size for $A'$ and $P(n)$ represen...
According to this algorithm: http://en.wikipedia.org/wiki/Shunting-yard_algorithm when a left parenthesis is found, it is inserted into the stack, and when a right parenthesis is found, we pop all operands up to the left parenthesis. Neither parenthesis is included in the output. But what if I want expressions such as ...
My initial guess is that you would have to queue the lower priority one, but what happens when for example 5 or many more requests happen at the same time? Are all these requests put in a queue or are they lost forever?
Is there a language $L$ such that both $L$ and $L$'s complement are non turing recognizable languages, but there is a reduction between them? I couldn't find one...
According to Wikipedia, Regular Language is Recognized by Some DFAs, or expressed by Regular Expression .. and all finite Language are regular but, not all regular is finite .. that's mean it may be infinite language is regular ? my example is L = {a^n b^n+1, n >0 } is it regular ? it generate infinite set of strings ...
If I find an NP Hard problem that is equivalent to my problem with an additional constraint or bound, can I still prove that my problem is NP Hard? Generally, this is probably not the case. For example, the NP Hard TSP is just a further constrained version of the shortest path problem. Specifically, I have the problem:...
Since a binary tree with $N$ nodes has $N+1$ NULL pointers (across leaves), half the space allocated in a binary search tree for pointer information is wasted. Suppose that if a node has a NULL left child, we make its left child point to its in-order predecessor, and if a node has a NULL right child, we make its right...
I'm reading multi-level cache and came across a question through which i got confused. I've read that Between processor and Cache Word/ Byte is transfered Between Cache and Main memory Block(Block of words) is transfered. If there is a miss in lower level cache and hit in higher level cache, first Block of words i...
The most obvious (and commonly given) answer to this question is John McCarthy, but I have traced the first usage of this term to a 1955 paper, which McCarthy co-authored with Marvin Minsky, Nathaniel Rochester, and Claude Shannon. Although McCarthy was the lead author and probably the main organizer of the 1956 Dartmo...
I'm reading through the paper Transactors: A Programming Model for Maintaining Globally Consistent Distributed State in Unreliable Environments by John Field and Carlos Varela. I have basic knowledge about the lambda calculus (typed lambda calculus to be more precise) thanks to a class I took at my university. However,...
I want an algorithm similar to Dijkstra or Bellman-Ford for finding the shortest path between two nodes in a directed graph, but with an additional constraint. The additional constraint is that there are $N$ sets of special edges with weight $0$ such that a path is not considered valid if it traverses one edge in a se...
If we have a quantum state consisting of (let's say) 3 entangled qubits and we read the value of one of them, what happens to the probabilities of the remaining possible states? For example, if we have three entangled qubits and have an amplitude for every state from $|000\rangle$ to $|111\rangle$ and we measure the se...
I have a set of labelled points and a set of distance constraints between pairs of points, consisting of a lower and upper distance bound. There is definitely an arrangement of the points in 3D space that fulfils all distance constraints. I wish to generate arrangements of the points where all constraints are fulfilled...
I was listening back to a lecture I had, hinting on what we should revise for our upcoming exam. Since then I've covered all the parts, but having difficult in decrypting the following You might want to look at the interaction between scheduling algorithms and interprocess communication. I understand both interproce...
I'm working on a compiler. The textbooks I have say to output a 3-address intermediate code. This can be translated into the target language of choice. I don't have a problem with the bulk of the source being translated to 3-addr code. But for the data-rich symbol table, this is awkward. Is the exclusive use of 3-addr ...
Consider the following langugage: $\qquad L = \{ \langle M \rangle \mid M \text{ TM}, w \in L(M) \implies ww \in L(M)\}$. I've been asked to decide whether this language is in R/RE/CO-RE. I've proved that the language doesn't belong to R and RE using Rice theorem, but I can't find a formal proof for CO-RE. Any suggesti...
Hi need help to proof: For each A,B problems , if A ≤p B , and B ∈ NP then A ∈ NP Thanks.
(sorry beforehand I know putting scanned diagrams may seem not-so-professional but this problem is sticking for long and its interesting too) The language corresponding to given regex seems to accepts all strings of 1's with length in multiple of 2 or 3 (i.e.4,6,8,9,10,12,...) I prepared following NFA first: Figure 1 ...
The usual candidates for context free languages whose complement is also context free, but they are not regular are the Deterministic Context Free Languages ($DCFL$). For example, $L=\{a^nb^n\mid n\in\mathbb N\}$ is such language. Is there a language, $L\in CFL\setminus DCFL$ such that $\bar L\in CFL$? Since $DCFL$...
I've been searching on literature on approximation algorithms in the context of network-flow problems (optimization) to finish my bachelor degree. However, I have been looking in several well-known algorithm books but, I haven't yet found something. Most books don't go beyond Ford-Fulkerson and/or Edmond-Karp in respec...
Let L is a regular language then is L' = {x$_2$x$_1$| x$_1$x$_2$ ∈ L} regular? Thus x$_1$x$_2$ is essentially concatenation of two strings, but can reverse concatenation of same two strings yield regular language?
I am trying to speed up one of my application, one of the places where I can speed up is in my test if a string contains an array of strings. example: I have the matches "dog", "cat" "apple" and the string "The dog chases the cat". In this example would I like an algorithm that returns "dog" and "cat". I do not care, h...
A friend of mine actually asked me a very interesting computer science related question, and I have been stuck on it for a long time. The problem is: you have to travel $1000$ km. The only gas station is at the starting point. Your maximum fuel tank capacity is just enough for $50$ km traveling, you are allowed to "bur...
Sometimes I see NVIDIA simulations with an additional information abbreviated "fps". I've figured out that fps stands for frames per second, but isn't it enough to support 25 fps? Why do I need 60fps ? Most of the movies use 25 fps and not 60. So does anybody know a reason for that ?
There are 120 students at University College taking the introductory Java programming class. The students have access to the following computers: 80 students have access to a PC running Microsoft's Windows operating system. 40 students have access to a computer running the Apple operating system. 10 students have acces...
I have a max PriorityQueue designed using a heap. A function removemax() that removes and returns the element with the largest priority in $\Theta(\log n)$ and a function insert in $\Theta(\log n)$ for the worst cases (both of them work with the heap by reorganizing it whenever necessary in order to retain the heap pr...
I'm currently trying trouble to set up the recursive expression for the Karatsuba multiplication of two integers with $n$ and $m$ bits (both having a different number of bits). Usually, the recursion for two $n$ bit integers for Karatsuba multiplication would be: $T_{n} = \begin{cases} 3T_{n/2} + cn &\mbox{if } n > 1 \...
I am reading Operating System Concepts by Silberchatz, Galvin, Gagne and they write that a directory can be implemented using a linear list. [pg 470, 8th ed] However, I visualize directories as a rather hierarchical data structure which can be implemented using a B-tree. Also, when they say that the nodes contain a poi...
I'm trying to figure out the complexity of the following algorithm. for(int i=1; i <= N; i++) for(int j=1; j <= i; j++) for(int k=1; k <= i*sqrt(j); k++) I'm trying to figure it out using a method similar to rizwanhudda's solution in this similar question. I'm having some trouble though because th...
In poset maximal number is defined as: An element 'a' belongs to 'A 'is called a maximal number if there is no element 'c' in 'A' such that a is less than c. but it again says that there can be more than one maximal number. How can it be possible?
From following languages which one is regular and why others are not?And what is the regular expression for regular one. $L_1= \{wxwy | x,y,w \in (a+b)^+\}$ $L_2 = \{xwyw | x,y,w \in (a+b)^+\}$ $L_3 = \{wxyw | x,y,w \in (a+b)^+\}$ Also where can I find these type of problems?
The paper I'm looking at: Fast approximate string matching with finite automata (2009) Explanation of the algorithm (from my understanding anyway): A word is inputted into the automaton and from each state, a number of possible actions can be taken depending on the current symbol/character being looked at at position $...
Given two increasing functions $f$ and $g$ with values in the natural numbers, is it always the case that either $f\in O(g)$ or $g\in O(f)$. If the statement is true, then can anyone provide a counterexample for when any of the two conditions in bold are relaxed. If the statement is false, can someone provide a counter...
I am studying about Particle Swarm Optimization (PSO) and I was wondering what the user-defined constants in the update equations are for. First update equations: $v(t) = w*v(t) + c_1*rand*(x_{best} - x) + c_2*rand*(g_{best} - x)$ $w$ is known as the weight/inertial constant. Usually values here are in the interval $...
This question is about the time impact of the length (i.e. number of variables) of the constraints in an Integer Linear Programming formulation. Most people try to reach the minimum number of constraints/variables, but I couldn't find anything that considers the size of the constraints. In more concrete terms, I have s...
The LOOK algorithm (wiki) is the same as the SCAN algorithm in that it also honors requests on both sweep direction of the disk head, however, this algorithm "Looks" ahead to see if there are any requests pending in the direction of head movement. If no requests are pending in the direction of head movement, then the d...
is it possible to minimize pushdown automata? If no, why? Is it because for minimization the equivalence classes need to have a finite index and we cannot guarantee that for CFG?
Looking for insight into decisions around garbage collected language design. Perhaps a language expert could enlighten me? I come from a C++ background, so this area is baffling to me. It seems nearly all modern garbage collected languages with OOPy object support like Ruby, Javascript/ES6/ES7, Actionscript, Lua, etc. ...
In the picture below, I'm trying to figure out what exactly this NFA is accepting. What's confusing me is the $\epsilon$ jump at $q_0$. If a $0$ is entered, does the system move to both $q_0$ and $q_1$ (the accept state)? If a $1$ is entered, does the system move to both $q_1$ and $q_2$? Does the system only move...
I am doing a homework assignment and I've been stuck on this question for a long time now. The question says to prove this equation is a tautology without using a truth table. I assume we have to use equivalences to do this but I can't figure out how to do this. The equation is: [⌐p AND (p OR q)] → q Please help me!! ...
Dynamic perfect hash tables and cuckoo hash tables are two different data structures that support worst-case O(1) lookups and expected O(1)-time insertions and deletions. Both require O(n) auxiliary space and access to families of hash functions for their operations. I think that both of these data structures are beaut...
The crux of the difference between analog and digital computing is the number of bits of precision available, right? Now, I know that in the Turing machine, numbers can be stored with any degree of precision since the storage medium is an infinite tape. But in the real world, physical quantities such as energy or posit...
I'm preparing for the exams and this question came up - Consider a machine with $64MB$ physical memory and a $32$-bit virtual address space. If the page size is $4KB$, what is the approximate size of the page table? (A) 16MB (B) 8MB (C) 2MB (D) 24MB The way I've solved it - Physical Address Space = $64MB = 2^...
Input: A set $U= \{w_1, w_2, \ldots, w_n\}$, subsets $S_1, S_2, \ldots, S_m$ of $U$ and integer $k$. Question: Is there a subset with $k$ elements of $U$ which intersects of every $S_i$? Which reduction should i use to prove that this is np-complete ? Hint: Reduction from vertex cover.
I'm trying to understand the difference between LTL and CTL. In particular, i'm trying to understand when a model (a transition system eg. Kripke structure) satisfy a formula. This is my point of view: a model satisfy an LTL formula if an only if all its path starting from its initial state satisfy the formula a mode...
Consider the gate used in Simon's Algorithm. It operates on a control register and target register, changing state like: $|\textbf{x}\rangle|\textbf{y}\rangle->|\textbf{x}\rangle|\textbf{y}\oplus f(x)\rangle$. As I am working on an universal way to simulate operations on qubits, I've been using a matrix representation ...
I understand the normal definitions of the P/poly class, but I'm curious how the name came about. The syntax of the name looks like a quotient group, but I can't think of any way to define P/poly that would use a quotient. Is 'A/B' defined to be something like "the class of problems that would be solvable as efficientl...
I've been reading on distributed systems for processing on large graphs. The most prominent examples include Pregel (developed by Google) and Apache Giraph. Most of these systems argue their existence that they are for "big data" processing, i.e., they can handle graphs that are too big to fit into a single machine. W...
I have $P$ vectors of size $N$ with elements in $\{0,1\}$. Each vector $v$ has a value $\alpha_v$. I would like to Fill a square matrix $M$ of size $N\times N$ in the following way: $$\forall i,j \in \{1,2,...,N\}~ M_{i,j} = \sum_{\text{vectors}~v : v_i v_j =1} \alpha_v$$ Is it possible to fill the matrix $M$ in time...
I have 2 different but similar problems, one belongs to NP and one to L and I don't understand why. First problem: Input: an undirected graph G with n^2 vertices. Question: Is there exist in G a matching of size n AND an independent set of size n? Second problem: Input: an undirected graph G with n^2 vertices. Question...
In the context of clock synchronization among nodes of a network, what is clock offset and what is clock skew? Are these terms synonymous or is there a difference between them?
Question: ($B$ and $C$ are languages) $B$ is finite,$C$ isn't regular: Prove/Disprove: $C\cup B$ isn't regular. Thoughts: My intuition says this is true, but I need an idea to prove it. Since I don't know if $C$ as a CFG or RE language I don't know what kind of machine I can build for it.
Could someone show me ( or give me a valuable hint) how to reduce k-Clique problem to SAT-3CNF problem ? I am able to prove reduction from SAT-3CNF to k-Clique, but in the opposite direction it's hard.
In a class on Turing machines, the lecturer said that the language for a machine with 100 states is both recognizable and decidable. How can we infer this just from the number of states in the machine?
I am a mathematician, and I am completely lay in the technical aspects of computer networks and computer architecture. I would like to know if there is any computer network or architecture, protocol, or whatever, which combines unidirectional links with bi-directional ones. If so, what are the practical advantages of t...