instruction stringlengths 35 29.1k |
|---|
John McCarthy won the Turing Award in 1971 [1]. Two students whose PhD he supervised went on to win Turing Awards:
Raj Reddy (1994) [2]
Barbara Liskov (2008) [3]
What other Turing Award winners supervised the PhD theses of other Turing Award winners?
|
I am having trouble understanding the proof given below:
\begin{align}
(u \cup v)^* &= (u^* \cup v)^* \\ &= u^*(u \cup v)^* = (u\cup vu^*)^* \\ &= (u^*v^*)^* = u^*(vu^*)^* \\ &= (u^*v)^*u^*
\end{align}
In more detail, why does $(u + v)^* = (u^* + v)^*$ hold? Why can we just put a star on $u$? Is it a property?
Also, ... |
Is the following true: $$ f(n) \in O(g(n)) \text{ then } 2 ^ {f(n)} \in O(2^{g(n)})$$
|
I'm reading the paper: "Model Checking Games for Branching Time Logics" by Martin Lange and Colin Stirling - https://carrick.fmv.informatik.uni-kassel.de/~mlange/papers/jlc2000.pdf. The paper defines a model checking game for $\text{CTL}^*$. The main result of the paper is the following (page 10):
$$\textbf{Theorem 16 ... |
I have written an article on a new way of non comparison sorting and I want it to get peer reviewed. The sorting algorithm uses Trie data structure to store digits of numbers as nodes and iterating over each node 10 times (k) in a depth first traversal returns the sorted list. Time complexity O(n log m), log to the bas... |
A step of an algorithm I’ve designed requires computing the minimal closure under intersection of a set of sets of arbitrary size. By the "minimal closure (of a set $S$) under intersection", I mean:
Given a set $S$ containing sets $s_1, \cdots , s_k$, the smallest set $′$ such that $S\subseteq S'$ and $x\cap y \in S'$ ... |
Given an output sequence, $S$, we can use the Berlekamp-Massey algorithm to find the shortest LFSR, of order $n \leq |S|$, which exactly generates that sequence. Is it possible to efficiently compute an LFSR, in $GF(2)$, of order $n \leq n_0 < |S|$, which best approximates $S$? Best approximation means with the fewest ... |
Is there a quantum SAT algorithm, a quantum analogue of the DPLL or CDCL algorithms?
Note: I'm not looking for the quantum analogue of the Boolean satisfiability problem (though that would be interesting), but a quantum algorithm that solves Boolean SAT problems.
|
There are a bunch of lines in the 2D Plane. Is there an efficient algorithm to find the line that has the lowest y value given the same x? Thank you!
Could we also generate a list of ranges, where for each range, we know which line has the lowest y?
For example, for y = x + 2 and y = 2x for x in [0,100], we know that y... |
I'm currently trying to understand a step in the proof for in the Crama and Hammer book on Boolean Functions. The proof is Proposition 4.12, which claims that the self-dualization of Boolean $f$ is bijective.
The specific statement that I am confused about is a step showing that:
$$f^d(X)f(X) \lor f(X) \bar{x}_{n+1} \l... |
I am building an application which compares time series at a very high volume and velocity.
My approach of using Dynamic Time Warping (DTW) in combination with scaled time series (range between 0 and 1) seems to work alright. I want to detect occuring anomalies in those time series. For that i am calculating a score (r... |
So does anyone know the formula in order to get the number of cycles, I'm not directly asking for the answer but at least someone guides me on how to get a cycle given a grid such as an image above.
|
In the densest-subset problem, given an undirected graph $G = (V, E)$, the goal is to
maximise the “edge-density” ratio $|E(S)|/|S|$
over all non-empty sets $S ⊆ V$ , where $E(S)$ denotes the
set of edges whose both endpoints lie in $S$.
The Primal LP is of the form:
\begin{align}
\max & \sum_{e \in E} y_e \\
\text{s.t... |
While my question stems from game dev, the problem itself isn't as much about the game, but more about correctly representing my problem as a linear programming problem that I can solve with a linear programming library (alglib.net, in this case).
Problem description
I'm creating a prototype of a 2D space game. The spa... |
Say we have bit mask with some bits on and off:
1001110010101
We want to "deduce pattern", by covering this mask with as few strided masks as possible.
By "strided mask" I mean masks like:
11111111....
01010101....
00100100....
We can choose any length of strided masks and we need to cover initial mask completely.
Sa... |
I came up with the following after reading the Wikipedia page about EXPTIME, and I am wondering if I am right. I don't think I invented it, I just don't have any textbooks about this subject to find the answer in.
Background
The question of what state a Turing machine will be in after k steps is a simple example of a p... |
I am reading Advanced Data Structures by Peter Brass for self-study, and was confused about the book's example of a Canonical Interval Decomposition for the Segment Tree section (section 4.2):
So, the key 3 is halfway between 2 and 4, the key 6 is halfway between 6 and 8, and the key 9 is halfway between 8 and 10. 4 i... |
This is the definition of theta notation:
The function $T(N)$ is $\Theta(g(N))$ if there exist positive constants $C_1$, $C_2$ and $N_0$ such that $C_1g(N) \le T(N) \le C_2g(N)$ for all $N \ge N_0$.
My calculation is below. When I solved the inequality, $N \ge 0$. Am I making a mistake or am I on the right track?
Ass... |
I was solving some basic problems about the theory of machines and automata. The topic was about pumping lemma, but I could not solve the below question and prove that it is not regular.
$$L=\{a^{b+cd} \mid \text{$b$ and $c$ are constant, $d \in \{0,1,2,3,…\}$}\}$$
This is my incomplete solution:
Assume for contradicti... |
I have a set of segments. None of them intersect or touch each other, and none of them have slope $0$ or infinity (i.e. the endpoints have different $x$ and $y$). All segments have length $> 0$.
What I want to achieve is, a sorting order similar to what would happen if they were ceilings in a house and rain falls on th... |
i was given a this circuit as exam question
So we need to define functions g and f. I defined them as $g(x,y,z) = x \oplus y \oplus z$ and $f(x,y,z) = (x \oplus y) \cdot z$. By definition known that $S=A \oplus B \oplus C_{in}$ and $C_{out}=A\cdot B + (A\oplus B)\cdot C_{in}$;
$S_{FA(top,\ left)}=x \oplus y \oplus 0 ... |
We describe formal languages with their finite descriptions. For example we can describe a language simply by set-builder ( $\{ x : \phi(x)\}$) or we can describe something with its corresponding Turing machine.
If we consider a fixed property of languages, then we have class of languages that have this property. For e... |
These terms are often used to describe algorithms but I'm not really sure what they mean. I would like to see more examples of what each one is like and how they can be identified. Can anyone please provide a thorough explanation or any links/books that can help me understand these terms better? thank you!
|
I am learning about designing Turing machines and I am struggling when it comes to creating the states diagram, for example if I wanted to design a Turing machine of the language $L=\{a^nb^n, n\geq 0\}$, here its state diagram:
I understand the concept behind the solution, i.e: replacing the first with a with an X the... |
Given a set of tuples, I want to determine if the set covers the whole space of possible values, and in which order the indices vary.
This is best explained with 2-dimensional examples:
In the following examples, suppose that:
X has 2 possible values, in this order: 1, 2
Y has 3 possible values, in this order: 1, 2, 3... |
I am wondering what exactly the difference between CTL and CTL* is. I know that CTL* is strictly more expressive than CTL, but it is not clear to me how the "restrictions" to CTL accomplish that. I.e., why do we have to alternate quantifiers and do not allow negation nor conjunction (no boolean logic)?
In the book I am... |
Given an undirected weighted connected graph. How to determine the edges that appear
in all minimum spanning trees. I know the Kruskal and Prims algorithm to find
a minimum spanning tree. But how does one ensure that a particular edge appears in
all possible minimum spanning trees?
My Thoughts:
If an edge has degree 1,... |
n teams play pairwise matches. If the match is a draw, both teams get 1 point.
The winner gets 3 points, and the loser gets 0 points otherwise. Is it possible that all n teams
finish with the same total points, and how? Could we devise an algorithm for it that
includes the fewest drawn matches among such a possibility?... |
Is it possible to extend the Bellman Ford algorithm to output all shortest simple paths without repeating vertices?
The issue is that the Bellman Ford algorithm doesn't make any checks for whether the shortest "paths" it counts have repeating vertices. Also, if one were to keep track of all of these paths, I think it w... |
I try to solve a computational problem, but its solution lives on a generalized Venn diagram statement. I was able to obtain its general formula, but now I require some necessary conditions to avoid k combinations evaluation of intersection between sets. The general formula is below, as well as its statement.
Statement... |
The problem is defined as https://npcomplete.owu.edu/2014/06/10/exact-cover-by-3-sets/:
Given a set $X$, with $|X| = 3q$ (so, the size of $X$ is a multiple of $3$), and a collection $C=\{(x_{i1},x_{i2},x_{i3})\}_{i=1}^n$ of 3-element subsets of $X$. Can we find a subset $C’$ of $C$ where every element of $X$ occurs i... |
In a card, game opponent places $n$ monster cards onto the board, the $i$th of which has $h_i$ health points. You, in turn, have $m ≥ n$ hero cards in your hand, the $j$th of which deals $d_j$ damage per turn. To begin the game, you will choose $n$ heroes from your hand and assign each of them to a different enemy mon... |
I have a test that asks to build a register file using only a single port.
The register file should also output 2 values, the read values, and be able to write one.
I tried to build it, but ,simply put, I think this is impossible, isn't it?
I also have another task , in the very same test, asking me to do the same exac... |
I have a list of $n$ variables, exactly $k$ of which should be true. Is it possible to encode this as a 2-SAT problem in time polynomial to $n$ and $k$?
|
Let there be a list of $n$ elements $S$. Let $T$ be a set with $m$ elements ($m \leq nC2$), with each element in $T$ being a pair of distinct elements of $S$. For $k\geq2$, is there a polynomial-time algorithm to find the number of combinations of length $k$ of the elements of $S$ that at least one of the elements of $... |
I've faced this question in my homework and I couldn't provide elegant proof for it.
We're given $\Sigma_n=\{1,\dots,n\}$ and a language: $$L_n =\{w\in\Sigma^*_n\ |\ \exists\sigma\in\Sigma_n\ :\ ⋕_\sigma(w)=0\}$$
That is a language that consists of letters from $\Sigma_n$ but doesn't contain all the letters.
Question: ... |
Let $f$ be a function of 2 variables. Consider $f\colon X \times Y \rightarrow Z$.
Let $P_i$ (for $i=1,\ldots,n$) be $n$ probability distributions on $X$, and let $Q$ be a distribution on $Z$.
We know that if we choose $X$ according to any of the $P_i$ (the distribution on $Y$ is fixed throughout), $f_{x \leftarrow P_... |
While solving This algorithm problem I was unable to come up with condition for the collision to occur ( other than the naive O(n^2) algorithm ) on reading the explanation they say
Let’s deepen the observation. For a set of people with the same y coordinate, let’s consider “in what condition does a collision occurs?”... |
The complexity class $\mathit{DP}$ is defined as follows: $L \in \mathit{DP}$ if $L = L_1 \cap L_2$ where $L_1 \in \mathit{NP}$ and $L_2 \in \mathit{coNP}$.
I'm trying to show that $\mathit{DP} \subseteq \mathit{EXPTIME}$.
My idea was as follows:
For all $L \in \mathit{DP}$, $L = L_1 \cap L_2$, where $L_1 \in \mathit{N... |
I'm looking for a randomised algorithm (specifically an epsilon-delta approximation) which takes as input a graph G, a subgraph T (which is a tree), and outputs an approximation to the total number of copies of T within G.
If we are given a colouring of G I think it's a little easier but I don't have any concrete resul... |
I have unit intervals given such as $I = \{\{s_1, s_1 + 1\}, ..., \{s_k, s_k+1\}\}$ ($\forall s_i \in \mathbb{R}$). I am given a list of $X$ reals, such that each of the reals belongs to at least one interval.
I am asked to suggest a greedy algorithm to minimize the number of intervals required to capture all reals fro... |
$$
T(n)=T(\log n)+1
$$
$$
T(n)=\Theta(...)
$$
I want to find theta of $T(n)$. I tried the master theorem but failed.
|
I am trying to construct a DFA with $\Sigma = \{0,1\}$ that accepts $L = (0\mid10)^*$, below is my attempt, but I'm a bit stuck.
The quiz marked it wrong since there's no transition from $q_1$ under $1$, but if I add a loop on $q_1$ for $1$ onto itself then I'm not actually accepting $10$, it would be $110$?
|
I need to show that in any regular graph, taking all nodes gives a 2-approximation vertex cover.
My attempt: I am proving that every $k$-regular graph can be reduced to a 2-regular fully connected graph (ring). And then the ring case is trivial.
However, I am unable to show that in the actual graph, there was no smalle... |
The No Free Lunch theorems for search and optimization demonstrate that for search/optimization problems in a limited search space, where the points being searched through are not resampled, the performance of any two given search algorithms over all possible problems is the same.
No Free Lunch for Search/Optimization... |
I am given a graph of minimum degree at least 2 (not necessairly regular). I want to prove that there is a way to orient the edges of G such that each node of G has at least one out-going edge.
As a hint I have that, in a bipartite graph $(U \biguplus V, E)$ if for every $U' \subseteq U, |N(U')| \geq |U'|$, then there... |
Given $L$ a non-regular language and $F$ a finite language I need to prove, or disprove, that $L^+ \cap F$ is a regular language. I tried to prove this using induction on the number of words in $L^+ \cap F$, as from $F$ finite nature I get that the intersection is also finite, hence:
$n = 0$, There no words in $L^+ \c... |
Consider the language $\{ w=uv : 2|u|=3|v|, u,v \in \{a,b\}^+ \}$.
How to compare the lengths of the words? How to know where is the end of $u$ and the beginning of $v$?
What algorithm is used for comparing lengths of words in a pushdown automaton?
|
I understand that to approximate a solution to the weighted vertex cover, we need to relax the integer linear program to a linear program which can be solved in polynomial time, but why do we round from 1/2 when converting it back to an ILP? Why aren't the bounds say, round down to 0 from 1/3 if a given vertex has valu... |
I wanted to say that the language is the set of strings that end with "101" but unfortunately it does not work. Take for example "110101",
which is not accept by the dfa.
|
I am trying to construct a DFA with $\Sigma=\{0,1\}$ that accepts the language $\{ x \in \Sigma^* \mid x \notin \mathcal{L}(0^*1^*) \}$. To do this I first tried constructing a DFA that accepts $x \in \mathcal{L}(0^*1^*)$ and then found the complement of that DFA by switching the accept states and non accept states. Bu... |
Every function $f\colon \{ 0, 1 \}^n \to \{ 0, 1 \}$ can be computed by a circuit over the standard unbounded fan-in basis $\mathcal{B}_1 = \{ \neg, (\vee^n)_{n \in \mathbb{N}}, (\wedge^n)_{n \in \mathbb{N}} \}$ of depth $3$ and size $\mathcal{O}(2^n)$ via the disjunctive or conjunctive normal form. Now, we can transfo... |
The min-path problem is mostly motivated by a graph with cities as vertices and roads between them as edges. Each edge has a weight which could be the length of the road or the time it takes to cross it in your car ($t_e$ for edge $e$). This problem has an optimal substructure (sub-paths within an optimal path are also... |
Suppose
$$L=\{1^i0^j1^k\mid i+2j=k\}$$
How can I construct a context-free grammar for $L$?
This is homework. Here is my attempt for the case when $L$ is defined with $i+2j=3k$ instead.
\begin{align*}
S&\to aaaSc| bbbBcc| abBc| aabBc|\lambda\\
B&\to bbbBcc| \lambda
\end{align*}
But it's not true because it accep... |
i'm a student and i've been searching the language description of this automaton.
The states are as follows: Q = {q1, q2, q3,q4}
The alphabet is as follows: Σ = {0,1}
The start state is q1
The accepting state is q4
After some research i though i had something. Every string ending in 101 is accepted, but then i tried 10... |
I have an undirected graph $(V, E)$ with constast edge connectivity $\lambda$. Each edge is sampled independently with probability $min\{1,\frac{c \ln n}{\lambda}\}$ for some $c > 0$. I need to prove that I can pick smallest sufficiently large $c$ so that the graph $(V, E')$, constructed from the sampled edges is conne... |
For any vertex v reachable from s, BFS computes a shortest path
from s to v (no path from s to v has fewer edges).
In order to prove the above proposition, The author of the book has stated that we first need to
Prove by induction : The queue always consists of zero or
more vertices of distance k from the source, fol... |
I am looking to specify something in Isabelle of the form that there exists a $j$ such that $lb < j < ub$, where $lb$ and $ub$ are lower and upper bounds.
For a single condition, we can say, for example, $\exists j < ub . P(j)$ in Isabelle. How to specify both conditions on j? Is it right to say both conditions in the ... |
Consider the problem of checking whether a quantified Boolean formula of the form
$∃X_1 . . . ∃X_n ∀Y_1 . . . ∀Y_m \phi$,
for $\phi$ in $3DNF$ over $X_1, . . . , X_n, Y_1, . . . , Y_m$, is true.
I'm trying to show that it's in $NP^{NP}$
My attempt (probably not correct, it's a guess):
Consider the following problem: $∀... |
I need to sort an array of n real numbers that was randomly generated in this way:
I have a given set of k closed intervals: [a1,b1],[a2,b2],...,[ak,bk] whose beginning and end are natural numbers. These intervals may overlap. Each i-th interval is assigned a number ci, specifying the probability of drawing it. After d... |
I was given a new definition for a language of an automaton.
A word is part of the automaton language if and only if the automaton finished on an accepting state and it was in an accepting state at least once before
Note: it doesn't have to be the same accepting state.
Now given a deterministic finite automaton $A$ t... |
I am having trouble understanding what's going on. I have just been introduced to the open() and close() commands in Python. I have a code that is very similar to the code below:
def function1(s): #creates a text file with the name s
file = open(s + ".txt", "w+")
file.writelines(['1\n', '2\n', '3\n'])
Running th... |
I have this strange problem where we have a set of positive numbers $M$, a fixed number $n$, and a function $f\colon M \rightarrow R^+$ mapping each number in $M$ to another positive number. We want to know if we can select non-repetitive numbers $a_1, \dots, a_n \in M$, such that the sum over the weighted prefix produ... |
I am working on some automata questions and I have encountered this problem:
Let L be a CFL.
Is $\{1\}^∗ ⊆ L$ a decidable problem?
Is $\{1\}^∗ = L$ a decidable problem?
I literally have no idea how to solve this, any ideas/hints? Thanks in advance!
|
a* = {λ, a, aa, aaa, aaaa.....}
a.a* = a.{λ, a, aa, aaa, aaaa.....} = {a, aa, aaa, aaaa, aaaaa....}
Then these two regular expressions above should not be equivalent. Please correct me if i am wrong.
|
Facility location and $k$-medians are closely related problems in CS. We are given a set of facilities (each with a weight), a set of clients to serve where a facility $i$ can serve a client $j$ with a cost of $c_{ij}$. In $k$-medians problem, the goal is to select a set of $k$ facilities that minimizes the total cost ... |
Is the language, $a^nb^mc^k$, where $n\not=m$ and $m\not=k $ in CFL or not? When the condition is changed to $n\not=m ~\|~ m\not=k $, it can be shown that the language is the union of 2 CFLs. However when $n\not=m$ and $m\not=k $ that approach seems to not work.
|
as anticipated in the title, I can't understand the difference between API, system call and system call interface.
Most of all, I can't understand if the system call interface is actually a "translator" between functions of an API and specific system call or if it is something else.
|
This is a question written by my instructor Z. Loria .
Consider the following problem: Given a polynomial $p(x) = \sum_{i=0}^n a_ix^i$, where $a_i$ are integers, is there a natural number $n \in \mathbb{N}$ such that $p(n) = 0$?
Show that this problem is decidable by presenting an algorithm in pseudocode that always e... |
For the language
$ L= \{a^kb^k | k \geq 0 \} $
How can i show there is no one-tape Turing Machine that can decide $L$ in less than $O(n\log n)$ time ?
|
How does the NFA function on $\epsilon$ input if there is only a single $\epsilon$ string in the language?
I understand that $L^* = \bigcup_{i=0}^\infty L^i$ where $L^0 = \{()\} = \{\epsilon\}$ and $L$ is the language. The empty string $\epsilon$ is an input to a NFA with $\epsilon$ moves.
I suspect an infinite number... |
If $\mathcal{p}$ is a nontrivial property of formal languages, then
$L_{\mathcal{p}} = \{ \langle M \rangle \mid L(M) \in \mathcal{p} \}$ is undecidable by Rice’s theorem.
What if we describe languages with another method instead of Turing Machines? For example, if we define $L’_{\mathcal{p}} = \bigl\{ \langle \phi \ra... |
We know that $f(n)$ is $\mathcal O(g(n))$ if $\exists c\ge0$ s.t. $$\lim_{n\to\infty}\dfrac{f(n)}{g(n)} = c.$$
Let $f(n)=n^{3/2}$ and $g(n)=n^{\log n}.$
When I am applying L'Hôpital's rule for $$\lim_{n\to\infty}\dfrac{f(n)}{g(n)}=\lim_{n\to\infty}\dfrac{1}{n^{{\log n}-3/2}}
=0.$$
If I apply L'Hôpital's rule for
$$\li... |
Suppose I have a 32-bit integer $x$, I want to find $\{ x_i \}_{i \in 1\dots\ell}$ such that
$x = e + \sum_{i=1}^\ell x_i \cdot 2^{32 - B\cdot i}$
where the error $e$ is as small as possible. The parameter $\ell$ is the level of the decomposition and $B$ is the base of the decomposition. Increasing $\ell$ and decreasin... |
So I'm trying to solve this problem and I came up with a brute force solution. I was wondering how can i make it more efficient ?
Problem:
Suppose i have resources and integer that denotes at what time it was used in an array. Now we have a variable 'window' = 3. I need to find the resource which was accessed the most ... |
How to transform a k-SAT CNF clause into a combination of 2-SAT and/or 3-SAT (1-SAT) clauses? $k>3$
Example 5-SAT:
$$ Q = \neg A \lor B \lor C \lor D \lor E $$
$$ \; \; = (X0 \lor X2 \lor X3) \land (Y1 \lor Y2 \lor Y3) \land \; ... $$
Do I have to apply Tseytin transformation? How? Could you resolve my example, pleas... |
Given a language $A \in RE$, is the following language also in $RE$?
$$
L_{10}^{A} = \{ \langle M \rangle : \lvert A \cap L(M) \rvert \geq 10 \}
$$
Where $L(M) = \{x \in \{0, 1 \}^* \mid M \text{ accepts } x \}$.
(I've managed to prove that if $A \in R$ then $L_{10}^A \notin R$ necessarily with a reduction from $HALTIN... |
I need help choosing a model for my data. I have 50 genes that I need to test for their expression levels. I was thinking of implementing either an SVM or a multilayer perceptron model where the output can be on a scale of 0-1 to show the expression level of each gene. The input data is from single-cell transcriptomic ... |
This language is given.
$L = \{\; x \# x^R \# x \mid x\in \{a,b\}^*\;\}$
I have to figure out a context sensitive grammar for it.
I've tried several rules already but it's hard to make a copy of the first part and also get it in the last with the reversed part in the middle.
|
I would like your opinion on how to detect the T(n) (Running Time) for the following recursive algorithm.
Charm is an algorithm for discovering frequent closed itemsets in a transaction database. A list of frequent closed itemsets are frequent items that appear several times in a set of transactions (tids) (e.g. bread... |
Found this term for a supposed 'adder' in lambda calculus.
λabcd.ac(bcd)
Although I know about alpha-conversion and beta-reduction and all that stuff, I don't know how to apply it. All the examples I could find always put in real numbers (like "3" and "5") but strictly speaking, if we want to abide by the rules of lam... |
With hard margin support vector machines (SVMs), it suffices to find the critical points of the Lagrangian $L = \frac{1}{2}||\theta||^2 - \sum_{n=1}^{N} \alpha_n (y^{(n)} (\vec{\theta}^T\vec{x}^{(n)} + \theta_0) - 1)$ over all $ \alpha_n$, where $\vec{\theta}^T\vec{x}^{(n)} + \theta_0 = 0$ is the seperating hyperplane,... |
Since every continuous variable can be sliced into many discrete values, is there a particular class of problem that can only be solved by an analogue computer?
|
Hello i am new to machine learning, i am working on a multimodal dataset, basically memes dataset, The data consists of an image and an overlay text, i have no clue how to feed a model both of the information the text and image, for example what i understand for pytorch i can import and image dataset like pic number 1,... |
There is a whole space interval [0,128]
And several discrete sequences like:
[0, 1, 4, 5, 32, 33, 36, 37, 64, 65, 68, 69, 96, 97, 100, 101]
[32, 33, 36, 37, 48, 49, 52, 53, 96, 97, 100, 101, 112, 113, 116, 117]
[12, 13, 28, 29, 44, 45, 60, 61, 76, 77, 92, 93, 108, 109, 124, 125]
They look like this
and can be describe... |
Say I have a set of strings $S=\{s_1, s_2, ..., s_N\}$, and I want to partition $S$ into two sets $S_1$ and $S_2$ equally, i.e., $||S_1|-|S_2||\leq1$.
Define the difference of a set as
$$Diff(S_k)=\frac{\displaystyle{\sum_{s_i,s_j\in S_k} d(s_i,s_j)}}{\displaystyle{|S_k|\choose 2}}$$
where $d(s_i,s_j)$ is a custom dist... |
Suppose we have an optimization problem $\mathcal{P}$ that we should cover all points with $k$ disjoint rectangles in the plane and we should optimize a distance function over each rectangles . Now, suppose there is a $\mathcal{P}'$ that just need cover all points in the plane with $k$ disjoint rectangles.
Already pr... |
I have some partial order $\preceq \,\,\subset A \times A$, I'd like a data structure with the following operations:
$Insert(a, x, T)$: add $(a, x)$ to the collection $T$
$Find(x, T)$: find the element $(a, y)$ in $T$ such that $y \preceq x$ and $y$ is the largest such value (e.g. the greatest lower bound of $x$.
If ... |
I'm looking for a word to describe an algorithm that takes an ordered list as input, where the output depends on the content of the list but not the order. A sorting algorithm on integers would be an example of such an algorithm, because a sorting algorithm will always output the same output list for any input list tha... |
Consider a CNF formula $F$ such that all the literals in every clause must be negative ( here is an example : $F$ = ($\bar{x_{1}}$ $\wedge$ $\bar{x_{2}}$) $\vee$ ($\bar{x_{3}}$ $\wedge$ $\bar{x_{4}}$ $\wedge$ $\bar{x_{5}}$) would be a valid formula where as $F$ = ($x_{1}$ $\vee$ $\bar{x_{3}}$ ) would not be a valid for... |
I was given the following problem and told it has to be solved using diagonalization. However, I am confused as to why diagonalization would be the solution. Would the answer not be since L is infinite it has uncountably many subsets. Since there are only countably many decidable languages, some subset of L must be und... |
I am interested in computation and I am lost on undecidability and reductions. I have the following two problems I am stuck on.
Let us call 2 Turing machines related if there
is an input $w$ on which both halt (after finitely many steps). Let $h(M )$
be the set of inputs on which the TM $M$ halts.
Show that the problem... |
We learned recently in a graduate statistic course about Blackwell-Rao of an unbiased estimator statistic T; other methods for parameter estimation includes Maximum Likelihood and Method of Moments and we studied their asymptotic behavior for consistent estimators.
Q: Are there any recommendations of papers in the fiel... |
The topic of 3-colouring is often talked about, but what happens if we limit the amount of times we can use one color? Take a graph $G=(V,E)$ with $k$ being the number of vertices, is it possible for a polynomial time algorithm to check if the graph $G$ admits a 3-colouring where the first color is only used at most $k... |
I am working with undirected unweighted graphs, and I am searching for an algorithm that gives me a spanning tree minimizing the number of moves to visit every nodes.
For example, given this graph :
one spanning tree may be :
but, starting at a, 11 moves are necessary to go through every nodes : ab, ba, ah, hg, gh, h... |
I am working with graphs, let's say I have 4 nodes, named A, B, C, D, each node has to be connected a certain number of times to the other nodes.
A: 3, B: 3, C: 2, D: 2
This means that A and B are connected three times and C and D two times. All the possibles pairs generated are the following:
(A, B), (A, C), (A, D), (... |
I read this blog post Fixing retries with token buckets and circuit breakers (by Marc Brooker), which goes through several retry strategies.
For the "N retries" strategy (i.e. on failure, the client makes a maximum of N retries of the call), it explains that:
[...] If the downstream failure rate is x%, the effective f... |
So I was just studying about Indexed Priority Queues and I got confused about the increase key operation.
So basically we have the option to increase a key for an element in log n time because we can look up the index using another array that maps keys to indexes. So let's say that
'A', 'B', 'C', 'D', 'E'
are mapped wi... |
The Buttows-Wheeler transform is a function that takes a string $S$ to a new string $S'$ and an index $I$. The new string $S'$ is always an anagram (rearrangement) of the input string $S$.
However, if I pick a random string $S'$ and index $I$, the inverse Burrows-Wheeler transform usually fails. For example, if $S'$ is... |
I've read some articles in this forum, e.g. there were professional claimed that a Turing machine does not accept a language but it recognizes it. I respect that but I found the phrase "a language is accepted by a machine" is actually used in the Peter Linz's book. So here I'd rather not touch the choice of words probl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.