instruction stringlengths 35 29.1k |
|---|
I've understood that $L$-uniformity means that there's a TM that can output the description of $C_n$ in $O(\log n)$ space. Now, that seems odd to me since the description itself (as far as I understand) must be a $O(n)$. I'd be glad for clarification.
Also, in that context: What does $L$-uniform $NC^k$ means?
Thanks!
|
I have a homework assignment in which I need to write an implementation of Gauss-Jordan with complete pivoting. Complete pivoting is a modification to the basic Gauss-Jordan algorithm in which rows and columns are swapped around pivots. This is done to minimize the numerical errors by avoiding operations with small f... |
I'm a high school student and I'm passionate about everything language related - lexers, parsers, compilers, interpreters and so on. Some time ago I've written a calculator in Python (now willing to use a better language), which uses the Shunting yard algorithm and my own lexer.
So I want to start learning more about t... |
Is there something called Processor Bus? Whist solving one of the MCQ I ended up seeing the term "Processor Bus". Does this thing actually exists?
I did some research, but couldn't find one article that talks about Processor bus.
It would be great, if someone can guide me along.
|
What's the (asymptotic) solution of the recurrence $T(n,m,k,t)\leq T(n^\frac 1 m, 1, km, kt) + \Theta(n)$?
I know how to solve univariate recurrences, but this recurrence is much more difficult, so I am stuck here.
Edit:
The solution of this inequality should be something that does not imply any "dependency" between $... |
There are $N$ sticks. $N$ is an integer greater than zero. I want to divide it among $M$ boys. $M$ is also a positive integer. Partitioning $N$ among $M$ is easy, but doing it as evenly as possible is difficult for me to think through. Can someone suggest an algorithm? Similar questions exist on this site, but I could ... |
In Eva Tardos Strongly polynomial Minimum cost Circulation Algorithm , Step 1 states projecting d, the cost function on a subspace X where flow is 0 for all tight Edges. Also we define an incidence matrix A for all non-tight edges with values{ 1,-1,0} accordingly.
later it is proved that the projection is d(E-T(G))+πA ... |
Having trouble understanding what it means to define something inductively in the following context.
Can you give an inductive to define the length of a list L?
a. The total number of items in L is the length of L
b. Basis: the length of an empty list is 0
Induction: the length of a list is 2*(length of half the lis... |
Problem statement: The search space A involves elements $|0\rangle $, $|2\rangle$... $|d-1\rangle$. An oracle is provided for the function $f(x)$ where
\begin{align}
f(x)&=1 \quad x=x^{'}\in A \\
f(x)&=0 \quad x \neq x^{'}
\end{align}
The aim is to find $x^{'}$.
We have an oracle U corresponding to $f(x)$ whose actio... |
Let an undirected graph and $k\in\mathbb{N}$. Prove that there's a circuit of depth $2$, size of $n^{O(k)}$ and unlimited fan-in, which gets $\langle G,v,u\rangle$ as an input and checks if there's a path from $u$ to $v$ of at most $k$ edges.
So I'm familiar with Warshall's algorithm and I think I should utilize it h... |
I've started with tree automata. The definition is
(Leaf-to-root) Tree automaton $\mathcal M$ over (nonempty, finite) alphabet $\Sigma$ is quintuple $\mathcal M=(K,\Sigma,\delta,S,F)$ and bound $f$ (the fan-in bound), where $K$ is finite set of states, $S\subseteq K$ set of initial states, $F\subseteq K$set of accepti... |
I need camera to sign one random line(there are something like 2000 lines) from the frame each second.
At the beginning I have some 64 bits seed with high entropy from physical RNG and a secure channel with camera. How should I generate the needed number?
|
I want to come up with an arbitrary string, and feed it into my program to see if there exists two strings that I can concatenate to get the target string. What kind of data structure and algorithm would be good for this? I'm thinking a sorted array would be good, and then walk down the list, binary searching for the s... |
I have two languages as below.
$$L_1=\{a^ncb^n\}\cup\{a^mdb^{2m}\}$$
$$L_2=\{a^{2n}cb^{2m+1}\}\cup\{a^{2m+1}db^{2n}\}$$
Now, I wonder what is $L_1\cap L_2$. Is it a regular language? Is it context-free?
To solve the problem, I feel like I need to solve the following system of equations, but I'm not sure.
$$
\begin{cas... |
Quantum computing essentially relies on the fact that qubits maintain multiple possible states simultaneously. Parallel computing too processes multiple states simultaneously. So what is the difference or how are they different?
|
I wanted to make a tool which minimizes the interference between antennas.
Currently, the tool is very limited for prototyping reasons. It can only place an antenna every 1 meters. The available space that the antennas can be placed is 1 dimensional and is 15 meters wide.
The user can only decide how many antennas will... |
I was looking at graph extensions in argumentation theory and was wondering, which of those extensions does every graph have? and which of those only some graphs have? and is there a proof for each?
thanks
|
I ask this question because I deal with alot of intermittent bugs and want to be able to answer the question "Can I be at least 95% sure that my changes to the code fix the bug?". I've got some ideas on how one could formalize the problem, but I'm guessing that someone else has done this.
I'm particularly interested i... |
I am given a directed acyclic graph (DAG) with a unique source and sink. Is there an efficient way to test whether the partial order represented by this graph is a lattice?
In other words, I need to test whether any two vertices have a unique least upper bound and greatest lower bound.
From brief browsing, I found an $... |
Most libraries use some variation of bottom up merge sort, but top down merge sort seems to dominate web sites and forums.
Assume reasonably optimized implementations, where a single working array is used in addition to the original array, and copy or copy back avoided in top down merge sort by tying the direction of m... |
The Wikipedia definition of Kolmogorov-random defines a string (usually of bits) as being random if and only if it is shorter than any computer program that can produce that string.
Aren't nearly1 all strings shorter than a certain length2 going to be Kolmogorov-random?
If a random Turing machine is chosen, then prog... |
If we come to the situation when we have to insert again the original key into the original table, I believe we have found a cycle. Is there a way to prove this?
|
It is known that intersection of three general matroids is NP-hard (wiki), which is done via reduction from Hamiltonian cycle. The reduction uses one graphic matroid and two connectivity matroids.
A special case of a problem I am working on can be solved by intersection multiple graphic matroids, but I haven't been abl... |
List of problems I'm interested in:
$\oplus$SAT
#SAT-decision
Permanent-decision (YES if permanent is greater than given number $k$)
I have discovered poly-reduction for MAJSAT (and MAJQBF). However, I don't know such reduction (practical) for these problems.
How can I solve any of these problems with polynomial runs... |
There are some terms in lambda calculus that don't really have a normal term. My question is for a term like the following:
$$T \overset{def}{=} \lambda f. (\lambda x. \; f \; (f \; (f \; x)))$$
$T$ takes a function as its argument and transforms the function space by applying it three times. If I apply $T$ to itself, ... |
I'm reading the The Algorithm Design Manual book on Data Structures and it says the following about linked listed implementation:
Insertion into a singly-linked list is a nice exercise in pointer
manipulation, as shown below. Since we have no need to maintain the
list in any particular order, we might as well inse... |
I've come across many coding exercises that require me to determine whether or not two strings are permutations of each other and I've repeatedly wondered if it would be possible to convert each string to char codes and perform mathematical operations on them to determine equivalence.
My idea was to sum up the char va... |
Following this procedure I have successfully written a program to calculate the probability of ending in a given absorbing state given the initial state. The procedure is as follows:
Given the transition matrix (P), row and column swap until the identity matrix is in the bottom right corner.
$$
P = \begin{bmatrix}
... |
I'm reading the The Algorithm Design Manual book on Data Structures and it says the following about FIFO and LIFO containers:
Support retrieval in first in, first out (FIFO) order. This is surely
the fairest way to control waiting times for services. You want the
container holding jobs to be processed in FIFO orde... |
Is there an algorithm that can take an element on an arbitrary integral domain, and determine whether or not it is prime on that ring?
It is pretty trivial to do so on a finite integral domain, because no finite integral domains have primes (all elements are units). It is also pretty simple on the ring of polynomials ... |
I can't quite figure out an algorithm for this:
Given some integer n, what subset of the primes (so no repeats) would yield the lowest possible sum if their product is at least n?
Example: 6 -> 2*3,
2308 -> 2*3*5*7*11,
14 -> 3*5
Does anybody know how I would do this?
This is part of a research project I'm doing on fini... |
Let us assume that we have two algorithms, $A$ and $B$. Based on 3 different values of a parameter, $P$, $A$ takes $a_1, a_2, a_3$ seconds and $B$ takes $b_1, b_2, b_3$ seconds. What would be a proper way to measure which algorithm is more sensitive to $P$?
To address a diverse community, I will give an analogy: let u... |
I would like to compare performance of function encoded (Church's / Scott's) vs classically encoded (assembler / C) data structures.
But before I do that I need to know how efficient is / can be function representation in memory. The function can be of course partially applied (aka closure).
I am interested in both the... |
Earlier I wrote this question about an algorithm computed on an integral domain. However as commented I didn't suggest any particular ways of storing an integral domain in computer memory. I set out to do this but found it a particularly difficult task.
It is in fact impossible to store all the integral domains in me... |
We are given the following task:
Let $\mathcal{A} = {}(Q_A,\Sigma, \delta_A, s_A, F_A)$ and $\mathcal{B} = {}(Q_B,\Sigma, \delta_B, s_B, F_B)$ be two NFAs and let their product automaton be defined as:
$\mathcal{A} \times \mathcal{B} = {}(Q_A \times Q_B,\Sigma, \delta, (s_A,s_B), F)$ with
$\delta = {}\{ ((p,q),\sigma,... |
Can someone please give a couple of examples of the language and construct a grammar for the language (given below), or at least show me how I can go about it?
I am looking for a context-free grammar generating the language
$$ L = \{ a^n b^m \mid n,m \geq 0 \text{ and } n \neq 2m \}. $$
I asked a similar question on st... |
I know that the language {w ∈ {a, b}∗| |w|a = |w|b} is not regular since somehow, you can't store all the information needed in a DFA. I've seen that normally it's done with reduction to absurdity or pumping lemma and also having into consideration that the language a^nb^n is not regular
But I would like to see a forma... |
I'm generating valid timetables for my uni with a simple generative recursion algorithm like this (disregarding handling of course-specific labs and tutorials)
def generate(current_timetable, unallocated_courses):
if conflicts(current_timetable):
return
if not unallocated_courses:
results.add(cu... |
The guess solution to the
$$T(n) = 2T\left(\frac{n}{2}\right) + \frac{n}{\log n}$$
is $\Theta(n \log{\log n})$. This is my solution:
$$
T(n) \leq 2c\left(\frac{n}{2}\right) \log{\log {\frac{n}{2}}} + \frac{n}{\log n} \\
\leq cn \log{\log {\frac{n}{2}}} + \frac{n}{\log n}\\
\leq cn \log{\log {n}} + \frac{n}{\log n}
$$
t... |
I'm trying to get a better grasp of computation theory, and have a few questions that I can't seem to find great answers too.
Given language L, which is non-recognizable, is L* context free?
Is P countably infinite, and why?
Are all recognizable languages NP-complete?
|
In programming languages like Haskell you can use lazy evaluation to delay calculations.
Why isn't a similar approach being used for numerical methods (I understand that there would be memory implications).
The approach would be that non-integer values would be stored as how they are calculated, so that the next digit ... |
In this paper the authors show how to use two NN that respectively recognize an art style and an image content to apply style filters to photographs.
However, I am confused about how would one train a NN to consistently identify the style of a given author, given that the dataset cannot be too big (an author may paint ... |
It might be a silly question, I do take a carefully read about approximation algorithm through coursenotes, but when I saw the words "approximation algorithm with polynomial complexity", I can't understand what it means, I searched a lot and here is my assumption.
First, for some NPc or NP hard problem, we can try to s... |
I have a finite state machine FSM like below.
I want to know which of my languages are recognized by my FSM:
$$L_1=L(0^*1(10)^*(00^*1(10)^*)^*)$$
$$L_2=L((0+1(10)^*0)^*1)$$
$$L_3=L(0^*1(10+00^*1)^*)$$
$$L_4=L(0^*(1(10)^*0)^*1(10)^*)$$
I tried to figure out, but I got confused.
|
There are
$k$ Boolean variables $x_1, x_2, \dots, x_k$.
$m$ arbitrary subsets of these variables such that sum of each set equals to $1$ (i.e., only one variable is $1$, the others are $0$). E.g., one of $m$ constraints may be $x_1 + x_3 + x_5 + x_6 = 1$.
$n$ arbitrary subsets of these variables such that sum of each... |
I'm facing the following problem:
Describe a distributed MST algorithm in time $O(n \log \log n)$
I've managed to think of the following,
Run GHS(Gallager, Humblet and Spira) algorithm, till there are $(n/(\log n))$ fragments.
This way I believe there's a small thing to do so the finding of roots to connect fragments... |
Good day
Is there any regression Machine learning model, based on k-means?
Example (Zillow's Zestimate):
I have a lot of houses(with features like sq.feet and location) and prices. I want to estimate price for a new house by averaging k neighbors.
|
Hint: I know it is associative and I just need a proof: (m1 ⊕ m2 ) ⊕ m3 = m1 ⊕ (m2 ⊕ m3) that will show that the operation "⊕" is associative. Thank you in advance!
operation "x" in the image is multiplication!
|
I was asked to combine the ip addresses into a single block:
16.27.24.0/26, 16.27.24.64/26, 16.27.24.128/25
I managed to convert the given ip addresses into binary:
00010000.00011011.00011000.00000000 | 00011010
00010000.00011011.00011000.01000000 | 00011010
00010000.00011011.00011000.10000000 | 00011001
I am not qu... |
A Wang B-machine is Turing-complete and has only 4 instructions:
right: Move head right.
left: Move head left.
mark: Mark square under head.
branch n: If square under head is marked, jump to instruction $n$.
Inspired by P′′, consider a machine with the following instructions:
right: Move head right.
markleft: Mark s... |
Has anyone estimated Chaitin's constant for Turing machines with an empty tape as input?
|
Can cognitive architectures (CLARION, SOAR, ACT-R, others) be used for creative mathematical reasoning? As far as I understand, then it is the best to encode formal mathematical knowledge in the languages of proof assistants like Coq (CIC - Calculus of Inductive Constructions), Lean, Isabelle/HOL, Mizar. But those proo... |
I am having some trouble on understanding link-cut trees, so I need some help.
Suppose that we have nodes $A, B, C, D$ and we want to do the following operations:
Link(A,B)
Link(B,C)
Link(C,D)
Following instructions of https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-851-advanced-data-st... |
Say we had two agents and we want them both to traverse a map concurrently.
Their goal is to collectively visit a collection of certain points on the map. If there was just one agent, it would be simple enough to just implement BFS or A* and get a good solution.
But considering there are two, how can we divide the poi... |
What are the minimum depth circuits possible for addition and multiplication of two n-bit numbers using just AND and XOR gates?
I read somewhere that we can achieve constant depth for addition if we have an OR gate. Can I achieve that using XOR gates?
|
Princeton Algorithms course shows the implementation of Queue using linked list and two pointers - head and tail. I've implemented the same functionality as a circular linked list using only one pointer tail. I'm wondering what's the advantage of two pointers versus one in a circular list. It takes more space as I unde... |
In my model checking class we have defined a bisimulation like this:
Let $K=(S,S_0,Act,R,L)$ and $K'=(S',S'_0,Act,R',L')$ be two kripke structures. A relation $B \subseteq S \times S'$ is called bisimulation if $\,\forall (s, s') \in B$ following points are true:
$L(s) = L(s')$
$\forall \,t \in S, a \in Act: (s,a,t) \... |
Input:I am provided with x and y.
x is a 32 bit non negative integer and y is some node-id of the tree.
So, I built a trie with 32-bit non negative integer values which are the keys associated with each node-id of the tree (DAG). Now, if I am asked to find the a node, whose key XOR x is maximum. This can be easily be d... |
Here in the given image, our question is to find regular expression from finite automata. I found three answers based on which state I am resolving. Are these answers in the photo correct? If any answer is incorrect then please provide me the correct answer.
|
I undetstand each part of the word group in this question. I have search for a while but I still can't understand what the whole question want me to do. I will state what I know and give an assumption of what I should do, I would be appreciate if someone can guide me.
First a boolean formula is satisfiable if it can be... |
The Vapnik–Chervonenkis (VC)-dimension formula for neural networks ranges from $O(E)$ to $O(E^2)$, with $O(E^2V^2)$ in the worst case, where $E$ is the number of edges and $V$ is the number of nodes. The number of training samples needed to have a strong guarantee of generalization is linear with the VC-dimension.
This... |
We have the problem $C = \{<G,S>| \text{ S is a minimal cover of G }\}$ and we want to show that $C\in coNP$.
I can easily show that there's a ND TM that decides $coC$ using a guess to check if the drawn vertices are a minimal cover and if they are, return false. But it seems like it's wrong since this can be done with... |
Input: $n$ item with sizes $s_1,...,s_n$, without lose of generality, all sizes are $\leq1$. In addition, $s_i < \delta$ for all $i$ for some constant $\delta$.
Output: Minimal numbers of bins to pack the items, where each bin has volume 1.
The scheme used is first-fit, where if the current used bins are indexed, we... |
AFAIK, malloc(sizeof(char)) is intended to allocate a 1-byte block of VM and strcpy requires that
the destination string dest must be large enough to receive the copy
That means theorically that if the length of src is strictly upper to 1, the strcpy operation fails, and it's impossible to copy more than one charact... |
Is that true that $Time(O(log(n)))=NTime(O(log(n)))$ iff $P=NP$?
It seems to me to be true, as I only need to take log on both sides, since log of a polynomial is $O(\log(n))$, but I don't know how to derive a proof from this intuition.
|
I'm trying to find a way to count distinct simple cycles in a graph in order to prove that $\#CYCLE \in \#P$, if I could represent a distinct cycle, then I'll have a witness.
I saw this question:
Number of cycles in a graph? they mention the reduction from HAM #CYCLE in Counting Complexity by Arora and Barak, but I do... |
Given a connected, undirected graph G, edge-weighted (positive), prove that
If G has a spanning tree T which, for each vertex r in G, is a shortest path tree from r, then G has a unique MST.
I know how to show that given a T like that, it is also a MST, but how can I show that it's unique? I tried to assume by contra... |
Consider two lists $A$ and $B$, both containing $n$ numbers. A comparison operation can be defined based on the probability of uniformly selecting an element $a$ from list $A$ and an element $b$ from list $B$ such that $a>b$.
More precisely, define
$$ Q(A,B) = \sum_{i,j} \text{sign}(a_i-b_j)$$
If $Q(A,B) = 0$, then we ... |
I'm a beginner and I don't understand what an Instruction Set Architecture is (I read the wikipedia page related to it).
Can anyone explain it to me in a simple manner please?
|
I was reading "Why Only Us" by Chomsky and Berwick, and it said:
If one subscribes to the Church-Turing thesis along with the
assumption that the brain is finite, then there is no way out: we
require some notion of recursion to adequately describe such
phenomena.
I find this sentence confusing. What does the C... |
A skip list
Let C(k) = the expected length of the path that raises k levels backwards.
Thus C(0) = 0
For any node P in the path, with k levels higher to go, there are two cases:
P is a node of level i and proceeds backwards to a node of at least level i and still k levels to go
P is a node at a level higher than i a... |
So, I'm familiar with two main strategies of having higher-ranked polymorphism in a language:
System-F style polymorphism, where functions are explicitly typed, and instantiation happens explicitly though type application. These systems can be impredicative.
Subtyping-based polymorphism, where a polymorphic type is a ... |
I'm trying to prove that if P(L,n) is true then L is regular, where P(L,n) is a property equivalent to the pumping lemma. This is in the context of single letter alphabet. Any suggestions how to do it?
|
What is the optimal algorithm (in terms of time complexity) that can transform any binary tree to a red-black tree, with the requirement that in-order traversal must yield the same values for the new tree?
Is iterative insertion of the original nodes sufficient, or can it be done with better complexity?
|
Can someone provide with the smallest (as small as possible) 3SAT example (w.r.t. number of variables and the number of equations) that is:
Unsatisfiable.
Not provable unsatisfiable by simply reduction (successive simplification and rewriting) of the equations by the process similar to as described below:
Example:
A... |
My question is: What tips or ideas do you have when you're gonna construct a CFG out of these instructions? If we only had 0 < i <= k, it'd be more straight forward if you ask me, but when we have an OR there, how should I approach it?
edit:
I just realized I could rewrite the language and then define the CFG
as S -... |
Two words $a$ and $b$ commute if $ab=ba$.
How to demonstrate that $a$ and $b$ commute if and only if they are powers of
the same word ?
$ab=ba \Leftrightarrow \exists \space \tau \in \Sigma^{*} \mid a=\tau^{k} and \space b=\tau^{k'}$
The demonstration in this direction is trivial:
$\space \exists \space \tau \in... |
I have to design a Turing Machine to do the following, but I don't really know where to start with this question. Any help would be very much appreciated.
I should design a Turing Machine accepting language $L = \{ a^p |$ p is not a prime number$\}$.
I know I should use some quality of prime numbers, but number theory ... |
For instance, take the example of this book here on page 30. About the formula $$ Q(x,x') = R(x), S(x,y), S(x',y), R(x') $$ described there, what do the commas mean? Is it the same as an "and" operation? Or a natural join maybe?
|
S -> aSb | A | B
A -> aS | a
B -> Sb | b
is this the language generated by this CFG? Or am I missing something?
|
I need to compute prefix product of an array. For this reason I want to use counter tree fenwick .
Hehe is what I have for the usual Fenwick tree:
An array $T$ indexded from $0$ to $n$. $T[i]$ stores the product of $[F(i)..i]$ segment, where $F(i) = i\ \ \& \ \ (i+1)$.
For the counter tree I need another array $T'$, $... |
Are any algorithms known that can compute the greatest common denominator of multiple (more than two) input values more efficiently than just an iterative application of the fastest GCD algorithm for exactly two input values? E.g. gcd(a, b, c, ...) vs. gcd(a, gcd(b, gcd(c, ...)))
If so, then what is such an algorithm?... |
I have to solve the following $n^2+n \in O(n^2−n)$.
I did it this way:
$n^2+n \in O(n^2−n) = n^2 \in O(n^2−n) = n^2 / n^2-n = 2n / 2n-n$ which is infinite.
I don't know if this is correct because the $-n$ in the $O$ notation is confusing me and I haven't found anything about it online. I know if this would be at examp... |
When I do my laundry I tend to make a pile of unmatched socks, putting new socks on the top of the pile and matching off pairs if two of the same sock are near the top of the stack. Since eventually socks will get buried deep in the pile I occasionally dump some of the sock pile back into the laundry pile.
I started t... |
What I understand about per-record timeline consistency is:
For a specific primary key all the insert/update/delete operations should
be read in the same order by all replicas.
Since all modifications to a specific primary key are causally related (a client reads it, then modifies or delete it), then per-record tim... |
I have been researching a bit lately and found myself thinking about the title question for some time now, but have found nothing conclusive.
For example, some problems require loops practically - making 10^100^1000^10000 repeated calculations (even no-ops) is not possible practically as the space necessary to store th... |
In my limited exposure, it appears that "successful" machine learning algorithms tend to have very large VC dimension. For example, XGBoost is famous for being used to win the Higgs Boson Kaggle competition, and Deep Learning has made many headlines. Both algorithm paradigms are based on models that can be scaled to ... |
I'm facing a graph problem and I'm looking to identify it, maybe as a special case of a more general problem, so that I can then find an approximation algorithm for its solution (I'm assuming it's NP-complete).
I have a graph $G$ with $|V|$ vertices. Every vertex has at least one edge connected to it. I want to find th... |
Given a set $S = \{s_1, \ldots, s_k\}$, find the minimum index $j$ such that $\sum_{i = 1}^j s_i \geq \frac{1}{2}\sum_{i = 1}^k s_i$.
I was reading in a paper about an algorithm for this problem that is described as follows:
The idea is to construct an array of size $k$, whose $j$th position contains $\sum_{i = 1}^j s... |
I was looking through some lecture slides on algorithm analysis and found that in general an array access counted as a basic operation, but it did not seem to count as one when accessing the first element (e.g. A[i] is a basic operation but A[0] isn't). Does only accessing the first element count as a basic operation, ... |
I am not so familiar with trees.
How is a tree stored in memory? what is the data structure type used for storing it?
As a string?linked list? stack (!)?
Or is there some kind of data storage model for trees?
|
Given a language:
$A = \{ <M> | M\ rejects\ the\ string\ "101" \}$
Can I prove it is undecidable using Rice's theorem?
See like the theorem conditions are met (there exists non trivial language that describes the machine language )
|
If I have the sum-of-products expression B~CD + ACD how would I convert this so it could be implemented using 3-input NAND gates through DeMorgan's Law? Would this not generate the expression: ~(~(B~CD) ^ ~(ACD))?
It would seem I could implement this and use a 3-input NAND gate with 3-C inputs to act as a NOT gate but... |
I am comparing execution efficiency of the same code compiled to JVM and Node, locally and on AWS Lambda. Not looking for precision, but just a rough notion of performance in difference virtual machines and execution environments.
I started with Fibonacci flavors (recursive, tail recursive, iterative, memoized, ...) ar... |
Is it possible for an approximation algorithm (for minimization optimization problem) to obtain smaller approximation ratios for inputs of larger size? For example, is $1/n$- or $1/\log n$-APX reasonable? If it is, do you know any natural problems?
|
We start with a given finite directed graph. It could represent transitive relations such as:
data transfer paths in social networks,
transportation connections, etc.
Let us use the notation
A->B to denote a directed edge from node A to node B and
A=>B to denote a path from A to B.
Example 1: Social networks. An ... |
How can one prove that the language below is not context-free using the pumping lemma?
$$\{ a^i b^m a^j b^m a^k b^m \mid i,j,k,m \geq 0 \}$$
|
$$ L=\{<M>|M\ is\ a\ TM\ ;\ ∃x,|x|<5 ;\ M\ rejects\ x\} $$
How can i prove that $L \notin R$?
I can't see how Rice's theorem be used here since the conditions are not met (The constrain $M\ rejects\ x$ is about the machine architecture and cannot be expreseed by a non-trivial language)
|
People all over the internet are asking "What are the different Memory Mapping Techniques in Cache", but i couldn't find anywhere the answer to "What is Memory Mapping exactly?".
Please tell what do you mean by memory mapping?
|
How can I construct a finite automata ,which accepts numbers which has sum of digits = 3 ? Alphabet = {0,1,2,3}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.