instruction stringlengths 35 29.1k |
|---|
For an Hamming code of $n$ bit there are $k$ bit reserved for the data and $p$ bit for the parity where $p$ is the minimum integer for which the following inequation is satisfied: $$2^p \geqslant p + k + 1$$
This because at least $p$ bit are required to code $n$ error on a single bit $+ 1$ for the "no error" word.
For... |
Ok, so I got this for homework and been struggling for a while now.
The full assignment requires this:
While N = number of elements in given array and n = number of different elements,
init(S,A[1...N]) - accept an array A as input and initialize S data structure in O(Nlogn) time
insert(S,x) - insert the key x to S in ... |
According to this source and Tanenbaum's Modern Operating Systems a possible implementation of RAID 2 consists of 4 data disks and 3 disks which contain parity bits. Why don't we need 4 disks that stores parity bits, why just 3?
Also in RAID 3 we need just one disk for storing parity bytes for 4 data disks. What would ... |
In the following, I consider rooted, unlabelled, ordered binary trees, where each node has exactly $0$ or $2$ children (I will simply call them binary trees). A binary tree $t'$ is a subtree of a binary tree $t$ if there exists a node $v$ in $t$ such that the tree rooted at this node $v$ equals $t'$.
For a binary tree ... |
I made a home 45 min video of myself giving a presentation on a physics topic using my iphone 6. The format is quicktime .MOV - about 2.8 GB. I converted it to .mp4,down to 650MB,using a software avidemux.
After that I used a linux utility ffmpeg and used a 'drawtext' feature to add relevant text/equations at relevant... |
It is well known that 2x2 matrices can be multiplied using just 7 (instead of the obvious 8) multiplications in the ground field (Strassen-Winograd, etc.). It is also well known that complex numbers can be multiplied using just 3 real multiplications, using what is basically Karatsuba polynomial multiplication. You can... |
I was reading in Wikipedia about it and one of the main things that were pointed out was that it is only an optional mechanism. This bugs me more than it should as I cannot find any information that I can understand about it.
Can anyone explain to me like I am a five-year-old why are they optional?
|
As I know, SSL/HTTPS is two stage, first stage is public key encryption/decryption which transfers key of the second stage which is symmetric. It is true we don't have key, but we can have some of plain data and guess key so (at least some of messages), do you agree it is possible so?
Thanks!
|
According to Cormen book,number of probe sequences possible in linear probing if hash function is given as
$h(k,i) =( h' (k) + i)$ $\text % m $ is m
if h'(k) = k modulo 5 and m = 10, then how can we have 10 distinct probe sequences?
Initial probe is decided by h'(k), so number of probe sequences should be limited by ... |
I've been reading up on the automatic text summarization approach TextRank, particularly for generating summaries of a text using sentence extraction as opposed to keyword or phrase extraction.
In the published paper, an example body of text and the resulting ranked graph of all sentences/vertices and their edges is gi... |
A real-life computer can only store programs and inputs up to a certain length, which means that its halting problem can be solved with a lookup table. The most obvious way to represent this table grows exponentially with the number of bits in the computer's state description, and so wouldn't fit inside the memory of t... |
I am quite new to image processing. I have experimented with opencv and tried to measure the lenght and width of an object from a picture using a reference object where I know the dimensions.
See this Link https://www.pyimagesearch.com/2016/03/28/measuring-size-of-objects-in-an-image-with-opencv/
Thats working quite we... |
I have read that cyclomatic complexity is widely used, but critique on it exists
claimed that it is based on poor theoretical foundations and an
inadequate model of software development.
I have read here page 10, second para
|
I know ¬H is not semidecidable so I was thinking of creating a language that combines both H and ¬H. Therefore L would be undecidable for ¬H and ¬L would be undecidable for H. Is this a proper approach for this question or am I completely off mark?
I also have few other questions, give an example of a language where:
1... |
I read The Complexity of Theorem-Proving Procedures by Stephen A. Cook (1971).
Cook explains how to create a boolean formula $\Phi$ from $(M,w)$, where $M$ is a non-deterministic Turing machine that always halts in a polynomial number of steps and $w$ is a string in $\Sigma^*$ so that $\Phi$ is satisfiable if and only ... |
Suppose we are given A, an array of size n, comprised of an increasing sequence of numbers followed immediately by a decreasing one. What is worst case time complexity of optimal algorithm to determine if a given number x is in the array?
The explanation given on the this site is confusing to me. How we can apply binar... |
I have an assignment to do which involves reducing an Untyped λ-Calculus expression to Normal Form. I am struggling to come to terms with Lambda Calculus though.
For example, one small part of the expression is:
((λ n f x . n f (f x)) (λ f x . x))
Does this mean that we substitute (λ f x . x) in for every n, f and x?... |
Is there an existing algorithm that can solve the following problem?
Problem
Given an list N comprised of integers of various values, shard the list into k buckets such that:
The sum of the integers in each bucket are roughly evenly divided (as much as possible
Only consecutive integers are placed in the same bucket
... |
I recently saw a problem from Numberphile here, where the goal is to arrange the numbers $1,\ldots,n$ so that the sum of adjacent numbers is a perfect square. This question from Mathematics Stack Exchange has a good analysis of the generalization of the problem for arbitrary powers, but I have been unable to find an an... |
We have some best sorting methods like quick sort, merge sort etc., then why we need other sorting methods which perform poor?
|
We know that asymptotically $O(1)$< $O(\log_2 n)$ < $O(n)$, but $O(\log_2 n)$ is asymptotically close to $O(n)$ or $O(1)$?
|
Here's the exact problem I'm having with Grover's search algorithm.. Given a function f:{0,...,N-1} -> {0,1}, Grover's problem is to find x such that f(x)=1, provided that there exists such x.
The phase inversion step: Invert the phase of the "key value".
So my question is, when we can already distinguish the key from... |
I'm working on a website which gets a list of objects like this:
Object { model: "modelhandler.comment", pk: 5, fields: Object }
where the field objects contains this:
Object { user: "TestUser",id: 6, video: 7, description: "test new video comment lol", reply_to: 5, uploaded: "2018-01-12T09:14:24.281Z", updated: "2018... |
When we wanted to construct a PDA for $0^n1^n$ the idea was to put all the zeroes (which is a part of the input string) to the stack associated with the PDA, and then pop each of them when we get a $1$ from the latter part of the input.
But when we try to prove that, we can create a PDA for a given CFG we put nontermin... |
This comment by @DerekElkins suggests a general method of constructing decision problems for problems with bit-strings as output, of which a slightly formalised version is the following:
Given a problem $X$, where we expect output for input $x$ to be $X(x)$, construct the following decision problem $B_X$: Given $(n,x)... |
I wrote the worst algorithm in the world.
Doesn't matter what it does. I have just a question about folding formula for it's time complexity into some shorter form which would be easier to compute.
So I concluded that the equation for the number of operations is as follows:
$$n + n(n-1) + n(n-1)(n-2) + n(n-1)(n-2)(n-3)... |
In Team Orienteering Problem (TOP) we have a graph $G=(V,E)$ and $K$ participants, We are supposed to find $K$ paths with total edge cost less than a threshold while maximising total vertex rewards. The constraint on reward collecting is once a reward has been collected by some participant the it can not be collected a... |
I am reading about Base & Bounds memory protection mechanism, and I noticed the use of the term 'relocation' in the context of address space, but failed to understand the meaning associated with it.
Below are some examples:
U.C Berkeley L02/CS162:
relocating loader
Wisconsin S15/CS537
Each process appears to have ... |
If we have different objects,
[A1, A2, A3, B1, B2, B3, B4, B5]
Some calculations will be performed to find compatible objects. For example, lets assume following 3 sets were formed and every set contains compatible objects:
1. {A1, B2}
2. {A3, B2}
3. {A1, A3, B4, B5}
Now we need to perform filtering. One node can... |
$L = \{ \langle M \rangle \mid \epsilon \in L(M) \}$, where $M$ is any Turing machine.
Why is the above problem undecidable? Can't we just check whether the initial state is a final state and say the TM accepts $\epsilon$ if the initial state is the final state else it doesn't? We can also just check if the TM goes to ... |
I'm studying the theory behind compiler design, and was assigned with building an Interference graph for a certain code 3-address code.
We were taught to first divide the code into blocks (according to GOTOs), and draw lines that represent a variables lifeline.
I am not sure on a = a op c (that is, same variable is b... |
After reading about Base & Bounds memory protection mechanism from Stanford CS140 lecture notes, I understood from the explanation below that there is an integrated circuit performing B&B checks somewhere in the CPU (correct me if I'm wrong):
On each memory reference, virtual address is compared to the bound
register,... |
While I was reading about Base & Bounds memory protection mechanism, I noticed the use of the abbreviation RTU as indicated in the slide below:
However I didn't know what it means.
So after searching for 'RTU', I found only this article on Wikipedia; But I'm not sure whether it matches the term.
Does anyone have any i... |
I am studying tree traversals and I've got to know that we can uniquely determine the binary tree if their:
Case 1. Preorder & inorder traversals are given or
Case 2. postorder & inorder traversals are given
We can not determine the tree if only one of the traversals are given because there will be finitely many trees ... |
Lately I've been toying with an automatic solver for the Android/iPhone game Flow.
In this game, you start with several pairs of squares on a grid, and you have to connect each pair, without crossing the paths, and by using every square on the grid. Here's a simple 7x7 example (the hardest boards in the game are 11x13)... |
I'm in the middle of building a homemade processor from logic chips, and I've been trying to figure out how I can have RAM (for main memory) and ROM (for small booting stuff) on the bus at the same time. I came up with memory mapped I/O, but how do i make my 8-bit processor have a 20-bit address bus? (enough lines for ... |
First I'll introduce the problem with just two substrings. Say you are asked to construct a NFA which accepts the input string if it has both "bb" and "aba" as substrings.
The solution we came up with in class was that we'll make a NFA with multiple start states (a start state with $\epsilon$-transitions to each of ou... |
P.S. I have added the tag 'history', if there is any historical connotation.
Also, I found this question What is running time of an algorithm? but I am not satisfied with answers.
|
I have a set of letters, and a list of words, and I'd like to find all the possible "sentences" that can be built using the words from the list, while using up all the letters in the process. (A word can be used more than once.)
The maximum amount of words in a sentence is also given.
For example, my letters are {"a","... |
From wikipedia
In computational complexity theory, a numeric algorithm runs in pseudo-polynomial time if its running time is a polynomial in the length of the input (the number of bits required to represent it) and the numeric value of the input (the largest integer present in the input). In general, the numeric valu... |
Generating sequence containing every possible bit sequence of lengths from $1$ to $n$ is trivial - just generate every possible sequence of length $n$.
But how do you generate the shortest sequence containing every possible bit subsequence of lengths from $1$ to $n$ (using the fact that subsequences may partially overl... |
I stumbled upon this which looks like a promising way of implementing an orientation test.
I'm not interested in the described adaptive approach, I'm fine with using the naive determinant approach by checking if it evaluates to greater/less/equal 0. As I understand it, the only difference is that the more sophisticate... |
I've just designed an algorithm to prune a tree related to a particular fluid dynamics problem, and I need to determine its computational complexity; however, since I'm just a newcomer (from mechanical engineering) to the computational complexity theory, I'm not sure about the following reasoning:
The while loop itera... |
I'm reading about genetic algorithms, and I'm not sure I understand the point of selection step.Let's say we have a population of size $N$.How many chromosomes should we select using any selection method and what's the point if the population size is fixed ?
From what I understood till now we select a number of chromo... |
Suppose $G$ is a bipartite graph which has a perfect matching. I want to find the fewest number of edges to delete from $G$ so that a perfect matching no longer exists. What is the complexity of this problem?
I'm aware that perfect matching has a formulation as a max-flow. One approach is, therefore, to find a min-cut ... |
I recently started learning about asymptotic notations. While I was doing practice questions (not HW) I found various question that stumped me totally. So I just want some pointers on how to go by solving these type of questions. So here is a basic question.
Given the following,
If $f(n) = \Omega(h(n))$ and $g(n) = O... |
Cook-Levin reduction is both deterministic polynomial time and parsimonious and that's mean that from every non deterministic Turing machine $M$ and string $w$ it is possible in polynomial time deterministically to create the boolean formula $\alpha_{M,w}$ so that every satisfying assignment of $\alpha_{M,w}$ is accept... |
All the example of DFS I've seen so far are for undirected graph.
In a directed graph the basic DFS algorithm won't work because some vertex will be unreachable.
The algorithm I'm talking about :
https://en.wikipedia.org/wiki/Depth-first_search
1 procedure DFS-iterative(G,v):
2 let S be a stack
3 S.push(v)
4... |
I've read from this How data is physically stored in hard drives, that the North/South orientation of the magnetic medium represents data as 0 or 1 physically in the hard drive. Data is stored in binary, which means that it can be stored as either 0 or 1 in the hard drive. But what determines if that particular block o... |
I am trying to figure out an efficient way to produce all the numbers in a given range for which, their bitwise AND with a positive integer (say x) gives the same number; that means k & x = k.
Is there a better way to do it so that I do not need to go through all the numbers from 0 to n and check for it?
|
I need to find the order of the minimum k = k(n) such that the probability of having at least 1 k-clique in a random graph $G(n, \frac{1}{2}$) is $\mathcal{O}(\frac{1}{n})$.
$X_k$ is the random variable which count the number of k-cliques in a random graph.
I already know $E[X_k] = \binom{n}{k}(\frac{1}{2})^{\binom{k}{... |
Assuming, I have an arbitrary CNF Formula in which each variable has at most two occurences, how can I proof/show that this can be solved in polynomial time?
My first thoughts so far:
because each variable has at most two occurences, the formula contains at most 2*n literals, where n is the amount of different variable... |
I have come across the following question in an exam:
Can inherited attributes be evaluated in bottom-up parsing?
My approach went like this:
Inherited attributes can never be evaluated in bottom-up parsing because the parent node is not constructed during parse yet when we visit the child node. In order to evaluate... |
I was asked to define the language which is produced by the following grammar:
$G = (V, \Sigma, S, P)$
$V = \{S, A, B\}$
$\Sigma = \{a, b, c\}$
\begin{equation}
P=
\begin{cases}
S \rightarrow cA | bB\\
A \rightarrow c \\
B \rightarrow aB|b
\end{cases}
\end{equation}
Obviously, you can pr... |
if pipelining is devided to polyfunctional pipelining and monofunctional pipelining(im sorry im not a native speaker the name may be incorect)
and the polyfunctional pipelining is futher devided to STATIC and DYNAMIC, then what is the differance between static and dynamic and what is the overall differance between poly... |
For a grammar $G$, why is the problem of whether $L(G)=\emptyset$ is undecidable?
I'm confused as, for recursive languages there exists a Turing machine which will halt every time and give an answer(accepted or rejected) for each and every string input.
So we can decide whether it accepts strings or not.
|
From "Introduction to Algorithms" by Cormen, Leiserson, Rivest, Stein, Third Edition, page 453:
Let us analyze a sequence of $n$ Push, Pop, Multipop operations on an initially empty stack. The worst-case cost of a Multipop operation in the sequence is $O\left(n\right)$, since the stack size is at most $n$. The worst-c... |
From Database System Concepts, by Silberschatz, Korth and Sudarshan :
A domain is atomic if elements of the domain are considered to be
indivisible units. We say that a relation schema R is in first normal form (1NF) if
the domains of all attributes of R are atomic.
A functional dependency A →B is called a parti... |
From Database System Concepts, by Silberschatz, Korth and Sudarshan :
A domain is atomic if elements of the domain are considered to be
indivisible units. We say that a relation schema R is in first normal form (1NF) if
the domains of all attributes of R are atomic.
From https://stackoverflow.com/a/724032/15645... |
I have an uncommon use case
I have a vector, which contains a fixed number of taxi's real-time fees (the red/green number that keeps bumping up when you sit in the back).
This vector is continuously updated by message sent back from taxis. I need to find the top 10 taxis every time when there is an update.
if I only ne... |
Currently while I was coding, I got a doubt.
While I was solving a particular type of problem I found it to be solved in $O(n^3)$.
I have broken that problem and solved it in $O(n^2)$.
But to solve it I have broken that $O(n^3)$ to $3$ * $O(n^2)$
Is it a better solution than $O(n^3)$ or will it matter the number ... |
Reading Fundamentals of Database Systems 7th Edition, on Page 603, it says,
Indexes can also be characterized as dense or sparse. A dense index has an index entry for every search key value (and hence every record) in the data file. A sparse (or nondense) index, on the other hand, has index entries for only some of th... |
L={ | M is a DFA, |w| is even for all w in L(M)}
Meaning we are looking for a Turing Machine or any algorithm that receives a description of a DFA and decides if all the words this DFA accepts are even in there length(length of 0, 2, 4, 6 ..). DFA stands for Deterministic Finite Automata. My proposal is this, check if ... |
Hello people on the internet,
I'm currently searching for some kind of fast algorithm that allows me to extract curves in three dimensional space that arise as the intersection of two level sets of smooth functions, i.e.
\begin{align*}\mathcal{C} = \{\vec{x} \in \mathbb{R}^3 | \; F(\vec{x})= l \; and \; G(\vec{x})=s \... |
I am reading http://okmij.org/ftp/gengo/applicative-symantics/AACG1.pdf and there is defined language TL (see last row in the table on page 4). It seems to me from this definition of TL, that lambda calculus is the language of universal logic - each connective (unary, binary, ternary, etc.; quantifiers can be expressed... |
Given a cubic graph, I want to color its vertices in 2 colors (Say A & B).
A vertex is considered "Good" iff the majority of its neighbors is colored differently than that vertex. (For example, vertex colored A has neighbors A B B is considered Good, and a vertex colored A has neighbors A A B is considered "Bad")
I su... |
Given positive integer inputs $x$ and $y$ , with $0<x<y$ and $y$ an odd prime (or $\gcd(x,y)=1$ and $y$ odd), the following algorithm computes $x^{-1}\bmod y$ per the (half-)extended binary GCD. All quantities are non-negative.
What's an upper bound of the value internally reached by integers $a$ and $d$ , as a functio... |
According to the definition, distributed computing means to distributed a problem among different users while workgroup computing means to work on a problem by different users. So what's the difference between these two? Plz explain it with an example
|
I am having a bit of a tough time grasping whether a computer system contains several page tables or just one page table.
Some sources speak of page tables in plural others in singular.
Intuitively it makes most sense to me that there is only one Page table containing all the physical addresses especially considered ... |
Suppose you were to compress data before it was sent to Random Access Memory. Wouldn't you technically be using less R.A.M?
|
I don't know how to start with the following exercise:
Design an efficient algorithm to decide whether a given triangulation with $n $ points is $3$-colourable.
The triangulation is given by a sorted edge list, where every edge is given by the indices of its two end points. Further, for every edge there are given th... |
I have a function:
int sum = 0;
for (int i = 1; i < n; i*= 2)
for (int j = 0; j < n; j++)
sum++;
From my understanding this is $O(n\log(n))$ because the inner loop runs $n$ times for every time the outer loop runs, and the outer loop is running $\log(n)$ times. Putting them together gives me $O(n\log(n))$, which... |
If so, then $O(log_2 n)$ = $O(log_{10} n)$ = $O(log_e n)$. It is very wired that computer scientist treat them equally.
Considering,
$(log_2 n)$ = $m$, meaning $n$ = $2^m$
$(log_{10} n)$ = $m$, meaning $n$ = ${10}^m$
$(log_e n)$ = $m$, meaning $n$ = $e^m$
So, does it mean that $O(2^m)$ = $O({10}^m)$ = $O(e^m)$
Is, bas... |
We're given a graph $G=(V, E)$, with source $s$ and sink $t$, $s\neq t$, and that all capacities are non-negative integers. Also the max flow itself is given, so we receive the value of max flow for each edge. We're also given some edge $e'$.
How can the max flow be found if we decrement the capacity value of an edge... |
It seems that the maximum matching number decreases when some independent (not connected) vertices collapse into one vertex, but I don't know if it is absolutely true.
Would maximum matching number increases when two vertices are connected to form a new edge?
Any proof? Thanks!
Definitions:
Given a graph G = (V,E), ... |
Suppose i have a graph and i want to find minimum-spanning-tree. As in imperative languages we have to take specific steps from everynode(example ,we use kruskal's algorithm or prim's algorithm) to find the Minimum spanning tree
but
in declarative language(specially prolog, we can apply same algorithm but those are l... |
We have a finite poset and its subset $S$.
We can enumerate elements of $S$ using an iterator.
I need to check if there are more than one minimal elements of $S$ (regarding the above poset).
The best thing I came up with is to construct the graph of all elements of $S$ and then check it for minimal elements. But this:
... |
Is the language $L = \{a^pb^q \ | \ p \ge 1, \ q \ge 1, \ p \ge q^2 \ or \ q \ge p^2\}$ context free?
I should probably use Ogden's lemma, but I don't know how to do that in this case.
|
I'm working on exercise 22.3-13 of CLRS (Intro to Algorithms 3rd edition):
A directed graph $G = (V, E)$ is singly connected if the existence of a path from $u$ to $v$ implies that $G$ contains at most one simple path from $u$ to $v$ for all vertices $u, v\in G$. Give an efficient algorithm to determine whether or not... |
How should I compute efficiently a matching of maximum size in a tree?
My thoughts so far: since from a path we can get a matching, then just finding the longest path in the tree should be enough to answer the question.
Am I wrong? another approach?
|
An answer to a previous question I asked advised me to find the dual graph of a triangulation. I'm given the graph in the following form:
How can I get the dual graph from a list of edges given this way?
|
For example, is it a subset?
Are they two separate fields in Computer Science?
I have hear conflicting information: one professor said they are synonyms. However, in the courses taught at Stanford CS they are two distinct classes:
CS221 (Artificial Intelligence)
and
CS229 (Machine Learning)
|
Consider the simple problem:
Given a list of objects L of length n, and an object O, determine if O is in L.
It is intuitive that there cannot exist an algorithm a with worst-case time complexity less than O(n) to correctly solve this problem. But without considering individual algorithms, how can one mathematically p... |
I often see that someone uses geometric series for proofs related to time complexity, but also I can't understand why they are used. Are they making proving easier? And how can I use this 'tool' for proofs? Can I transform problems to fit to geometric series?
For example the time complexity of this simple function to g... |
i saw in a book how to construct a PDA for a case with m is equal to n . It's pretty simple, just push a symbol for every a and pop this symbol for every b that the PDA reads. But, i don't found a way to construct a PDA for this particular case. Every help is welcome.
|
I'm having trouble identifying the approach to minimize the cost of reaching a certain state in an optimization problem. I've modeled it here as a game.
Problem Structure
You buy heroes and send them into a dungeon consisting of rooms containing each two challenges (random number check with a given threshold per room) ... |
I am reading this book Asymptotic Methods in Analysis by N. G. de Bruijn. It describes the definition of $O$ symbol as
A weaker form of suppression of information is given by the
Bachmann-Landau O-notation. It does not suppress a function,
but only a number. That is to say, it replaces the knowledge of a
numb... |
Unfortunately (like many other authors) Fenwick does a very bad job of explaining his work (the Binary Indexed Tree) in the original text. The paper lacks a proper formal proof of why this structure should work and only provides examples. This seems to be a very widespread issue regarding this topic and no tutorial or ... |
I'm currently trying to map how to make a good algorithm that won't have issues to find the shortest path. The labyrinth consists of an X and Y dimensions as input; However, the labyrinth will generate obstacles within the dimensions and randomly spawned. There is one entrance and at least one exit after finding the sh... |
Given a context-free grammar $G$, let $\longrightarrow_G$ be the (one-step) rightmost derivation relation, and $\longrightarrow^*_G$ its reflexive and transitive closure.
Let $S$ be the start symbol of $G$, $\mathbf{N}$ the set of non-terminal symbols and $\mathbf{T}$ the set of terminal symbols. For each rewriting ru... |
i'm solving a multi part question regarding candidate keys and functional dependencies.
now i've already found 2 dependencies(the canonical covering of the functional dependencies contains only 3 dependencies) in the previous parts of the question: $D\to BE, CE \to AD$ ($R=A,B,C,D,E$, R is in BCNF). how can i find th... |
I am trying to calculate the length and width of objects using a camera. The camera (90° angle from the top) and the background is fixed.
See this Link https://www.pyimagesearch.com/2016/03/28/measuring-size-of-objects-in-an-image-with-opencv/
As an example I take a picture from a US quarter from a distance of 10 inche... |
I am trying to solve some past papers in preparations for my next exam and I've stumbled across the following exercise:
While I managed to solve most parts of the exercise, I am still unsure about the formula ((b)U(b)). I am unsure which node I should start checking from and on the general definition of U.
As far as I... |
Let $S= \{1,2,3...,n\}$ be a set and I want to store a subset of $A \subseteq S$. Is there exists any data structure such that insert$(x)$, delete ($x$) can be done in amortised $O(1)$ time and search($x$) can be done in $O(1)$ time, where $x\in A$. Space used by data structure should be $O(n \log^{*}n)$ or $O(n)$ bits... |
I would like to know whether the following problem is a standard problem that has been considered in the research literature. I performed some searches, which have not produced results. I call this problem the Maximum Weighted Disjoint Set Union, which is obviously not the name by which the problem is known (if it is k... |
I do not understand what is a ridge for hill climbing. The definition I found is a place where all points appear like a maximum, but how is that different than a plateau?
|
The integer linear programming formulation for the multicut problem for the given graph $G = (V,E)$ and distinguished source-sink pairs of vertices $(s_1,t_1),...,(s_k,t_k)$ is:
\begin{alignat}{3}
\text{minimize} & \quad \sum_{e \in E} c_ex_e \\
\text{subject to} &\quad \sum_{e\in P} x_e \geq 1, & \quad \forall P... |
As seem in the history section of the Wiki Reed Solomon article:
https://en.wikipedia.org/wiki/Reed%E2%80%93Solomon_error_correction#History
Efficient decoders for BCH / fixed generator polynomial based code words were developed back in 1969 - Berlekamp Massey decoder, and 1975 - Sugiyama extended Euclid decoder.
Howev... |
I'm given a finite partial order, in the form of a dependency graph between items, and I'd like to have it in series-parallel form (Wikipedia).
So formally, given a finite partial order $\le$ on a set $V$, I'd like to construct it using only the following rules:
For every item $P$ in $V$, we have the partial order on ... |
The Viterbi Algorithm can be used to calculate the most likely path, based on observations in a Hidden Markov Model.
Using the same notations as Wikipedia, "each element T1[i, j] of T1 stores the probability of the most likely path so far X = (x[1] , x[2] , ... , x[j]) with x[j] = s[i] that generates Y = (y[1] , y[2] ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.