instruction stringlengths 35 29.1k |
|---|
I would like to begin by apologizing. I am not a computer scientist, so my use of terminology will be off. I came across an interesting problem, which I believe to be pretty hard and would love to get references or any other advice to know what to search for in the academic literature on this topic.
Consider a standard... |
I am learning the Haskell programming language. From what I am reading, Input/Ouput (IO) raises challenges for Haskell's purity, since by definition we are interacting with the outside world. From Wikipedia:
In a purely functional language, such as Haskell, functions cannot have any externally visible side effects a... |
when we are trying to solve a problem with dynamic programming. we have to follow some general steps
characterize the solution structure
Recursively define optimal solution
compute the value from bottom up fashion
Can anyone briefly explain the steps for this problem scenario. we need a 444 meter rope. but we have on... |
If A and B are regular, then prove that $A@B = \{xy \mid x \in A \text{ and } y \in B \text{ and } |x|=|y|\}$ is always context free.
So I'm trying to come up with the proof that looks something like this. Knowing that $A$ and $B$ are regular, we can conclude that there exists NFA for $A$ and $B$ respectively. Then, we... |
You have n coins — they all look identical, and all have the same weight except one, which is heavier
than all the rest. You also have a balance scale, on which you can place one set of coins on one side,
and another set of coins on the other, and the scale will tell you whether the two sets have the same
weight, and i... |
As I am comparing between two algorithms, I was wondering which is the best approach to use to compare between the both. Big-O seems not the perfect metric for me, as the it's based on the worst-case, while most of cases in the area that I am working on is optimized.
The second though is, I am using "Python-Maps" (and... |
I am working on an online course on AI and I am now working to understand A* better.
Basically, right now I am working on a problem where: we live on a tropical island and we're trying to navigate between areas, starting from d and heading towards q.
I am trying to find:
the cost used between d and q using A* search
... |
In the literature, the terms of "process calculus" and "process algebra" are often interchangeable. Meanwhile, it confused me.
My questions are:
Are there formal, standard, and widely-accepted definitions of "calculus" and "algebra"?
What are the significant distinctions (maybe informally) between "calculus" and "al... |
Consider the Mergesort algorithm on inputs of size $n = 2^k$. Normally, this algorithm would have a recursion depth of $k$. Suppose that we modify the algorithm so that after $k/2$ levels of recursion, it switches over to insertion sort. What is the running time of this modified algorithm?
I know that MergeSort has w... |
I approached this problem where I have to write an add(key, value), insert(key, value), delete(key,value) and partial_sum(value) which reports the sum of all the elements in the structure that are larger than 'value'.
This was my attempt at the solution, which works! But sadly it runs at O(nlogn) instead of O(logn).. I... |
A* search finds optimal solution to problems as long as the heuristic is admissible which means it never overestimates the cost of the path to the from any given node (and consistent but let us focus on being admissible at the moment).
But why does it always find the optimal solution if the heuristic underestimates? F... |
I have been going through the description of the backpropagation algorithm found here. and I am having a bit of trouble getting my head around some of the linear algebra.
Say I have a final output layer $L$ consisting of two visible units, and layer $L-1$ consists of four hidden units. (this is just an example to illus... |
I have to find a bridge edge in a graph but have to find it efficient time complexity.
Is there an algorithm that is better than Tarjan's Bridge-finding algorithm?
|
SAT solvers are getting more and more efficient in solving large instances and are being used as back-ends in various contexts.
Every time one wants to use them to solve a problem in a specific domain, he/she has to come up with an ad-hoc encoding that not only has the right set of solutions but also puts the constrain... |
I have an array of $N$ objects, each appearing exactly once. I also have a list of $M$ pairs of the objects. Each pair has a "non-adjacency cost" that must be paid if the two objects are not adjacent in the array. Is there an algorithm that orders the object array to minimize the total cost?
The costs will change from ... |
Given that $L_2$ is regular and infinite and $L_1 \cdot L_2$ is regular, then $L_1$ is also regular.
I need some help on getting started on proving this is the case.
My intuition is that if $L_1 \cdot L_2$ is regular there exists a DFA for it, in which case you can just remove the states that correspond to the $L_2$ ... |
We have a clustering algorithm where the number of clusters isn't known to the algorithm - it iteratively creates clusters out of similar-looking data points.
The evaluation metric we're currently using is:
for each pair of elements in the dataset:
if both elements belong to the same class:
if both are in t... |
I am having trouble with the regularity of the two following languages:
i) $\{0^{n}1^{m}|n,m>0,n-m=0\,mod\,3\}$
ii) $\{0^{n}1^{m}|n,m>0,n+m=0\,mod\,3\}$
To clarify this is stating that the (#(0's) - #(1's)) mod 3 = 0.
I know how to prove that the first language is regular without the n,m > 0 restriction but with it I ... |
You are given an array $A$ of size N $(N\leq 1\,000\,000)$ containing all integers $1..N$ exactly once. You are required to answer query in $O(\log^2 N )$ and to preprocess in $O(N\log^2N)$:
How many elements are there between indexes S and E, that are less than X? $( |L| : \forall l \in L \leftrightarrow A[l] < X \b... |
I have to be able to perform insert, delete, range-value-sum, and range-2-max-values with a data structure.
Range-value-sum(xl,xr): with a range [xl,xr] (for a range query), it reports the sum of values of all elements whose keys are in the range of [xl,xr], where xl and xr are real numbers and xl ≤ xr
Range-2-max valu... |
I am trying to show the following problem is NP-hard.
Inputs: Integer $e$, and connected, undirected graph $G=(V,E)$, a vertex-weighted graph
Output: Partition of $G$, $G_p=(V,E_p)$ obtained by removing any $e$ edges from $E$ which maximizes
$$\max \sum\limits_{G_i \in \{G_1,G_2,...,G_k\}} \frac1{|G_i|}\left(\sum_{v_... |
Given words $w_1,\ldots,w_n$ in binary alphabet and another word $w$, decide if $w$ can be written as a product $w = w_{i_1} \cdots w_{i_n}$ (in the monoid $\{0,1\}^\ast$) for some permutation of indices.
Is this a known problem? Is it NP-complete?
Details:
The words $w_1,\dots,w_n$ are part of the input. Therefore, ... |
What is the difference between machine epsilon and least positive number in floating point representation?
If I try to show the floating point number on a number line .Is the gap between exact 0 and the first positive (number which floating point can represent) ,and the gap between two successive numbers, different?
wh... |
ANN when compared to biological neural systems have this common concept of reducing error in prediction over time (training) and becoming more good at predicting correctly. But there is one behavior of biological neural system where the prediction do become good over time but it also becomes fast and uses less energy, ... |
U(n,x) is Gödel universal function, and we need to show {n:U(n,x) is defined for all x} is not enumerable. I do not have any clue right now. Anyone can give me some hint about this question.
|
I was reading chapter-1 The Foundations: Logic and Proofs from this book.
The chapter gives example of translating English sentence : "There is a woman who has taken a flight on every airline in the world." as follows:
Introducing variables : w for women, f for flight, a for airline
Let P(w,f) : “w has taken f”
Let Q(... |
I am trying to find order of an bellow algorithm but I have no idea about, the problem like below
we have an array of $n$ element name $T[1...N]$ and we have that $0\leq T[i] \leq i$ and $T[i] \in \mathbb{Z}$ then if we have that $\sum_{i=1}^{n}T[i] = s$ what will be the order of following pseudo code
K := 1
for i = 1 ... |
From Bash Reference Manual, a parameter:
A parameter is an entity that stores values.
It can be a name, a number, or one of the special characters listed below.
A variable:
A variable is a parameter denoted by a name.
Is a variable is a parameter A, denoted by a parameter B which is
also a name? How do you underst... |
From Bash Reference Manual
Expansion is performed on the command line after it has been split
into tokens. There are seven kinds of expansion performed:
brace expansion
tilde expansion
parameter and variable expansion
command substitution
arithmetic expansion
word splitting
filename expansion
From the programming... |
Consider an arbitrary undirected graph $G = (V,E)$. Suppose you have a collection of $|E|$ positive integers and each integer must be assigned to one edge. Let us denote the collection of integers assigned to vertex $v$'s edges as $w(v)$. How would one assign the $|E|$ integers to the $|E|$ edges so as to maximize:
\... |
I submitted a paper regarding hard real-time systems to an engineering journal. But the referees generally agreed my task model is too limited. My task model is a frame-based real-time application where all the tasks in the application have a common deadline D and are independent from each other. In the following Figur... |
I am wondering what it takes to develop a game in assembly language. For example, what are the limitations or advantages from using assembly language in game development? Also, are there any programs/softwares to aid the development of games in assembly language?
|
I have a project that I am doing. The specification requires specific methods on a graph class. Two of the methods requires this:
numberOfTrianglesIncidentToVertex(), calculates and returns the number of triangles incident to vertex v. The algorithm below calculates the number of triangles incident for all graph vert... |
This is the first time we have to do recursive/closed form expressions WITH code in class and I really have no idea how to approach this. My course notes that the prof put up don't really help as he put up a basic example, but this one has lots of recursive calls in it.
I know that the first part len(lst)$ \leq 1$ will... |
Given a tree with N vertices numbered from 1 to N.
The vertex 1 is the root of the tree. Each vertex is assigned with an integer weight. A remove operation can remove sub-tree rooted at an arbitrary vertex u. We must use at most K remove operations (possibly zero) so that the total weight of the remaining vertices is ... |
I am working on 0-1 knapsack using greedy method, I have some problem in it. It's already proved that solution generated by greedy method for 0-1 knapsack is may or may not be optimal. If solution generated by greedy method is not optimal then Please tell me how i can improve solution so that solution generated is opti... |
This is an interview question:
Given a pile of cards, how to program to get card combinations whose sum is closest to 21?
Example:
input:
Array : 2, 3, 4, 5, J, K
output:
2, 4, 5, J
2, 4, 5, K
I have a naive solution:
check if two cards' sum is 21;
check if three cards' sum is 21;
check if four cards' sum is 21;
chec... |
When a virtual memory address outside the range of loaded into physical RAM is referenced and a page fault occurs, does the Memory Management Unit rely on DMA (Direct Memory Access) to swap the referenced page into RAM, or is an interrupt routine that uses the CPU to copy in the memory in some more mundane way occur?
P... |
Is there a class of formal grammars that generate Recursive Languages only?
(ie with which it is not possible to generate non recursive languages.)
If so what kind of production rules/restrictions do they have?
And why are they not a part of Chomsky Hierarchy?
|
I have the following problem:
I need to generate $\ell$ random permutations each of length $n$ from a list of $m$ elements ($m \ge n$) by a predefined probability matrix $P$ of size $n$ x $m$.
Distribution probability matrix $P$ = {$p_{i,j}$} describes the probability that i-th position is occupied by $j$-th element ($... |
I'm so far a self taught programmer who's mostly been working on simple web and app development. But now my teacher wants me to enter a school competition in programming.
Of course the competition is based on problem solving and such, areas I'm guessing counts as computer science.
Even though I don't have much experien... |
I'm reading a paper about Constraint Satisfaction Problems, specifically "A Characterization of Strong Approximation Resistance", Subhash Khot, Madhur Tulsiani, Pratik Worah (ECCC TR13-075).
The following sentence appears in the third paragraph of the very first page:
"... the fraction of satisfied constraints is at l... |
How does one show Lovasz theta of even $n$-cycle ($n$ is even) is of form $\frac{n}{2}$? Why is the Lovasz theta of such cycles not of form $\frac{n \cos(\frac{\pi}{n})}{1+\cos(\frac{\pi}{n})}$. Could someone provide a derivation for even cycle Lovasz theta number. It is clear that the Shannon Capacity is $\frac{n}{2}$... |
I use Princeton's WordNet in NLP applications. I always read that it is "human-curated." But how is it curated? Who decides that words belong in a synset? How does the process work? Wikipedia does not give many details. How does it work?
|
In the binary tree shown below, which of the following trees is created after
conversion into a (max) heap?
There are 4 anwsers to choose :
By definition, a max heap is a complete binary tree in which the value in each internal node is greater than or equal to the values in the children of that node., so a, c, d a... |
When updating the weights of a neural network using the backpropagation algorithm with a momentum term, should the learning rate be applied to the momentum term as well?
Most of the information I could find about using momentum have the equations looking something like this:
$W_{i}' = W_{i} - \alpha \Delta W_i + \mu \D... |
Say I have a set of sample measurements of a one dimensional curve in the image plane $f(x)$. What is the purpose of minimizing the following functional
$$E(S) = \int \left[\lambda(S''(x))^2 + (f(x) - S(x))^2 \sum_k \delta (x - x_k)\right]dx$$
I believe it has something to do with energy minimization and snakes.
|
What are the open activation records of a recursive algorithm ?
Edit:
Activation records are the number of times that we call a function that is not finished yet. Correct?
So we can find the number of activation records only when we are given a specific input array and we cannot say something for a general array with d... |
I am a novice programmer and very weak in complexity calculation. I have learnt to write a program for creating all possible subsets from a set of elements, i.e. knapsack algorithm. Now I would like to know how to calculate the complexity of the algorithm. Can anyone help me with better clarification.
Here is my code:... |
If you can make no assumptions about the hash function, how can you find the expected number of slots of certain size k in a hash table? Looking more for a theoretical proof type of answer than a programming answer.
|
I'm stuck on an excercise in my maths class. How can I find an explicit lower bound for the harmonic series sum:
$$\sum_{x=1}^{2^m}\frac{1}{x}\,?$$
|
I understand the basic but what I dont understand is this:
so base 16 to base 10
357/16 = 22.3125 but on this example im looking at says remainder 5?
|
This question: Solving the recurrence T(n) = 3T(n-2) with iterative method has a pretty straightforward step-by-step for solving this particular recurrence. But, I'm having trouble understanding two things.
1) How dos OP arrive at this general form? If we know T(n)=3T(n−2) and T(n−2)=3T(n−4), then my substitution giv... |
a minimum heavyweight spanning tree is a spanning tree in which the heaviest edge is as light as possible.
Formally,
input : given connected undirected weighted graph, $G$.
output : a spanning tree $T$ for $G$ with property that every spanning tree $T'$ for $G$ has some edge $e'$ such that $w(e')\ge w(e)$ for every ed... |
I'm looking for an effective method to simulate a program. Why I am needing this is because sometimes I can only have the program's description, code, and all I have left is pen and paper when I want to calculate the result at the end, or the n-th loop, or step n-th ..etc..
For example :
Declare @i int
While @i < 1... |
I have been playing around with artificial neural networks lately, specifically with the prospect of trying to replace the contrastive divergence algorithm with some type of evolutionary metaheuristic technique (i have been working with PSO) to do unsupervised pre-training, but I have come up against some issues when t... |
Last time, I was asked to solve a concurrency problem involving 100 similar processes constrained to fit into 5 buffers. (I'm talking about the Dining Savages problem.) I thought that it was alright to use a semaphore with value 5 (Semaphore x=5) for constraining the 100 proceses. As it turned out, the solution given u... |
I read some note about Automaton Course. i see this note, that following all is the same. but i think the L(g) is not equal to NFA and regular expression. anyone could help me with defining the language of this figures (nfa, regular expression and grammar):
|
I am studying data structures and the book "How to Think About Algorithms" by Jeff Edmonds (pages 46-47) claim that:
"Hopefully, all the elements that are in your set happen to be placed into different entries in the table. In this case one can
determine whether or not an element is contained in the set,
ask for an a... |
I am having a hard time figuring out if
$$\sum^n_{i=0} O(1) =O(n)\,.$$
I think it doesn't but I am unable to find a convincing explanation for that, does anyone have an intuitive yet mathematical answer for that?
|
There are some algorithm or solving a simple maze on the web; but what I am trying to solve is a bit more complicated.
Here is an example:
####################
#S #D # #
# # ## ## ###D###
# # # # #
## # # # ## #
# ### ##### #
# # # D# # ###
# ### ### ## # #####
# # # ... |
Lets have an arbitrary complexity class $C$.
Does $C$-complete = co-$C$-complete imply that $C$ = co-$C$?
I think that the answer is yes, but I am not sure whether my reasoning is correct. I tried to prove it like this:
Let $L$ be a $C$-complete language, so all problems in $C$ are polynomially many-to-one reducible to... |
Let $\Sigma = \{0,1\}$, and suppose that $A$ is a regular language.
Define $$A' = \{ u \mid \exists a, b \in\Sigma: abu \in A\}$$ i.e., $A'$ is obtained from $A$ by taking every string in $A$ and removing its first 2 characters. Show that $A'$ is regular.
My solution so far is:
$ab \in \Sigma^*$ which is regular.
$A$... |
What is the asymptotic runtime of fthe ollowing piece of code in terms of number of updates to S in worst case.
Void foo( int n)
{
int S = 0;
for ( i=1 ; i<= n ; i++)
{
for( j = 1 ; j<= i*i ; j++)
{
if(j % i == 0)
{
... |
I'm studying the worst case runtime of quicksort under the condition that it will never do a very unbalanced partition for varying definitions of very.
In order to do this I ask myself the question what the runtime $T(n, p)$ would be in the case quicksort always happens to partition in some fraction $0 < p \leq {1\over... |
According to this wikipedia article the maximum single precision is 7f7fffff. Can some explain me why it is (7f7fffff)16 and not (7fffffff)16?
(7f7fffff)16 = (0111 1111 0111 1111 1111 1111 1111 1111)2
(7fffffff)16 = (0111 1111 1111 1111 1111 1111 1111 1111)2
|
I know that this may sound a bit out of the box, in fact i used to always think inside the box, but recently i've been thinking, possibly because computer science provides an high degree of freedom, about ways to devise programs other than the ones taught in university.
Consider the factorial function. Typically we de... |
A "Flow Free" puzzle consists of a positive integer $n$ and a set of (unordered) pairs of distinct vertices in the $n \times n$ grid graph such that each vertex is in at most one pair. A solution to such a puzzle is a set of undirected paths in the graph such that each vertex is in exactly one path and each path's set ... |
I recently read the exclusive queue (exclusive ballroom dancers) problem on the "Little Book of Semaphores" by Allen Downey.
His solution included a single mutex for both the leaders and the followers. Could there be anything wrong with using two separate mutexes for leaders and followers? After all, a check is done at... |
(For reference, i am using Kevin P Murphy's Book "Machine Learning: A Probabilistic Perspective" and implementing with MATLAN - without any toolboxes)
I have a dataset with 392 samples (rows), each sample has 8 features (columns), one of which defines the class (i.e. column 1 of features is divided into three equal bin... |
What is the difference between a randomly built binary search tree (using n keys )and choosing a binary search tree (of n key) from a random distribution
|
When using monitors for most concurrency problems, you can just put the critical section inside a monitor method and then invoke the method. However, there are some multiplexing problems wherein up to n threads can run their critical sections simultaneously. So we can say that it's useful to know how to use a monitor l... |
Context
I have two related time series, I want to learn to produce one from the other. However, they aren't synchronous, and the lag between the two does not revert to the mean, it accumulates.
Known relationship, dynamic programming
I am given two, random, ergodic, time series $X = (x_1, \ldots, x_t, \ldots, x_N)$ an... |
There are $n<10^4$ points on the plane. How can one approximately (with a given precision $2^{-20}$ of points' coordinates) find the minimal radius of a circle that covers some $k$ out of $n$ these points?
There is lots of information on the case $k=n$ in Wikipedia, but I found nothing on general case.
|
I understand the theory behind the definition of Big-Oh, but when I try a question, I don't get how you would find the $c$ and $n_0$ values.
For example: if $f(n) = n!$ and $g(n) = 2^n$, how would I go about finding the $c$ and $n_0$ values for $g(n) = O(f(n))$?
|
I am currently reading the Algorithm Design textbook by Kleinberg and Tardos and I am having difficulty understanding a proof using an exchange argument
Statement: A binary tree corresponding to the optimal prefix code is full
Proof: This is easy to prove using an exchange argument. Let $T$ denote the binary tree corre... |
Is there any hardware device inside computer that helps to convert high level language into machine, like compiler and assembler ?
|
In my Artificial Intelligence class we are going over upper and lower bounds in regards to searching a tree, given a state space.
From my understanding, a lower bound is also known as a depth-bound and sets a limit on how far down a tree we can search.
But if that's a lower bound, then what would an upper bound be? We... |
Show that any language accepted by a RAM can be accepted by a RAM without indirect addressing.
Could you give me some hints what I could do??
|
In the book Computability, Complexity, and Languages, Martin Davis writes in chapter two:
A partial function is said to be partially computable if it is computed by some program.
and also
A function is said to be computable if it is both partially computable and total.
From the first definition, a partially compu... |
Suppose we have an $N \times 2$ array $A$ where the two entries $A(k,1)$ and $A(k,2)$ give the number of occurrences of each of two classes at position $k$. Given a sub-interval $I$ of indices between $1$ and $N$, the information gain associated with the interval is a constant plus
$$p_I(p_{in} \log p_{in} + (1 - p_{in... |
I have a question asking for the minimum and maximum height $h$ of a B-Tree with 1000 elements under following conditions:
each block can save 1 to 4 records,
the number of internal nodes is between 3 and 5 and
the root has between 3 and 5 children.
The solution is given as $4\leq h \leq7$. How this is reached?
|
If you are given a pattern and a string, check recursively if the string fits in the pattern. The given pattern will be like "dooo?g*a". A question mark can be replaced with one character and asterisk can be replaced with multiple characters. Other characters have to match. Help me with the asterisk part.
def fit_patte... |
Suppose $\Sigma = \{0,1\}$. Provide an example of a language $L \subseteq \Sigma^*$ with the property that its associated Myhill-Nerode equivalence relation, $R_L$, is such that every one of its equivalence classes is a singleton set; that is, if $x,y \in \Sigma^*$ with $x \neq y$, then $[x] \neq [y]$, where $[x]$ and... |
Specifically we know that for our function $f$ ($f$ takes real values), $\infty>f(0)>0$, while $-\infty<f(1)<0$. So the classical binary search will find an approximate zero within $\epsilon$ of the actual zero in time $\lceil\log_2(\epsilon^{-1})\rceil$, but what about all the other zeros? Again our algorithm has to b... |
I am doing an exercise from a Big Data course I'm taking on Coursera (this exercise is for experimenting with a big-data problem and is not for any credit or homework) , the assignment was described briefly:
Your task is to quickly find the number of pairs of sentences that are at the word-level edit distance at most ... |
I am a student who has entered a game programming competition called FBLA at school, and I sent them an email because I had a few questions about how the competition is ran.
The main question I had, since I'm a Java programmer was in short:
"Does the program need to be an executable, and if a java update/install is nee... |
I am working on a search where user would search names. Spelling mistakes are bound to happen. I have used edit distance, soundex and metaphone implementations in java so far. Each one separately and then different combinations too. Finally, a combination of soundex and metaphone seemed to work. There are more than 30 ... |
I would like to create a plot of certain metrics that are collected at revisions of a software system. The objective of the software engineers is to minimize those metrics.
For version control, the engineers are using Git, so there is a DAG of commits (revisions). However, the metrics are only available for a subset ... |
I'm reading the Dragon book. The beginning describes recursive descent parsers. Then it states that a predictive parser is the table version of a RD parser.
I also read up on LALR(1) parsers.
The differences between predictive and LALR parsers seem superficial to me. LALR seems to consume terminals quickly, but the p... |
For some background :
I think I am quite good at advanced (graduate/research level) mathematics and physics but I have no CS background. Now I am taking a graduate level class on algorithms.
I don't think I have ever written a wrong proof in mathematics - as in either I can prove something or I can't. I have never fa... |
Suppose We have Some language as follows:
$L_1=\{w^* | w=x \text{ and } x \in \Sigma^*\}$
$L_2=\{ww^R ww^R | w \in ( \Sigma + \Sigma)^*\}$
$L_3=\{w | w=xy, x,y \in \Sigma^*, y \text{ is a substring of } x\}$
1) there is a PDA (push down automata) that accept $L_2 \cap L_3$
2) there is a PDA (push down automata) that a... |
I have already asked a pair of questions on the hamming distance, hamming code, valid and invalid codewords on this website, because I cannot understand those concepts fully, and in a few weeks or less, I am going to have an exam also on those topics, I really do not understand. I have tried to take a look to wikipedia... |
What is the current status to quadratic knacksack problem? Say, how many variables can the state of art solver handle? Thank you.
|
in Programming language course my professor take an example.
Suppose the following code:
int x=initialization();
Thread T1=new computethread(x);
Thread t2=new evaluatethread(x);
...
...
Thread t100=new evaluatethread(x);
threads t1 to t100 needs the initial value of variable x for their computation and t1 need to chan... |
Suppose there is a convex function, and a certain domain interval. I want to find the max of this function within the interval. The goal is to minimize the number of times the function is evaluated, because evaluating it is expensive.
I can think of a naive solution involving evaluating the function at two points of ... |
I am currently writing the motivation of my thesis. And the answer to this question is very crucial for me:
I am working on wireless sensor networks.
Say that, there are a number of planes, for instance rooms inside a building.
There are sensors on these planes.
Is there any application area or sceniaro that gives me ... |
The reverse, $w^{R}$, of a string $w = w_1w_2...w_n$ is the string $w_n...w_2w_1$. Suppose that L is a regular language. Must the language $L_1 = \{w : w^Rw \in L\}$ be regular, or may it be non-regular? Explain.
Intuitively, I suspect that $L_1$ may be nonregular, since the set of even-length palindromes of an arbi... |
My question is something of a scheduling problem. I'd like to know what algorithm to use to find the top k items in a fixed length queue in which the values of the items change dynamically.basically a long running online top k selection
I imagine that operating systems do this all the time, but not being a systems guy,... |
I am studying graph currently. I found a question, which asks for
The List A[] which shows shortest distances between $V$ and every
other vertex
The List B[] which shows shortest paths between $V$ and every other vertex
as subpoints. I don't think the question wants me to compute the same values twice, but I don't k... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.