instruction stringlengths 35 29.1k |
|---|
What is a regular expression or finite automaton that will accept words in the alphabet $\{a,b,c \}$ where each letter appears at least once?
Acceptable words: $ abc, cba, cbcbcba, abbbcaabb$
Unacceptable words: $aab, babababababa, bbbbbaaaaa$
I would be interested in seeing both the regex and the automaton. Then I c... |
L = {w belongs to {0, 1}* ∣ w has at most three 0’s}. Why is this regular language?
According to pumping lemma, what I think is that....
Suppose $x$=$0^2$, $y$=$0^1$, $z$=$1^n$ ($w=xyz$=${0^2}{0^1}{1^n}$), then if we pump $y$, we may have more than three $0$s. What am I missing?
|
I know that quadtree could be used in collision detection. But most articles I found are related with quadtree construction and retrieval. I wonder if there are some circumstances which involve both a great number of insert and remove operations? If any, please list out the papers.
I am planning to develop the quadtree... |
If I have an array a of arrays, in many languages they may have different size. Is there a word for an array of arrays where all the arrays have the same length?
Edit:
An array of arrays may have the following form:
[
[ 1, 2, 3 ]
[ 1, 2, 3, 4 ]
[ 1, 2 ]
]
But in order to convert this to a matrix you would have... |
I am studying (on my own, this is not homework) Papadimitriou's "Computational Complexity" textbook, 1st edition.
On page 66, we have:
3.4.1. Problem: For each of the following problems involving Turing machines determine whether or not it is recursive:
(a) Given a Turing machine $M$, does it halt on the empty string?
... |
I have a collection of non-empty sets $S_i$, where $1 \le i \le n$, which are constructed from elements of a universe $U$.
I need an algorithm that gives me a set $T$ of minimum cardinality ($T \subseteq U$), such that $T \cap S_i \ne \phi, \forall i$, where $1 \le i \le n$.
I am not sure whether it is an NP-complete p... |
Why does $\Pi_i^p \subseteq \Sigma_i^p$ imply $\Pi_i^p = \Sigma_i^p$?
|
Let's say there are two lists of objects, list1 and list2, and that there is a function that can generate the "distance" between an object in list1 and an object in list2. What I would like to do is create a list of pairs of objects from each list such that the sum of all the distances of each of the pairs is minimal.
... |
Is there ANY compression type that can compress a file, and then that compressed file can be searched without uncompressing the file?
|
Let $H$ be a $s$-wise independent family of hash functions from $\{1,\ldots,M\}$ to $\{1,\ldots,N\}$. It is easy to bound one collision, but are there good bounds for muliple collision ?
|
I'm looking for a problem that is NP-Complete (even) if the number of input values is at most a polylog of the input size. So some or each value in the input should be so large that the number of values is "negligable".
One way to do this is to say that there is only one input value that should be split and represents ... |
Is there a difference between a "data dependence graph" and a "data dependency graph"? I have seen both terms - sometimes used interchangeably sometimes not.
To make things even more complicated, a "data dependency graph" is sometimes also called a "data flow graph" (see e.g. here).
The term "data dependence graph" i... |
Given an unsorted array $A$ of $n$ numbers and inputs $i$ and $j$, can we find the number of values $i<k<j$ in $A$ in O(1) time complexity by doing some preprocessing? An additional requirement is that the preprocessing should be $O(n)$ in both time and space.
I tried calculating an auxiliary array $B$ of size $M$ (whe... |
Is there a characterization of graphs whose edge set decomposes into a disjoint union of perfect matchings?
One trivial class of such graphs are $d$-regular $(n,n)$-bipartite graphs. Their edge set will decompose into $d$ disjoint perfect matchings.
|
$N$ Aliens want to reach their Moon ($D$ meters away), but they can only
put on each other, making a vertical chain. Every $Alien(i)$ has an height
$X(i)$ and a lenght of their arms $Y(i)$.
When the vertical chain is made we enumerate the Aliens from $1$ to $N$ ( $Alien(1)$ is the alien at the bottom of the chain... |
Background: I'm working on an application which is supposed to teach users how to write Japanese kanji. Each kanji is represented as an array of strokes. Each stroke is an array of 2d points.
Strokes (2d paths) are supposed to be drawn in certain order, so my question is limited to recognizing similarity b/w single dra... |
How do conjunctive regular path queries and subgraph isomorphism relate to each other? It seems that conjunctive regular path queries are a specialised form of subgraph isomorphism.
The follow is the definition of a conjunctive regular path query given in "Expressive Languages for Path Queries over
Graph-Structured D... |
So here is the problem: There are n objects in a super market that you need to retrieve, then you need to go to the cashier register in the end. How do you find the best path of traversing the least distance to retrieve the objects and finally go to the cashier register?
I could only find a brute force method of findin... |
I need to generate random number in a given interval using random bits. For example, If I want to generate a random number between 1 to 6, inclusive, I can concatenate three random bits which gives me a possible range of 000 to 111 (0 to 7), inclusive. My intuition says after concatenating 3 random bits, if the result ... |
I was wondering if there were any paradigms that describe how to save "state checkpoints" in a program so that a user may go back and reopen a program to the given state.
In my situation I see that there are many ways to do it each with their own drawbacks. I wanted to know if there is a way that has proved to have th... |
If we are given an analysis of an algorithm to be, for example, $5n^3 + 100n^2 + 32n$, can we therefore say that $T(n) = O(n^3)$, and $T(n) = \Theta(n^2)$, and $T(n) = \Omega(n)$, and all of those be correct for that analysis?
I have read the formal definitions for all of these and it does not help me to understand the... |
I would like to use a data structure allowing fast access, either a balanced binary search tree (BST) for $O(\log n)$ access time or an open hash table for constant access time.
1) What is the exact memory usage of a BST or hash table, for storing $n$ values? For instance, if we consider a BST, are $n$ pointers suffici... |
Assume that we have $l \leq \frac{u}{v}$ and assume that $u=O(x^2)$ and $v=\Omega(x)$. Can we say that $l=O(x)$?
Thank you.
|
I was wondering if there were relation between the complexity classes
$P^{\#P}$, $NP^{\#P}$, $(Co-NP)^{\#P}$ ?(except the trivial inclusions)
I've the feeling that when taking a $NP^{\#P}$ machine, we can transfer the non-determinism inside the non determinism of the counting oracle, and thus leading to the inclusion $... |
In the Welch-Berlekamp algorithm for decoding Reed-Solomon codes, one is given a list of points $(a_i, b_i)$ representing a message with $e$ errors on the $b_i$ in unknown locations (and $e$ is given to the algorithm). The output is a polynomial passing through all of the given points except those in which errors occur... |
Suppose that an algorithm uses only comparisons to find the $i$-th smallest element in a set of $n$ elements. Show that it can also find the $i−1$ smaller elements and the $n−i$ larger elements without performing any additional comparisons.
I would like to show my solution. I ask you for checking it :)
Let $k$ will be ... |
While reading this solved quiz on concurrency control, I got stuck on exercise 2, which reads as follows:
2) Consider the following schedule:
S: r1(X), w2(X), r3(X), r1(Y), w2(Z), r3(Y), w3(Z), w1(Y)
(a) (2 points) Draw the precedence graph.
(b) (1 point) Is S conflict serializable?
No.
After reading that S is not c... |
There are 2n product and their prices: P={p_1, p_2, ..., p_2n}.
When we buy the products in pairs we get the product with lower price for free.
I'm trying to prove formally that the following algorithm results in optimal solution:
Sort P from high to low.
Return the sorted prices as pairs.
This solution is pretty str... |
Continuation Passing Style (CPS) is a form of code where the control is passed explicitly, by passing the continuation of the code at each call point, unlike direct style.
There are many descriptions in the literature for how to convert from direct style to CPS. The following pseudo-JavaScript:
function direct() {
... |
In the book, Algorithm Design Manual by Steven S. Skiena, he states "Becoming familiar with many different algorithmic graph problems is more important than understanding the details of particular graph algorithms." Unfortunately, I don't quite understand this phrase, as this is my first experience with Algorithm Desig... |
In the [Kushilevitz and Nisan 2006, P.10] they give an exercise which says as following:
Exercise 1.18: Let $X=Y=\{1,\ldots,n\}$. A geometric rectangle is a set of the form $\{(x,y)|x_{\min} \leq x \leq x_{\max}, y_{\min} \leq y \leq y_{\max}\}$, for some values $x_{\min},x_{\max},y_{\min}$, and $y_{\max}$ in $\{1,\ld... |
A lot of activation functions in neural networks (sigmoid, tanh, softmax) are monotonic, continuous and differentiable (except of may be a couple of points, where derivative does not exist).
I understand the reason for continuity and differentiability, but can not really understand a reason for monotonisity.
|
In some languages (such as C), arrays seem very simple to me. When allocating memory for these, all you need to do is pick a starting point in memory and then allocate the next dataTypeSize * arrayLength bytes as reserved. Retrieving items just means looking at the memory address startPoint + (index * dataTypeSize).
Bu... |
What's the difference between the regular expressions $a^*+b^*$ and $(a+b)^*$. Do both of these generate the same language? I was told in a lecture that $(a+b)^*$ will generate string concatenation of $a$ and $b$. How could this be possible?
|
I just read in Effective Java about the hashCode method:
Store some constant nonzero value, say, 17, in an int variable called result.
For each significant field f in your object (each field taken into account by the equals method, that is), do the following:
a. Compute an int hash code c for the field.
b. Combine th... |
The syntax of a language is a structure.
The semantic of a language is a structure.
The semantic of a language is a model of its syntax.
And that's all ? The duality syntax/semantic is just model theory applied to languages ?
(A short answer could be ok; I have already read the wikipedia pages !)
|
For years, I've been told (and I've been advocating) that problems which could be solved in polynomial time are "easy". But now I realize that I don't know the exact reason why this is so.
Intuitively, I can guess what the relation between P problems and easy problems is. Experience tells me that P problems are easy to... |
Say you execute a clear interrupt instruction (CLI) in a pipelined CPU. While that instruction is being fetched, an interrupt occurs, so the instruction after the CLI is from the interrupt handler.
You excepted no interrupts because of the CLI instruction but you still got one. How is this problem solved?
|
If I've understood gamma correction correctly (and I probably haven't), a gamma transform to an image raises the value of the intensity level of the input pixel to the power of gamma, where gamma can be greater than one or less than one.
Pout = (some_constant) x Pin^(gamma)
In every example that I've seen, a gamma valu... |
How do I interpret this equation?
Decimal value of signed fixed point number
$-2^3+2^0+2^{-1}+2^{-2}$
$$ V = (-1)^{b_{N-1}}\times 2^{N-P-1} + \sum_{i=0}^{N-2}(b_i\times 2^i)\times 2^{-P}\,.$$
$N$ is the number of bits. The point is at a fixed position, $P$ from the right.
Another question: why is it $-2^3$ inste... |
I want to ask exactly what is the relationship between problems and languages.
We know that the set of all languages uncountable.
Is the set of problems also uncountable?
Can every problem be defined by a language?
Can a language solve more than one problem and vice versa?
Is there one-to-one correspondence between p... |
Last couple of days I've been pulling my hair trying to find the name of a
bomberman-esque algorithm which finds solutions to the question of where to place a single bomb so as to blow all targets up, either directly if all targets are within the blast radius (and axis) of a single bomb (placed in an empty cell) or vi... |
I'm studying CS online, and I'm reading this lecture on recursion, see "3.2. A Mathematical Example".
I understood the beginning and I even made a program that calculates $X$ to the power of $N$ using recursion.
Reading on, I quote from the lesson's content:
Find an algorithm for raising a number $X$ to the power $N$,... |
If I have two sorted lists.
list A => 1 -> 2 -> 4 -> 11 -> 31
list B => 2 -> 31 -> 54
Now what should be the order of (sorted) merge and why?
According to the rule, If the list lengths are m and n, the merge takes $O(m+n)$ operations, the order should be $O(5 + 3)$. Am I right?
I would appreciate if someone help me o... |
Does anyone know any constant factor approximation hardness results on Group Steiner Tree when the groups partition the terminals, i.e. every terminal belongs to exactly one group?
The (intuitive) reduction from Set-Cover seems to fail in that case, and it also feels easier. It seems to me you could solve this if the ... |
I am looking for a way to split a tree into $k$ clusters so that the cluster with largest diameter is as small as possible. All edges have the same length. I'm hoping for an algorithm that can handle arbitrary trees (with arbitrary branching factor), not just binary trees.
|
I just started reading Vazirani's book "Approximation Algorithms". It is legally available online here.
On page 5 (23 in the pdf), it says that the following decision problems are in NP:
Is the size of the minimum vertex cover in $G$ at most $k$?
Is the size of the maximum matching in $G$ at least $l$?
I can't see wh... |
I am calibrating a camera and estimating the projection matrix using the least-squares technique described here.
So far, I thought that the projection matrix that I got with this method was invariant, e.g., I could use it disregarding if the camera was moved or not.
However, I have been doing some additional reading,... |
I'm currently working on a project discussing applications of the Delaunay Triangulation, and the primary use-case is applications to TSP (or relaxations of the problem).
See: http://www.lancaster.ac.uk/staff/letchfoa/articles/triangulations.pdf for context.
One snag in the approach is that it occasionally produces no... |
I have at hand a linear program related to load balancing. However I have no idea what this is and wikipedia gives me something too simplified/abstract to be useful.
I wonder if someone can explain the basic lingo used in the formulation of the linear program. The goal of the program is of course to introduce the maxim... |
It was asked in an exam why a color video compress better than a black and white (grayscale) video using MPEG but can't find anything explaining it.
In other words, we would apparently get a better compression ratio when compressing color videos than when compressing BW videos.
|
The following O(n^2) sorting algorithm works but I can't figure out why.
array a // length n, indexed 0 to n-1
for ( i = 0; i < n; i++)
for ( j = 0; j < n; j++)
if(a[i]<=a[j])
swap(a[i],a[j]);
It seems it is not bubble sort as after a single iteration neither the minimum or maximum is in place.... |
Give an array of integer has been sorted (non-decreasing order), we need find the index of minimum number number that is greater than key given, I wrote two functions, they're identical except the return lines.
int minimum_index_greater(int *a, int lo, int hi, int key) {
int left = lo - 1;
int right = hi + 1;
... |
I've heard that YouTube had a problem with the view count on Gangnam style since the number of views exceeded the variable byte size.
What's the problem with creating really large variables? Why does it end with unsigned long, for example? Can you create bigger and bigger variables to hold more and more bytes? Is the... |
Let's say we have some function,
float distance(String a, String b) { /*...*/ }
to find the Levenshtein distance between two strings, and we have a large array of strings.
String[] strings = new String[1_000_000];
What would be an acceptable approach to map a String a to its closest match (i.e., the String b that pr... |
There is a lot of similarity between Propositional logic and Boolean algebraic expressions.
Similar aspects :
1) Both has variables of two states.
2) Operations of Boolean algebra and propositional logic are similar.
3) Simplification of formula expressed in logic can be minimized using Boolean algebra and vice versa.... |
I'm trying to solve the problem of transferring data from a pdf file to another file type. When extracting data from PDF files I am to use the exact coordinates (where each unit is 1/72 of an inch in a pdf file) to the same position in another file type. Say a text file or a word document etc?
I'm having trouble ma... |
We are given a graph $G = (V,E)$ and we need to find an assignment of non-negative edge weights (You must give every edge a non-negative weight). We are also given a set $R\subseteq V$ and mapping $c_{a,b}: R\times R \rightarrow \mathbb{R^+}$ where $\mathbb{R}^+$ is all positive ($> 0$) reals ($c_{a,b} = c_{b,a}$ for a... |
According to the Bell-Lapadula model, write access is only to Subject $S$ on object $O$ provided if:
$L(S) \leq L(O)$ where $L$ is the clearance level for $S$ and classification for $O$. This seams counter intuitive. Are there any attacks that this protects against and what other benefits are presented by it?
|
I'm interested in the time complexity of the following problem:
Given an undirected graph $G=(V,E)$ and a weight function $w: E \rightarrow \mathbb{Z}$ (so weights can be negative, too), color the vertices in such a way that the sum of the weights of the monochromatic edges (i.e. those between same color vertices) is ... |
Let a convex bounded polytope be given by an intersection of half planes: $Ax \leq b$. Let $z=Cx$ be a vector (in my case $z$ is 2-dimensional, while $x$ has a higher dimension). How can I compute $D$ and $e$ such that $Dz \leq e$ is a projection of $Ax \leq b$ into the $z$-space.
|
I would like to prove that we need at least five comparisons to find median amoung five numbers.
And my proposition:
Let's consider tree of comparisons. There are at least $5 \cdot {4\choose 2} = 30$ possiblities, so in our tree we have at least $30$ leaves. So what is minimal height of this tree when we have at least... |
Are there any benefits of having grammar in CNF/GNF for LR parser? I have those in mind:
total speed of creating a parser (that is time for creating CNF/GNF out of the grammar, and then creating action table),
the size of action/goto table (in total)
is there any "side-effect" of removing some of shift-reduce conflict... |
I looked at some old OS theory books of mine and noticed that one glaring omission in all of these OS books is how to actually keep track of physical pages that are free (i.e. algorithms for actually implementing the free list). I know pretty well how userland memory allocators work, but a big difference with physical ... |
Here I read that:
Haskell definitely does not have the most advanced type system (not
even close if you count research languages) but out of all languages
that are actually used in production Haskell is probably at the top.
So I am asking two things:
which research languages have more powerful type systems than... |
Let $G=(V, E)$ be an unweighted and undirected graph, and $s, t \in E$.
The problems starts with $n$ tokens on $s$.
The goal is to move theses tokens to $t$ in a minimum of rounds with these rules :
Each token can be moved up to once per round (a movement being when you transfer the token from $v$ the vertex that ho... |
Suppose I have two cameras, c1 and c2, observing the same scene. I can now
Calibrate each camera independently (e.g., with MATLAB's Camera Calibration App)
Calibrate both cameras simultaneously (e.g., with MATLAB's Stereo Camera Calibration App).
Interestingly, the values calculated for the intrinsic parameters of bo... |
Consider the following equation with variable $n \in \mathbb{N}$:
$$\sum \limits_{i=1}^{k} \cos(n\theta_{i}) = 0.$$
Given $\theta_1,\dots,\theta_k$, I'd like to determine whether there exists $n \in \mathbb{N}$ such that the above equation holds.
For $k = 1$ a solution can be directly found in $O(1)$ time by taking the... |
The Bitcoin-solution can be described as "[...] a solution to the double-spending problem using a peer-to-peer network. (official Bitcoin paper, PDF, abstract, first page).
Now I wonder if a similar technology can be used to collect, send and receive other data with the goal to create "unique content". That is data tha... |
It is given two subsequences. Their length are following: $2$ and $5$.
I can show that lower bound of comparisons is $5$. My problem is that I can't show that $5$ is sufficient number of comparisons to merge these subsequences.
In order to show lower bound I use tree of comparisons (number of leaves is $21$, so height ... |
I know that from this answer to a question on the class NPC, that NPC is not in general closed under intersection and union. However, the answer used languages which form trivial languages under these set operations and trivial languages are of course not NP-complete. If the intersection or union is non-trivial, does... |
I understand that the Cook-Levin theorem proved that any NP problem is reducible to an NP-complete problem, which signifies that if a polynomial-time algorithm for an NP-complete problem is found, it will mean that all problems in NP can be solved in polynomial time.
My question is: does this proof also hold the other ... |
How to generate random graphs with eulerian Paths?
Its well known that there is a eulerian path if the number of nodes with odd degree is exactly 2 or zero. I'm interested in an algorithm to make uniformly distributed random graphs with such paths.
Until know I've developed this simple algorithm:
Given the number of no... |
Given -
A center(lat=x,lng=y) 'C' from which a delivery boy makes a round
trip.
A delivery boy has a bag which may contain at the most 10
boxes to deliver.
A set of points Di (lat=xi,lng=yi) around 'C'
where the delivery has to be done. D=number of Di & 1<=D<=10
Each Di either belongs to time window(30 minutes) W... |
I have this question in my homework. Its an a multiple choice question and goes as following:
Let $f (x) = 3x^3 + 2x + 4$. One has that $O(x^3)$
** the answers have been checked with the teachers note **
C and K are the constants
$(C,K) = (10,0)$
$(C,K) = (6,1)$
$(C,K) = (9, 1)$
$(C,K) = (12,1)$
$(C,K) = (3,2)$
$(C,K... |
I have an algorithm that depends on two input sizes n and m. The complexity breaks down to the following equation:
$\frac{nm - 1}{n-1} = O(?)$
Is Big-O of the Formula $O(mn)$ or $O(m)$ because $n$ cancels out? Thank you in advance!
PS: I know that if $O(m)$ is the upper bound $O(mn)$ is an upper bound too, I want to fi... |
I am not able to solve time complexity analysis of this recurrence relation: T(n)=3T(n/2)+n^2.I want to find time complexity analysis of this recurrence relation without using masters theorem could you please help me to do so.
|
I am trying to construct a red black tree out of only black nodes.
I know it is possible getting it after some deletions but I am trying to construct one only via insertion orders.
Is it possible?
I couldn't find a way to do so , so far even after trying to use the simulator.
*** exept of a root node being added to an ... |
How does IDA* compare to recursive best first search (RBFS), in terms of (a) the number of nodes expanded, and (b) space complexity?
Both algorithms are intended to be memory-efficient heuristic search algorithms. From my understanding, RBFS just updates the $F(n)$ value for the parent node for which the current execu... |
I've encountered scheduling problems in my algorithms class before like the type we use vertex cover to solve.
Recently I was asked this question and did not even know what algorithmic technique to use to answer it!
There are two trains, which run between stations and share a portion of track. For instance train 1 runs... |
On this site http://algs4.cs.princeton.edu/25applications/ is described A* algothihm this way
The A* algorithm is a problem-solving process where we put the start
configuration on the priority queue, then do the following until
reaching the goal: remove the highest-priority configuration and add
to the queue al... |
For regular languages we have $\omega$-regular languages which extend them to infinite words.
Are there such extensions for CFG's, CSG's and recursively enumerable languages?
|
Is there a hardware interrupt that is pre-configured by the OS or something? Try to keep the answer on the scale of a register or so.
Are some special preparatory signals sent across the bridges to the hardware to make boundaries?
|
I saw from this post on stackoverflow that there are some relatively fast algorithms for sieving an interval of numbers to see if there is a prime in that interval. However, does this mean that the overall decision problem of: (Does there exists a prime in an interval?) is in P. (There were a lot of answers to that p... |
Say that we have a list of size $N$ to fill with elements of a dictionary of size $D$. So we would have in total $D^N$ elements/possibilities.
It makes sense to me how to write an algorithm for this when the number of possible slots to fill $N$ is fixed. For example if $N = 2$:
A %array of size (D x D x D) = D^3
for i1... |
Suppose I have $n$ kinds of coins $c_1, c_2, \dots, c_n$. I'm given: $S$, an amount of money I should construct with minimum number of coins.
I came into the following formula:
$$
T(n,S) =
\begin{cases} T(n-1,S) & \text{if $c_n > S$}, \\
\min(1+T(n,S-c_n), 1+T(n-1,S-c_n), T(n-1, S)) & \text{otherwise}.
\end{cases}
$$
... |
It is claimed in my textbook that
In a 32-bit system, The instruction LDR r4,[r6] lets you address a
logical space of 4GB.
I know where the 4GB comes from, It is simply 2^32 / (1024 x 1024 x 1024).
However, My question is why is it bytes and not bits ?
Why when we raise 2^32, we should talk about bits and not byte... |
I'm trying to write a regular expression over the alphabet $\{a, b\}$ for the language in which every $b$ is preceded and followed by an even number of $a$'s.
I think the regular expression should include something like $((aa)^*b(aa)^*)^*$ but I don't know how to extend it in order to get to the correct form. Can anyon... |
If $\mathsf{NP\subseteq BPP}$, then we know that $\mathsf{NP\subseteq RP}$ (http://www.csie.ntu.edu.tw/~lyuu/complexity/2011/20120103s.pdf). Does $\mathsf{NP\subseteq BPP}$ also imply $\mathsf{NP\subseteq coRP}$ and hence $\mathsf{NP\subseteq BPP}$ also imply $\mathsf{NP\subseteq ZPP}$?
|
I was doing some of the interrupts question online and found this Multiple choice question
How can the processor ignore other interrupts when it is servicing one
a) By turning off the interrupt request line
b) By disabling the devices from sending the interrupts
c) BY using edge-triggered request lines
d) All of the ab... |
I'm trying to measure now much non redundant (actual) information my file contains. Some call this the amount of entropy.
Of course there is the standard p(x) log{p(x)}, but I think that Shannon was only considering it from the point of view of transmitting though a channel. Hence the formula requires a block size (s... |
I'm actually working on high dimensional data (~50.000-100.000 features) and nearest neighbors search must be performed on it. I know that KD-Trees has poor performance as dimensions grows, and also I've read that in general, all space-partitioning data structures tends to perform exhaustive search with high dimensiona... |
I want to survey the state-of-the-art in image segmentation. Is there a paper on how to segment multiple objects in an image? The segmentation papers I read, normally identify one of the many objects in the image. This object is typically in the center of the frame, or most-foreground compared to other objects in the i... |
I'm looking for the name of a binary tree which is almost degenerate: at least one child of every interior node in the tree is a leaf.
(Image from Penn State course STAT 557, Data Mining, lesson 10.)
|
Taking a look at Julia's webpage, you can see some benchmarks of several languages across several algorithms (timings shown below). How can a language with a compiler originally written in C, outperform C code?
Figure: benchmark times relative to C (smaller is better, C performance = 1.0).
|
Whenever I read about equality I took it for granted, but few days ago I wondered if my understanding is not too shallow. Consider such example (taken from: http://david.tribble.com/text/honalee.html):
Expr -> Expr '+' . Term
Term -> '+' . Term
Term -> . Factor
Usually it is all about SLR(0) equality so in short,... |
I took a typical computer architecture class a long time ago as an undergrad and since then I've done a fair amount of low-level systems programming down to the assembly level and worked on OS kernels. However, I still acknowledge that I have some gaps when it comes to understanding how memory subsystems work in multip... |
I'm involved in a university course which is a crash course in the basics of problem solving and common concepts in computer science. The course contains a number of practical assignments and ends with a group project (~30 hours) in which at least two students solve a problem given to them. Lately we have focused on as... |
I have a problem which goes like this.
There is an $N$ x $N$ board in which some squares are maked with $x$. The upper left and lower right corner squares are also marked. You have a chess knight with which you want to go from the upper left to the lower right corner, using only marked squares. Find an effective algori... |
The usual way of translating the maximum clique problem into a decision problem is to ask "does there exist a clique of size $\ge k$ in $G$?" Clearly this problem is in NP (and is NP-hard).
Another possible way of making it into a decision problem would be:
Instance: Graph $G=(V,E)$ and vertex $v\in V$.
Question: Does... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.