instruction stringlengths 35 29.1k |
|---|
I'm making a program to play the board game Quoridor. I build a move tree using Monte Carlo Tree Search (MCTS). MCTS requires me to test whether a node is expandable. A node is said to be expandable if it has a child node that hasn't already been visited.
How can I test whether a given node is expandable?
I know you c... |
I am a beginner started learning theoretical computer science. I just came through context-free grammars.
So my question is: what is the different between left-most and right-most derivation?
Because both of them gave me the same parse tree.
|
This sounds like it's probably a well-known problem, but I haven't been able to find references to it by searching.
Given a floating point value $x$ and an error range $\varepsilon$, how can I efficiently find a minimal positive integer $q$ such that $\left|x - \frac{p}{q}\right| < \varepsilon$ for some integer $p$?
Th... |
Some twenty years prior I was given the task to solve the Point in Polygon problem for a piece of commercial software. I solved it invoking the ray casting algorithm. After a variety of enhancements the function worked well enough, but I felt there was a better way. I found inspiration in Gauss's Law. Charges and the e... |
With the help of TopCoder Tutorial and this post, I was able to understand the basic idea of how basic the cumulative frequency sum is stored in the left subtree of a BIT node.I was successfully able to understand the point update and range query for which BIT is famous for.
Then I came across this post which explained... |
This question is not about any particular algorithm to look for articulation vertices (cut vertices) in a graph but rather seeking real world applications of algorithms involving such vertices.
I am going through Skienna's The Algorithm Design Manual and it gives an example of an articulation vertex in a telephone netw... |
Consider the following divide and conquer algorithm to remove duplicates in a list. The text is in French.
What is the meaning of the variables $c1, c2, d1, d2$? Why are only the variables $c1, d1$ compared?
|
I'm programming a genetic algorithm using grammatical evolution. My problem is that I reach local optimal values (premature convergence) and when that happens, I don't know what to do. I'm thinking about increasing the mutation ratio (5% is it's default value), but I don't know how to decide when it is necessary.
The d... |
Given a weighted digraph with positive and negative edge weights, what is the complexity of finding the negative cycle in the graph whose weight is as small as possible?
I know that I can detect negative weight cycles using Bellman-Ford. Has this variation be studied before? Can you point me to a reference?
|
Given a weighted digraph with positive and negative edge weights, what is the complexity of finding the shortest (uses the least number of edges) negative weight cycle in the graph?
I know that I can detect negative weight cycles using Bellman-Ford. Has this variation be studied before? Can you point me to a reference?... |
I have been following the book Introduction to Automata Theory, Languages, and Computation by John E. Hopcroft and Jeffery D. Ullman.
I came across the following topic titled Bad Case for Subset Construction (2.3.6). I cannot follow the example given over there, about NFA N that can accept strings with 1 at the $n^{th}... |
Let $C$ be a $[n,k]$ linear code over $\mathbb{F}_q$.
Suppose that $\rho$ is the covering radius .
I want to show that $\rho \leq n-k$.
Could you give me a hint how we could show this?
The covering radius is defined as follows:
$$\rho=\max_{x \in \mathbb{F}_q^n} d(x,C) \\ d(x,C)=\min_{c \in C} d(x,c)$$
|
Consider the problem of taking an input Turing machine and determining if the final cell is a $0$ or $1$ after computation halts. On cases where it writes something else or does not halt, you are allowed to give any answer (but you have to halt and give some answer on all inputs).
Is this problem undecidable? My gut sa... |
I had two specific type of questions involving Binary Search Tree (not simple Binary Tree) traversals :
Given x-order traversal output of BST, can we state if it is valid or invalid output?
(For example, this: [3,2,1,4,6,7,8,5] can be valid postorder traversal output, but this: [4,1,3,2,6,7,8,5] cannot be.)
Given x-o... |
I'm currently writing my bachelor thesis and explain some algorithms where the XOR-operation is used.
Can I use "XORing" or "XORed" in my thesis or is this too informal?
For example: "xoring the plaintext with the stream cipher results in the cypher text" and "the plaintext is XORed with the stream cipher..."
Also what... |
Let $C$ be a $[n,k]$ linear code over $\mathbb{F}_q$.
Suppose that $\rho$ is the covering radius .
I want to show that $\rho \geq \frac{n-k}{1+ \log_q{(n)}}$.
Could you give me a hint how we could show this?
|
Let $C$ be a $[n, k]$ linear code over $\mathbb{F}_q$.
I want to calculate the covering radius of the Hamming codes.
I have thought the following:
Since the Hamming distance is $3$, the coverig radius will always be $3$.
Am I right?
|
Let $C$ be a $[n,k]$ linear Code over $\mathbb{F}_q$ .
I want to show that each vector of $\mathbb{F}_q^{n-k} $ is written as a linear combination of $m$ columns of $H$ iff $\rho \leq m$.
I have thought the following:
$$ d(C)=\min \{ d \in \mathbb{N} | \text{ there are d linearly dependent columns of H}\} $$
So $H$ ... |
I have a weighted graph. The nodes of this graph are grouped into sets, and each node has only one corresponding set (no overlapping). Nodes in the same set do not have edges between them. An edge only connects nodes that are in different sets.
I want to select one node from each set, such that the total weight of the ... |
If we look at the Chomsky hierarchy, we see that there are four well-known classes of languages: regular languages, context-free languages, context-sensitive languages, and recursively enumerable languages. There's also the class of recursive languages (which fits in between CSL and RE), but Chomsky didn't include this... |
I'm studying some basic category theory in the context of type theory and came across the statement "simply typed lambda calculus is the internal language of cartesian closed categories". However terms and substitutions in the internal language of CCCs are the same data type, unlike in (traditional) STLC. Speaking in A... |
I have $N$ nodes $v_1,\ldots,v_N$ in one partition $X$ and $M \leq N$ nodes $u_1,\ldots,u_M$ in a different partition $Y$. I want to connect nodes in $X$ to nodes in $Y$ with edges under the following constraints:
Each node in $X$ must be connected to at most $k$ nodes in $Y$
For each node $v_t$ there is a node $u_{f(... |
$ALLEVEN_{CFG}$ = {M is a grammar, and L(M) includes all strings of even length in $\Sigma^*$} = {(M): ($\Sigma\Sigma$)* ⊆ L(M)}
$ALLODD_{CFG}$ = {M is a grammar, and L(M) includes all strings of odd length in $\Sigma^*$} = {(M): $\Sigma$($\Sigma\Sigma$)* ⊆ L(M)}
Is $ALLEVEN_{CFG} \cap ALLODD_{CFG}$ Turing Decidable?
I... |
CLRS asked it's readers to prove that there are at most $\lceil n/2^{h+1} \rceil$ nodes of height $h$ in any n-element heap as an exercise. The principle of Mathematical Induction can be used to prove this as explained here.
My question is how one can come up with this formula at first place. Are there any key observat... |
Problems in $P$ have polynomial time algorithms. Problems in e.g. $NP-complete$ are only solvable in "probably exponential time" (Shen Lin's PET).
Problems in $P$ are considered easy while others (most likely) are not.
What does easy mean?
I've always thought of hard and easy this way:
Our computing power grows exponen... |
There seems to be many approaches to judge whether two floating-point numbers are identical. Here are some examples I've found:
fabs(x - y) < n * FLT_EPSILON * fabs(x) OR fabs(x - y) < n * FLT_EPSILON * fabs(y)
fabs(x - y) < n * FLT_EPSILON * fabs(x + y)
fabs(x - y) < n * FLT_EPSILON * fabs(x + y) || fabs(x - y) < FLT... |
I know that MP3 uses a compression heuristic that allows it to exclude storing frequency data outside a certain range due to the limits of human hearing.
Does JPEG employ some sort of non-linear quantization heuristic that accounts for the limitations of humans to perceive small differences in specific color bands or r... |
This is the automaton I want to find the regular expression for:
As you see, states Q1 to Q4 are accepted and Q5 is a kind of trap. This automaton accepts strings that have no more than 3 consecutive zeros.
Can anybody help finding a regular expression for this?
Note : What I tried ...
I defined A:=(0+00+000)
So the ... |
I'm looking for a counterexample for the following (false) equality. It should exist.
$n$ is an odd integer.
$f(x_1, x_2 .. x_n)$ is a boolean expression in 3 CNF form with boolean variables x.
$A = \exists x_1 \forall x_2 \exists x_3 \forall x_4 ... \forall x_{n-1} \exists x_n: f(x_1..x_n)$
Note that the exists and fo... |
Given an optimization problem A which is NP-complete, and can be polynomially reduced to another optimization problem B which is also NP-complete. If we use an FPTAS to solve the reduced problem B' (A $\rightarrow$ B = B'), then under what rules can the solution obtained from solving with the FPTAS be directly associat... |
I couldn't figure out an algorithm for following graph coloring problem:
Output color of each vertex for this graph:
Given a solved 9*9 sudoku board that is a 9-colored board, applied first three rules below( a 4*4 one is in the picture as example),
Output a new k-coloring(k > 9) for the graph made from the input w... |
I need to choose the highest value combination of items given a specific set of constraints. These constraints are:
Exactly 6 items from group A and 2 items from group B must be selected.
Items in group A and group B count towards the same maximum weight.
No item can be selected more than once.
No more than 2 items of... |
You're given a $0-1$ $n\times n$ matrix such that for every distinct columns $C_i$ and $C_j$, $d_H(C_i,C_j)\gt 2t$ for some $t$. What could be said about the Hamming distances of the rows? It it true for instance that there are two distinct rows $R_k$ and $R_l$ that satisfy $d_H(R_k,R_l)\lt n-t$?
|
Images are taken by a DSLR camera, always set at a particular Focal length. The scene contains objects with varying distance to the cameras. Since the camera has undergone translation, homography no longer applies. Thus looked into Epipolar Geometry for pure translation. I know a very close estimate of the displace... |
Does every Turing Recognizable language has a subset which is not turing recognizable?
i can give some examples but can't prove in general
|
Does any approximation algorithm exist for maximization non-monotone submodular functions that might have negative values or be unbounded below?
Fact 1: For monotone submodular functions, Nemhauser, Wolsey and Fisher proved [1] that simple greedy algorithm gives $1-1/e$ approximation guarantee.
Fact 2: For non-monoton... |
What algorithm would I use for finding the minimum-weight path between two vertices in an undirected weighted graph?
Dijkstra is for shortest path, but I need path with the minimum sum of the weights. Would Prim's or Kruskal's algorithm do this? Is a brute force method required? There are millions of nodes and edges.
|
How are computers able to tell the correct time and date every time?
Whenever I close the computer (shut it down) all connections and processes inside stop. How is it that when I open the computer again it tells the exact correct time? Does the computer not shut down completely when I shut it down? Are there some proc... |
I have been studying the closure properties of regular languages, referencing the book Introduction to Automata Theory, Languages, and Computation by John E. Hopcroft and Jeffery D. Ullman.
Under the topic of Reversal, they have tried to prove that the regular languages are preserved under the reversal of closure. They... |
int y = 10;
int z;
z = (++y * (y++ + 5)); // Evaluates to 176
According to me this should evaluate to 180. Please provide an explanation as well which relates to precedence and associativity.
|
I'm a computer science student taking a theory of computation class. Recently we were taught about what is computable and what is not and about the Turing machine. As I understood (please correct me if I'm wrong) Turing machine could do any computation that is possible to compute. But for all examples in computing, wh... |
Is there a way to subtract and add properties of axioms to generate new axioms?
For example:
{L} = {P S K} // natural deduction
{P S K} = {P H K I} // natural deduction
{S K} = {?} // constructive logic
{K I} = {?}
Where:
L = ((A -> B) -> C) -> ((C -> A) -> (D -> A)) // Łukasiewicz's axiom system
P = ((A -> B) -> A) ->... |
How would one go about proving that Kolmogorov function $K(x)$ cannot be approached from below by any computable function?
After some research it seems I must show the function $K(x)$ is not lower semi-computable.
Instead, I can do this by showing $-K(x)$ is not upper semi-computable
Intuitively it seems that $K(x)$, t... |
In Arduino's architecture, multi-threading is not supported. However, interrupt handlers are being used as "placebo/replacement" if you may. However, I am not quite sure how these interrupt handlers work. For instance:
void functionA()
{ //x is a global boolean
x = true; //as soon as this is set to true, before ... |
I guess that one way of measuring the complexity of learning a joint probability distribution is as its "sample complexity" (which is also sometimes known as its "distributional learning complexity"?) I wanted to know if any computation of these measures are known for probabilistic graphical models.
|
I have two languages that I am trying to prove are recognizable or not:
Let $$L_1 = \{(\langle M\rangle, w) \mid \text{$M$ is a TM that accepts $w$ and doesn't accept $\varepsilon$}\}$$ where TM is short for "Turing
Machine", $w$ is a string, and $ε$ is the empty string.
Is $L_1$ recognizable? Prove your answer is c... |
Consider this code:
Precondition:
Postcondition: rv == i <==> ∃i, 0 ≤ i ≤ a.length-1, a[i] == key
function Find(Array<int> a, int key) returns (int i) {
i = a.length -1;
while i ≥ 0 {
if a[i] == key {return;}
i = i - 1
}
return -1;
}
Looking at this code, it's basically searchi... |
I know little dependent type theory. From wikipedia :
A dependent type is a type whose definition depends on a value.
And from my Type theory course i recall that a dependent type is :
Family of types indexed by a type.
But i have a confusion regarding dependent types and refinement types and hoare logic.
Because f... |
I originally posted this question on stack overflow and then realised it was better suited to computer science .
In the book on computer organization and architecture by William stallings , in the cache memory chapter and associative mapping topic , the author says that the cache control logic simultaneously checks all... |
There is the exclusive queue problem in The Little Book of Semaphores, which is stated as follows:
Imagine that threads represent ballroom dancers and that two kinds of dancers, leaders and followers, wait in two queues before entering the dance floor. When a leader arrives, it checks to see if there is a follower wait... |
I am very familiar with Dijkstra and I have a specific question about the algorithm. If I have a huge graph, for example 3.5 billion nodes (all OpenStreetMap data) then I clearly wouldn't be able to have the graph in memory, so the graph is stored on disk in a database.
There are libraries available to compute shortest... |
Suppose there is an unlimited number of pipes, each has length $x$ meters.
There is a list of requirements of pipes with shorter length than $x$. The number of these items are also given.
For example we need to have $n_1$ pipes of length $x_1$,$n_2$ pipes of length $x_2$,..., $n_k$ pipes of length $x_k$ $\forall i, x_i... |
How can we compute the least Harshad number with given sum of decimal digits $S$? Harshad number in base 10 is any number divisible by sum of its decimal digits.
I think that some kind of dynamic programming should be used. But which one?
Thanks in advance for any ideas.
|
I have the following problem I need to solve, and I hope you can point me to the right direction.
I have a bunch (4000) of people addresses in a city that are mapped to coordinates (longitude and latitude). I also have different bus routes (up to 17), that go through the city picking up these people, that I could draw... |
when calculating the error measure such as mean absolute error, we use the real values and the predicted values. Many machine learning algorithms can give a confidence measure of each value being predicted. Is there a standard error or correlation measure that takes this confidence into account, and penalizes high conf... |
We know that $10n^2 = O(n^2)$ but $10n^2 \neq o(n^2)$. What is the underlying principle?
|
I want to implement simple elevator algoirthm.
people in different floors orders the elevator and the destination floor they want to get to (so you get a {from,to} alert from different floors).
So I got a simple strightforward solution :
once elevator start going in specific direction (lets say up) it will continue do... |
Is incremental compilation ever done based on the AST? That is, the compiler would just regenerate code for the parts of the AST that have changed.
I know that many compilers do incremental compilation on a file-basis, but I don't know about on an AST-basis.
|
As part of a larger problem, I am trying to detect based on the distance matrix which segments intersect in the original 2D space that originated the matrix. I don´t have coordinates (lat/long, x/y or any other for the points).
As an example, on the image below, the answer to the question for the top graph would be: AD... |
A bin is called full if it contains at least $k$ balls. Our goal is to make as many bins as possible full.
In the simplest scenario, we are given $n$ balls and may arrange them arbitrarily. In that case, obviously the best we can do is pick $\lfloor n/k \rfloor$ bins arbitrarily and put $k$ balls in each one of them.
... |
Is is that a common way to present a proof system in the field of Logic and Automated Reasoning is to present a system of inference rules, without having to formally describe a particular algorithm or procedure to find proofs in this system?
I notice that phenomenon in both textbook as well as conference or journal pap... |
There is a road (a planar curve) of length 1. A treasure is placed in a random spot on the road. The treasure location is a uniform random variable, so that the probability to find the treasure in an interval of the road is equal to the interval length. Our goal is to find the treasure in the shortest expected time.
We... |
I've been trying to attempt a particular question that I need to translate truth table into boolean expression but I'm completely stuck on one point now.
First, I worked it out by using Sums of product by getting X first.
(I did this by taking the inputs with X = 1)
A'B'C'D' + A'B'C'D + A'B'CD + A'BC'D' + A'BCD' + A'B... |
I have constructed truth tables to prove that:
$ABC + ABC'+ AB'C +A'BC = AB+AC+BC$
How do I prove it by simplifying the expression? I know that I can simplify: $ABC + ABC' = AB(C+C')=AB$. However I can't repeat this for $AB'C$ or $A'BC$, to get the answer I desire.
I'm fairly new to boolean algebra and have tried to ... |
tldr: I'm looking for any general information about the linear space complexity class. e.g. is there a complete problem for it?
the Quantified Boolean Formula (QBF) problem is a P-space complete problem. I use the definition for QBF from here, which got its definition from here. It seems trivial to me that there's an e... |
Encroaching Lists as a Measure of Presortedness is the title of a 1988 paper by Skiena that describes the concept of encroaching lists, how to generate them from a sequence, how they can be used as a measure of presortedness $Enc$, and then describes the Melsort sorting algorithm, which is adaptative with regard to $En... |
Quoting Online algorithm from Wikipedia:
In computer science, an online algorithm[1] is one that can process its input piece-by-piece in a serial fashion, i.e., in the order that the input is fed to the algorithm, without having the entire input available from the start.
One is Insertion Sort, but it runs in horrible... |
I want to know the difference between these three languages and it would be great if you would give some examples as well.
|
I am trying to do some formal modeling of a linked list, however instead of referencing the next block, each block needs to reference the previous block instead.
Is there already any formal methods or any formal for doing this ?
Exactly the same as a normal linked list but when a new block (value etc) is added this ref... |
Problem statement
Let $T$ be a red black tree and $u$ some internal node of $T$. Suppose that in the left subtree of $u$ we have $n$ nodes. What is the maximum number of nodes that we can have in the right subtree of $u$, before the properties of the red black tree are broken?
Attempt at a solution
I was given the answ... |
I just wrote a program that runs the Travelling Salesman Problem using the Nearest Neighbor Algorithm. Afterwards, I started looking into Minimum Spanning Trees (MST).
From my understanding:
The Nearest Neighbor Algorithm traverses a graph starting at one vertex, and then it travels to the next vertex following the ed... |
We have the $L\in R$, how can we prove that $L^*\in R$ only by enumerators?
I try to use induction, but as I understand I wrong...
I'd like to get any help!
|
A = 0 10011 0011110111
B = 1 00011 0010011000
exponent is 15, mantissa is 10 bits and first bit is implicit. Can somebody please tell me the final answer cause I am having trouble figuring out what is happening with exponent since there are 3 extra zeroes in front of mantissa multiplication. I got that exponent... |
I implemented a standard Bloom Filter in C++, and tested it on different sizes, with varying values of the ratio ${c = n/m}$ where ${n}$ is the size of the filter, and ${m}$ is the number of elements inserted.
For a Bloom Filter, I created ${k}$ Hash functions, and set the value in the filter for each Hash Index retur... |
I would like to know if there is an algorithm that if I give a 2D polygon it will give me a set of 2D points. More specifically, those points should have M neighbors that are D apart. The shape is continually filled up with points until no new points can be found without exceeding the bounds of the polygon. The polygon... |
We are given a set of $m$ elements $\{e_1,...,e_m\}$ that form our universe $\mathcal{U}$. Each element of our universe is further associated with a positive weight $w(e_j)$ with $j\in \{1,...m\}$. We are further given a collection $S=\{S_1,...S_n\}$ of subsets of $\mathcal{U}$ whose union equals the universe. The int... |
Wikipedia's article Cyclic redundancy check states that for the same n (bits) there are multiple CRCs possible with different polynomial. Then it lists this Best CRC Polynomials article that gives some variations with different polynomials. I am looking to implement a simple CRC-8. What should be my criteria for pickin... |
The 3SUM problem formulation: in a given set of n real numbers find 3 elements that sum to specified value S.
I am trying to understand mathematical solution of the 3SUM problem based on a polynomial of 3 degree. I found some information about 3SUM problem as a special case of geometrical problems. It says:
There are ... |
I am reading about the Maximum Flow Problem here. I could not understand the intuition behind the Residual Graph. Why are we considering back edges while calculating the flow?
Can anyone help me understand the concept of Residual Graph?
How does the Algorithm change in Undirected Graphs?
|
I am learning about state machines from the Stanford online cs143 course. Here I have tried to build a nondeterministic finite automaton for the regular expression (1+0)*1, but when I attempt to convert it to a DFA I find that the epsilon closure of the initial state A ends up having two outputs for the value 1, which ... |
Given a planar graph (represented using adjacency lists) we want to find a set of vertices which are around one (random) face. We know that the graph contains at least one triangle.
How do we find such a face?
|
Please consider the following diagram of a RAID-5 array (Ignore the gray background):
Now, given a logical address, how can one return the device number (0-3)?
For example, DeviceByLogicalSector(50) = 0, DeviceByLogicalSector(31)=2.
I've need to implement DeviceByLogicalSector method. I can use space if that's require... |
I'm looking for a sorting algorithm for int arrays that doesn't allocate any byte other than the size of the array, and is limited to two instructions:
SWAP: swap the next index with the current one;
MOVE: moves the cursor to +1 or -1 index;
That is, you can't swap non neighboring indexes, nor swap the index 100, aft... |
if assume that T(n) = 2T(3n/10) + T(4n/10) + n <= cnlogn
T(n) <= 6cn/10 * log(3n/10) + 4cn/10 * log(4n/10) + n
= cn/10 * (6(log3 + logn - log10) + 4(log4 + logn - log10)) + n
= cn/10 * (10logn - 10log10 + 6log3 + 4log4) + n
= cnlogn - cn/10 * (10log10 - 6log3 - 4log4) + n <= cnlogn
because (10log10 - 6log3 - 4log4) >... |
If I want to extend a new language by adding a new command havoc x, which
updates the variable x with a non-deterministic value, how to write operational semantics rule for havoc x?
I'm confused about generate a non-deterministic value.
If I write like this:
$$\frac{n = [e]_ {intexp}\sigma}{(\mathrm{havoc}\ x,\sigma)\r... |
I have the definition of an in-situ algorithm from the professor, but I don't understand it.
In-situ algorithms refer to algorithms that operate with Θ(1) memory.
What does that mean?
|
I have been struggling with this question from my problem set. I do not want a solution but some hints on how to proceed.
You are given a file of numbers which represent the values of associated with
certain chemical reactions for the past year from a large scale industrial laboratory (reactions
can happen on th... |
I stumbled across an exam question, and I am not sure how to prove that that all primitive recursive functions are computable. Is there a formal definition of this?
|
If we have a language $L = \{0\}^*$ over the alphabet $\Sigma=\{0,1\}$, what is $\Sigma^*\backslash L$?
That's what I think:
$\{0,1\}^* = \{\epsilon, 0, 1, 00, 01, 10, 11, 000, 001, ... \}$
$\{0\}^* = \{\epsilon, 0, 00, 000, 0000, ... \}$
$\{0,1\}^*\backslash \{0\}^*= \{1,01,10,11,001,...\}$
In other words, the result... |
I'm trying to come up with an algorithm to optimize the shape of a polygon (or multiple polygons) to maximize the value contained within that shape.
I have data with 3 columns:
X: the location of the block on the x axis
Y: the location of the block on the y axis
Value: Value of the block (can have positive or negative... |
Most books on data-structures will briefly introduce heaps (aka priority queues) and then move to describe the "trick" allowing heaps to be implemented as arrays.
I've been looking for a way to implement a heap as an actual tree (call it pointers to structs, cons cells etc.) This would also imply building the heap fro... |
Let's say I want to implement my simple version of free/malloc
Let's assume I got a huge chunk of memory where I manage my free/malloc there.
and also I can only allocate fixed block size on each malloc (1 byte for example).
So in general I keep "free list" of free addresses of one byte, so whenever somebody do malloc... |
I need some help with this question from my problem set. I do not want a solution but some $\textbf{hints}$ on how to proceed.
Given $n$ records in a file that are so numerous, that just storing
the $n$ keys alone would require more RAM than is available on your
computer. Let $m$ be the maximum number of
records... |
Say I use a perfect 128-bit hash function to construct a merkle tree.
By perfect I mean that any of the values in the $0$–$2^{128}$ range has an equal probability to be an outcome of the function, over a large enough domain of hashed entities.
Does the root have a higher collision probability than any of the leafs?
To ... |
F+ and F* is defined as follows:
F+: closure of F
F+ = {fd | F |= fd}
Set of all FDs deduced from inference rule (normally: Armstrong axioms)
F: cover of F
{fd | F |- fd} cover of F
Set of all FDs entailed by F (all FDs that are true)
So my question is: What is the difference between F+ and F*? Can you also giv... |
Computing equilibria in games and the complexity thereof is imho still quite a young field in which a lot of work still is to be done (especially the former).
GAMUT (2004) is a very nice "suite of game generators designated for testing game-theoretic algorithms".
An example (2005) of a complexity result is that in norm... |
Is there something like the sum of products form of a circuit which uses AND and XOR instead of AND and OR?
I know that you can create an OR gate from AND and XOR (but i can't remember or find the details of that at the moment), but am wondering if there is anything more straightforward, as in an actual form that uses ... |
I wrote this Python code, and wondered if it sometimes simply doesn't terminate (assuming we had infinite memory/time and no recursion depth limit).
Intuitively you'd think it terminates, since at some point you must get lucky, and if it doesn't terminate you have an infinite amount of time to get lucky. On the other h... |
I am new to Turing Machines!
I need to work on an implementation-level description of a Turing machine that
decides the language L = an where n is a Fibonacci number.
I know Fibonacci numbers include 1 1 2 3 5 8 13 21 34 55 89 144 233 377...
So would this be as
M= "On input a^n:
Scan a^n, if a '1' is found, cros... |
I'm a little lost and don't know how to approach this problem.
Show the partition search problem can be poly-time reduced to the
partition decision problem, the partition decision problem takes an
input set of numbers and returns true if there is a subset of the
initial set that sums up to half the total sum of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.