instruction stringlengths 35 29.1k |
|---|
How can something be enumerable but be un-decidable ie, this states the halting set is un-decidable and enumerable. Enumerable means it can be computed, ie has the same cardinality as natural numbers and can be computed by a program with an output. But if thats the case it should be decidable. Or is decidability separa... |
Suppose I have a Markov Algorithm, and I have some rules, such that after execution of these rules, the remaining string is either "a", "b", or the empty string, "". Then I have three terminal rules to cover these cases:
"a" ->. "100"
"b" ->. "99"
"" ->. "0"
Is the last rule a valid terminal rule? Can a Markov Algori... |
I've seen plenty of statements in papers and on websites that Fast Fourier Transform-based multiplication algorithms are slower than other multiplication algorithms for relatively small input size N, and I've seen plenty of data in papers and on websites demonstrating that this is the case, but nothing I've come across... |
I have a problem giving "intuitive" explanation to turing-unrecognizable languages.
We can prove that, say, ${\overline{A_{TM}}}$ is not turing-recognizable, because that would make ${{A_{TM}}}$ decidable, but what would the $TM$ do if it doesn't accept, reject of loop?
|
Today I am trying to solve an classical problem:
For any $n\in \Bbb{N}^+$, If it can be represent as the sum of consecutive positive numbers, find out them.
For example:
$$15 = 1+2+3+4+5$$
$$15=4+5+6$$
$$15=7+8$$
And I have an ugly method, its time complexity is: $O(n^2)$. I use two for loop to exhaustion all possi... |
Suppose there are $n$ subsets of $U$. I want to quickly (in terms of average-case) find k $ (< n)$ subsets that contain $e \in U$ (call this Extraction(e)). Elements are integers.
To that effect, I want to preprocess/encode the $n$ subsets so that this extraction operation can occur relatively quickly, regardless of wh... |
I have a very large unsorted file, 1000GB, of ID pairs
ID:ABC123 ID:ABC124
ID:ABC123 ID:ABC124
ID:ABC123 ID:ABA122
ID:ABC124 ID:ABC123
ID:ABC124 ID:ABC126
I would like to filter the file for
1) duplicates
example
ABC123 ABC124
ABC123 ABC124
2) reverse pairs (discard the second occurrence)
example
ABC123 ABC124
A... |
Do anyone have any idea how to solve this recurrence?$$T(k) = \sum_{i=1}^{k/2} {k \choose i}T(i)T(k-i)$$
I am working with this kind of recurrence for the first time and don't have much idea of how to proceed. But, for beginning I was trying to guess the solution and use substitution method. But, in the guessing part ... |
Some background: Burks, Warren and Wright published a description of simple interpreter for a Logic Machine for unparenthesized Lukasiewicz notation (paper, SO question, c implementation, postscript implementation) which was heavily cited in Kenneth Iverson's 1962 classic A Programming Language.
Within there is an ele... |
I need to generate binomial random numbers:
A binomial random number is the number of heads in $N$ tosses of a coin with probability $p$ of a heads on any single toss. If you generate $N$ uniform random numbers on the interval $(0,1)$ and count the number less than $p$, then the count is a binomial random number with ... |
Station A is sending data to station B over a full duplex error free channel. A sliding window protocol is being used for flow control. The send and receive window sizes are 6 frames each.
Each frame is 1200 bytes long and the transmission time for such a frame is 70 μS. Acknowledgment frames sent by B to A are very sm... |
A formal language $L$ over an alphabet $\Sigma$ is a subset of $\Sigma^*$, that is, a set of words over that alphabet. Two formal languages $L$ and $L'$ are equal, if the corresponding sets are extensionally equal as subsets of $L\cup L'$. One can use languages in complexity theory to formalize the concept of a "proble... |
I can't really find out, how can the following given Language be written down with regular expressions
$
L = \{ a^{3k-1} b^n a^{2t} \mid n > 0; k, t\ge1 \}
$
I had some guesses, but I don't know how to express the part $a^{3k-1}$ of the Language.
Probably it should look something like this:
$(aaa)^+$ [something] $b^*(a... |
I'm creating a experimental toy language for my own education purposes (an impure typed Lisp based on Clojure - https://github.com/mikera/kiss)
I think I understand the concept of each expression in the language having a return type.
However some expressions may contain flow control statements that mean that the expres... |
To show that a particular language $A \in C$ is $C$-complete, where $C$ is some complexity class, we might construct a reduction from some known $C$-complete language $B$ to $A$, where $B$ is $C$-complete and the complexity of the reduction is asymptotically less than the upper bound of the complexity class (I just mad... |
$\{a^nb^2a^n \mid n \ge0\}$
I'm studying for my final and I came across this language. I haven't dealt with characters of the same length on opposite ends with something in between.
I came up with the following grammar, but I think it accepts strings that it should not such as:
$abb, bba$, etc.
$$\begin{align}
S&\righ... |
Question. Name the law given and verify it using a truth table. X+ X’.Y=X+Y
My Answer.
X Y X’ X’.Y X+X’.Y X+Y
0 0 1 0 0 0
0 1 1 1 1 1
1 0 0 0 1 1
1 1 0 0 1 1
Prove algebraically that X + X’Y = X + Y.
L.H.S. = X + X’Y
= X.1 + X... |
This question is based on the solution to topcoder SRM-620 question:
bool solve(int a, int b, int c, int d)
{
if(a == c && b == d)
return true;
if(a > c || b > d)
return false;
return solve(a+b,b,c,d)||solve(a,b+a,c,d);
}
The time complexity is given by the recurrence formula
$$
T(a,b,c,d) ... |
I am reading Computational Complexity book and specifically Grovers search algorithm. I am aware that if we knew in advance exact number of solutions $K$, then the basic algorithm can be tweaked to find an input $x$ in $O(\sqrt{2^{|x|}/K})$ time. I found some material but, as I am new to quantum computing, I have probl... |
"Suppose we use the subset construction to convert a $7$-state NFA $M = (Q,\Sigma, \delta, q_0, F)$ into a DFA $M' = (Q', \Sigma, \delta', q_0, F')$ for the same language. Then $M'$ will have $|Q'| = 128$ states. If $|F| = 2$, then $M'$ will have $|F'| = 96$ final states."
From the subset construction, I know there are... |
The question is a true or false question:
Hash tables using probing for collisions run in constant time with respect to how many items are in the hash but are at least linearly dependent on how full the hash is.
I think it's true but I don't fully understand why and I don't understand the term linearly dependent.
Any h... |
I'm trying to proof/refute the following equation:
$$n^n = \Omega(n!)$$
Generally I would try to use Convergence Criteria and or l'Hôpital's rule to solve such a problem.
$$\lim_{n\to \inf}{{f(n)}\over{g(n)}} = K$$
However, in this case $n!$ is somewhat of a party-stopper. I found Stirling's approximation which states ... |
Is it one of:
Harvard
Modified Harvard
von Neumann
Or are they antiquated models that modern computers are only loosely based on?
If you asked Intel or AMD what would they say?
|
I'm a student of logic and I'm interested in looking at logic applications, of which I am told there are many, in computer science and allied areas. I've seen some applications. More specifically, I keep seeing little things about security protocols which use logical methods. I'd like to learn some more about this mate... |
A sorted array $\mathcal{A}$ with even number of elements is given. Consider $\mathcal{A}$ be partitioned from the middle such that both parts ($\mathcal{A}_1, \mathcal{A}_2$) contain equal number of elements. We choose some arbitary odd indexed (index with $1,5,9$ etc.) elements from $\mathcal{A}_1$ and swap them wit... |
You are given a 40x40 grid. Each point of the grid is either 0 or 1. You are also given an infinite amount of 1x40 rectangular slabs.
How to find out the minimum number of slabs required to cover all the points which have a value 1?
NOTE: The 1x40 slabs can overlap with each other.
|
I am looking for a way to translate basic c programs (subset of c or java or some declarative programming language) to a Boolean circuit.
I know that Turing machines are reducible to Boolean circuits in theory, so this should be possible.
However, rather than re-writting things, I know that most EDA tools such as Vivad... |
I am kind of unsure about a reduction between two problems.
Here are the two problems:
PARTITION:
Instance: A finite set of n positive integers $S= \{a_1,a_2,...a_n\}$.
Question: Can the set $S$ be partitioned into two subsets $S_1$,$S_2$, s.t. the sum of the numbers in $S_1$ equals the sum of the numbers in $S_2$?
MUL... |
In the process of reducing the states of a synchronous finite state machine first we need to create maximal compatibility classes (of states; which states can be compatible, i.e. the "don't cares" can be set such as the states become compatible). After creating maximal compatibility classes we have to create minimal co... |
A graph is called a circular-arc graph if each of its vertices can be assigned to a circular arc such that two vertices are adjacent iff their respective arcs have a non-empty intersection. Analogously, a graph is an interval graph if we can assign each of its vertices to intervals on a line in the above fashion. Note ... |
Consider all strictly decreasing functions from {1,2,3,4} to {1,2,3,4,5,6}, or in other words, all functions defined on {1,2,3,4} such that f(1)>f(2)>f(3)>f(4). Draw a decision tree so that the leaves are in lexicographical order when read from left to right. Then answer the following questions:
(a) What is the rank of... |
I've just watched this replica of the Antikythera mechanism. I've heard also about Babagge's analytical machine and the Curta calculator. I got curious: What did they use to build computers made of gears? We have nowadays some treatises to make logic gates with transistors, how did they manage to build logic gates or t... |
The halting problem says that a Turing machine cannot decide if another Turing machine halts.
However, we know that it is possible to determine if some programs halt. For example, FORTRAN DO statements are simple to formally verify. FORTRAN is however not Turing complete.
What is the largest subset or class of halting ... |
I am trying to learn compiler design. But I get confused when I have to deal with computing the follow set specifically for the empty word.
Given the grammar:
S-> ABC
A-> Aa|b
B-> Bc|d
C-> Ce|f
I've come up with the following first and follow sets:
1 S->ABC First(1)-{b}
2 A->bA' First(2)-{b}
3 A'->aA' First(3)-{... |
Recursive functions are usually defined by directly calling a function inside its own body.
Nat = Z | S Nat
double Z = Z
double (S x) = S (S (double x)))
What if, instead of defining them this way, we just enumerated two recursive datatypes and zipped them?
To be more descriptive, mind the following functions/types:
... |
Would it be plausible to write a recursive version of backpropagation through time for recurrent neural network training? I've only found the iterative version:
http://en.wikipedia.org/wiki/Backpropagation_through_time
|
Computability and Logic by Boolos and Burgess says that formula $\Gamma_d$ in example 12.12
∀x∀y(∃u(u ≠ x ∧ u ≡ x) ∧ ∃v(v ≠ y ∧ v ≡ y)) → x ≡ y)
supports models, whose domain is partitioned into equivalence classes of any size, e.g.
is possible. Yet, I do not understand how this is possible. Suppose my x is the firs... |
Redefine the weight of a spanning tree to be the weight of the maximum weight edge in the tree (i.e. the weight of the tree is no longer the sum of the weights of all the edges in the tree, only the weight of the edge with the maximum weight). How would you derive an efficient algorithm to compute the minimum weight sp... |
I'm working with a very large undirected graph (a social network from a telecomunication company).
I'm applying a clustering algorithm on this graph to find it’s most relevant communities. The problem is that the algorithm is very slow and I need to test it with a smaller graph to tune some parameters.
Recently, I cam... |
As part of a homework assignment I'm asked to describe an O(mn) algorithm to find the length of the longest zig-zag sub sequence. The overall topic for this assignment is dynamic programming. As described in chapter 15 of CLRS.
A zigzag pattern is for example (2, 4, 1, 4) or (1, 2, 1) or (6, 1, 3, 2). While (1, 2, 3) a... |
I was given this function:
$F(n)$ returns the smallest TM (measured in number of states) such that on input $\epsilon$, the TM makes at least $n$ steps before eventually halting ($n$ is a natural number). I was asked to prove that this function is uncomputable using a reduction from the Busy Beaver. I'm still new to re... |
Let two numbers $x,y$ be represented in some digit form (binary, octal, ...): $(x_1 x_2 x_3 \ldots)$ and $(y_1 y_2 y_3 \ldots)$.
Can we add those numbers such that we do not need to carry over: $x_i = x_i+y_i + c(x_{i-1},y_{i-1})$ where $c(x_{i-1},y_{i-1})$ is the carry value of $x_{i-1}$ and $y_{i-1}$.
Are there $O(1)... |
Do you guys know of any method or algorithm you are able to predict where a user is moving their cursor given its speed and bearing?
I'm trying to predict if and when users are moving their mouse to a certain part of the screen (address bar location).
Could I exploit Fitts's Law in this regard?
|
We are given a directed graph, the number of vertices and edges. We need to decide, whether there is a [starting] vertex where we can get started and visit all the vertices. You can revisit vertices, but can't "use" edges twice or more time. All this in linear time.
I was thinking about DFS - if the number of vertices ... |
This is a question I have stumbled upon in an old Algorithms test I found online:
A) Plan an algorithm that does the following:
Input: Red-Black tree
Output: $\sqrt{n}$ seperate trees, so that every tree has $\sqrt{n}$ nodes.
What is the complexity of the Algorithm you planned? must show analysis.
B) Assume that... |
DISCLAIMER: The following scenario was taken from an assignment I got in a OS course I'm taking, and it arose a lot of question marks in my head. However non of the questions asked by myself here reflects a question that I'm supposed to answer (alone) as part of the assignment. What I mean is: I'm not asking you to do ... |
When training a classifier for object detection using features extracted from images (eg HoG features), how important is it that the images used for training fed into the classifier in their natural aspect ratio?
For example, regardless of their aspect ratio, would a classifier work if all images were edited re-sized i... |
I have a question about the difference between general object detectors and specific object detectors.
By specific object detectors, I'm referring to classifiers/object recognizers that are built to recognize a single object, eg. a person, or a vehicle.
By general object detectors, I am referring to algorithms which ar... |
Might be an odd question but how is it that when you specify a tree using an adjacency list emphasizing leafs first you state only need state 0 or 1 parent for each node but when you define a tree in another matter, emphasizing the root first (moving inward), you must specify any number of child nodes for each node? Se... |
It is not always so easy to determine which basic questions on languages are (un)decidable. Also due to Rice's theorem, many nontrivial questions on languages are undecidable.
What are notable or significant decidable operations on context-sensitive languages (CSL)?
In other words, I'm looking for the "most complex" ... |
Consider the following dinner party problem:
Given a list of acquaintances, and a list containing all pairs of individuals who are not on speaking terms with each other, find the largest set of acquaintances you can invite to a dinner party such that you do not invite any two who are not on speaking terms.
I have rea... |
I am looking for the simplest possible $O(n \log n)$ algorithm for triangulating a simple polygon. It seems like there should be a simple divide and conquer variant that would fit the bill, ideally one avoiding auxiliary data structures such as trapezoidal decompositions. Indeed, all that would be required is an $O(n... |
Very simple question, but a mistake I make often enough that I'd love to have a standard reference.
I'm showing that a problem $P$ is NP-Hard by assuming I have a polynomial time algorithm to solve $P$, then showing that this solves another NP-Hard problem $Q$ in polynomial time.
Have I reduced $P$ to $Q$ or have I red... |
Background: I am interested in finding succinct data structures for certain types of graph classes, particularly partial k-trees. For general graphs, there are $\binom{\binom{n}{2}}{m}$ graphs on $n$ vertices and $m$ edges, and so the minimum number of bits required to encode a graph is simply the $\log$ of the amount ... |
Given the potential function $\phi$, it seems that remove max may take $O(1)$ amoratized,
meaning that $n$ removals would take $O(n)$, which can't be, as it means we get a linear time comparison based sort if we build the heap in $O(n)$.
Where is the falling point in this potential function, and does it not give a $O(1... |
I understand that soundness implies consistency. Also, I understand that consistency alone does not imply soundness. But shouldn't consistency + completeness imply soundness? Scott Aaronson in his blog-post hints otherwise. What am I exactly missing?
Update: By completeness I assume that all sentences true under all in... |
I'm looking for some applications of criteria of irreducibility of integer polynomials inside and outside mathematics.
I was reading the of CV Filaseta, a great researcher in this area and he has gained some grants from NSA. Then this makes me think if there are some applications of this matter to computer science.
Th... |
I learn from the OS schoolbook that the OS has the function that schedule the disk requests with the knowing algorithms such as SSTF, SCAN .. However, the date layout inner disk drives now is very complex that we may can't know. Disk zoning, disk skew, disk slipping and many other features of disk drives changes the di... |
I was thinking the other day, and it occurred to me that computer programs all seem to be representable as a graph (an abstract syntax tree for example), or, once common expressions are combined, an abstract syntax graph.
It occured to me that perhaps any computer program can be represented as one of these graphs + ... |
I have a list of couples "probability"+"value".
What is the best algorithm for generating random values with that specified level of probability?
1st proposal:
Approximate the probability up to 10^-k. Create a set of 10^k items each of witch with the corresponding value,
Eg:
x=[0.1:a, 0.2:b, 0.4:c 0.3:d]
Approximat... |
Give a polynomial-time algorithm that finds ceil(V/2) vertices that collectively
account for at least three-fourths (3/4) of the edges in an arbitrary undirected
graph.
The algorithm I have come up with is a greedy algorithm that iterates through the graph choosing the node with the largest number of incident edges and... |
I'm trying to find out which operation is fast, evaluating a comparison vs doing an arithmetic option on a single word (e.g subtract, add). Can anyone point me in the right direction with some blogs, books and other material?
|
We know that A(TM) is undecidable, what if we reduce A(TM) to A(DFA) which is decidable? How will we prove that A(DFA) is decidable?
I couldn't find an example or theory.
Thanks
|
I'm trying to figure out which language can be recognized in this automaton
Automata http://cdn.imghack.se/images/64b81d259a1d403b810dd9744dc222f7.jpg
According to Wikipedia here "The language L ⊆ Σ* recognized by an automaton is the set of all the words that are accepted by the automaton."
So using what Wikipedia sta... |
I am new to reinforcement learning. Lately, I have learned Q-learning using the following tutorial.
Is Q-learning still possible if the environment is dynamic. Using the environment of the tutorial as an example, in some states it is possible to go from room 0 to room 1 and and it is not possible to go from room 0 to ... |
I have a list of 20000 words and how often they appeared in a set of 500 newspaper articles. I am trying to build a stemmer which chops off suffuxes from each words, so walked, walking, walks are the same word.
In English, the Porter Stemmer is a rule-based system where you repeatedly chop off suffixes:
CONNECTIO... |
Hello I have the above Context Free Grammar and I try to eliminate the left recursion so I can pass it to a tool. Any techniques I've read so far doesn't help me so a little help would be appreciated.
exp -> num | exp op exp | (exp)
op -> + | - | * | /
I don't have the slightest idea on how to proceed. The ... |
I was reading these lecture notes and I'm trying to understand how one would formally describe reducing 3-colouring to planar 3-colouring. The link pretty much describes the process but understanding the mathematical formalism is a bit over my head. In short, it seems that every edge crossing is replaced with some new ... |
I'm reading "Algorithms Fourth Edition" by Sedgewick & Wayne and am wondering if I have spotted an error in the book or if I just can't wrap my head around something so simple.
When talking about the complexity of quicksort, the book says that the cost of partitioning, measured in the number of compares, is equal to N ... |
The language is an infinite set of chains that are defined by the next conditions.
Conditions:
1) The language chains may consist of symbols from the set {1,a,b}.
2) The language chains always start from subchain '1a'.
3) Every languange chain has to include at least one subchain 'aa'.
For example:
1aa, 1abaa, 1aaab,... |
I have stumbled upon this problem online:
Given a sequence of n real numbers A(1) ... A(n), determine a contiguous subsequence A(i)... > A(j) for which the sum of elements in the subsequence is maximized.
Now my solution is so:
I assume that the sequence is stored in an array.
We need 2 arrays under the original arra... |
Let
$L=\{ \langle M \rangle \mid M \text{ is a Turing Machine which halts on all inputs}\}$.
Is this a Turing-recognizable language? I guess that it is neither Turing-recognizable, nor co-Turing-recognizable, but I can't prove it.
|
I am having difficulty answering the following questions relating to the use of threading.
Question 1 is of relating to the possibility of a local storage per thread and a global storage accessible to all threads. Consider the following scenario; A program creates a series of threads each with their own local storage, ... |
The language considered is the infinite set of all chains that meet the following conditions.
Conditions:
1) They consist of symbols from the set {1,a,b}.
2) They always start with the subchain '1a'.
3) They always include at least one subchain 'aa'.
For example:
1aa, 1abaa, 1aaab, 1aab1a, ... etc.
One regular expre... |
I am trying to implement a mesh generation algorithm. Input to the algorithm is a set of constraints(imposed on output mesh) called Piecewise Linear Complex(PLC) which is a collection of vertices $V\subset\mathbb R^3$, edges $E=\{(a,b)|a,b \in V\}$ and triangles $T=\{(\alpha,\beta,\gamma)|\alpha,\beta,\gamma \in V\}$.
... |
I'm trying to construct a finite-state automaton from the following regular expression:
$$
(a|ba)(a|ba)^*(b|ab)^*
$$
I know that from
$$
(a|ba)
$$
the automaton should look something like this:
automaton http://cdn.imghack.se/images/5ab1437745d2a53d4630619819074d6c.jpg
from
$$
(a|ba)^*
$$
it should look like this I gu... |
What's the best way to represent sets that support the following two operations:
Insert(s, i) - adds nonnegative integer i to set s
Equal(s1, s2) - Tests if s1 and s2 are the same set.
In addition, I have an upper bound on the integers added to each set. That is, I know $N$ such that $0 \le i < N$.
I'm also willing... |
Can you give me some suggestions about a good introductory (but comprehensive) bookabout Logic and Computation?
Some fuzzy topics that I have in mind are:
Presburger artihm., PA, ZF, ZFC, HOL
Set theory, Type theory
Modeling Computation (Turing machines) in different theories
Links with computational complexity (FMT, ... |
I have to find an algorithm that finds the SSSP (single-source shortest path - shortest paths from one source vertex to all other vertices) on a weighted undirected graph. If there are 2 different shortest paths, the algorithm should prefer the one with less edges on it. The time complexity of the algorithm is $O((|V|+... |
This question relates to timing threads to go at a very precise rate. Consider the following scenario; A program creates a series of threads that continually add a random set of elements to their local storage. The program finishes and returns the thread that received the shortest number of elements in its random set. ... |
I'm trying to figure out if there is a proper or commonly accepted name for this particular function (f).
float clamp(float min, float max, float v)
{
if (v < min) return min;
else if (v > max) return max;
else return v;
}
float f(float min, float max, float v)
{
float t = (v - min) / (max - min);
... |
I am an experienced software developer, want to refresh discrete math back in uni.
I am looking for a book that is easy to read, contains more examples, and exercises and solutions for self study beginner.
There are two books below that are recommended by others. Which one should I pick:
Susanna S. Epp's Discrete Math... |
It's open whether $EXP = NEXP \to P = NP$ (the other direction can be shown by padding). My question: has there been any progress along these lines at all? For example, can we show that $EXP = NEXP \to NP \subset SUBEXP$ (where $SUBEXP = \cap_{\epsilon > 0} 2^{n^\epsilon}$)?
|
What are the limitations of map reduce in the sense of the types of computations that they can express? Is Map Reduce "turning complete"?
I have been told that map reduce only works on things that can be expressed in the Map and Reduce framework, but my question is, why can't everything be expressed like that?
This mig... |
In Chaitin's Meta Math! The Quest For Omega, he briefly talks about Hilbert's 10th Problem. He then says that any Diophantine Equation $p=0$ can be changed into two equal polynomials with positive integer coefficients: $p=0 \iff p_1 = p_2$.
Then he says that we can think of these equations like a "computer":
Diophanti... |
This question appeared on my Theory of Computer Science final:
True | False: $A^*$ is context-free $\implies$ $A$ is context-free.
My professor says the answer is false, and I believe him, but am having trouble constructing a counterexample or even just convincing myself why. It seems to me that if a grammar can descri... |
Proof assistants such as Agda can be used to assert properties about programs, such as "the double of a number is even". Interestingly, supercompilers can be used for the same purpose, creating typeless proofs. Even more interestingly, macro tree transducers can, too. My question is: what is the relationship between th... |
I'm following through the proof of the impossibility of the Halting problem for the umpteenth time. It all makes sense logically, but not intuitively. A question I got stuck on:
Suppose we built the following machine in attempt to solve the halting problem. It takes our standard set of axioms (ZFC, let's say, or Peano ... |
Supercompilers can be used as a generalisation of deforestation of a functional program. Macro Tree Transducers composition can be used to the same effect, using a completely different approach. What is the relationship between those?
|
I am trying to get a good grasp on Monte Carlo (MC) algorithms, but I feel I am missing something fundamental.
What I don't understand is how MC improves its confidence of giving the correct solution by running more executions.
So please correct me if I am wrong and assume that $Pr[false] \leq 0.5$. Assume we need to f... |
I'm reading a paper about Multi-Objective Optimization Problem. I understand Optimal in Pareto sense, and I even know what is Pareto-Optimal Front somehow. But I can't find a relationship between the word Front and the concept. So, what's the meaning of this word in this context?
|
If L is the empty set and therefore a regular language, I know that L concatenated with sigma star is equal L; Are there any other languages that, when concatenated with sigma star will result in the same language?
|
I have encountered a few tests in algorithms which ask for
a data structure which allows to get the sum of all the elements of an array in the range [i..j], in O(1) time.
Is it even possible to do so?
|
I want to understand the expected running time and the worse-case expected running time.
I got confused when I saw this figure (source),
where $I$ is the input and $S$ is the sequence of random numbers.
What I don't understand from the above equation is why the expected running time is given for one particular input $... |
It's a post which already posted on math.stackexchange.com.
I'm not a statistician so please forgive me if I pose a silly question, but it's a real problem for me in my research. Suppose we have defined risk in a regression problem as $R(f)=\int l(f(x),y)p(x)dx$ in which we want to estimate $f$ based on the data.The fu... |
Are all cases of addition and removal in 2-3-4 trees isomorphic to cases of addition and removal in red black trees?
|
I got a matrix of integers of size $3\times n$. Of each one of the three rows, for each column I got to choose one number, with the restriction that, for each $i$, the numbers chosen in the $i$th and $(i+1)$st rows cannot come from the same column.
The problem asks to make an algorithm such that the summation of all th... |
M = (Q, Σ, Γ, δ, q1, qaccept, qreject), where
Q ={q1, q2, qaccept, qreject},
Σ = {0, 1},
Γ = {0, 1, U},
and transition function δ is as follows:
δ (q1, U) = (q1, U, R)
δ (q1, 0) = (q2, U, R)
δ (q1, 1) = (q2, U, R)
δ (q2, U) = (qaccept, U, R) δ (q2, 0) = (q1, U, R)
δ (q2, 1) = (q1, U, R)
is L Turing - decidable? Fr... |
I was trying to write my own code for primes in Python. I know that code already exists, but I am doing this to challenge my knowledge and make my own solution. I was wondering if any of you guys would tell me what's wrong with it.
factor_list = [ ]
def integer_test(x):
if type(x) == int:
return True
... |
I had my final exam today in an advanced algorithms course. In it there were two recurrence relations and I used the Akra-Bazzi theorem to solve them. After the examination I was discussing the problem with one of my colleagues and they apparently got a different bound using Master theorem. My question is which of this... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.