instruction
stringlengths
35
29.1k
I have a question related to a paper of Chen, Lovasz and Pak [1]. The paper concerns the construction of the Markov chain with optimal mixing time on an arbitrary graph. They prove the optimal bound (conductance bound) can be reached by "lifting" the Markov chain, this comes down to extending the local node features wi...
If the universe were governed by predeterminism (i.e. some deity decided in advance how everything, ever, would play out), would the notion of non-deterministic automata make sense? Or would it not, but we wouldn't know it?
Let $A$ and $B$ be two languages. If $A \le_{m} B$ ( reducible by mapping ) then I know that if $B$ is decidable so is $A$ and if $B$ is recognizable so is $A$. And if $A \le_{T} B$, then if $B$ is decidable so is $A$. But I can't say the same thing for recognizability which I can see by example when $A \equiv L_{\p...
Why a production rule $S\to ε$ has been included in the definition of regular grammar? In that case, why it is restricted for $S$ (start symbol) to be present on right hand side of any production rule?
I need to apply the unification function to unify the following expression: foo(X,X,Y) and foo(Z,p(Z),w) So far, I've determined that I must substitute 'w's for occurances of 'Y', making foo(X,X,w) and foo(Z,p(Z),w) Then, I can saw X/Z (replaces 'Z' with 'X'), making: foo(X,X,w) and foo(X,p(X),w) Now all that's left is...
I was reading about external merge sort from the wikipedia article link, according to it: External sorting is required when the data being sorted do not fit into the main memory of a computing device (usually RAM) and instead they must reside in the slower external memory (usually a hard drive). External sorting...
Given a set $A$ of $n$ positive integers $a_1, a_2,\ldots, a_n$ and another positive integer $M$, I'm going to find a subset of numbers of $A$ whose sum is closest to $M$. In other words, I'm trying to find a subset $A′$ of $A$ such that the absolute value $|M - \sum_{a∈A′}a|$ is minimized. I only need to return the su...
I was tasked with constructing an integer programming formulation for an NP-hard problem, and then with specifying its LP relaxation and the resulting approximation factor. The problem is that, while my integer programming formulation is correct and clever (I like to think), it seams that its relaxation is completely u...
One time I saw a theorem that says something like any language can be partitioned into regular languages, but I can't remember exactly what the theorem is. Could somebody tell me, is this true? What is this theorem?
Many hash table implementations found in programming languages (such as Java's HashMap or Python's dict) dynamically increase the size of the hash table once the number of items reaches a certain threshold. In these cases, resizing the hash table means allocating a new, larger memory area, re-hashing all the items and ...
I have the relations $E_1$ and $E_2$. A reflexive, symmetric and transitive property shows that two relations are equivalent to each other. I need to prove if this is true for the following a) $E_1 ∩ E_2$ b) $E_1 ∪ E_2$ c) $E_1 ∘ E_2$ I found out that a) is true, but I am not sure about it. This is my proof for transit...
I have asked this on the "computer science chat" ( vzn tried to explain me ) . I even watched a couple a videos to understand the theorem but still cannot convince myself. The following is the way the Godel's Incompleteness theorem is proved in Sipsers, where it is shown not all true statements are provable: Notations...
In System F, we distinguish between types and terms. Types are defined by the following BNF: \begin{align} A, B ::=&~\alpha && \text{(type variable)} \\ &|~A \rightarrow B && \text{(function type)} \\ &|~\forall \alpha. B && \text{(universal quantification)} \end{align} Terms are defined by the following ...
I'm trying to count the number of divisors an integer $n$ has. The simple way to do this is to just enumerate all integers from 1 to $\sqrt{n}$, and count how many integers evenly divide $n$. For example, 28 has six divisors (1, 2, 4, 7, 14, 28). 15 has four (1, 3, 5, 15). I want to, say, figure out how many divisors ...
I apologize if this question has been asked before, but I was not able to find a duplicate. I have just finished reading The Annotated Turing and I am a bit confused. From what I understand, the Entscheidungsproblem is whether or not an algorithm exists that can determine whether a statement is provable. In the paper,...
I'm trying to build a machine learning classifier that can detect which object is in an image. I have a labled training set of images and am currently in the image processing phase. Each of these images has one of the objects. However, almost all images have these objects embedded in a very common background color amon...
I just read some pages in Sipser's book Introduction to Theory of Computation about Post Correspondence Problem, and I'm thinking that PCP is actually in NP. The certifier is: for an input configuration of pile $$(t_1/b_1, t_2/b_2,...t_n/b_n)$$ concatenating $t_1, t_2,...,t_n$ as a string $t$ and concatenating $b_1, b...
I've met in a book the following algorithm that computes the exponential: Input: $t, n$ ($n$ is the number of steps) Output: $E_n$ $\begin{array}{l} \mbox{define $t_0 = 0$ ; $E_0 = 1$} \\ \mbox{build two sequences $t_i$ and $E_i$ as follows} \\ t_{n+1} = t_n + ln(1 + d_n 2^{-n}) \\ E_{n+1} = E_n(1 + d_n 2^{-n}) \\ d_n ...
As I understand regular languages can be closed under concatenation, so can I concatenate the set of all regular expressions to classify them as regular?
I am looking for (practically) efficient algorithms to enumerate all minimum feedback arc sets of a directed graph. What algorithms should I look at, with practical implementations in mind? Currently I am using this algorithm to find all minimal solutions, then pick out the smallest ones: B Schwikowski & E Speckenmey...
Is the language $L = \{w w^r w w^r \mid w \in \Sigma^*\}$ context-free? ($w^r$ is the reversal of $w$.) I heard that by using the pumping lemma, we can only prove that a language is not context-free, but can't prove that a language is context-free. I tried the pumping lemma and we can produce the language by repeating ...
As I understand it the nature of data access (sequential or random) will determine the optimal algorithm/data structure to use when manipulating data. What other assumptions need to be checked before selecting an algorithm or data structure for the manipulation of data?
Following this question : Two definitions of balanced binary trees I am having a hard time making sense of the proofs provided and I'm looking for an example of a simple binary tree that is height-balanced but not weight-balanced. This would mean that we could clearly see the height differences of two sub-trees being m...
It is given array $2$-sorted array $a[1..n]$. $2$-sorted denotes that $a[1]\le a[3]\le...\le$ and $a[2]\le a[4]\le ..\le$ Obviously we may split array into two sorted arrays and then merge two arrays - it requires $n-2$ comparisons. However I think about lower bound. I believe that $n-2$ is lower bound number of co...
I was reading about Benes Network construction in this book. Their construction is easy for a number of inputs and outputs that is an exponent of two. However it seems to me that for a number of i/o that falls between $2^{n}$ and $2^{(n+1)}$ one has to construct a network with $2^{(n+1)}$ ports and leave many unattach...
Lookup tables are one way to map x values to f(x) values. This lets you do computation in advance, and can give a low cost (performance wise) answer to complex calculations when they are needed in performance intensive applications. Another method to map x values to f(x) values is to use the chinese remainder theorem ...
Is $\left ( 0+1 \right )^{\ast }-\left \{ www : w \in \left \{ 0,1 \right \}^{\ast } \right \}$ context-free? If it is what is a grammar generating it?
I am working on my midterm sample problems and got stuck on this one. Is this language undecidable? $\qquad L = \{\langle G_1, G_2 \rangle: G_1, G_2 \text{ are CFG and have strings that can be parsed in both grammars }\}$ Is this one the same as $L' = \{\langle G_1, G_2 \rangle: L(G_1) \cap L(G_2) \ne \emptyset\}$? M...
This is a bit of a long shot but i'm currently working on a research project in psychology/public health. One of the aims of this project is to develop a typology/"conceptual map" of how things in the proximal environment (i.e. close to an individual or inside rooms) can be changed in order to alter behaviour (the proj...
Given two languages $L_1$ and $L_2$, give a language $L'$ that both $L_1$ and $L_2$ reduce to. I'm not quite how to do this. I know the solution is fairly simple. I know I can somehow represent $L'$ in terms of $L_1$ and $L_2$. Then I need to create a computable function that maps $L_1$ to $L'$ and either use the same ...
Problem Statement : You are situated in an N dimensional grid at position (x1,x2,...,xN). The dimensions of the grid are (D1,D2,...DN). In one step, you can walk one step ahead or behind in any one of the N dimensions. (So there are always 2×N possible different moves). In how many ways can you take M steps such that y...
I need to find a Hamiltonian cycle in a directed graph using propositional logic, and to solve it by sat solver. So after I couldn't find a working solution, I found a paper that describes how to construct a CNF formula to find an Hamiltonian path: Xi,j - node j is in position i in the path List of constraints: Each n...
Model: Consider an undirected, weighted, complete graph $G = (V, E = V \times V, w: E \to \mathbb{N}^{+}, r: V \to \mathbb{N}^{+}, d: V \to \mathbb{N}^{+})$. $s \in V$ is a source vertex. $G$ describes a transportation network, where $V$ represents places, $E$ represents roads connecting them, $w(e)$ represents the ti...
Consider the following Python function: def count_chars(list_of_strings): chars = 0 for s in list_of_strings: for c in s: # intentionally avoiding len() here for the sake of example chars += 1; return chars Clearly this is a linear operation, since we iterate over every element/character once. But I'v...
So have been reading up on data buses, address buses and control buses and I understand what they do, but am confused about where they can physically be found. Some books/sites I have found state that they are inside of the CPU, some state that they transmit data all over the computer. E.g. the control bus can send sig...
I am interested in the approximation version of the Subset Sum problem with negative numbers. Wikipedia says there is an FPTAS algorithm for SS. That Wikipedia page states: If all numbers are non-negative, the approximate subset sum is solvable in time polynomial in N and 1/c. Similarly, in the CLRS version of the al...
I am looking for a term here. A while ago, i was told about a network in which all the computers are connected in parallel, and when a computer is idle, the central server sends heavy cpu usage tasks to that idle computer. This is often used in pharmaceutical companies working on protein structure configurations, or a...
everywhere I've searched it says that the minimal period of an LFSR given by a characteristic polynomial $c(x)$ is the least number $r \in \mathbb{N}$ that: $$c(x)|(x^r-1)$$ but how do I prove it's correctness? I've tried o prove it like that: given $c(x)$ the characteristic polynomial and $h(x)$ theinitial state polyn...
I'm currently working on a reduction from $A_{TM}$ to another language, and have been reading through some example proofs. I've come across the situation where, for example, we have $L = \{ \langle M,w \rangle | \text{ ...etc} \}$, where obviously this would normally stand for $M$ being a TM and $w$ being a string. How...
I'm having trouble in a certain problem. I have to write a TM that gets as an input strings $\#x\#y$ such that $x,y \in \{0,1\}^*$, and writes to the tape the output $z\#x\#y$ where $z = x+y$, all in binary base 2. The addition, and knowing where to place it is rather hard. Any tips on getting started?
I've been learning neural networks and some back propagation stuff, and I heard about google's Tensorflow and how it could learn things like how to carry on conversations. It got me thinking about how someone could give a computer data so that it could learn how to do that. So I was trying to figure out how you could t...
In this problem, $w_{2i}$ is the $2i$th string in the lexicographic order of binary strings and $M_i$ is the TM whose binary code is $w_i$. We are given the diagonalization language $A_D=\{w_i \mid w_i \notin L(M_i)\}$. We know $A_D$ is not Turing Recognizable. Basically, $w_i$ is the $i$th string in the following lexi...
Given a set of $n$ intervals on a line, there is a $O(n \log n)$ algorithm to find intervals which are contained in other intervals (e.g., Manber, "Using induction to design algorithms", 1988). Is there a $O(n \log n)$ algorithm for axis-aligned rectangles in higher dimensions? I did some search on the internet, and t...
For a language $L$, define: $$ NE(L) = \{x \in L : x \text{ is not the proper prefix of any string in } L\} $$ I'm trying to show context-free languages are not closed under this operation. I've been struggling for a long time now trying to find a counterexample, that is, a language $L$ such that $L$ is context-free bu...
I am looking to implement D-S Theory in my (computer science) research, I'll be using it to determine the probability that a triggered sensor event is a true positive. How would you calculate an initial belief value without having the ability to perform data mining on a dataset (a cold start)? One solution that has be...
Let be $$F=A\land (\neg A\lor B)\land(A\lor \neg C)\land(\neg A\lor\neg B\lor D)\land(\neg A\lor\neg B\lor\neg C)$$ a formula. Is $F$ satisfiable? Well, firstly, I've put $F$ into another form: $$F\equiv (1\to A)\land(A\to B)\land(C\to A)\land(A\land B\to D)\land(A\land B\land C\to 0).$$ Then, I've started with HORNSAT...
Self Types are an extension of the Calculus of Constructions [1] that allow the language to express algebraic datatypes encoded through the Scott Encoding. The Scott Encoding provides one the ability to pattern-match in O(1), which is one of the main motivators for the inclusion of inductive definitions on CC. Yet, Sel...
I have been reading Computational Complexity A Modern Approach book and this proof wasn't given in the book. Please give a semi-detailed proof of this. I have found a paper which has this proof(by Chandra, Kozen et al.) but found it too hard to understand.
I need to know whether hash table size, $S$ has any impact on distribution of a value in hash table. At the moment I'm using SHA512 and I can tolerate up to 50 elements in any bucket, and I have $10^6$ elements; I set hash table length to $S=50000$. This is far more larger than what is suggested in the literature [1]....
In my lecture notes I we were given two languages and were shown that each of the two languages were not regular. The second was the complement of the first language. To show the second was not regular, he wrote that it follows from the fact that the second language was the complement of the first, which we had already...
I have some finite language L, which is regular. I want to find a finite automaton (DFA/NFA) that for every word w in L, it accepts any word with the same length but only with 1 char diffrence. I thought about maybe accept DFA for L, because it a regular language and think about an NFA solution, but my problem is those...
I want to ask the dimension change in different convolution and max-pooling layer. I am referring to the example in TensorFlow tutorial: http://tensorflow.org/tutorials/mnist/pros/index.html#deep-mnist-for-experts The original image is a 28x28x1 The first convolutional layer: apply convolution to a 5x5 patch with 32 ...
Preface: It's been a long time since I've been in school, and my terminology is probably all wrong. Apologies... Summary: I have a data structure with probability ranges assigned to the elements, and I want to "roll the dice" and get the element at that spot. I'm wondering if there's a (good) way to do this in O(1) tim...
The natural grammar for dangling "else" is ambiguous. But there exists an unambiguous version of the grammar that links the "else" to last uncompleted "if" statement. Is this version also deterministic? Is this language deterministic? Natural grammar (ambiguous): $$ S \rightarrow if~expr~S | if~expr~S~else~S | cmd $$ U...
Does there exist a maximal set of Turing machines $S$ over the alphabet $\{0,1\}$ such that any $A \in S$ halts on input the description of any $B \in S$? Take S to be the set of deciders. Then S satisfies the property, but is not maximal, because for example we can take: The set of TMs which are not equal to 0 and wh...
What is the definition of an "orthogonal greedy algorithm"? What is the definition of a "relaxed greedy algorithms"? Can you give an example to illustrate how these notions differ from ordinary greedy algorithms? Wikipedia's article on greedy algorithms says: There are a few variations to the greedy algorithm: Pure g...
I am trying to know whether the following problem is NP-hard: Input: A positive number $k$ and $N$ pairs of numbers. Each pair $i$, contains the positive numbers $a_i$ and $b_i$. The problem is to select a subset of numbers $S$ among the set $\{a_1,b_1,a_2,b_2,..., a_N, b_N\}$ such that it maximizes the sum of the valu...
Why is pure interpretation more common for scripting languages compared to programming languages? I mean, why are programs written in a scripting language not converted to machine language and then executed? From what I have read, one of the reasons is speed; for scripting purposes speed is not so important and since ...
This is question raised by my teacher in the class room. I don't have enough knowledge about phases of compiler and macro expansion. Could someone help me in finding out proper solution to this
We learning know about ε-moves at $\varepsilon NFA$ and I'm little bit confuse... If we have, for example, this $\varepsilon NFA$: and we have the word "$a$" - can we end the run at $s$? Or the running will be finish at $q$? In other words what I'm tring to ask is this: When we have an $\varepsilon$ - we first of all...
I need to prove the following statement using induction on the number of nodes in the tree: The sum of heights of a complete binary tree is $\theta(n)$. Note: I've tried proving this using mathematical sums. I did manage to show that the sum of heights (lets call it $sum(n)$) is in fact $sum(n)≤c_1n$ for some $c_1$. Bu...
Suppose you have a matrix A (9x3) of Real numbers and want to sort in columnwise. In this case we can use Leighton ColumnSort algorithms to achieve this. But question is, how can I sort 3 dimensional (parallelepiped) of real number using the same modified algorithm? Algorithm for 2D matrix and My idea for 3D parallelep...
I mean why should we use such epic buzzword when you can say: "cache your results!".
I need to build a DFA from $\varepsilon$NFA, so first of all I assume that I need to convert the $\varepsilon$NFA to NFA and then to DFA (because I know the method of converting from NFA to DFA, and we learn how to remove $\varepsilon$'s from $\varepsilon$NFA and make it NFA. But the I'm still stuck at some cases.... F...
So, untyped lambda calculus has the following formal grammar for its terms: $$e::= x \mid \lambda x . e \mid e_1 e_2$$ Usually this is presented in some ML-esque language as (using de Bruijn indices) data term = variable Nat | lambda term | apply term term My question is: apply (variable Nat) term is syntactically val...
Assume P != NP. Then there are many examples of problems in NP that are known not to be NP-complete, like 2-SAT, and many that are conjectured not to be NP-complete, like factorization. However, are there any problems that are widely conjectured but not known to be NP-complete?
Say we have a particular decision problem and that we have an alphabet and an encoding scheme, which gives us a language L that we say is not recursive (i.e. we do not have a Turing Machine that can decide (YES or NO) the problem). Is it possible to use a different encoding scheme to make the problem solvable? I have ...
According to Cormen et al.'s Introduction to Algorithms chapter 21 on Fibonacci heaps (3rd edition), the FIB-HEAP-LINK($H$, $y$, $x$) clears mark of $y$ which will in the end be the child on the resulting merge. I just don't get it, why should we bother clearing this mark? In particular: What happens if we leave their...
I was trying to understand why the equation $y_i = \left( \frac{n}{w} \right) + (i \pmod w) $ describes the step property in a balancing network? First, recall $x_i$ to be the number of tokens a network gets as input and similarly $y_i$ to be the number of output tokens. Recall that a balancing network is just a networ...
I have often heard people mention off-hand that the class $\mathsf{P}$ is "machine-independent", or "independent of machine model", or "invariant under change of machine model" - something to do with subroutines or composition or something. My question is: What precisely does that mean? or, what precisely does it mean ...
One of the steps in Binary Index Tree algorithm is to find a node's parent which is done by un-setting the rightmost SET bit. For example: if a node has index 1010 than it's parent is 1000. To apply such transformation the following method is applied: 1) Find 2's complement of the index. 2) AND the result of 1 with ind...
I am working in image segmentation with super pixels. My data is a large matrix describing various attributes of each stick of pixels (such as height, width and disparity). The data comes from an image taken with a stereo camera so for each stixel I can get a respective point in 3D. From these points I have built a gra...
I'm trying to figure out the time complexity of this implementation of classic N-queens problem on geeksforgeeks. The goal is to find just one such non-attacking solution(as opposed to finding all of them). The relevant code is briefed below. bool isSafe(int board[N][N], int row, int col) { int i, j; /* Check ...
Let's say I have a ring with four nodes $n=\{0;1;2;3\}$ and three possible states $k=\{0;1;2\}$. A transient failure happens and the system ends up in an illegal state. I know from the restriction ($k \geq n$) that there should be an execution that makes the system stay in its illegal state indefinitely, but for all th...
I'm applying for a doctoral training in Cyber Security, although I come from a maths background. I've been told that my background meets the entry criteria, although for my application I would like to be able to say that I've looked into Cyber Security it at least some detail. Given that I will have very little time to...
I'm having trouble coming up with an invariant for proving partial correctness of this function. def f(A): # Pre: A is a list of integers # Post: Returns true if and only if there is an even number of positive # numbers in A even = True i = 0 while i < A.length: if A[i] > 0: ...
What is the current best upper bound known on deterministic decision tree complexity of a Boolean function in terms of its polynomial degree? Also, what is the current widest separation known between these two measures?
Consider a directed graph. Each node in this graph has an integer label. We want to count the number of special paths between source and sink. Let's define a variable named value. Every path starts with value = label[source]. When we move from node A to B value changes like this: value = lcm( label[B], value ) where lc...
Hello I have an exercise for homework and I was hopping to get some hints in order to solve it. num-> 11 | 10 num' 01 | num 0 | num num num'-> 00 num' | 1 num' | ε I need to prove that my grammar produces only strings that is multiply of 3. What i know is: 11 is 3 so no problem there adding 0 to the end of the num i...
I'm working on solving the question answered at this page but with different values at the table, my alphabet is {a,b,c} Words that have the same right- and left-associative product Currently I'm in the stage where I have drawn the DFA of the multiplication table, found its reverse which was an NFA. Here is the NFA I ...
In computer science papers, I see about the term 'fooling' a function. What does it mean to fool a function against a particular complexity class? Why is it important?
How can I prove that if $T(x)$ is a polynomial of degree $n$ then $T(x) = \Theta(x^n)$.
Is Co-NP in PSPACE? I think it should obviously be, but I just wanted to make sure. I can find that NP is in PSPACE in Internet, but not on Co-NP.
Our professor gave us the following algorithm that's supposed to solve the critical section problem. I'm guessing the code is just pseudocode so I'm not trying to focus on the strange syntax and just trying to understand what it does. Main begin process_number=1; parbegin process1; process2; parend...
"Packet arrivals are not Poisson .... but some events are, such as web requests and new flow arrivals" I know since the network traffic is very bursty, they are not Poisson. But I am unable to understand what "new flow arrivals" mean here and how web requests and new flow arrivals can be considered as Poisson processes...
This question related to attack on the LMAP++ the result of extracting ID from the messages. In Passive Attack on RFID LMAP++ Authentication Protocolm, page 188 ID = C ⊕ IDS ⊕ A ⊕ B While in this paper Security Analysis of LMAP++, an RFID Authentication Protocol ID = C ⊕ IDS ⊕ A ⊕ B ⊕ IDs ⊕ IDs ⊕ IDs where(IDs = PID)...
So we just learned about self-reducibility in class. My professor and our textbook would not commit to saying that all problems in NP are self-reducible, but there didn't seem to be any examples of problems that are not. I was wondering if there are any examples, or if it's just a situation where you can't prove a ne...
How to determine the minimum pumping length of union of two languages? How do I proceed after determining the individual pumping lengths? 0*1+0+1* U 10*1 - Here the minimum pumping length of the first expression is 1 and of the second is 2. I am stuck here ! Now what do I do? 001 U 0*1* : The min PL of first exp...
Theorem: Unless $NP \subset DTIME (n^{O(\log \log n)})$, there is no $(1-o(1))\ln n$-approximation for set cover problem. I am a bit confused by this theorem. As we know, greedy algorithm is $(\ln n+1)$-approximation, does this mean greedy algorithm is almost the best algorithm for set cover problem? In the wiki set ...
The Elements of Programming Interviews book has a question on "computing x*y without arithmetical operators" (question 5.5). The solution is here: https://github.com/epibook/epibook.github.io/blob/master/solutions/cpp/MultiplyShiftAdd.cc I am confused about the Add() function in the solution. For example, if I want to ...
For example, how could I prove that the following language is deletion closed: {$a^k$$b^j$ : $j$, $k$ $\geqslant$ 0} The reason seems obvious to me, I just can't see a way to prove it.
Take the alphabet A={0,1} I need to build a regular expression for the language with less or equal substrings 011 than 110. I tried to figure out what would be the finite automata but I'm not to sure. I also tried to proof it isn't regular using Myhill-Nerode theorem but the problem is the language "readjusts" itself...
In K-Nearest Neighbor the value of k decides the accuracy of classification. What are the pros and cons of choosing smaller value for k and larger value for k?
To my knowledge, halting problem asks if there exists a program that decides whether a program being tested, given some input data (no matter what program it is, or what input data we give) will terminate or not. The answer to this problem is 'no'. In other words, there is no 'single' program that can verify it for all...
Does call-by-reference semantics for remote procedure call (RPC) have a real use case? Why does call-by-reference RPC exist? Is it useful for anything? Is there a scenario where call-by-value can't do the job? In a simple sentence: Do we need to have a (call by reference)-able RPC protocol? if yes, Why? Background:...
(At the very bottom of this, I will shortly describe the motivation for this question.) Assume we have a commutative monoid $(G,\circ)$, i.e. a set $G$ with a commutative binary operation $\circ$ that satisfies associativity and the existence of a neutral element. The task is as follows: given some $X \subseteq G$, fin...
Suppose for a graph $G=(V,E)$ and a spanning tree T of G, $\Delta(T)$ is the largest degree of a vertex in T, and let $\Delta^*$ be the smallest such quantity over all spanning trees of $G$. We have the following local search procedure which can changes spanning tree $T$ into a different spanning tree $T'$: We find an...
I know that x86 supports only 4GB of RAM, and that switching to x64 greatly increases the size of RAM you can use, but I don't understand why. Why is the maximum supported ram size related to whether the processor is 32-bit or 64-bit?
I am new to understanding Turing machines and I am trying to define a Turing machine that for the language $L = 0^{n}1^{n}0^{n}$. I am not quite sure how to give an implementation level description of Turing machine that decides L. This is what I have tried Define Turing machine M = On input string w 1. Scan the input ...
A couple homework problems that I've been working on, hoping I can get it done right. Can anyone confirm if my line of reasoning and regex is correct? L = { $w \in $ {$x, y$}* | $w$ contains a maximum one instance of $xx$ } My answer $$ ((y^*+x)^2)y^*$$ This ticks off $y, x, xx, yx, xy, yyy$, but won't allow more than...