instruction stringlengths 35 29.1k |
|---|
I have a set of records (2 or more for each person) on multiple peoples locations (latitude and longitude) with timestamps.
each record has: person ID, latitude, longitude, timeStamp.
for each 2 people I wish to know if they have been under distance d from one another for over time t.
Is there an algorithm that can hel... |
If I have a bunch of diodes arranged in some complex, directed graph, can I get it to do computation?
I mean will it add voltages and, for example, as I insert voltage sources in-between the diodes? Can I implement a J/K flip-flop?
Thanks.
|
Say we have a list of ranges like so:
ranges = [(0, 100), (101, 200), (201, 300)]
The ranges will always be ordered, never overlap, and perfectly align.
We want to optimise the complexity of O(p + kl), where p is the preprocessing time, k represents the number of lookups of a range and l represents an individual lookup... |
I was going through the concept of graphs as matroids and I came upon the rank of a graph. Wikipedia lists it as $n - c$, $n = |V|$, $c =$ # of connected components.
I do understand rank and nullity of matrices, and graphs when expressed in their incidence matrix form have a one-to-one correspondence with the rank of i... |
Is there a way to implement Kruskal's algorithm for finding the MST of an undirected graph using priority queues? The standard implementation uses the disjoint set data structure but I was curious if a PQ implementation is possible, and potentially even better in time complexity.
I looked it up online and found a PQ im... |
Section 4.4 of "Introduction to Algorithms, 3rd Edition
By Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein" illustrates how a recursion tree provides a good guess for the recurrence
$$T(n) = 3T(\lfloor n/4 \rfloor) + \Theta(n^2) = 3T(n/4) + cn^2$$
where c is a constant.
The authors assume t... |
I am going through the paper https://pubsonline.informs.org/doi/abs/10.1287/moor.10.4.701 which is
A Note on Finding Minimum-Cost Edge-Disjoint Spanning Trees and the authors are James Roskind and Robert E. Tarjan. In it, there is an algorithm to generate an augmenting sequence used in updating edge-disjoint forests.
... |
I read that the first-order model checking problem is intractable on general graphs.
How is this shown? Would be happy about some reference!
Thanks in advance
|
I was reading about zero-knowledge proofs. I understand how one can convince their colour-blind friend that the two chosen balls have different colours.
Now what happens if the two chosen balls have the same colour - is there a zero-knowledge proof that will convince your colour-blind friend that they are the same colo... |
I have multiple rays of the form:
\begin{align}
x_1 &= c_1 \\
x_2 &= c_2 \\
&\dots \\
x_d &= c_d \\
\end{align}
And need to find all intersection points between each one of them and a given polytope in $d$ dimensions, when I have the vertices and the $d-1$ polytopes which are his facets.
For 3-d, Wikipe... |
Recently I have been studying ways of traversing a BST (in python), and have collided with the terms pre-order, post-order and in-order.
I believe that I understood the three terms pretty well, and have tried several exercises and examples, which I got right. But I have problems when formulating a relation between thes... |
I'm currently trying to prove that $L=\{a^n b^l : n \leq l\}$ is not regular by pumping lemma
My proof:
If we choose $w$ such that $w=a^P b^P$, then since $|xy| \leq p$, $y$ must be $a^P$, meaning it can be pumped any number of times $i$, such that $a^{iP} b^P \in L$. Since $iP \leq P$ is not true for any $i > 1$, it c... |
I'm trying to decompose deduction steps of DPLL algorithm -- unit propagation and pure literal elimination -- for parallelization. However, I want a baseline and asymptotic analysis to compare to my parallel approach for these two deduction procedures.
My naive approach to unit propagation would be to perform linear sc... |
Given $n=2k$ pairs of points $P=\{(p_1,q_1),(p_2,q_2),\dots,(p_k,q_k)\}$ in the plane. Also, let $d(.)$ return distance between two points.
Now, our goal is to act as bellow:
For each $(p_i,q_i)$ repeat bellow loop that partition points into $A$ and $B$ as follow :
Create empty array $A$ and set $A=A\cup p_i$. Now... |
I know $a^nb^n$ with $n\geq0$ is considered a context-free language, but if I try:
Using pumping length $p = 3$
$n = p$, thus we have $aaabbb$
$u =aa$ and $y = bb$
$v = a$, $w = b$ and $x=λ$, then $|vwx|=2\leq p=3$ and $|vx| = 1 \geq 1$
$uv^iwx^iy \notin L$, for instance, with $i=2$ we have:
$$aaaabbb$$
I know I'm wro... |
The following problem is from a past algorithms course exam and I'm using it to test my knowledge.
There are m machines and n jobs. Each machine can doing a subset of jobs. Each machine i has a capacity $C_i$, meaning that it has $C_i$ units of processing time. Each job $j$ has a demand $D_j$, meaning that it requir... |
Given two permutations $\pi_1$ and $\pi_2$ of numbers $\{1,2,\dots,n\}$,
can we find $\mathrm{LCS}(\pi_1,\pi_2)$ in $O(n\log n)$? I think we can use LIS but I get stuck.
|
Section 4.4 of Introduction to Algorithms, 3rd Edition
By Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein gives the following to verify that $O(n^2)$ is an upper bound for the recurrence $T(n) = 3T(\lfloor n/4 \rfloor) + \Theta(n^2)$:
\begin{align}
T(n) &\leq 3T(\lfloor n/4 \rfloor) + cn^2 ... |
I've asked the following question on StackOverflow: https://stackoverflow.com/questions/71819288/mongodb-vs-elasticsearch-indexing-parallel-arrays
I think that getting theoretical information on this subject can help me better to grasp the context and maybe I'll be able to answer my own question.
Note: I've changed the... |
Section A.1 of the Mathematical Appendix of the CLRS, the third edition, page 1146, contains the following formula stating linearity property of summation applied to $\Theta$ notation:
$$
\sum_{k=1}^{n}\Theta\left ( f \left ( k \right ) \right )=\Theta \left ( \sum_{k=1}^{n} f\left ( k \right )\right ).
$$
And states ... |
Given a directed graph G=(V, E) and a sink vertex t. Edge costs may be negative, zero,
or positive. consider d(v) contains the length of the shortest path from v to t
Given a new sink t2 in the graph, how can we compute the shortest distance for each vertex
to this sink t2 using the originally given function d
My Thoug... |
Below is the code.
public static boolean twoPositive(int[] num) {
int i = 0;
while ( i < num.length ) {
int j = i + 1
while (j < num.length) {
if (Math.min(num[i], num[j]) > 0)
return true;
j++;
}
... |
In http://mattmahoney.net/dc/dce.html#Section_32 Matt Mahoney states:
The simplest of these is the order 0 coder fpaq0.
in http://mattmahoney.net/dc/dce.html#Section_41 he states:
An order 0 model uses no context.
but in http://mattmahoney.net/dc/fpaq0.cpp the Predictor (model) is defined with a context:
class Predic... |
I am trying to understand the relativization barrier from Baker Gill Solovay (BGS).
About this barrier, I have heard that it only applies when using a black-box simulation. Hence, my question is, what would be an hypothetic white-box simulation (that would skip the relativization barrier)?
It seems to me that, the prob... |
Suppose you have a set of rectangles $R_1,\dots,R_n$ in the plane, each described by an upper left point $p_1 \in \mathbb R^2$ and a lower right point $p_2 \in \mathbb R^2$, all pairwise different.
You are set the task to paint them in a certain order (shuffled from $1,\dots,n$) so that a rectangle never gets totally o... |
How to determine tag, index and offset size in a two-way associative cache with a 1MB two-way set associative cache with 8 byte blocks
|
The following problem is on page 1104 of the CLRS textbook:
I was wondering how to show that the problem is NP-hard (i.e. part b)?
Like subset-sum, this problem is weakly NP-complete; it has a pseudo-polynomial time dynamic programming algorithm.
Let's say I choose to reduce via subset sum. We want to find the sch... |
This really isn't a complicated question to ask but it is one to answer...
From the very fundamentals of binary code why are computers and similarly, computer language, just so insecure?
Should we just scrap all of it one day and start over? Computer security challenges are not necessarily winning against viruses, are ... |
An electronic book is made up of 500 pages and there are 16 lines of 2400 bits lines of each page. compute the space it will ocuppy on a computer in GB
|
Let's say I have a service where I provide user registration. The user chooses a ID. Now if I already have someone who is registered against that ID, I will inform the user that this ID is already used so try something else.
Now I want to provide some suggested IDs to the user based on what information I have while sig... |
So usually bin packing algorithms compute the tightest packed solution. I want to calculate the opposite, in my case the solution with the most space between the packed objects is needed. I tried googling for such an algorithm, but I can only find "normal" bin packing solutions.
I need to pack polygons into a given spa... |
Suppose $L$ is a language with a finite number of strings. We know that $L$ is regular. If $M$ is the minimal DFA for $L$, prove that $L$ has exactly one state that we can't exit if we enter it.
I know this statement is true because $L$ has a finite number of strings, so a string with a length longer than the length ... |
I need some help finding or creating a consistent hashing algorithm with the following properties:
Given N buckets, only distributes keys to bucket N.
When number of buckets are increased from N to N+1, only keys in N
have to be migrated to N+1.
When number of buckets are reduced from N to N-1, only keys in N are
migr... |
I'm new here and im struggling right now on the following task:
I have to show that:
(L1 ∩ L2) o L3 = L1 o L3 ∩ L2 o L3
L1, L2 and L3 are three languages over the alphabet Σ. o stands for the concatenation of two languages.
kind regards
|
In his paper The Free Lunch Is Over: A Fundamental Turn Toward Concurrency in Software, Herb Sutter writes:
The mainstream state of the art revolves around lock-based programming, which is subtle and hazardous. We desperately need a higher-level programming model for concurrency than languages offer today; I'll have m... |
Consider binary words in {0,1}^n whose Hamming weight is at most some constant d. We want to select some of these words such that they form a group under addition. How many words can we choose at most?
|
Let Size(O(n)) be the set of languages the can be decided by a circuit ensemble (a sequence of circuits C_i for every natural i s.t input size is i) such that every circuit's size is linear (in input size).
I would like to prove there exists a decidable language that doesn't belong to the set defined above.
I tried usi... |
I was reading the Wikipedia article on Turing completeness, but I was having a hard time putting together all of the concepts. In simple terms, what does it mean for an instruction set to have Turing-completeness?
|
I'm reading section 7.3 (SINGLE CYCLE PROCESSOR) of Digital Design and Computer Architecture, Second Edition by David Money Harris.
At the end of the section the autor shows this MIPS processor and says that "Each instruction in the single-cycle processor takes one clock cycle".
The autor also says that "Result must s... |
I have some questions about CPU caches I would like some clarification on.
Assume that I have a 128 KB cache with a block size of 64. It is 4-way associative.
How many sets does the cache have?
How many bits are used for the offset, index, and tag, assuming that the CPU provides 32-bit addresses?
How large is the tag ... |
Let $S$ be a finite set of points on the unit sphere $\mathbb{S}^2$. My question would be: is there an easy way to either find a great circle $C$ such that all points in $S$ are inside one of the hemispheres defined by $C$ or return that such a great circle does not exist.
This can of course also be seen as a problem i... |
Is there any research/information on matching vector family sets (the U list or the V list or both) that form a group (under addition)?
You can find the definition of MV families here:
https://homes.cs.washington.edu/~anuprao/pubs/codingtheory/lecture11.pdf
|
Here in the USA there is a lot of controversy over the practice of gerrymandering. Every ten years the states are divided up into new congressional districts and whoever is in charge creates bizarrely shaped districts to suit their own political ends.
So the question is -- is there an algorithm to optimize, or at least... |
I am trying to find an algorithm which, given a set of N points on a 2D plane, can find all pairs of points at a distance of exactly 1. I believe this is similar to this question. I looked at the answers to the linked question.
One answer mentions a "Well Separated Points Decomposition", although I am unsure of how to ... |
According to my understanding a 32-bit machine determines the number of bits of physical address as 32 bits , and hence , we can address a physical memory space of 4GB. So the number of bits of physical address depends on the machine type . My question is what about the virtual address ? I mean what is used in a machin... |
I'm looking up the complexities of sorting algorithms. There can be performance harm when the array is already presorted when running certain algorithms. E.g. Using last element as pivot in quick sort would harm the performance when the array has already been pre-sorted. However, when I attempt to cross check with othe... |
In Rosen's book Discrete Mathematics and Its Applications, 8th Edition it is mentioned that:
You may be surprised that mathematical induction and strong induction are equivalent. That is, each can be shown to be a valid proof technique assuming that the other is valid.
One of the examples given for strong induction ... |
If AC-3 algorithm returns an empty domain, we know for sure it cannot be solved. But given that it returns only domains with at least a variable in it, do we know the CSP is solvable?
|
In the analysis of algorithms textbooks that I've seen, as far as I could tell, the runtime of an algorithm is defined intuitively. Is there a simple formal definition of this concept? I.e. a definition which fully formally, for some particular simple and general programming language defines the runtime of a program in... |
I've been trying to find a function $T(n)$ whose asymptotic rate of growth satisfies both of the following conditions:
$T(n)= o(\log^*n)$
$T(n)= \omega(1)$
But I can't think of a function with this rate of growth.
|
This is my first post here. We are currently studying regular expressions, and I have been tasked to write a regular expression for the language of all words which do not contain the substring $aba$, for the alphabet $\Sigma=\{a,b\}$.
We were firstly tasked to write a regular expression for all words which do contain t... |
Given a generic tree with $n$ weighted nodes, there are $n-1$ edges. Removing any of the edges will partition the tree into two distinct trees, hence we can construct $2(n-1)$ possible trees in this way. Is there a way to find the node with the maximum value in each of these resulting trees, that is all the $2(n-1)$ va... |
Given a set of jobs $J$ and a set of machines $M$, where the link between machine $i\in M$ and job $j\in J$ has a positive weight $w_{ij}$. The problem is to select a perfect matching between the jobs and the machines such that the weights of the matching are as close as possible to each other, i.e., the best solution ... |
I am struggling with a mapping reduction that I think cannot be correct, but I'm not able to say exactly what's the problem.
Let $L_{u}= \{\langle M,w\rangle \mid M\text{ accept }w\}$, $\overline{L_{u}}= \{\langle M,w\rangle \mid M\text{ does not accept }w\}$ and $L_{\epsilon} = \{M \mid \epsilon \in L(M) \}$.
(Part 1)... |
Apache Spark, a distributed computation framework, has a construct called accumulators which are global variables with an associative addition action. These can be used to aggregate statistics during the computation process. The problem with these variables is that parallel tasks can fail without "rolling back" the val... |
Out of curiosity, why do combinators look this way? For example, why is $K = \lambda x y \to x$ and why is it called $K$? Why is it not $\lambda x y f m \to f m x$? These are just arbitrary letters, I have no idea what this function does. Or why is $S = \lambda f g x \to f x (g x)$?
Who first discovered that combinator... |
I have been reading [1] recently. On page xxi, the authors wrote: "For example, multiplying 577 by 423 using repeated addition requires 422 additions, whereas doing it with the grade-school algorithm takes 3 multiplications of a number by a single digit and 3 additions."
The above statement is wrong. There are only 2 a... |
I want to do some research on how machine theory (automata theory) is applied in the operating system. Also thank you for introducing useful links and books.
|
This problems comes from AI, and it looks something like this:
I am supposed to multiply two floating-point matrices A * B. A typically has the size of (1k to 10k) times 32, while B is of the size 32 times (1k to 10k). The result would be a large square matrix of size (1k to 10k) times (1k to 10k).
I need to do this in... |
From my understanding, two separate and distinct operations can be performed on binary search trees: Search and Traversal.
Search: Given a key, search will run an algorithm to find the node containing that key in the tree, then return this node.
Traversal: Using a Breadth-First or Depth-First search algorithm, visit ev... |
Which algorithm would be most suitable Kruskal, Prims or Steiner tree algorithm ?
|
I have weighted connected directed graph with cycles which can have multiple edges and loops (edge from vertex back to itself). Weight of each edge is its length (always positive integer). There always is a path from vertex $v_0$ to every other vertex (including itself).
I need to find greatest common divisor (GCD) of ... |
Is there an efficient way to find the minimum and maximum number of edge disjoint cycles an undirected graph can be partitioned into, given that every vertex has an even degree?
|
What I mean is, if in real life I had an object and I gave it to you, I would not have it anymore. I did not give you a copy of the object.
Is there a way to do that with information?
|
I have little background on recurrence trees, and I am working on the following exercise:
Exercise. Take $T(n) = 2T(n/2) + 3\log(n)$. Draw the recurrence trees for $n=2$ and $n=4$. What can we conclude complexity-wise?
My attempt. For $n=2$ we have the following recurrence tree:
Recursive Call Recurrence Tree ... |
In Turning Machine Halting Problem, is the memory of the Turing Machine infinite or finite?
Does the Turing Machine have access to infinite tape? Or limited tape?
|
I'm learning "Introduction to Algorithms, 3rd Edition
By Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein", referencing the solution to Exercise 4.4-1
I know the following equation gives the running time of the algorithm on the whole input of size n.
$n\sum\limits_{i=0}^{lg(n)}(3/2)^i=n\frac{... |
Suppose given $k$-sorted arrays of numbers that contains total of $n$ elements. we try to choose $k$ elements in $k$ arrays (each arrays exactly one element) such that minimize difference between maximum and minimum number in chosen $k$ numbers. What is lower bound of this problem? I have an algorithm that solve above ... |
I have to prove that $f(n) \neq O(g(n))$, where $f(n) = n\log n$ and $g(n)$ is $\log^*n$ if $n$ is odd and $n!$ if even.
So my thought is to say that $f(n) = O(g(n))$ and then with the definition prove that this is wrong, but i am struggling. Can someone help me?
|
I read that the problem of first-order model checking is believed to be not fixed parameter tractable on general graphs.
Why is this the case? Would be happy about some reference
Thanks in advance!
|
I have read in the Algebrization paper that, if we only allow polynomially-long queries to oracles, then, results based on padding will not relativize. For instance: assuming that $A$ is a PSPACE-complete language, $P^A = NP^A$ does not imply $EXP^{A[poly]} = NEXP^{A[poly]}$ (unless $EXP$ = $NEXP$).
However, I do not s... |
As far I know computer using crystal oscilator to define 1 second and it's not real 1 second, i mean it's not stable.
While real clock using cesium and we know cesium is stable, why doesn't computer contain cesium in its component to define 1 second.
So thats mean 1 second in clock atom and 1 second in computer are not... |
Show that if we strengthen linear programming by also allowing constraints of the form $$ \sum_{i,j = 1}^n a_{ij} x_i x_j = b,
$$ for integers $b$ and $a_{ij}$, then the problem becomes NP-complete.
This is a practice problem that I am trying to solve. I really do not know how to approach, or reason about it. I unde... |
I'm looking at Dijkstra's algorithm for single source shortest paths in a graph $G$ from a vertex $s$ from Introduction to Algorithms by Cormen et al. The $w$ parameter is the weight function such that $w(u,v)$ gives you the weight of the edge from $u$ to $v$.
DIJKSTRA(G, w, s)
INITIALIZE-SINGLE-SOURCE(G,s)
S = {}
... |
I know CPUs execute machine language code. Also I know operating systems such as Windows and Linux are a piece of code. But I cannot understand why Windows 11 does not run on a somewhat old CPU.
Can anyone explain it please?
|
What's the difference between $a^*+b^*$ and $(a+b)^*$?
I was going through this question. So according to the question-:
(a+b)* generates $\in$, a,b,ab,ba,aa,ba,...
whereas a*+b* generates $\in$, a,aa,aaa,b,bb,bbb etc.
Why can't a*+b* generate ab? What's stopping it from generating it? I feel like I am missing somethin... |
Most command line tools have an usage described by using square brackets for optional parts and just writing out required parts (like in regexes) for example:
foo [opt1[opt2...]] req1 req2 [opt3...]
It alone is not as powerful as regular expressions since it cannot express the language of zero or more ab's nor the la... |
I desperately need a hash / compression function that is suited to shorten text.
The context is this: I want to bring order and sort my box with hundreds of charging adapters (duh). After I determined for each one to what ever it belongs to, I want to label it accordingly.
Why don´t I just enumerate them? I have tried ... |
Suppose we have a randomized algorithm that takes a graph G and color k as inputs and provides yes if the graph is k-colorable and no with probability $p(n)$ if it's not k-colorable, where $n$ is the number of vertices. What is the consequence if someone comes with a proof that $\displaystyle \lim_{n \rightarrow \infty... |
I recently worked on an algorithm which, among other things, checks strings for equality using the classic builtin equality operator:
str1 == str2
(I think it should be irrelevant to the question, but I faced this issue in C++, and str1 and str2 are obviously std::strings.)
At a later point I decided to relax the equa... |
Define two operations:
B-operation: When two multi-edges connect a pair of vertices, replace the multi-edges with a single edge connecting the pair of vertices.
C-operation: When one edge connects vertices $u$ and $v$, another edge connects $v$ and $w$ (where $u \ne w$), and there is no other edge incident to $v$, remo... |
Given B and C operations.
B-operation: When two multi-edges connect a pair of vertices, replace the multi-edges with a single edge connecting the pair of vertices.
C-operation: When one edge connects vertices $u$ and $v$, another edge connects $v$ and $w$ (where $u \ne w$), and there is no other edge incident to $v$,... |
I have seen several variants of DFS algorithms used to check existence of cycles in graphs.
They all have the same structure : do a DFS in the graph. There is a cycle in the graph if and only if there exists a node which, while being treated, has a neighbour which has property P.
The variants are based on different pro... |
So, there's a LeetCode problem that has you find a O(log n) solution to finding a target number in a rotated sorted array.
As an example:
array = [5,6,7,1,2,3]
target = 4
Basically, the trick is that you can find the point of rotation in O(log n) time and then you can do a binary search over the appropriate subsection... |
I've written a function that gets a permutation and checks if that permutation can be reached using a stack from an input sequence which is <1,2,3,...,n>. (we take elements from left)
For example: if we have an input sequence, then if the function gets these permutations:
<4,3,2,1> - Returns true since we can push (1... |
The problem is-:
Site 1 solves this in this way-:
https://onlinesmarttrainer.blogspot.com/2020/08/minimization-of-dfa-solved-example.html
Site 2 solves this in different way-:
https://aswaddev.github.io/dfa-minimizer/
Book solves (using table filling method) and gets this-:
Here is the youtube video, which uses Myhi... |
We have n block $B_i$ $(1 \le i \le n)$, each block has 6 faces and each face material, is one of the k types (k is an input parameter).
In addition, each block $B_i$ has the weight $W_i$.
the question is to find the longest sequence S of blocks, such that fo each $1 \le i < n$:
S[i].weight >= S[i+1].weigth and
S[i].to... |
We are given a rooted tree $T$ of distinct Natural numbers. The goal is to find the largest subtree of $T$ that has MinHeap property. In fact, we want to calculate the largest subset $S$ of nodes, in a way that all nodes in $S$ have a common ancestor in $S$, and any ancestor of $n \in S$ that appeared in $S$ has a smal... |
Here, $Σ=\{a,b\}$ The number of $a$ can be $1, 4, 7, 10.....$, also $a$ can be placed anywhere.
Find Regular Expression for $L = \{w \mid w\in \{a,b\}^*\text{ and }n_a(w) \equiv 1 \bmod 3\}$
How can I proceed in this problem?
|
This is pretty simple and I THINK I know the answer to the question, but I don't know how to prove it formally. Below follows the question.
Question. Compare the functions $f(n) = \frac{n^2}{\log(n)}$ and $g(n) = 3^{\log(n)}$ in terms of rate growth.
My attempt. I have tried to compute the limit $\lim_{n \rightarrow +... |
A 'person' is represented by a combination of postal code and mailbox number(both are natural numbers)
No two postal codes are alike, yet a postal code can contain many different mailboxes.
At any given postal code, all mailboxes have different numbers.
Display a data structure that supports the following methods in be... |
Let $\mathcal{T}_n$ be the set of ordered binary trees that have n leaves.
$d_T(v)$ means the node $v$'s depth in the tree T.
Prove: for any $T\in \mathcal{T}_n$ , for any $\{c_1,c_2,...c_n\}$ , $c_i >0$ , $S=\sum_i c_i$
$$
-\sum_{i=1}^n(c_i\cdot\log_2(c_i/S)) \le \sum_{i=1}^{n} (c_i\cdot d_T(v_i))
$$
$v_i$ means the i... |
I am working on an efficient mapping function represented as a directed graph. In essence, it is a sort of radix trie. A path must be formed from a bit string [string hereon] efficiently. To do this, I decided on looking for and using an algorithm that finds a continuous, common subset of bits at a particular offset an... |
I have a directed adjacency list of node's. The structure of a node is
Node {
id: integer;
order: integer;
parentId: integer | null;
}
and the following nodes for the sake of example.
[
{id: 1, order: 1, parentId: null},
{id: 2, order: 1, parentId: 1},
{id: 3, order: 2, parentId: 1},
{id: 4, order: 1, parentId: ... |
I need to find the find the minimal
class $\mathcal{L}$ belongs to where
$$\mathcal{L} = \{\langle M \rangle: M \text{ is a TM that accepts 1 but does not accept 0}\}.$$
I think I can prove that $\mathcal{L}\in \overline{\mathsf{RE}\cup\mathsf{co{-}RE}}$ using 2 mapping reductions from $\text{ACC}$ ($M$ is TM that acce... |
If not, then what is the maximum number of cycles in any graph?
|
In [1], the authors give the following example to explain how Dependency Quantified Boolean Formulas (DQBF) work:
As an example for a DQBF, consider the formula
$∀x_1∀x_2∃y_1(x_1)∃y_2(x_2) : (x_1 ∧ x_2) ≡ (y_1 ≡ y_2)$.
Here $∀x_1∀x_2∃y_1(x_1)∃y_2(x_2)$ is called
the quantifier prefix and $(x_1 ∧ x_2) ≡ (y_1 ≡ y_2)$ th... |
The load balancing problem:
Given we have $m\ge3$ machines (servers) $M_{1}, M_{2},\dots,M_{m}$. As input we are given $n$ jobs defined by their processing times: $t_{1},t_{2},\dots,t_{n}\in\mathbb{Q}_+$ (positive rationals). Our goal is to assign assign the $n$ jobs to the machines so that the maximum runtime of any m... |
I need to prove that if $SAT\notin Size(2^{n/100})$ then CorrectSATSolver$\in P$.
Where CorrectSATSolver $= \{C | C(\varphi) = 1 \iff \varphi$ is satisfiable$\}$. In other words, CorrectSATSolver problem is as follows: Given a circuit C, decide if the circuit C solves the SAT problem.
I don't understand how to use th... |
I need to prove that CorrectConnSolver is coNP-Complete where CorrectConnSolver is defind as follows:
CorrectConnSolve$= \{C | C(G) = 1 \iff G$ is connected$\}$.
In other words, the
CorrectConnSolver problem is as follows: Given a circuit C, decide if the circuit C solves the
connectivity problem.
I have already pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.