instruction stringlengths 35 29.1k |
|---|
I'm thinking to do this recursively using the fact the the left subheap is also a min-heap with its root being the minimum using some variation of Select$\left \lfloor \frac{n}{2} \right \rfloor$.
Select-Var($H$,$\left \lfloor \frac{len[H]}{2} \right \rfloor$):
if $H[1]$ has no children then return it
if $H[1]$ has on... |
Let $L\in CoNP$. Assuming that $L\in NPH$, what would we get?
So, as $L\in NPH$ then every language $A\in NP$ has a reduction $A \leq L$. This would mean that $\overline{L} \leq L$ as well. By reduction properties the same reduction applies for: $L\leq \overline{L}$. So $\overline{L}\in NPH$ and thus $\overline{L}\in ... |
I'm trying to find out if these algorithm still work if i replace the Euclidean space with metric space defined on the input point set. But i'm having some trouble figuring it out for some of them. I have:
k-means clustering using Lloyd algorithm, with random initialization
DBSCAN using the graph-approach
DBSCAN using... |
I want to develop LRU key-value data store and in that wanted to get rid of space to store the key itself. Instead wanted to store a 128 bit murmur hash. The structure of data-store that I want to explore is similar to CPU k-way set-associative caches.
So the algorithm I want to pursue is -
Compute a murmur 3 hash for... |
I'm trying to prove the if $$ is a $$-state synchronizable DFA, then it has a synchronizing sequence of length at most $^3$. first I have to prove that if a string syncs two states, then its length is at most $k^2$.
The question was answered here.
The proof of this a standard shrinking argument: if such a word is long... |
I am struggling with this question, because I came up with an relatively easy proof for mapping reduction:
if $A\leq_{M}B$ and $B\leq_{M}C$ then $A\leq_{M}C$. We know that $w \in A$ $\Leftrightarrow$ $f(w) \in B$ and $w \in B$ $\Leftrightarrow$ $f(w) \in C$.
Let $h = g \circ f$. since $w \in A$ $\Leftrightarrow$ $f(w)... |
For a sentence $\varphi$, we'll define $Spec(\varphi)$ to be the set of all $n\in\mathbb{N}$ for which there is a model $M$ with $|D^M|=n$, such that $M\models\varphi$.
Let $\Sigma=\{P(\cdot),R(\cdot)\}$, where $P,\,R\,$ are relations.
$\boldsymbol{Disprove:} $ There is a sentence $\psi$ above $\Sigma$ such that $Sp... |
When I read about Artificial Neural Networks (ANN), no one says what ANN is.
For instance, Wikipedia says:
Artificial neural networks (ANNs), usually simply called neural networks (NNs), are computing systems vaguely inspired by the biological neural networks that constitute animal brains.
This is a vague definition.... |
I am working on different methods to solve Recurrence Relations. I am using Iteration method and substitution method, which involves Induction, but I feel that sometimes Induction method creates a bit confusion, so I want to know that which of these two methods is more reliable?
|
So in the little I know about formalization of cellular automata, it appears there are 4 major categories of cellular automata:
1-dimensional (cellular automata on the line)
2-dimensional (cellular automata on the plane)
3-dimensional (cellular automata in the cube)
hyperbolic cellular automata
In the plane example, ... |
I was studying for an exam when I stumbled across this true or false statement:
In a system of 7 states diagram, a process could switch from ready state to exit state directly.
The answer to this question was "True".
After some digging into books, I found this:
Ready -> Exit: For clarity, this transition is not show... |
Universal codes are fairly well studied, and many asymptotically optimal universal codes exist for binary data (see https://en.wikipedia.org/wiki/Universal_code_(data_compression) especially https://en.wikipedia.org/wiki/Elias_delta_coding and https://en.wikipedia.org/wiki/Elias_omega_coding).
I know that no optimal un... |
I've recently seen a proof that the set of Turing machines $L = \{encode(M) |L(M) \text{is closed under reversal}\}$ is not decidable.
The proof used following idea:
Reduce from the $A_{TM}$ problem by taking input $\langle M, w \rangle$ and by constructing $M'$ such that $L(M') = \text{some language that is closed und... |
I am reading Algorithms Unlocked By Tom Cormen and find this concept a little confusing.
Why is it that we require loop invariants and how does it help in analyzing algorithms?
|
The paper A universal cellular automaton in the hyperbolic plane says:
Our simulation consists in simulating the execution of a register machine. It is known that two registers are enough to simulate a Turing machine, see [10], and so, by such a simulation, we shall obtain a universal computation.
It links to [10] wh... |
Intuitively I feel like this is a bit of a dumb question, and is probably related to my vague understanding of approximation algorithms and whatnot.
Suppose I have some minimisation problem $X$ where, for some $n$, the optimal solution is $x$. If I make an algorithm such that it finds a solution of at worst, $\lceil1.5... |
Problem Description
Note: I originally posted this question on Stack Overflow but was referred to this community instead.
I have a graph containing selectors and elements. An element can have multiple selectors associated with it. As a graph, it looks something like this:
In the example, any node prefixed with an S is... |
There is a problem that I am working on. I have shown that the problem is NP Hard, but I haven't been able to show that it is in NP. But the problem is also known to be in EXP. My gut feeling is that the problem is PSPACE-complete. I am leaving aside PSPACE-hardness for now. Even if I have to prove that the problem is ... |
I have just started learning formal languages and here is a question I am facing a little hurdle:
Construct a context-free grammar for $\{ a^{2n}b^{2n} \mid n \ge 0 \}$.
This was what I got at first.
$$S \to ab\mid aS\mid Sb\mid ab$$
Now I am getting this,
$$S\to \epsilon$$
$$S\to aaSbb$$
$$G=(V,\Sigma,R,S)=(\{S,a,b\... |
I'm finding contradictory information online where some places only consider auxiliary space and others define it as
Space Complexity of an algorithm is total space taken by the algorithm with respect to the input size. Space complexity includes both Auxiliary space and space used by input.
What parts of a function a... |
Given an AVL tree containing nodes ordered by unique integer I.D's and data as pointers to some struct, what would be the expected minimum number of elements that will justify the creation and maintenance of the tree? I know this is a broad question so let me give some more details:
Say I have the following pseudo code... |
Featherstitch (Frost et al., 2007) is an approach for representing data consistency requirements for disk storage. This question concerns a graph-theoretic problem (§4.1 in the paper) that its implementation requires, but the original authors sidestepped by using a relatively crude heuristic.
My take at formalizing th... |
Given the next alphabets: $\,\,\Sigma_1=\{R^2,P^1,=^2\}\,\,,\Sigma_2=\{c,f^1,=^2\}.$
Prove of Disprove: There's exists an algorithm, that given formula $A$ above $\Sigma_2$, builds formula $A'$ above $\Sigma_1$ such that:
$A$ is valid $\iff$ $A'$ is valid.
I could not come up with a solution, but I have two direct... |
I am studying computer science at university and we have an exam, which consists of several problems, one of which has to deal with pipelines.
My understanding is that one effective way to solve data hazards is to use pipeline bubbling - adding NOPs in order to stall the pipeline long enough to finish the operation, fr... |
I'm wondering if PRIMES, the language of all prime numbers represented in binary, which is $\{10, 11, 101, 111, 1011, 1101, ...\}$, belongs to the SPARSE class, a set of all sparse languages, that is, languages satisfying the property that the amount of words of length $n$ is bounded by some polynomial $p(n)$.
I believ... |
I found this question on a forum chat on and while looking at it I thought I can solve it using recursion,
A group of friends is split into cells in a room in a random
arrangement of m X n cell locations in a rectangular or square form,
such that each person in a cell can see all the people in their cell
as well as th... |
Given a sequence of states of a given cellular automata, is it possible to construct the rules of the automata & hence predict the next state? To be clear, initially the rules are NOT known but the output sequence is.
|
Define $K\_SCC = \{ \langle G, k \rangle \,:\, G \text{ has at least $k$ strongly connected components} \}$
I want to show that $K\_SCC \in NSPACE(\log n)$, using that $st-CONN$ and $\overline{st-CONN}$ are both in NL, where $st-CONN = \{\langle G,s,t \rangle \,:\, \text{there is a path from $s$ to $t$ in $G$} \}$.
Wou... |
From prof. Onut Mutlu's slides on prefetching, this example has been shown as software prefetching:
for (i = 0; i < N, i++) {
__prefetch(a[i + 8]);
__prefetch(b[i + 8]);
sum += a[i] * b[i];
}
On Wikipedia, it says that to determine the number of element of an array to prefetch ahead is calculated by $miss\_pe... |
Say I had a PDA with alphabet language {0,1}, and a stack language {P,Q,\$}. In the PDA I don't really care what the inputs are at the end and I just want to clear the stack back down to the special character. I could write out the transitions like:
1,P->e
1,Q->e
0,P->e
0,Q->e
e,P->e
e,Q->e
1,\$->\$
0,\$->\$
but that... |
Let $s$ be a string of length $n$. One of the classical solutions to the problem of finding the smallest period $p$ of $s$ (that is, smallest $p$ such that $s$ can be obtained as a concatenation of the several copies of $p$) uses so-called $Z$-function. In words, $Z=Z[0..n]$ with $Z[0] = 0$ and $Z[i]$ is the length of ... |
The title pretty much explains the question, but still: Is the language
$$L = \{xw^3x^{rev}\mid x, w\in\{0, 1\}^*\}$$
context-free?
I think it isn't and would motivate that suspicion by the following reasoning:
if we consider the two languages:
$$L' = \{xwx^{rev} \mid\ x,w\in\{0, 1\}^*\} \text{ which is context-free}$$... |
Why are priorities always from a fixed set of integers? In operating systems priorities are integers typically between 1..MAX. But what is the reason that this is the case, when it would obviously be easier to place a new task between priority 2 and 3 with priority 2.5 instead? The way it is now, my scheduling can run ... |
The introduction of https://www.sciencedirect.com/science/article/pii/0001870882900482 starts with the following sentence:
The word problem for commutative semigroups is effectively decidable.
I know what a “decidable” problem or, more precisely, a “decidable” language over an alphabet means: there is an algorithm th... |
In JavaScript, let's say, it is easy to build a string intermixed with single underscores by just joining the string parts.
let string = ['foo', 'bar', 'baz'].join('_')
In addition, it is straightforward to write a grammar that can have letters separated by at least one underscore.
grammar = letter letterOrUnderscore*... |
The problem is described below:
When m=2 and n=3, it is basically finding the distance between a point and a line segment in $R^3$.
But when both m and n are larger, do I have to use a generic optimizer to solve this, or this problem can be precisely solved with mathematics, like the case when m=2 and n=3?
What I have... |
(Topic summary under the line.)
Regex, at least the formal definition featuring only | and *, is used to describe words accepted by a given FSA, but it can be transformed into the corresponding state diagram (by constructing a NFSA with epsilon transitions from "modules" that correspond to the concatenations, alternati... |
I have been reading analysis of insertion sort in the "Introduction to algorithms" and faced a problem with understanding a specific summation notation when the worst case occurs.
I know how one can get formula for arithmetic series when we deal with while loop header, I mean 2+3+...+n equals to (n*(n+1) / 2) - 1. But ... |
I got this series of questions, each needs to either be proved or disproved (w/ example).
If $A$ is sorted in non-descending order, it is a valid minimum heap.
If $H$ is represented by $A$, therefore $A$ is a sorted array in non-descending order.
If $H$ is represented by $A$ (such that $A[1]$ is the first element), th... |
I am parsing bank statements where the transaction amount is ambiguous as to the withdraw/deposit nature and the balance is only given periodically.
My goal is to more efficiently, than brute force, find where the possible withdraw/deposit position should be.
For Example:
Transaction ID
Withdraw/Deposit?
Balance
... |
Context
Say I have a transposition table that uses keys produced by (e.g. Zorbist) hashing game positions.
The table has a finite recycled memory (key % p is the index of the key, p is table size and prime).
That is, at table[index(key)] (there) we store key and (game position) evaluation.
So, when fetching cached eval... |
I was watching this video How An Infinite Hotel Ran Out Of Room, by Veritasium.
The video says that it is not possible to fit names made of infinite strings of $\{A,B\}$.
We know we can fit infinite people in the hotel, we also know that there solution that works and solution that don't work. For example if you have in... |
Algorithms for clipping lines to a rectangle seem to have been invented by Ivan Sutherland in the late 60s.
At some point the rectangle was generalized to an arbitrary polygonal area, and these days can be any path (including bezier curves, etc.)
It seems that Weiler and Atherton may have been the first to generalize p... |
Earlier I was having a technical test when I stumbled across this question:
I know that probably in modern systems, the OS and the MMU is responsible for that. But the test was focused on Embedded Systems were no OS would be there, and the program will just compile directly and run immediately on the microcontroller.
... |
I was studying about algorithms and came across the SSSP problem which stated:
Given connected weighted directed graph G(V,E) and a node S, find the shortest path from S to all nodes of the graph.
The distance of a path between 2 nodes is clear. It is the sum of the weights of the edges that make up the path.
But I don... |
I'm trying to generate some history-dependent model with machine learning, whose underline physical model has a clear definition of its "internal state variable" (a state derived from historical inputs) and how this variable interacts with the inputs to get the outputs. Mathematically this reads: $y_t=f(x_t,h_t)$, $h_t... |
I was going through the L-System Wikipedia (https://en.wikipedia.org/wiki/L-system) and it mentions that L-Systems are very similar to unrestricted grammars / string re-writing. After going through the Wikipedia, I can't see any difference between the two? does anyone know what they might be?
|
Famously the intersection of context-free languages need not be context-free. On the other hand the intersection of context-sensitive languages is context-sensitive.
So this leads to the question: what is the closure of context-free languages under finite intersections? Does this class of formal languages have a name? ... |
I was wondering what are the main differences in terms of efficiency of convex hull algorithms?
Brute force algorithm is inefficient due to iterating over every three vertices in our set and its time complexity is $O(n^3)$ and probably is never good to use.
But what about Gift wrapping, Graham's scan and Chan's algorit... |
The question is as follows:
Let G be connected, directed weighted Graph with non-negative edge weights and let s and t be vertices in G. Furthermore, let K be a subgraph of G with the same number of vertices but fewer edges.
The task is to add an edge that is in G but not in K such that the length of the shortest path ... |
Suppose, that I have a four-by-four matrix and I want to print each element of it.
matrix = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]
for row in matrix
for elem in row
print(elem)
So, I have a questions:
a) Should I consider, that such iterating requires O(k + n) in terms of big O no... |
We can do this in $\theta(n^2)$ time if we calculate the average of all couples of nodes in the tree and compare it to the root, but this is too much time.
We can do this in linear time but with extra space by saving the in-order traversal of the left sub tree to array A, and the right sub tree to array B.
Now for the ... |
Cheers, let's suppose we have a MAX heap which does not allow duplicate elements. Is it possible for this heap to be a BST ? Choose the right answer(s) below:
A heap can never be a BST
A heap is always a BST
A heap can be a BST if there is only one node inside it (root)
A heap can be BST if and only if it has up to 2... |
This is a simple question I ran into in a remote interview:
Given a collection of letters, permute them (or one of its subset) into a string such that:
each letter can only be repeated for <= 11 times sequentially in the permutation
the string is lexicographically the largest
For one case, the collection of letters... |
If I select chrome browser, then I select Android Studio, do they directly open in Ready Queue (allocated to RAM main memory), what processes actually goes into job queue? Does Job Queue gets filled when RAM has no space available? What I want to ask basically is if I opened a word processor and a browser, do these pro... |
Can you help with a contex-free grammar for the language 0^n 1^m 2^k where n + 2k >= m?
|
I'm trying to understand the average run time of quicksort which is $O(n \log n)$.
I understand the intuition behind it: if we partition array $A$ to e.g. $\alpha n $ and $(1-\alpha)n$ then we essentially partition $\log n$ times and each partition performs $n$ comparisons. And this happens with high probability; e.g. ... |
Why is $\log n = O(n)$?
I faced this before and I remember I understood it at that time. But now I cannot know the logic and could not find understandable explanation. Can anyone explain it?
|
Assume we have an oracle that tells, given a linear bounded automaton, if there exists an input on which it halts.
Can we then solve the real halting problem (i.e. decide if a given Turing machine halts on a given input)?
|
This is a general question in first order logic.
Assume I have alphabet $\Sigma$ that contains one-argument function (among other symbols).
I want a new alphabet, $\Sigma'$, which is the same as the original, except that the function $f$ will be replaced by a new binary relation $R_f$.
I ran into difficulties when I ... |
I came across the following question:
Let $L_1$ be a regular language and $L_2$ be a context-free language. Let $L_1^c$ and $L_2^c$ be their complements respectively. What can be said about $(L_1^c \cup L_2^c)^c$? Is it context-free?
I tried to solve it in two different ways:
$L_1^c$ is also regular because regular ... |
$L = \{w\in\{a,b\}^*\mid w = uav \text{ and } |u| = |v|\}$
I know to use the pump lemma, but I don’t know how to use it correctly.
|
I have the really strong feeling it is indeed NOT context-free, since the language $1^{n^k}$ for $k\ge 2$ is not context free (proven by the pumping lemma) and, in a sense, "the order of magnitude" of the number of 1s will always supercede the order of the number of 0s, but I really can't find an exhaustive proof for t... |
We have data types like int and long etc. which can store just a few bytes of integers.
But when we are implementing cryptographic algorithms like RSA or Elliptic Curves, we know that the key values are usually 1024 bits long.
How is this implemented in C and C++?
I had gone through /crypto/rsa.c in the Linux kernel wh... |
An automaton determines its next state from the current state and the next input symbol. A pushdown automaton adds a stack which you can push/pop/read from. But then there are probably a lot of intermediate things to a completely generic system where each transition is based on the current transition and any informatio... |
As we know that the entries of the TLB get copied into the cache memory once another process is chosen to be run by the scheduler. But what if the cache memory is full and there is no space left for the entries to be copied?
|
I've seen the proof that $EQ_{CFG}$ is not recognizable but its complement is, my problem is that in the proof that it's complement is recognizable, it says that we test every string in $\sum^*$ and checks if it's generated by one of the $CFG$s but not the other. My question is that why don't we use this method to solv... |
I'm reading Algorithm Design and Applications, by Michael T. Goodrich and Roberto Tamassia, published by Wiley. They teach the concept of primitive operations and how to count then in a given algorithm. Everything was clear to me until the moment they showed a recursive function (a simple recursive way to calculate the... |
Let $\Sigma=\{c,f^1,R_1^2,...,R_k^2\}$ where $c$ is constant, $f$ is one argument function, and $R_i$ are binary relations.
Let $\Sigma_2=\{c',g^2,R_1'^1,...,R_k'^1\}$ where $c'$ is constant, $g$ is two argument function, and $R_i'$ are unary relations.
Show an algorithm that given a formula $\varphi$ above $\Sigma$,... |
This the following graph where I want to find the perfect matching and a maximum matching
I converted this to an bipartite graph, and found that the perfect matching exists and also found an maximum matching, but I am unable to justify that it is indeed maximum. How can you justify that a given matching is indeed maxi... |
I have an undirected graph $G$. It has some symmetries in the sense that I know it's automorphism group $\text{Aut}(G)$. I am searching for a specific subgraph defined by some constraints $\phi$ and optimization criterion $f$, i.e. I am solving a problem in the form:
$\max_{G'\subseteq G \land \phi(G')} f(G').$ The sub... |
I decided to create an algorithm to find the colors that is used to color a bipartite graph, the algorithm proceeds as follows:
Rename the vertices in a some order $v_1,v_2,\ldots,v_n$.
Do a single pass through all vertices of the graph, starting from $v_1$.
To each $v_i$ assign the smallest available color not used... |
I am very interested to know how to draw the planar embedding of a graph.
For this graph:
I cannot find the planar embedding because it is a Peterson graph, which is not planar;
but for the following graph:
I am unable to draw the planar embedding.
Isn't the graph itself the planar embedding?
|
def delete(root: Node, key: str) -> bool:
"Eagerly delete the key from the trie rooted at `root`.
Return whether the trie rooted at `root` is now empty.
"""
def _delete(node: Node, key: str, d: int) -> bool:
"""Clear the node corresponding to key[d], and delete the child key[d+1]
if... |
I came across Lemma 19 in Certifying Equality With Limited Interaction, which states the following for jointly distributed random variables $Z$, $W$, where $Z$ takes values in $\{0,1\}^n$, and some arbitrary event $\mathcal{E}$:
$$
H[ Z \mid W ] \ge n - d\ \Longrightarrow\ H[ Z \mid W, \mathcal{E}] \ge n - \frac{d+1}{\... |
In Dijkstra's original paper, he talks about two problems related to graphs. The second one is the problem of finding the shortest path between two nodes, which is what is most commonly meant by Dijkstra's algorithm. However, he also poses another problem, namely that of constructing the tree of minimum total length be... |
I have been searching the web for a mathematical model of a register machine and have fallen short. The closest I have found is found here:
But I am looking for more detail than what is provided there, such as similar to the Turing Machine definition using tuples:
What resource describes the mathematical definition o... |
This might be a slightly strange or irrelevant question. My apologies if it is. I'll try to formulate it the best I can.
First, here is an hypothesis: diagonalization is syatematically used to prove that a set is a proper subset of another set by constructing an object that exists in the latter but not in the former.
F... |
Consider the following algorithm that determines if a given number n is composite or not
on input <n>
for i = 2..n
check if i divides n
if it does accept
reject
a) The loop runs n times so why this algorithm is not polynomial time in the size of input?.
b) How can a nondeterministic TM decide this problem(composite nu... |
I was reading SICP and it talks about Data-directed programming.
To me is sounds like generating a vtable or a dispatch table explicitly, and then looking up to it explicitly too. The programmer responsible for the data and operation implementation is responsible to add the proper entries to that table and the advantag... |
Let $\phi$ be a 3-CNF expression with the properties
Every variable can be used at most 3 times
No Variable can be used twice in a term
Show that you can always choose the truth-value of the variables such that $\phi$ is true.
My attempt was to express this problem as a bipartite graph and then use Hall's theorem.
... |
I apologise if my following reasoning is flawed, but I cannot find the "bug" in it.
Consider two finite subsets of $\mathbb{N}$, namely $A$ and $B$. The set of all functions $f:A\rightarrow B$ is clearly finite.
Are the functions in this set computable? I can imagine constructing a huge list of all possible functions $... |
Let $G$ be a $k$-partite directed acyclic graph where the edges are only between two adjacent sets of vertices.
I'm trying to partition the graph to the minimal number of connected sets.
Sets $A_0, A_1, ..., A_k$ are connected if you can reach from some vertex in $A_0$ to some vertex in $A_k$.
Assume the following $k$-... |
Given an arbitrary directed graph $G$ (which may not necessarily be connected) find a minimum set of edges $S\subseteq E$ such that every disjoint component of $G(V,E\cap S')$ is strongly connected.
A "minimum set" refers to the set with the minimum number of edges. The best algorithm I could come up with is exponentia... |
Let $\Sigma = \{a, b\}$. For every language $L \subseteq \Sigma^*$ we denote
$\widetilde{L} := \{xy \mid xxy\in L\}$. Prove that if $L$ is regular, then so is $\widetilde{L}$.
I tried playing around with the automaton for $L$ and extending it in ways, but I always keep adding unwanted words to the new language and ther... |
Hello I have a task where I´m stucking at.
I have to convert a Grammar to NFA. I have these information:
G=(V,T,P,S) V={S}, T{0} and
S -> 0S
S -> 0
I can´t do anything with this information for me it´s not clear.
If someone can help it would be very nice.
|
I have following information.
0 1
-> *q0 q0 q1
q1 q1 q2
q2 q2 q0
I have to convert this in to a regular grammar.
I wrote this:
q0 = q2,0 + ε
q1 = q0,0 + q1,0
q2 = q2,0 + q1,1 + q1,1
|
Ok, so I'm having bit of an issue understanding nearest neighbour search with delaunay triangulation.
In particular, how do I re-triangulate my delaunay triangulations once I introduced holes?
But I should probabl provide a bit of context:
(source: university script, not sure I should/am allowed to link to it, so pleas... |
happy to be here.
I need some guidance. I am writing a project on data drift. I have trained an instance segmentation model on the Cityscapes Dataset, to detect pedestrians. The model I trained was on daylight images, and I have exported the same. But now I want to build the drift monitoring solution to pick up data dr... |
I am currently studying the textbook Speech and Language Processing, 3rd edition (draft), by Jurafsky and Martin. Chapter 2.1.1 Basic Regular Expression Patterns says the following:
The regular expression $\text{/[1234567890]/}$ specifies any single digit. While such classes of characters as digits or letters are impo... |
I need a way to solve linear and non-linear inequalities over the natural numbers. So equations like this should be solveable:
$\forall n, p, q \in \mathbb{N}. q \cdot (1 + n^p) \leq q$
From what I gather SMT solver should are a good choice for this. I'm not an expert on the area of SMT solvers so I would like guidance... |
Consider an undirected, unweighted graph =(,). I want to compute the clustering coefficient of each node. In the publicly available lecture from stanford, the following formula for computing the clustering coefficient $e_v$ for a node $v$ is given as:
$$e_v = \frac {\#\text{edges among neighboring nodes}} {\#\text {no... |
I am trying to prepare for my Linear programing exam and i stumbled upon an exercice that i can't wrap my head around. It goes like this.
Seven days before the final match a tennis player is trying to optimize his training sessions. He has 4 different training options - Serving, Volley, Right-hand hits, Back-hand hits.... |
I would like to implement Boltzmann machine with two hidden and two visible units. The four possible hidden units configuration are $(0,0), (0,1), (1,0), (1,1)$, and their probability distribution is $20\%, 35\%, 35\%, 10\%$, respectively. I would like to train Boltzmann machine so that it learns this distribution. The... |
When process A has run long enough and the scheduler decides to run process B, will all the pages of process A be moved to the disk or they remain in the main memory?
|
I was trying to find the context-free grammar of
`$L= \{a^n b^m c^p d^q |m+n=p+q, n,m,p,q \geq0 \}$ but I'm stuck.
This is what I did so far:
$$ S \to X S Y | \lambda$$
$$X \to a|b$$
$$Y \to c|d
$$
but I figured out that it doesn't respect the order.
My Question is different from this one because here $n, m, p or q$ c... |
I know that k-mean/median is to find a set $F$ that minimize
$$\sum_{i\in C}\min_{j \in F} d(i,j)$$
Where $C$ is set of clients and $F$ set of facilities. (For k-mean you just square the distance).
The thing I am confused about is what is k-center about? Is it similar to k-mean/median?
|
I'm looking for guidance on how to reduce the following problem to a known problem or a suggestion for solving it altogether. Optimal / heuristic solutions or any other suggestions are greatly appreciated!
Consider:
Drop off points {t_1, t_2, ...} ∈ T
Every drop off point has a number of required items {d_1, d_2, d_3}... |
Graph500 is a competition for supercomputers that uses a different benchmark "Traversed Edges Per Second", which is supposed to measure some notion of the communication bandwidth ability of the computer.
However, I don't understand how this benchmark works since there doesn't seem to be a basic explanation on the site.... |
In the context of my PhD on the simulation of the labor market with a multi-agent model, I encoutered a problem that doesn't seem to be really treated in the litterature, according to my searches on different networks on the subject. This problem is the "Max-Min Fair Allocation of Divisible Heterogenous Goods".
The pro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.