instruction stringlengths 35 29.1k |
|---|
I got confused with the analysis of algorithms in average case. Following is the my perception regarding average case using sorting problem:
Suppose we have a 5 elements array to be sorted using Insertion sort.
Time complexity will depend upon the particular arrangements of
elements in the array. Usually, when alg... |
I am learning about Context Free Grammars and currently stuck on the following question.
Is the following language context-free? If not, then how can we prove it using Pumping Lemma?
$\qquad L = \{a^i b^j c^k \mid i,j,k \geq 0 \land i+j > k\}$.
After spending some time I have been able to generate the production rule... |
I understand the basics of networking(DNS,DHCP,IP,MAC, etc.).
I have installed a router and plugged my computer into the router.
On the other end of the router the cable goes somewhere to a switch(I think). And then to internet. But on the same network my neighbour is also connected. Now my neighbour and I tried to pin... |
I'm trying to understand the run-time analysis in the article [1].
The authors define the following notation: $g(n) = \hat O(f(n))$ if $g(n) = O(f(n)^{O(1)})$. In the run-time analysis of their algorithm, they find that
$$T(l) \leq \hat O(p\log n)10^{\log_{p/2} l} \equiv f(l,p)$$
where $n$ is the number of nodes in the... |
Why does the concatenation of $\emptyset$ with any language give $\emptyset$. I would like to know the intuitive explanation for it.
|
Assume that $L$ is a language, is there any established notation that means that $L$ is infinite or empty?
|
I want to write a Turing machine which checks for unary powers of 2 but without the use 0s, only accepting as input a series of 1s and dashes. I do not know of a sequence of states which would allow me to demonstrate this. I worked out 1 of the 2 I started with, which is make a palindrome checker but as for this I'm cl... |
I have been wondering, what are some ways to handle synchronisation and/or sequencing issues in distributed systems. For example, assume multiple homogeneous nodes listening on a stream of messages and updating a data store based on those messages. Let's say 2 updates for a particular record enter the queue, one at t1 ... |
How do I prove that the Perceptron bound for mistakes is tight? I need to prove that for any amount of given data points, the total amount of updates (mistakes) that the algorithm will make is $\frac{1}{\gamma ^2}$, where $\gamma$ is the margin. I know that I'll have to make it such that for a given $m$ number of data ... |
As I've learned, the Calculus of Constructions has only two binders - $\lambda$ and $\Pi$. Morte, for example, has $\forall$ as a mere alias of $\Pi$. Yet, on the paper Self Types for Dependently Typed Lambda Encodings, there are types such as:
$$\begin{gather}
\mathrm{Nat} := \forall X. (X \rightarrow X) \rightarrow... |
I read a theorem which states that:
If there exists a polynomial time approximation algorithm for solving the Maximum Clique problem (or the Maximum Independent Set problem) for any constant performance ratio r, then NP = P.
But I never understood the reasoning behind this!!
|
I am looking into coding a program that can Analyse an image and identify objects in that environment (incl their depth and contours/shape).
What is the term for this? Is there a term or area of expertise for this? 'Computer Visualisation' is too broad a term I believe. Maybe Computer Vision and Pattern Recognition (CV... |
I have been hearing the phrases quasipolynomial, superpolynomial and subexponential.
I think know what quasipolynomial and subexponential is. I believe these are functions respectively of form $n^{\log^c n}$ and $n^{n^{1/c}}$ for some $c>1$.
What does superpolynomial mean?
|
I am reading about planar graphs from this site.
It says:
The complete bipartite graph K3,3 is not planar, since every drawing of K3,3contains at least one crossing. why? because K3,3 has a cycle which must appear in any plane drawing.
I am not able to get what cycle which must appear in any plane drawing has to do w... |
Note: this is basically a more precise restatement of this question, which didn't get proper answers because it was vague.
Most two-player perfect information games can be represented as a finite directed graph, because although the games could theoretically go on forever, there are only finitely many possible states f... |
I am running a Baum-Welch HMM algorithm (in R). The sequence vector contains a series of observations which have been gathered from a dataset where the data has 17 states.
I can successfully run the HMM algorithm and it converges without any problems when I set pseudo count to 1e-09, below that the algorithm fails.
My ... |
I am reading the paper "Understanding Random SAT beyond the Clauses-to-Variables Ratio" and at beginning of the page 2 say
the hardest region corresponds exactly to a phase transition in a non-algorithm-specific theoretical property of the instance
I am a Spanish speaker. Can you help to understand what means "non... |
For example, for a product, we have a list of the number of products you buy and the corresponding price you pay with this number of products:
number = {1, 5, 8, 12}
price = {0.5, 2, 3, 3.6} (i.e. you pay 0.5 for 1 product, 2 for 5 products and so on)
Now I need to use a fixed number of dollars to buy as many number of... |
I heard Google creates indexes of pages. Even then, the number of indexes goes with time. Why wouldn't this slow down the search?
|
Disclaimer: I am a biologist, so sorry for (perhaps) basic question phrased in such crude terms.
I am not sure if I should ask this question here or on DS/SC, but CS
is the largest of three, so here goes. (After I posted, it occurred to me that Cross-Validated might be the better place for it, but alas).
Imagine ther... |
You have a square matrix of weights $W$ and a square matrix of distances $D$. You want to find a permutation $\sigma$ minimizing $$\sum_{i,j} W_{i,j} D_{\sigma(i), \sigma(j)}$$
Is there a known algorithm for that? Is the problem NP-complete? Is the optimal solution easily approximable?
|
Classify the language
$L = \{xx^Rw\ \big|\ (|x| \geq 0\ \wedge |w|\gt 0)\ where\ x,w\in\Sigma^*\}$
as one of:
Regular but not Context-Free
Context-Free but not Regular
Decidable but not Context-Free
Most generally, $\Sigma^*$ can be any regular language (say $(a+b)^*$).
My first thought is that it can't be r... |
I'm trying to prove that:
$L=\{w\in\{a,b,c\}^*\Big|\#_a(u)=\#_b(v),\ \ w=ucv,\ \ \ u,v\in\{a,b\}^*\}$ is irregular, so I'm trying to use the Pumping Lemma.
This is what I tried so far:
$w=a^ncb^n$, then $|w|\ge n$ and $w\in L$.
By, condition 1 and 2 (of the Lemma) we will get that: $w=xyz$ - such that: $x=a^r,\ y=a... |
Does having one larger L1 cache instead of L1 and L2 cache makes computation faster? Also will this make the CPU more expensive to make?
|
I came across the following question in my revision. I would like to know how to solve this and in general what are the techniques I can use to make an undecidable TM decidable by changing inputs?
Suppose that there is a Turing Machine T when, starting with an empty
tape, will generate an infinite sequence of progra... |
In Lovász writes [1] :
bipartite graph has a perfect matching, which is a special case of the clique problem
Why is bipartite perfect matching a special case of clique problem?
The Work of A.A. Razborov by L. Lovász (1990)
|
I am studying for my final exam in coding-theory class, and as textbook provides poorly written solution to the exercise question, I decided to ask the question here, hoping for more clarification.
Question:
If $C_1$, $C_2 \subseteq V$ are linear codes, with generator matrices $G_1$, $G_2$
and parity-check matrices... |
How large can the number of layers in a neural network be? Can there be maybe 1000 layers with, say, 1000 neurons in each layer?
I imagine the brain has hundreds of thousands of layers.
|
I need to create the combination of 3 elements from a array of given n elements, however every of those 3 el. has to be in "relationship" with each other. Here is an example I can describe my issue better on:
We've got elements 1, 2, 3, 4, 5 & 6. We know following relationships:
1 <--> 2
1 <--> 3
1 <--> 4
1 <--> 6
2 <... |
Is $\{ WxW^{\mathrm{R}} \mid W,x\in\{0,1\}^+\}$ a regular language? If so, why?
The notation $W^{\mathrm{R}}$ means the reverse string of $W$?
If we consider the best answer in this solution, if the language is regular, then its FA should reject all strings not in the language. However, a string such as 0110100 would a... |
I was wondering if the output of an algorithm like Dijkstra was always contained in the minimal spanning tree, however, a counter example to this claim are cyclic graphs like:
The shortest path $B \rightarrow C$ is in no way contained in the MST. Are there known conditions on the graph and the edge weights that ensure... |
In the question below, let TM be Turing machine, NTM be nondeterministic Turing machine and PTM be probabilistic Turing machine.
In his paper "Actor Model of Computation: Scalable Robust Information Systems" Carl Hewitt proposes following hypothesis:
All physically possible computation can be directly
implemented us... |
My data structures exam contains the following question:
Which of the statements below about red-black trees is true? (select one or more)
Every path from the root to a leaf has the same amount of red links.
A node never has two red links to his childs.
Using a red-black tree, you can always draw the associated 2-3 t... |
Hi I am not sure what is exception here and how it will be raised in following case
Sub $11,$2,$4
And $12,$2,$5
Or $13, $2,$6
Add $1,$2,$1
Slt $15,$6,$7
I was reading and encountered that
add $1,$2,$1
will cause an exception. Could you guys please help in understanding what is exception here.
|
Okay lets say i have two data structures . two phone data for example containing their Name and spec ( cpu , ram , display etc ) . I want to check if these two phones are the same or not . Their names can be different as their other features . For example we have a :
Name : Galaxy s3, CPU : Dual core , Display : 4 i... |
m doing a practise quiz which my professor has posted online, one of the questions im very confused about was this one.
Consider the clauses {x,y} , {~x,y} , {~y,z} , {~z,w} , {~w,~y}
is this true or false?
The implication graph contains the following bad loop:
x -> y -> z -> w -> ~y -> x
I said that this statemen... |
The prefix parity problem can be defined as follows. You are given a string $S$ of length $n$ and initially every character is $0$. Then you want to build a data structure that can support updates such as follows.
For a given $i$ change $S[i]$ to either $0$ or $1$
for a given $i$ find the parity of $S[1]+S[2]+...+S[i... |
I can't think of any definition for half-space that would involve some sort of quantity not being homogenous.
This term is used in the paper Robust Concepts and Random Projection in the following paragraphs:
The next problem we consider is learning an intersection of t half-spaces in Rn, i.e., the positive examples al... |
I am trying to understand a proof regarding the Busy Beaver problem that uses a proof by contradiction approach to show $\sum(n)$ is Turing-uncomputable:
Find $\sum(n) = max \{\sum(M) | M \in M(n) \}$
Where
$n$ : Number of states
$M(n)$: Set of Turing Machines with $n$ states and binary alphabet (0s and 1s)
$[k]$:... |
I am wondering about the complexity of the following problem: given a directed graph $G=(V,E)$ (which may have self-loops at some vertices) and a subset of the vertices $U \subset V$, does there exist a collection of vertex-disjoint cycles $C_1, C_2, \ldots$ such that each $u \in U$ belongs to some cycle $C_i$?
When $U... |
I was reading CLRS and is said:
If factoring large integers is easy, then breaking the RSA
cryptosystem is easy.
Which makes sense to me because with the knowledge of $p$ and $q$, it is easy to create the secret key which the knowledge of the public key. Though, it explains the converse statement, which I don't qui... |
As far as I know, presentations of the (general) halting problem (cmp. Wikipedia) are referring explicitly to an ennumeration of (applicable) programs. For the purpose of my questions let's consider specificly any programs for one-head, two-symbol Turing machines with sufficient memory to store the instructions prescri... |
Consider the set of transcendental numbers that are not compressible to a finite base-2 representation. How can I compute multiples (more generally, any algebraic computation) of one of these numbers, while maintaining an error less than $\epsilon$?
I'm curious because I know that I can approximately store a transcend... |
I can find quite a bit of literature on A* but very little on A.
What is the difference between the two search algorithms?
|
I conjecture that, in a Directed Acyclic Graph, $O(|V|) = O(|E|)$. Is this statement correct, can it be refined? This is probably standard material; is there a simple reference about this?
|
I am stucked at this problem:
Let $A=(\Sigma, Q, q_1, F, \delta)$ be a finite deterministic automaton (I.e. $\delta:Q\times\Sigma\to Q$) such that $Q=\{q_1,...,q_m\}$.
Let's define foreach $i,j\in\{1,...,m\}$, $k\in\{0,1,...,m\}$
(Note: the $\delta$ below is the extension of $\delta$ to $\Sigma^*$)
$L_{i,j}^k=\{w\in\... |
As nicely described in this article, backpropagation for multi-layer perceptrons defines the error term for a neuron in terms of the partial derivative of the weights.
It's traditional to represent the weights between neutrons in matrix form: $w_{ij}$ representing the weight between neuroma $i$ and $j$.
Since a weight ... |
I'm interested in the implementation of a Turing Machine (deterministic) in Lambda Calculus.
How should I proceed to do this?
I am not sure on how to start since I must represent the state and infinite tape somehow.
I hope my question makes sense.
Thanks in advance.
|
I was reading CLRS and it mentions that if $p$ is a prime of the form $4k+3$ and $a$ is a quadratic residue, then $a^{k+1}$ is a square root of $a$. One can also easily show that $a^{-k}$ is a square root of $a$ as well.
Can we use this to get a primality test, for numbers $N$ of the form $N=4k+3$?
After reviewing Mil... |
As stated here https://books.google.cz/books?id=dwpeNRgjK68C&pg=PA57&lpg=PA57&dq=uniform+halting+problem&source=bl&ots=qsbv_672W9&sig=NDcebhxrwcYdF-P15dor565l8Jc&hl=en&sa=X&ved=0ahUKEwj5mpG-zNTJAhUH6A4KHSB_DOI4ChDoAQgpMAI#v=onepage&q&f=false
Uniform halting problem is variation of Halting problem and asks the question ... |
How to construct a single-tape Turing Machine which writes the number 7 in UNARY number system, leaving the tape with a delimiter symbol followed by 7 1s?
So outout would be a tape contains #111111 and blank symbols afterward.
|
Can we show that following language is not context free using Push down automata approach?
L = {a^i b^i a^i : i>=1}
For every a we will Push 'A' onto stack, for every b we will pop 'A' out of stack so at the end we will have a's onto stack and the input word would be empty as string would be something like aabbaa
Doe... |
Use the pumping lemma to prove that the following language is not context-free.
$\qquad L = \{ w w w \mid w \in \{a,b\}^*\}$
I am studying for an exam and really trying to understand this question. For some reason the third w is throwing me off.
I first tried using the string $a^p b^p a^p b^p a^p b^p$ but didn't get ... |
You are given a tree $T=(V,E)$ along with a designated root node $r \in V$.The parent of any node $v \ne r$, denoted $p(v)$, is defined to be the node adjacent to $v$ in the path from $r$ to $v$. By convention, $p(r) = r$.
For $k > 1$, define $p^k(v) = p^{k−1}(p(v))$ and $p^1(v) = p(v)$ (so $p^k(v)$ is the $k$-th anc... |
I am comparing several different algorithms for navigation applications. Since I may possibly be publishing a paper comparing the performance of these algorithms with each other, I was wondering the best way to go about measuring performance.
As far as I know, there are two ways to compare performance: writing the code... |
I'm playing around with Coq and Software Foundations and is somehow very confused by something I took for granted since forever.
To prove
Theorem app_length_cons : forall (X:Type) (l1:list X) (x:X),
length (l1 ++ x :: l1) = S (length (l1 ++ l1)).
we can first prove
Theorem app_length_cons... |
The original problem statement is:
Given a sequence of numbers $A[1..n]$, find $k < n$ consecutive numbers such that the sum of these $k$ numbers is maximized where $k$ is a positive integer given together with the sequence. Specifically, we want the index $i$ such that $A[i+1..i+k]$ is the largest.
Design $O(n)$... |
First of all, I have just started studying computer science by myself and maybe I just need some clarification of what "polynomial time" means regarding the time complexity of an algorithm and references to study it well.
As I have understood it, whether integer factorization can be done in polynomial time is still an ... |
You are given $N$ $(1 \le N \le 10^6)$ positive integers $a_1, a_2, \ldots, a_N (1 \le a_i \le 10^6)$
and two positive integers $D$ $(1 \le D \le 10^6)$ and $M$ $(1 \le M \le 10^6)$
Find the longest contiguous subsequence such that
its sum $(a_i + a_{i+1} + \cdots + a_j)$ is divisible by $D$, and
$(a_i + a_{i+1} + \c... |
We know that the lower bound for comparison-based sorting algorithms is Ω(nlogn), where logn being the binary logarithm of n. But what about for the best-case scenario of the bubble sort, which takes O(n) time? Of course, n is faster than nlogn. Why is that?
However, I don't know if this bound only applies for the wors... |
According to me, maximal paths in a graph are those paths which cannot be included in any other larger paths. Could anyone please explain me this with some examples? Also what would happen if the graph happens to contain cycles?
|
I'm a bit confused as to wear exactly the dynamic link points to on the activation record. I understand that it points to the 'top' of the instance of the callers activation record but I am unsure of where the 'top' is.
Based on an example from my textbook:
It would appear to me that the 'top' of the calling function... |
I cannot quite feel the difference between two models.
The first one is read-only Turing machine which is basically the same as Turing machine with write protected input. See this question for example: Single-tape Turing Machines with write-protected input recognize only Regular Languages
It was said that it indeed rec... |
Consider this distance matrix of an asymmetric TSP instance:
$$
\begin{matrix}
& c_0 & c_1 & c_2\\
c_0 & 0 & 1 & 2\\
c_1 & 2 & 0 & 1\\
c_2 & 1 & 2 & 0
\end{matrix}
$$
One optimal tour (with a total distance of 3) is clearly: $$ c_0 \rightarrow c_1 \rightarrow c_2 \rightarrow c_0$$
Now we can reformulate this as an ILP.... |
My book says a language is in NP if it can polynomially verified if a string belongs to the language with a certificate. It puts no restrictions on what the certificate can be.
For instance, for SAT, the certificate could simply be be the assignment values. We just sub them in and see if it satisfies the expression.
Bu... |
I've been reading a number of quantum computation research papers that claim quantum cost's that do not add up.
For instance, in this paper - there is a claim that the MTSG gate is a quantum cost of 6. But to actually perform the computation, you need swap gates to get the stuff into the right order!
For instance, to ... |
How do we construct a matrix that takes into account whether the first qubit is set?
I am trying to construct the controlled-V matrix, but there is no quantum computational paper that describes it so I am looking at CNOT and wondering how the matrix for CNOT determines whether the first bit is set (to apply the NOT par... |
I was given an algorithm and I was asked to estimate how often it would be called if I was trying to calculate ${100 \choose 50}0,25^{50}0.75^{50}$, the Binomial distribution of $50$ elements chosen within $100$ elements with $0.25$ their probability to appear.
This is the method:
binomial1(int N, int k, double p) {
... |
I apologize if this question is out of the guidelines of this forum. If it is please let me know and I will abstain from requesting definitions and terminology.
Hello! I am currently writing a program to find the shortest path solution in a randomised Rubik's Cube. There is a certain language/search based methodology ... |
So I have a large number of commands, say 500,000, that I want to send and run on a server somewhere else, and get the answers back. All of these commands together takes a long time to execute - roughly 30 seconds. I could group all those commands together and send them off, have the server execute them all, and then g... |
Preparations
Consider a Turing machine with just one head and one tape (on which the head may move left, move right, or remain stationary), and with just two symbols ("blank" and "non-blank"). The programs for such a fairly simple Turing machine can be enumerated systematically (with only variations which seem quite in... |
I am doing a problem on fixed parameter tractability where in we are given a graph G=(V,E), and an integer k, and the k-clique edit problem asks whether there exists a set U i.e a subset of V such that G-U is a clique and I need to show that the k-clique edit problem is FPT.
Now as far as I could think of , this proble... |
I tried reading some articles and even watched Revolution OS, but was unable to come to a conclusion. Thought this would be a better place to get the answer.
From my gathered information: It is either IBM or Dell or something else.
Which commercial company was the earliest to adopt/port to Linux?
PS: If I am in the ... |
I have a bit of trouble understanding the definition of LL(k) grammars.
Here it's defined as:
for every pair of production rules
$A\rightarrow
α$
and
$A \rightarrow
β$
the following condition holds.
$\text{FIRST}_k$
(
$\text{α FOLLOW}_k$
(A)) $\cap$
$\text{FIRST}_k$
(
$\text{β FOLLOW}_k$
... |
I am curious as to what the maximum data transmission rates are to a given frequency.
Say you have a com channel with a frequency of 10 khz. How many bits/s would you be able to send?
Thanks!
|
I am interested in finding/writing a compiler that compiles a program written in a simple source language to a Turing machine (instead of assembly). Does anyone know if there is a good approach for writing such a compiler, or if there is a Turing machine compiler already out there (that would be ideal)? Of course it ... |
From what I've read, conditionals (like the cond statement in lisp) do not need to be primitive if normal order evaluation is used.
Using lambda calculus and normal order evaluation, how can you emulate if and cond statements?
(cond (<p1> <e1>)
(<p2> <e2>)
...
(<pn> <en>))
(if <predicate> <consequent... |
A random geometric graph (https://en.wikipedia.org/wiki/Random_geometric_graph) is constructed by choosing $n$ points in $\mathbb{R}^d$ at random according to some distribution, and setting $p_i \sim p_j$ if $\|p_i - p_j\|<r$, for some parameter $r$. Geometric graphs are of use in modelling real world networks.
For exa... |
Let's say there are $M$ strings that we are trying to create a perfect hash for such that we get as output of the hash $[0,M)$ with no collisions, when hashing those $M$ items.
I know that there are algorithms that can help you achieve this by finding salt values to use with a given hash function that will cause this t... |
For example to prove 3-Sat ≤p Independent Set do I just have to prove this theorem:
Theorem- Formula F is satisfiable IFF graph has an independent set.
If I have to prove it this way does this also mean that Independent Set ≤p 3-Sat as well since the theorem goes both ways?
|
In the following paragraph its talking about memory and it throws M into the L X W of memory notation and i'm confused on how 4M = 2^22. Thanks in advance
PARAGRAPH:
Memory is built from random access memory (RAM) chips. (We cover memory in detail in Chapter 6.) Memory is often referred to using the notation length X... |
Given an integer array $a$, create a function, $\text{int} \; \text{pairs}( \text{int} \;a[\;])$ that returns the number of equal element pairs in the array. For example, given the array $a=[2,5,1,2,5,1,1,6]$ the pairs are $(2,2), (1,1), (1,1), (1,1)$ and $(5,5)$, so the function should return $5$. The solution needs t... |
Is the language $S = \{\langle M \rangle \mid M \text{ is a Turing Machine and } L(M) = \{\langle M \rangle\}\,\}$ decidable, recognizable and/or co-recognizable?
I tried diagonalization but can only prove that $R = \{\langle M \rangle \mid M \text{ is a Turing Machine and } \langle M \rangle \notin L(M)\}$ is not reco... |
I am having trouble simplifying logical expressions to a much simpler form, can someone provide me some insight on how to approach the problem?
Let's assume i have the following expression: $ABCD + A\bar{B}CD$.
I am aware of the De Morgan's law, but not sure how to apply them in this case.
Thank you!
|
I am looking for data structures to store power-law (hence mostly sparse, but few dense too) graphs whose structure is continuously being modified, including new vertices being added and edge weights being modified.
Any pointers on potential data structures and their speed/space complexity will be greatly helpful!
Bac... |
There are of course $n \choose k$ monotone disjunctions which bounds the VC dimension at $\log_2 {n \choose k}$. I'm wondering if this is bound at $k \log_2 n$? (Possibly follows from combinatorial identities).
More generally I'm looking at the claim in An algorithmic theory of learning: Robust concepts and random proj... |
I found one older question asked about this but without any responses.
|
I'm working on a thing to randomly assign people into a shift. There's mostly 2 sets of people, "free" and "assigned".
Is shuffling the "free" set after assigning an employee meaningfully more random than just doing it before I start putting people into the "assigned" set? How can I come up with proof of this?
|
I was reviewing skip lists and the first step is to have two lists, the bottom one ($L_0$) of length n and the top one ($L_1$) of size k.
Usually one traverses the "express line" (i.e. the top lane with least elements) first until you need to use lower lanes. This leads in the simple case of 2 linked-lists to a run tim... |
What techniques exist for parsing sentences based on logical connectives and quantifiers? That is, for parsing sentences that are structured "around" logical connectives and quantifiers.
E.g.
[A] fish is [any] [member of] a paraphyletic [group of] organism[s] that [consist of] [all] gill- bearing aquatic craniate anim... |
How do you shuffle the bytes in a file (bytes for simplicity) on disk with a small, $O(\log n)$, amount of memory and preferably in-place?
If the file had size $2^m$, then we can first split the file into 2-byte chunks, shuffle them individually, then shuffle each set of neighboring 2 chunks and merge, doing this recur... |
I am currently trying to learn how the Delta Rule works in a neural network. So far I completely understand the concept of the Delta Rule, but the derivation doesn't make sense. My question is how is the Delta Rule derived and what is the explanation for the algebra.
Currently I am writing equations to try to understan... |
I have these two problems about regular expressions, can you help me?
1) Prove (ab)∗a = a(ba)∗.
I already proved this using induction and the definition of the kleene star * but I want to prove it now using NFAs, I drawed the NFAs for each but they don't seem to be equal from the picture and I'm stuck there.
2) Prove 0... |
I'm looking at the claim in An algorithmic theory of learning: Robust concepts and random projection by R. I. Arriaga and S. Vempala (2006):
Further, it is NP-hard to learn a disjunction of k variables as a disjunction of few than k log n variable.
I believe this is meant in the PAC model, I believe without membershi... |
This question is from Patterson and Hennessy's Computer Organization and Design.
Consider the following portions of two different programs running at the same time on four processors in a symmetric multicore processor (SMP). Assume that when this code is run, both $x$ and $y$ are 0.
Core 1: $x = 2$;
Core 2: $y = 2$;
... |
Could you give me an example of an AVL tree for which inserting an element at an arbitrary (i.e. every) position causes a rotation (double or single)?
I have tried to come up with an example, but I didn't manage to.
|
Can we use a Turing machine with infinite tape as a basis to prove anything disregarding the fact that such a thing can never exist?
Do we have the right to regard a machine (a construct) in the same way we regard a number or a set (an abstract)?
If yes could I similarly use a Turing angel with infinite scroll instead... |
Gradient descent can be used to minimize an objective function $\Phi:\mathbb{R}^d \to \mathbb{R}$, if we know how to evaluate $\Phi$ on any input of our choice.
However, my situation is a little different. I have an objective function $\Phi$ of the form
$$\Phi(x) = \Phi_1(x) + \Phi_2(x),$$
where I can evaluate $\Phi_1... |
I'm reading the paper "A Practical General Method for Constructing LR(k) Parsers" by David Pager, and it contains the following paragraph:
We will first of all briefly review the LR(1) parsing and parser construction algorithms. In this paper the symbols of a grammar are denoted by Roman letters while Greek letters ar... |
We know that $O(f(n)+g(n))=O(max(f(n),g(n)))$.
So can we say that $\Omega(f(n)+g(n)) = \Omega(min(f(n),g(n))$?
Then what is $\Theta(f(n)+g(n))$ equal to?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.