instruction stringlengths 35 29.1k |
|---|
(I was not really sure in which "stackexchange" I should put this question. I hope CS is ok.)
Let's say I have the following tree A. Every node has a unique ID, which will be counted up, beginning from 0. The ID counting is taking place in breadth-first order.
Now I want to pick out a part of the graph A. The informat... |
I have read about the N-queens problem and I don't understand the following objective function:
$O(board)=N^2/2-L$
$N$ ... number of queens
$L$ ... number of pairs of queens that attack each other
Why they use $N^2/2$? They wrote that it is the number of pairs of queens but I don't understand that can someone maybe exp... |
When someone tells a computer scientist that a CPU is, say, 32 bits, what all does he/she infer from this information?
I know that it means that the physical address has 32 bits. This meas that the physical memory can't hold more that 2^32 bytes of RAM. This also means that the word size is 32 bit or 4 bytes. Please co... |
Does there exists a computable problem P such that:
Is proven that P can be solved with an algorithm that has a certain complexity.
The best algorithm know unluckily is still slower (greater complexity) than the proven bound.
Example:
A problem that we have proven can be solved in worst case in $O(n^2)$ operations.
... |
Given an expression (a word in the one-sided Dyck language), I want to write a program to examine whether the pairs and the orders of “{“,”}”,”(“,”)”,”[“,”]” are correct in the expression. For example, the program should print true with begin-end pair of symbols indices for exp = “[()]{}{()()}” and false for exp = “[(... |
So let's say i have a graph like this and salesman starts his journey at "A"
How do i solve the TSP problem for this graph with pen and paper on exam?
|
A quick thought experiment here:
Suppose one could construct an oracle that could yield a solution to an NP-complete problem (3SAT, TSP, SUBSET, etc) for smallish (30-60) inputs in a single operation.
Would there be areas in computer science/graphics/processing/etc where this would be particularly useful? Which NP com... |
Given a set of data points (shown in red), it is possible to fit a line $y = mx + c$ through the points using linear least squares regression.
I would like to modify this to fit a 1D lattice (grid) along the line such that $d$ is the offset of the the grid along the line and $i$ is the interval between neighboring grid... |
I want to add a constraint to a convex program, to guarantee some matrix $A$ to be positive semidefinite.
How should I do it?
The library I am working with can cope with linear/ quadratic inequalities only.
By definition, $A$ is positive semidefinite iff $\forall x \in \mathbb C^n : x^T A x \geq 0$, but this is a set o... |
I've found several open source visual programing tools like Blockly and friends, and other projects hosted at Github, but could't find any that work directly with the abstract syntax tree.
Why is that?
I'm asking because once I discovered that every compiler out there has a phase in the compilation process where it par... |
Can we define feature relevance in terms of regression coefficients? Lots of works report definition of feature relevance in terms of probability and mutual information but I did not find any literature defining the relevance of features in terms of regression coefficients although many works have experimentally proved... |
I've seen answers on the subjects, however I still don't get such answers. In the Cormen book (Introduction to algorithms) it is explained that the worst case for a $Max-Heapify$ call happens when the last level is "half full", in this case the worst case cost is modeled by the inequality:
$$
T\left(n\right) \leq T\lef... |
I'm doing some homework where I have to count the number of functional dependencies (direct and indirect).
But then I'm faced with an unexpected situation, where a class has a relation with an interface. I can find no bibliography on the subject and the teacher didn't talk about this.
Intuituvely, I thought as it being... |
So, $ A\leqslant_mB $ (many to one reduction) means that language $A$ can be reduced to language $B$ if there exists a Turing-calculable function $f$ so $ f(A) \subseteq B$ and $ f(\overline{A}) \subseteq \overline{B} $.
$ A\leqslant_TB $ (Turing reducibility) means that language $A$ can be Turing-reduced to language $... |
As shown in Byrant's original paper, the time complexity of (single-variable) composition algorithm is cubic, and it is a tight upper bound. My question is about synchronous composition, written as
$$f' = f(x_{1},\dots,x_{n})|_{x_1=g_1, \dots, x_n=g_n}$$
where you replace all variables of $f$ synchronously with other B... |
Source:https://en.wikipedia.org/wiki/Abstract_data_type
Can we say that float data types (or all primitive data types or only integer) are abstract data types?
|
So I'm doing exercises from Dasgupta's Algorithms. The exercise i'm having trouble with is:
Show that, if $c$ is a positive real number, then $g(n) = 1 + c + c^2 +...+c^n$ is:
$\Theta(1)$ if $c<1$
$\Theta(n)$ if $c=1$
$\Theta(c^n)$ if $c>1$
(I dont know if this is a hint but it is included in the text:
"The mor... |
Problem statement:
Input:
(a) A natural number $n$.
(b) $m$ requirements on $I_1,\ldots,I_n$ of the form:
Segment $I_i$ is entirely to the right of segment $I_j$.
Segments $I_i$ and $I_j$ intersect.
Output:
Is it possible to find $n$ non-empty segments (on the real number line) which fulfill the $m$ requirements?
H... |
I'm trying to find an algorithm for finding all faces in a wireframe mesh. Wireframe means only the vertices and edges are given as input. There is no restriction on the number of edges a resulting face can have and the face can be convex or concave.
Simple Example
In a wireframe of a square-based Pyramid there are 5... |
I am learning about radix trees (aka compressed tries) and Patricia tries, but I am finding conflicting information on whether or not they are actually the same. A radix tree can be obtained from a normal (uncompressed) trie by merging nodes with their parents when the nodes are the only child. This also holds for Patr... |
What is the good way to extract the objects(circles) from image as shown in picture below?
respectively create two images one with lines and one with circles from source image.
I started with detecting contours in image to filter everything that may be circle from image which gives me results like this:
I'm new to co... |
What interesting alternatives are there for constructing an arbitrarily large static array from smaller scattered blocks of fixed-sized non-contiguous blocks of memory?
This is similar to the problem solved by hardware MMU pagetable mappings from virtual memory to physical memory, but in this particular case the scale... |
The halting problem says that it is impossible to create a general algorithm which can for all inputs and programs determine whether they halt. However, this assumes that the programs and/or the things running them are Turing-complete.
Since all computers have a finite amount of memory and are therefor not Turing-compl... |
According to some slides I found on google, the treewidth of any $k \times k$ square grid graph $G$ is $tw(G) = k$. I just started researching about treewidth and tree decomposition, and for the most part it makes sense. However, I am particularly interested in the $k \times k$ square grid graph case, but have been str... |
One example in my textbook says that
$$\log\log n^n=\log n\log n=\log n+\log\log n = \mathcal{O}(\max(\log n, \log\log n))=\mathcal{O}(\log\log n)$$
and I was wondering why is that true?
I thought that
$$\log n \leq n \Leftrightarrow \log\log n \leq \log n.$$
So, for $C=1$ and $n\geq 1$ we have $\log\log n =\mathcal{O}... |
Let's say we have trained a Support Vector Machine with a Gaussian Kernel. When we feed our model an example, it classifies it based on its similarity to landmarks (distance to examples in our training set).
If instead our model is a K-Nearest Neighbors algorithm, with k=size of the training set, it classifies a given ... |
After some efforts, I'm really doubtful about the application of that queueing model in analyzing network servers (specially in my case, IP Multimedia Subsystem) as well as predicting the workload. Therefore, as a newbie in this area, the purpose of my question is to ask if somebody can give me some advice for my follo... |
TQBF consists of alternating quantifiers, so does $\Sigma^2_n$ for fixed $n$. So given a formula in TQBF, shouldn't there be a level of the polynomial hierarchy that solves it?
I think this is incorrect because TQBF consists of any number of quantifiers, but each level in the PH has fixed number of quantifiers, so ther... |
I was told about an algorithm to solve ODEs which I thought was very clever. I am sure its not something new. It works by discarding the $\mathcal{O}(h^2)$-term from the usual formula for computing the second derivative:
$$f''_i = \frac{f_{i-1} + f_{i+1} - 2f_{i}}{h^2} + \mathcal{O}(h^2), \qquad i = 0,1,2,\cdots,N$$
on... |
Say you have a string S and wish to store indices of it, e.g. letter at index 3 of "toast" is 'a'. Seems that people generally consider an index as taking O(1) space to store*. But doesn't it take O(log(|S|)) space?
If we use binary bits...
length 4 string => index must be at least 2 bits
length 8 string => index must... |
I'm working on an algorithm and I'm trying to figure out its time complexity given the operations it takes to complete a input set of specific length, I have been testing the algorithm with varying input lengths.
The results shows that every time I double the input length, it takes 4 times more operations than before t... |
In algorithm analysis what exactly defines a subproblem?
I know that one of the optimality conditions for greedy algorithms is that all subproblems of the solution are also optimal, but to me this begs the question. Are subproblems defined relative to a data set, a problem on that data set, or a solution to that proble... |
I've just started reading about theory of distributed systems and am a bit confused. There seem to be two ways of defining a synchronous distributed system and I'm not sure whether they are equivalent.
Lynch, in her book Distributed Algorithms (p. 5) writes
The synchronous model: This is the simplest model to describe... |
I have the following multi-edge, undirected graph.
I would like to extract the following tree from it, if I start from the node $A$.
Do you know of any algorithm that I can use to achieve that ?
The problem I am trying to solve is the following.
The first graph represent different relational tables I want to join. E... |
To quote Hubie Chen's A Rendezvous of Logic, Complexity, and Algebra (2009) on constraint satisfaction and complexity,
An operation $f : D^m \to D$ is a polymorphism of a relation $R \subseteq D^k$
if, for any choice of $m$ tuples $(t_{11}, ... , t_{1k}), ... , (t_{m1}, ... , t_{mk})$ from $R$, it holds that the tup... |
I'm trying to identify communities in a direct graph.
I only know how to use Spectral clustering and Girvan-Newman method but the both the methods work only with undirect graph. Am I wrong?
So what method could I use to solve the following problem?
The text of the problem is the following:
Trawling - Identify the comm... |
I am trying to solve the following question: Given a text file containing a bunch of biological information, find out the one gene which is {up/down}regulated. Now, for this I have many such (60K) files and have annotated some (1000) of them as to which gene is {up/down}regulated.
Conditions
Many sentences in the file... |
Let's say you have $n$ symbols. You can encode a $\log_2(n!)$-bit message by permutating the symbols. I will call this a permutation code (if you have seen this concept before, I would love to see a reference).
Let's say we are encoding a message with $k<\log_2(n!)$ bits. It is possible to add error correction. One way... |
When, beyond theoretical exercises, do we care how many solutions we can find for something?
I had an analogous question for TMs before - why is it useful to study machines that can only deliver acceptance and rejection as output? Here, the answer (at least in a practical context) seems more clear - find a solution (e.... |
We know that every optimisation problem has an equivalent decision problem.
So say I keep going up a mountain (I.e. I am maximising my altitude) following a certain number of finite steps (similarly to a TM). Is that enough to assert that I am solving a decision problem?
If yes which one?
|
We have the big O notations for sequential algorithms , but is there a notation to represent parallel algorithms in a similar way?
Motivation:
A sequential algorithm may be O(n7) but its parallel implementation might make it O(1) so what is the motivation and tradeoff between spending time to design lower complexity ... |
I thought I understood the Master Method quite well till I saw this question
$T(n) = 3T(\frac{n}{3})+\frac{n}{2}$
My approach:
$a = 3 ; b=3$ and $f(n) = \frac{n}{2}$
$n^{\log_b{a}}$ = $n^{log_3{3}} = n$
This looked like a classic solution of master method using case 1.
But since case 1 implies $f(n) = n^{\log_3{3} ... |
Do additonal symbols on a turing machine actually change what is computationally possible on a machine, or do they just make them easier to work with? For example is there anything a 3 symbol turing machine could compute that a 2 symbol turing machine could not? (Assuming each machine can have any number of states).
|
I'm trying to find an optimal solution that will work for the bridge crossing problem. In case you don't know it you can check out the Ted Ed video on it. They show how you can do it with 5 people but I'm trying to see if there is a way to do it with n number of people. The same rules apply but the optimal solution sho... |
If a decision problem A belongs to the polynomial complexity class P, must there be at least one YES instance and one NO instance of the problem? I know that in the definition of a Turing machine an accept state and separate reject state are defined but I'm not sure if that applies to this case. Is it maybe possible to... |
Is there a name for the "measure of connectedness", i.e. :
$$\text{MoC} = \frac{d(G)}{|G|-1}$$ with domain of function $D_\text{MoC} = [0,1]$, average degree of graph $d(G)$ and amount of nodes $|G|$? Meaning a quantitive measure for connectedness or meshedness of a graph? E.g. a complete graph would have a MoC of 1, w... |
We use electronics to build computers and do computation. Is computation independent of the hardware we use? Would it be possible to do whatever a computer does with pen and paper? If computation is not dependent of how we make our computers, then does the same principle which apply to a computer apply to how brain wor... |
According to halting problem, there is no algorithm which can decide if another algorithm and its input will halt or not.
Suppose human intelligence can be simulated in a computer.
Also suppose than human can determine if an algorithm will halt for its input.
Then, the simulated brain, which is a program in a computer ... |
I have found this tool:
https://www.tools4noobs.com/online_tools/string_similarity/
and it says that is based on the article:
"An O(ND) Difference Algorithm and its Variations"
available on: http://www.xmailserver.org/diff2.pdf
I have read the article, but I have some doubts about how they programmed that tool, for exa... |
We have some tiles that each tile has 2 number written on it. We can rotate each tile in order to swap the position of numbers. We want to find the longest chain of tiles starting with a certain tile so that adjacent tiles have the same number on their common endpoint. If the tiles were
7-4, 11-8, 11-11, 4-2, 7-5, 11-... |
I am following CLRS for studying Amortized analysis with potential function and there I came through the following :
Let a data structure go through states : $D_0 $ $D_1$ $D_2$ $ ....$ $D_n$ while applying operations $O_1$ $O_2$ $O_3$ $....$ $O_{n-1}$
$\therefore$ the amortized cost can be written as :
$\hat c(O_i) ... |
I was trying to learn B+ tree deletion operation and trying to contrast it with B tree deletion operation. However barely any book provided detailed step by step B+ tree deletion operation. So I was referring B+ tree key deletion from here.
The page says deleting 15 from this:
yields this:
Thus this somehow demotes k... |
My idea is that the number of states in the minimum DFA is equal to the number of equivalent states. So, if there exists another minimum DFA, then it must have different equivalent states than the previous DFA which is not possible.
How do I formally prove this?
EDIT: Maybe something like "since two states are equivale... |
In a known method for approximating logarithms the following decomposition is adopted (assuming $x \in [1,2)$):
$$
log_2(x) = 1 + \sum_{j=1}^{+\infty} w_i log_2(1+2^{-j})
$$
Where all the coefficients $log_2(1+2^{-j})$ are stored in a LUT table, however for practical reason one can store only values $\psi_j \approx log... |
One of my friends works for a big oil rafinery. He's in charge of optimising the inputs (volumes, maximum price to pay for crude oil etc.) given a profit.
He's telling me there are heuristic ways to find out local optima but there is no way to prove if any of these optima are absolute.
We were debating on why that is. ... |
I'm trying to backfill missing CS knowledge and going through the MIT 6.006 course.
It asks me to rank functions by asymptotic complexity and I want to understand how they should be reduced rather than just guessing. The question is to reduce this to big-O notation, then rank it:
$$f(n) = n \cdot \sqrt{n}$$
I see in t... |
I'm in the process of self-studying the CLRS book. My mathematical background is poor so I'm trying to learn the maths as I go along too.
I don't understand the math in CLRS section 6.4 where they go from:
$$ \sum_{h=0}^{\lg n} \frac{n}{2^{h+1}} O(h) $$
to:
$$ O\left(n \sum_{h=0}^{\lg n} \frac{h}{2^h}\right). $$
I unde... |
Does $a^n b^m$ with $n, m \ge 0$ and $m \ne n$ fail the pumping lemma?
I know it is not regular and that this can be demonstrated by using closure properties, but does the language pass the pumping lemma?
It seems to me that for any p I can pump either a or b (depending on which has a greater repetition count) without ... |
How would I go about proving this statement?
Θ(n) + O(n^2) ≠ Θ(n^2)
I know how to prove if given a function f(n) if it's big o but I do not understand how to go about this type of problem.
|
For the following code segment,
c = a + b;
d = c * a;
e = c + a;
x = c * c;
if (x > a) {
y = a * a;
} else {
d = d * d;
e = e * e;
}
All variables are assumed to be dead after this code segment. The only allowed compiler optimization is code motion, which moves statements from one place to another while p... |
I was studying about minmax algorithms and it said the branching factor of a chess game is around average 35. Meaning a player can move about 35 legal moves per position.
I am not able to comprehend this.Like if I do the opening in chess I was able to count 20 possible legal moves.(1 or 2 possible moves for 8 pawns tha... |
Given a coinductive datatype, one can usually (always?) define a bisimulation as the largest equivalence relation over it. I would like to add an axiom stating that if two members of the type are related by the bisimulation, they are equal in the sense of Leibniz equality (=). Would this make the logic inconsistent?
A... |
In Kripke models the evaluation of $x \vdash \Box p$ would be that every world reachable from $x$ satisfies $p$.
But how would the truth of $\Box\Box p$ be evaluated in Kripke models?
|
Wikipedia as well as other sources that I have found list C's void type as a unit type as opposed to an empty type. I find this confusing as it seems to me that void better fits the definition of an empty/bottom type.
No values inhabit void, as far as I can tell.
A function with a return type of void specifies that th... |
Church-Turing thesis states that any effectively computable process is computable by a TM. Let's assume for now that it means that every physical machine is computable by a TM. Let's call it A.
Now if this process has an unbounded number of states (for example we could think of an engine in a car and take the geograph... |
I am having problems knowing how to prove a language is recursive or not. Is there a particular general strategy is used for such a problem, or possibly some principle which is often used?
Thanks very much in advance.
|
I'm actually trying to solve a task from an old OII (Italian national pre-IOI competition) in which I'm given an unweighted directed graph $G$ with $N$ vertices and $M$ edges and I'm asked to find a set of vertices $S$ which satisfies these conditions.
If we call $S^1$ the set of vertices that can be reached by crossin... |
Consider the time required to solve a problem, represented by f(n), and for sufficiently large inputs of size k, the time required to solve a problem is t. What is the typical method of determining how long, in terms of t, is necessary to solve a problem, for different kinds of f(n) and k?
For example, when f(n) is Θ(n... |
I am trying to solve an algorithmic problem. I came from http://math.stackexchange.com upon an advise that this forum would be a better place to ask this.
I would like to hear your advice on where to search for hints. If my problem has got a name, I would like to know what it is called in the field, and what I should... |
I have algorithm that contains next loops:
for (int i = 0; i < size; ++i) {
for (int j = i + 1; j < size; ++j) {
//Do stuff
}
}
I found that this algorithm has $O(n^2)$ complexity but I can't understand why? I.e. if $N = 4$ then $n^2 = 16$ but my loop has 6 iterations only. Just it's a half of $n^2$ v... |
Say you've implemented a program that completes it's work with O(2n) time complexity, and you measure the actual running time of the program as:
n1: 0.006s
n100,000: 16.057s
Since time will grow exponentially as n increases, what is the typical way to estimate the maximum n given a time t? For example, if time t is 1... |
As far as I am aware of, the beta-rule of the natural numbers type nat states that (please correct me if I am wrong)
natrec 0 t0 (lambda i ti. ts) := t0
natrec (succ k) t0 (lambda i ti. ts) := (fun i ti. ts)
But what does the eta-rule says? I wonder how the following formulation is correct / accurate / complete
natre... |
I understand in Floyd’s cycle, you are finding a cycle in a linked list by moving two counters- one by a factor of 2, other by a factor of 1. In Brent’s you are basically doing the same but the one factor moves by multiplying 2 instead by merely adding 2. Is there any math explanation behind why Brent’s is faster than ... |
I am struggling understanding how to apply to pumping lemma to a CF string.
I've got this string:
$$ a^{n}b^{n}c^{m} $$
I would like to understand the steps to apply the pumpuing lemma for this particular string and hence for any other.
At the moment I have tried to decompose the string to $u,v,w,x,y$ with a trial an... |
I understand in Floyd’s cycle, you are finding a cycle in a linked list by moving two counters- one by a factor of 2, other by a factor of 1. In Brent’s you are basically doing the same but the one factor moves by multiplying 2 instead by merely adding 2. Is there any math explanation behind why Brent’s is faster than ... |
I learnt that multi core processors have more than one processing units( i.e. the main executing units ALU etc.) and they are better at performance. I want to know how they share Physical memory. I'll take following example to make my question clearer - Say, There is a memory location M in physical memory and Two threa... |
So I came across a problem that has be completely stumped. You're given n servers to store a file on and you need to find the minimum number of servers you need to store the file on so that you can minimize the cost of the client and to the user.
When the user tries to look for a file he will start at some unknown serv... |
I know that (at least at its conception) Linux and Mac OS were both monolithic kernels. My question is, what kind of kernels are Linux, Mac OS, and Windows today and why?
|
For each constant $k$, the number of $k$-regular graphs is of the order of $n^{\Omega(n)}$. Therefore, we need $O(n\log n)$ bits to represent k-regular graphs unambiguously.
Let $k=3$ for simplicity. There are several algorithms
that run in time $O(n)$ on $3$-regular graphs with at most $n$ vertices.
For instance, de... |
I was reading a paper on the computability of AIXI [1] and came across the notion of $\Sigma^0_n$-computability for real-valued functions in section 2.3.
I'd like to read about this in more detail.
Unfortunately I couldn't find this definition anywhere else in the literature. I already checked the references given at ... |
Program Synthesis
To borrow from Microsoft:
Program synthesis is the task of automatically discovering an executable piece of code given user intent expressed using various forms of constraints such as input-output examples, demonstrations, natural language, etc.
One of the best program synthesis examples I've come ... |
I want an algorithm to list all possible ways to map a series of integers $M = \{1,2,3,...,m\}$ to another series of integers $N = \{1,2,3,...,n\}$ where $m > n$, subject to the constraint that only contiguous integers in $M$ map to the same integer in $N$.
E.g.: 5 -> 2:
(1, 2, 3, 4), (5)
(1), (2, 3, 4, 5)
(1, 2... |
I have a multiple knapsack problem I am trying to solve. To get the right solution, we need to ask the right question. My question is simply to identify what type of problem I have, not to solve the problem itself.
The Problem
I have a theoretically large model train track with dozens of short identical trains on it. I... |
We can use DFS to find a cycle in a given graph. The idea is that a cycle exists if we can find back edge in the graph. First I just want to detect if a cycle exists, if so return true else false. Here is what I have got so far:
DFS(G,s)
for all v in V do
color[v] <- white; parent[v] <- nil
end for
DFS-Visit(... |
In many to many multithreading model the processor threads are multiplexed to a lesser or equal number of kernel threads.
What exactly does it mean??
Does it mean that if a kernel is executing a blocking system call then the other threads will be shifted or multiplexed to other kernel threads??
Also is many to many a c... |
I have a computational problem where I'm given the values of a function $f(x,y)$ sampled on 2D regular grid. The function is given in a compact domain of a grid and it is strictly monotone w.r.t. $x$ and $y$ in the domain. It should be continued to the whole plane, with the only requirement of being continuous and stri... |
I'm reading a paper, and it says in its time complexity description that time complexity is $\tilde{O}(2^{2n})$.
I have searched the internet and wikipedia, but I can't find what this tilde signifies in big-O/Landau notation. In the paper itself I have also found no clue about this. What does $\tilde{O}(\cdot)$ mean?
|
Given an unweighted bipartite graph which has a perfect matching, is there an algorithm for finding a perfect matching in the graph that is faster than the best known algorithm for finding a maximum cardinality matching (MCM)? For example, is there some way to take advantage of the fact that the graph is known to have ... |
I have a dag $G=(V,E)$ and a coloring $c:V \to C$ that assigns a color to each vertex. I want to partition the vertices into groups, in a way that minimizes the number of groups, such that the following conditions are satisfied:
(a) All vertices in the same group must have the same color.
(b) If there is a path $v \le... |
Hi I want to find an unambiguous grammar for a known ambiguous one, and the production is like this:
S->bA|aB
A->a|aS|bAA
B->b|bS|aBB
I have found the string to prove this grammar is ambiguous: bbaaba. I wonder whether it is doable to convert the grammar into unambiguous. I have approached it from this perspective: in... |
Forgive me/delete this question if it doesn't qualify as Computer Science:
I've always wondered about the relationship between Map the data structure and map() the function. I know they are two different things. Why share the name?
|
I'm doing some machine learning work in python with sklearn. Basically the problem is trying to predict how long an event will take based on 4 correlated pieces of data. What I've been doing is I have four polynomial regression trained on each piece of data respectively. Then I take the output of these polynomial regre... |
how the all gates can be made by only these two . Yes i know the circuit diagram of basic gates by universal gates which i have learnt. but if there is complex circuit like XOR gate or any other expression how would you make it please upload some links or material to explain the stuffs
|
I am new to complexity theory and I have some maybe stupid questions:
Are "decision problems" with the characteristic functions x(t)=1 or x(t)=0 "decision problems" or not?
If yes: Are the corresponding formal languages members of P or not?
(The calculation time needed is constant.)
If the answer is yes in both cases:
... |
I was researching about the supervised algorithm called Random Forest, that made me begin to study about decision trees, and how to induce them from a set, in order to create several predictors.
My question comes at this point when we consider functions such as Information Gain or Gini impurity.
In order to use as spli... |
In the book Computability, Complexity, and Languages (2nd edition), Martin Davis writes in chapter 1 (Preliminaries), section 2 (Functions):
A partial function on a set $S$ is simply a function whose domain is a subset of $S$. An example of a partial function on $\mathbb{N}$ is given by $g(n) = \sqrt n$, where the dom... |
The Halting problem for Turing machines which work on a tape of at most $k$ cells can be solved: There is a limited number of distinct configurations available, providing an upper bound of steps before nontermination is determined.
Now let us give each cell an exponent: It stores how often the symbol in the cell is to ... |
A seminal paper in network reliability is "Connectivity of Probabilistic Networks" by Kel'mans, with a link here.
However, the linked PDF file is in Russian. Is there an English translation available online? The version journal/year (Automation and Remote Control, 1967, 444–460) listed there does not seem to be availab... |
On Codeforces, the first problem that comes up for the tag "greedy" is "50A: Domino Piling". Here is the problem:
You are given a rectangular board of M × N squares. Also you are given an unlimited number of standard domino pieces of 2 × 1 squares. You are allowed to rotate the pieces. Find the maximum number of domin... |
When we declare a variable, how does it get stored in a memory? How does the compiler know from within millions of memory locations which ones are currently not in use or are empty so that it can store the variable there? If it traverses each memory location the whole memory address space and checks on each location wh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.