instruction stringlengths 35 29.1k |
|---|
So I have a system of equations where varibles range over $\{0,1\}$ and the only operation is logical or ($\lor$). Each equation is of the one of two forms
1) $a = b \lor c$
2) $1 = a \lor b$
where a, b ,and c are all positive literals. No negations occur anywhere in these systems of equations.
We say $(x_1, ..., x_n)... |
I'm trying to determine the exact complexity of finding an $n\times n$ matrix inverse of $A$.
If it is known that the complexity of Gaussian elimination is $\frac{2}{3}n^3 + \frac{1}{2}n^2+O(n)$, then is it true that the complexity of finding $A^{-1}$ should be about twice same, since we are effectively doing two sets ... |
I've just been introduced to Paxos.
There is notion of the of value that is incremented each time a new proposal is send. To provide order for proposals, something like time. What happens when this long or integer value overflows and starts from zero again. The proposed sequence number will become lower than the old o... |
the exact complexity for hypergraph transversal problem is yet unknown and is an open research problem.
However, I would need a fast way to compute, on paper, the minimal transversal of a hypergraph. A transversal intersects all hyperedges of the graph.
A transversal is minimal if it does not contain any transversal a... |
Garey and Johnson mentions the problem of 'Exponential Expression Divisibility" as "Not known to be in NP or co-NP, but solvable in pseudo-polynomial time using standard GCD Algorithms".
Pseudo-polynomial compared-to/in-terms of what value/variable? Can someone help with the explicit complexity measure of the problem?
|
Context:
Lossless Data compression (source coding) algorithms heavily rely on repetitive pattern (redundancy)
Questions
Is there a data compression method/algorithm that uses another data compression on the compressed data obtained so far?
If such a method exists, what are its limits?
|
I have a collection of high dimensional vectors such as $\vec{a}_{i} \in \mathbb{R}^{n}$ where $n$ is 3000. What I want to do is to embed these vectors into a space such as $\vec{b}_{i} \in [0, 255]^{n}$ where $n$ in this case is now 32. I want to embed it (using any hash trick or something like that) in a way that wil... |
Lossless compression is not magic. It just gives the common patterns a short notation, compensating by the less common patterns ending up with a longer notation. By that logic, all lossless compression algorithms must sometimes give you a larger file back. A real world example of that is for instance giving a file cont... |
If $A$ is a non-singular $n\times n$ matrix, $B$ is an $n\times p$ matrix, and $C$ is a $p\times n$ matrix (where $1\le p \ll n$), how does one prove that the complexity of $$D=A^{-1}(BC)$$ is $\frac{8}{3}N^3+2pn^2+O(n)$ flops?
I have no idea where to start. It is assumed that we do not compute $A^{-1}$ directly, but, ... |
What order the rows are in a Hamming generator matrix are irrelevant for the Hamming coding to work, given the check matrix is built accoridngly.
In order to limit cognitive overload, it could have been decided that the "official" way of doing it should be either all data rows first then all parity rows after, all in a... |
I'm trying to understand the workings of artificial life as exemplified by systems like Tierra or Avida. The idea behind these systems is that organisms are modeled as assembly-language programs that replicate themselves in the memory of a computer, possibly a virtual machine. But here there is already something I don'... |
Are there any known "adaptive data structures", for example, which can change on-fly from array to linked-list, or from the latter to binary tree depending on access patterns to it?
For example: small number of elements: stay as array.
5-10 elements: convert itself to linked list.
More elements: convert to binary tree.... |
So I found this tasks in one book I am practicing from where it says:
"Find a divide-and-conquer algorithm for finding square roots for large integers and along this, find its asymptotic time complexity". Results can be in integer range.
I am not sure which algorithm should I use, but I started with recursive method wh... |
Consider the problem of finding the real-valued matrix $C$ so that
$$\|S-AC\|_F^2\qquad(1)$$
is minimal. ($S$ and $A$ are real valued matrices and $_F$ denotes the Frobenius norm). This problem has a closed form solution of $C=A^+S$, where $A^+$ is the pseudo-inverse of $A$.
I need to control the magnitude of the elem... |
as we uses binary language in all the computer systems around us which consist of 0s and 1s (Off and On) bits. Let assume that someone is developing a computer system based on tertiary system -1, 0, 1 three states. The question is that how will it affect the storage of computer systems?
DUPLICATION: this question is di... |
Every software should have backward compatibility (at least some sense of it), this ensures old codes can run in the future updated systems without any problems in most situations. But why did the Python team decide to make the v3 a new language? The community has to split up into two and every computer has to install ... |
Convex optimization is defined here: https://cstheory.stackexchange.com/questions/22314/definition-of-convex-optimization-problem-by-stephen-boyd-and-lieven-vandenbergh
The problem is NP-hard: https://mathoverflow.net/questions/92939/is-that-true-all-the-convex-optimization-problems-can-be-solved-in-polynomial-ti
But i... |
An alternative version of FNV-1a hash spread on the internet, which operates directly on integers instead of bytes. The offset basis and prime are the same used in the original version, which operates on bytes.
With this version, is the statistical quality of the produced hash similar to the original algorithm?
Alterna... |
Context:
Lossless Data compression (source coding) algorithms heavily rely on repetitive pattern (redundancy)
Questions
Which data compression method/algorithm deals with less repetitive pattern (redundancy) specially ?
|
Let M be a deterministic Turing machine wich has the properties:
1) $\forall x,y \in \Sigma^* : t_M(xy) \ge t_M(x) + t_M(y)$
2) $\forall a \in \Sigma: t_M(a) \ge 1$
(Also 2) should be obvious for every DTM).
Then it follows that for all $x \in \Sigma^* : t_M(x) \ge |x| $.
The graph $G_M$ induced by the transition func... |
After Wikipedia, if a function is pure, then:
[it] always evaluates the same result value given the same argument value(s).
So: if a function, let's call it f, calls another function, g, then it's behavior clearly depends on the structure of the function g. Should f take g as an argument in order to be pure?
|
The backstory
I have spectrograms of certain repeating sounds. The background of the spectrograms are black and could easily be made transparent if that would help. The sounds are easily distinct from the background. As shown below, each sound is a series of connected pixels of various colors.
What I want to do
I wou... |
Let $M$ be a deterministic Turing machine with totally defined transition function $\delta$ and working alphabet $\Gamma$. Let $Q$ denote the statespace of $M$'s finite control. Let $G_M$ be the graph induced by $\delta$ which is defined as $G_M = (V,E)$ with $V = Q$ and $(q,q') \in E$ iff there exist $a,b \in \Gamma$... |
I'm currently writing a library that solves a specific type of problem that involves mainly constraint satisfaction.
I have came across the Min-Conflicts Algorithm which proved to be rather efficient in the context of the problem.
However, I have recently chanced upon the Coordinate Descent Algorithm and how striking... |
one of my training questions for my exam is the following one:
Suppose you are testing a new algorithm on a data set consisting of
100 positive and 100 negative examples. You plan to use leave-one-out
cross-validation (i.e. 200-fold cross-validation) and compare your
algorithm to a baseline function, a simple ma... |
I was trying to explain to someone that C is Turing-complete, and realized that I don't actually know if it is, indeed, technically Turing-complete. (C as in the abstract semantics, not as in an actual implementation.)
The "obvious" answer (roughly: it can address an arbitrary amount of memory, so it can emulate a RAM... |
Adams describes a divide-and-conquer algorithm for finding the union of two sets (represented as weight-balanced binary search trees). He then describes a then-new "hedge union" algorithm which he claims improves on the divide-and-conquer one. However, he does not offer a proof, or even a real explanation, of why it sh... |
The aim of this problem is to find a subset (need not be consecutive) of a given set such that the sum is maximal and less than some given number $w$. (Note, we are trying to find a subset that is less than or equal to $w$ and not closest to $w$).
For example, given a set $\{1, 3, 5, 9, 10\}$ and maximum weight 17, the... |
On this site there are many variants on the question whether TMs can decide the halting problem, whether for all other TMs or certain subsets. This question is somewhat different.
It asks whether the fact the halting problem applies to all TMs can be decided by a TM. I believe the answer is no, and wish to check my ... |
In the past I have thought a bit about how to register a NIR-image and a thermal image and noticed that this is not trivial - one statement was that if I had the depth information for each pixel, the task would be much easier.
Now consider having a 3D-NIR camera (e.g. asus xtion) and a thermal camera and I want to map ... |
We consider the TSP in Grid-City.
The roads in Grid-City have the form of a grid, so that the intersection points can be described by an integer coordinate system.
The distance of $2$ points $C=(x,y)$ and $D=(x',y')$ is defined as $d(C,D)=|x-x'|+|y-y'|$.
An input for the TSP consists of $23$ points with the followin... |
I'm looking for a simple rewrite system which displays high period.
In order to do that, I've ran a brute-force search on every elementary cellular automata, for a few fixed memory lengths L. The result is that, when L=7, there are rules with the max possible period (128). Yet, for L=8, no matter which rule is used, I... |
Garey and Johnson describe in their book many NP-complete problems which are based on sets, for example Hitting Set, Minimum Test Set, Set Packing, Set Splitting, and many more.
The traditional mathematical definition of a set does not allow duplicates; when multiplicities count, the object is called a multiset.
Are th... |
Well, my question - if word addressable memory has more bytes than byte addressable memory - is derived from the fact that in word addressable memory each address addresses a word and in byte addressable memory each address addresses a byte.
In the case of word addressable memory - If the word size is 4 bytes 32 bit ar... |
How can one find an element in a Merkle tree, as effectively as possible?
Each internal node has a hash value. So I think, first, hash the value to find, and if an internal node has the same value exactly, get its leaf node. But this is correct in 2-depth, not all cases. Because each internal node has a hashed what is ... |
I am trying to write a script that generates random graphs and I need to know if an edge in a weighted graph can have the 0 value.
actually it makes sense that 0 could be used as an edge's weight, but I've been working with graphs in last few days and I have never seen an example of it.
|
I have a DAG which I want to traverse in a topological order. Wikipedia describes two algorithms for topological sorting, which both work in theory but seem impractical to me from a design point of view: Kahn's algorithm modifies the graph (by removing edges) and the DFS-based one marks nodes, which would require me to... |
To look up a key in a hash map you have to
calculate its hash
find the entry in the resulting hash bucket
Hash calculation takes at least $O(l)$ operations when the hashes are $l$-bit-numbers.
When using an index (like a binary tree) for each bucket, finding an entry within a bucket that contains $k$ entries can be d... |
When the CPU writes or reads from the memory and stores the value that was read or written into L1 cache. Do the CPU store the whole block( 1 block , leaves the other three ways empty) or the whole set ( 4 blocks)?
|
Consider a graph $G = (V,E)$ and the following operation
$\text{neighbour}(v_1,v_2)$: returns true if the vertices $v_1$ and $v_2$ are adjacent, and false otherwise.
I now consider two standard data structures:
Adjacency Matrix. Space complexity is $\mathcal{O}(|V|^2)$ and supports the neighbour-query in $\mathcal{O}(... |
I am trying to classify the data in a database columns. DB has about 90 million entries.The main goal is to find different patterns in columns to leverage it for create look alike data. The data columns has entries which can easily look like patterns as :
CUST1212,CUST1213,CUST1214..., number sequential after CUST
C... |
I am new to automata theory and have a problem in understanding equivalence of regular expressions, though I can go for the construction procedure of minimized DFAs to prove that both are equal.
I need to prove the following property using different Kleene star properties:
$$(a+b)^* = b^*(ab^*)^*$$
|
I wanted to know the standard format to store the Bayesian network structure? I came across Hugin format and others. But couldn't find out the documentation as how its been written, if I wanted to write a piece of package that writes the BN in a file which can be read by other popular Bayesian inferencing tools for Bay... |
Let there be a set $S$ and denote by $P=2^S$ the power set of $S$. We are given a finite subset $L = \{p_0, \ldots, p_{n-1}\}$ of $P$ and we are allowed to transform the set as follows: if two sets $p_i$ and $p_j$ share some elements, i.e. $p_i \cap p_j \neq \emptyset$, remove both $p_i$ and $p_j$ from $L$ but add thei... |
I'm working with a flow network like the following:
The source s has four edges, each with capacity 1, out to the nodes A, B, C, and D. All of A, B, C, and D have edges to two other nodes, X and Y, also with capacity 1. X and Y both have edges with capacity 4 to the sink t.
Typically this would have many solutions: al... |
[Note: This problem was inspired by Pokemon Go. I will first explain the problem in mathematical terms, then explain the connection to Pokemon Go. My goal is not to cheat in the game. If I wanted to cheat, better information would be available more easily.]
Suppose there are $N$ points (the "unknown points") in a plane... |
I am working on building a toy automated theorem prover,
What I want to do is to efficiently generate sentences in peano arithmetic, that I can attempt to verify as True/False/requires-more-resources in a higher model of logic.
My first task I want to work on is to build a tool that can list out statements in PA
So my ... |
In the Art of Assembly ebook, I have read that 8088 processor require four clock cycle to access memory (in whatever clock speed & memory speed is). How is it calculated? Is it time for processor to prepare for calculate address and put data on the bus?
|
Consider a weighted undirected graph $G=(V,E)$ with $n$ nodes. We call $G$ a $(\tau,k,n)$-graph if for every node $v \in V$ has at least $k$ neighbors and each edge has weight at least $\tau$.
Have these kind of graphs been studied in the literature in any context?
|
my question is about how to compute a database with initial moves for Connect Four, where each board constellation is classified as leading to a win, draw or lose.
John Tromp already has done this for the standard 7x6 sized board (https://tromp.github.io/c4/c4.html) and all board configurations with 8 tiles. Since I'm... |
I have an array of $n$ elements. Each element is basically the mean of gamma distribution and the actual value of the element is picked from that distribution. Assume the parameters of distribution (scale and shape) are different for different elements and not known.
Now I wish to sort these means so that, after repla... |
(from my class's slides)
"NP and P/Poly both use an external string for computation. However, for L in NP, any witness is rejected if x $\notin$ L. For L in P/Poly, there can be bad advice!"
I'm having a hard time understanding why this is true. My intuition is that if there are indeed 'bad advice', i.e advice that mak... |
Suppose I am given a dictionary of words which contains no more than 100 words, and each word has a maximum length of 50 characters. I want to write a program to guess an unknown word, call it S, that is in the dictionary using 2 weighted operators:
int getOccurrences(char x): return the frequency of the character 'x'... |
In Extended Backus-Naur Form (EBNF) there is one form called a "special sequence" which is surrounded by questions marks ?...?
What does this mean?
|
Given an undirected connected graph $G=(V,E)$ with positive weights, where $|V|>2009$, and each vertex is of degree of at most $10$.
Give an efficient algorithm to find the $2009$ closest nodes to a given source vertex $s$ (with respect to edge weight).
Is it correct to say that Dijkstra's algorithm with Fibonacci hea... |
I will be teaching a data structures course this Fall semester for second year computer science undergraduates. The textbook and syllabus currently used follow the text "Schaum's outlines: Data structures with C" by Lipschutz. I think the Schaum's outlines series are more a supplement to textbooks and that the studen... |
Given a sorted array A, the problem is to find a number that minimizes the sum of Manhattan distance to the numbers in the array. I found that the median of A is the solution, but was not able to come up for a proof or explanation for the same ( i.e why its not mean).
Any help is highly appreciated.
|
We have a non directed, not necessarily connected graph $G=(V,E)$, that is represented by a adjacency list, and a weight function $w:E \to R$. All edges have distinct weight. An edge is "heavy" if there exists a simple cycle in $G$ that contains it, and it has the maximal weight in that cycle. The question is to give a... |
I am reading this paper Handy AR.
As suggested I am adding certain quotes from paper to get basic idea of what is it about :
Intro
In this paper, we present and evaluate a method to use a
user’s bare outstretched hand in the same way a cardboard AR
marker would be used, enabling spontaneous tangible user interf... |
I am collecting data from a sensor over time, and I'm trying to figure out how to detect "events" in the data - specifically, when a given event begins and ends. The frequency, duration, and amplitude of these events varies.
Rather than using some rules-based scheme that proves to be rather ineffective, I want to train... |
I want to implement the clique detection algorithm by Nesetril and Poljak described in [1].
However, I can't seem to understand how the auxiliary graph $H$ is to be created and how it can be used to detect a clique. For instance, the paper suggests that to detect a clique of size $3\ell$ in a graph of size $n$, we cons... |
I'm having trouble trying to create this machine. I know the answer should go in the way that we always cut in half the number of a's and b's (so the master theorem aplied at $T(n)=T(n/2)+O(n)$ gives us the requiered asymptotic order). But I don't know how to end the algorithm. My machine does this:
We start with #aaaa... |
Given an e-NFA. It is easy to find a string that is accepted by it. But, how do we find if the given e-NFA accepts "All" the strings over the alphabet. Or if there is a string that is not accepted by it.
Of course the usual way is to construct a DFA, or complement the e-NFA but since we are talking about the whole lang... |
What is the difference between a faulting and non-faulting software prefetch. I have read some material in Google but can't understand it deeply. How do we know if a software prefetch is faulting or non-faulting in practice?
|
I know quicksort to have a runtime of $\mathcal{O}(n \log_2 n)$
However trying to solve for it I get something different and I am not sure why that is.
Ok, so solving recurrence relations can be done several different ways.
The recurrence relation for quicksort is:
$$T(n) = 2 T(\frac{n}{2}) + \mathcal{O}(n)$$
Reinserti... |
(This exercise is from Computation Complexity: A Conceptual Perspective by Oded Goldreich):
For any k $\in \mathbb{N}$, let $w_k$ denote the concatenation of all k-bit long strings (in lexicographic order) separated by *'s (i.e, $w_k = 0^{k-2}00*0^{k-2}01*0^{k-2}10*...*1^k$). Show that the set $S = \{w_k:k\in\mathbb{N}... |
So I have a directed graph that looks something like:
I'm trying to make an algorithm that can go through all the vertices and tell me whether we have any path from an upper case letter to its lowercase version, or a path from a lowercase letter to its upper case version. In the above example, we have a path from C to... |
I'm interested in finding maximal solutions to the problem of finding a subset that "sums" to a specific value. The elements of the set are boolean vectors and the notion of "sum" is point-wise or.
Say you had {10, 01, 00} then there are two subsets that sum to 11: {10, 01} and {10, 01, 00}.
In particular, I want maxim... |
By writing out a number in binary I can arrive at the value of taking the first x number of bits out of it.
For example 00001101 (13) taking the first 6 bit would be 3
taking the first 5 bit would be 1
taking the first 4 bit would be 0 etc
This results, I can easily ... |
I am reading the book Neural Networks and Deep Learning by Micheal Nielsen. In the second chapter of his book, he describes the following algorithm for updating weights and biases for a neural network:
In the 2nd step, the algorithm computes the error for a sample and backpropogates it through the layers. This happen... |
I've done some other problems by reduction, but I'm quite stuck here. I'm not really sure what to do with $M'$. I know that because $L(M) \nsubseteq L(M')$ there exists $w \in L(M)$ and $w \notin L(M')$ and I'm trying to create the machine that ignores the input and accepts only when M accepts $w$, but I'm kinda stuck... |
I'm in need of implementing the algorithm to actually locate the minimal vertex separators set of the whole graph (not just s-t).
It is my understanding that this can be done by doing the s-t procedure for all possible vertex pairs and then looking at the minimal sets of vertex independent paths that arise from that.
... |
Given a set $S$ of length $n$, I'm looking to map all the $k$-length partitions of $S$ onto the set of integers such that these integers are as close to 0 as possible. Ideally the range would be $\left[0, {n \brace k}\right)$.
Ideally this mapping and its inverse would be easy to compute.
|
What is the height of an AVL Tree? I keep finding contradicting definitions.
I found these two on wiki:
Height of node:
The height of a node is the number of edges on the longest path between that node and a leaf.
Height of tree:
The height of a tree is the height of its root node.
But then I find examples like this: h... |
I receive a list of real numbers ( float ) between $0$ and $1$. The list has length $N+1$ and I need to find two numbers on the list which are $\le \frac{1}{N}$ apart. Here is an example test case:
[ 0. , 0.31662479, 0.63324958, 0.94987437, 0.26649916,
0.58312395, 0.89974874, 0.21637353, 0.53299832, ... |
In A simplified NP-complete MAXSAT problem, a reduction is given from Min Vertex Cover to MAX-2SAT by replacing each each vertex $x_i$ by a single-variable clause, and each edge by a two-variable clause:
\begin{align}
\Phi = \left(\bigwedge_{i=1}^n x_i\right) \wedge \left(\bigwedge_{\lbrace i,j\rbrace \in E} (\overlin... |
I am trying to understand the linear speedup theorem:
Let $L$ be a decidable language. Let $X^L$ be the set of all deterministic Turing machines which decide $L$. For a word $x \in \Sigma^*$ define:
$t^L(x) := \min_{M \in X^L} t_M(x)$ where $t_M(x)$ is the time of $M$ on input $x$. Now let's choose some machine $M$ whi... |
Dynamic programming can only be applied to problems with optimal substructure.
The Markov property (e.g. in Markov Decision Processes, MDPs) means that the distribution of one state $x_{k+1}$ only depends on the state directly before ($x_k$, and the action $a_k$), not on more steps before. (commonly expressed as $P(X_{... |
I'm solving problem of drawing the finite automata of (1+0)*(10). Which is any string ends with 10. I've drawn the following diagram for this one:
But somewhere in solution it is given the following diagram:
I can't understand what is the difference between these two? Is my solution is correct? If it is not than what... |
The question is stated in the title, I would like to see a counter example if there is any.
Thanks.
|
I have an (undirected) graph isomorphic to $C_n$ with unordered edges/vertices in some data structure (in particular, a list of tuples representing the edges), etc. I was wondering what is the fastest algorithm to compute a path which begins and ends at some given node in the cycle, given this set of nodes? The simples... |
Are there any special algorithms for maximum independent set of line graphs? Could this special case be in $\mathsf{P}$?
|
One of the conditions for A → α | β to be LL(1) grammar states that
If β → ε in one or more steps then α doesn't derive any string beginning with a terminal in FOLLOW(A). Likewise If α → ε in one or more steps then β doesn't derive any string beginning with a terminal in FOLLOW(A).
I couldn't understand what is the ... |
I'm a mathematics undergraduate student (going to start my third year very soon). I'm trying to teach myself computational complexity. Sadly, there are no courses provided in my university on the topic and there are no specialists on it (In fact, it seems that my university has no specialists in theoretical CS at all).... |
I would like to understand the ideas behind parity games and their winning conditions. Where do they come from?
|
I guess this is an implementation question, but I suppose it can be answered for the typical way this algorithm works.
So, most ways the algorithm has been explained to me involve going from a source vertex to another vertex so on and so forth. Will any edges going back to the source vertex or any already visited verte... |
In an informal context, most programmers might call these two expressions "equal" and no one would be mislead:
(a + b) + c
a + (b + c)
For floating point numbers, we know that these two expressions are not strictly equivalent (in the sense that they evaluate to equal values for any a, b, and c) because floating point ... |
I was wondering if, given an arbitrary cycle basis (that's complete, e.g. every cycle in the graph can be expressed as the $\mathbb{Z}/2\mathbb{Z}$ sum of elements from the basis) of some graph $G$, is there some way of sampling all cycles uniformly? I'm not able to find papers on it, and I was wondering if anyone had ... |
Suppose I have a NN with one hidden layer, 10 inputs and 5 outputs, intended to be used as a (for example) game-bot AI. Would it make any sense to add, say, 5 (insert any number here) more inputs and outputs, and directly link these outputs from a previous step to these additional inputs of the next?
I imagine it could... |
I've implemented a lambda calculus evaluator and use the Hindley-Milner algorithm to infer terms types and ensure type correctness without the user having to explicitly annotate types.
But now I'd like to add a typeof operator that given a term, it returns the type of the term. So far, what I do is keep a hash map of ... |
I have been assigned a homework problem that I cannot figure out:
Prove that SAT has a polynomial-time reduction to the language of undirected non-negative weighted graphs with simple cycle of weight less that or equal to w.
This bears a resemblance to the all-pairs shortest path problem which has polynomial-time alg... |
Show that after all edges are processed by CONNECTED-COMPONENTS, two vertices are in the same connected component if and only if they are in the same set.
The CONNECTED-COMPONENTS algorithm is the following:
It seems pretty obvious that when we keep adding the vertices of the direct edges of a connected component to a... |
Let $X_*^L$ be the set of all deterministic Turing machines $M$ which decide the language $L$ and have the property:
$\forall x,y \in \Sigma^*: t_M(xy) \ge t_M(x) + t_M(y)$ (**)
where $t_M(w)$ is the time of $M$ on input $w$.
Define for all $x,y\in \Sigma^*$:
$d(x,y) := \max_{M \in X_*^L} \frac{|t_M(x) - t_M(y)|}{t_M(x... |
Consider the following problem.
Let $S=\{1,2,\dots,n\}$, and $A_{ij}\subseteq S$ for $i,j\in S$. Does there exist a strict subset $T\subset S$ such that for all $j\not\in T$, there exists $i\in T$ for which $T\subseteq A_{ij}$?
(For $T=S$, this is trivially true, so we disallow it.)
The problem is in NP: given a se... |
Background
I'm currently writing some Elixir algorithms that are quite computationally expensive. The most-used datastructure is a multi-set of (finite) integer ranges. Modifying this data structure takes up around 80% of the execution time in insert and remove, so it's time to see if there's something better out there... |
Considering a DFA that has an alphabet of {A,B}, and where number of characters A > number of characters B. I don't think such a DFA is possible. Can I proof the impossibility with a Pumping Lemma?
|
I'm looking for an algorithm that, given a directed bipartite graph, builds another graph (possibly with additional vertices) that has fewer total edges but the same reachability patterns. In particular:
The input to the algorithm is a bipartite directed graph $G'=(V,E)$ with all edges directed from $L$ to $R$ (where ... |
I am having some confusion about finding the area of union of $n$ axis parallel rectangles in $O(n\log n)$ by the line sweep method. The following pictures are from the book of Shamos and Preparata.
In this case one needs to find the total height of the shaded region efficiently. So initially build a segment tree with... |
This is an exercice is Rolf Niedermeier's book "Invitation to fixed-parameter algorithms", Chapter 13.
Show that the following problem is W[1]-hard:
Steiner Tree in Graphs with respect to the parameter "number of non-terminal vertices".
The way I understand it, if there are most $k$ non-terminal vertices, then this d... |
I implemented an algorithm to find the minimum dominating set of a graph. I want to check the output of the algorithm against some graphs for which the domination number has been determined.
Where can I find graphs with a known domination number?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.