instruction stringlengths 35 29.1k |
|---|
Finding the shortest path in a DAG is extremely easy:
See the example here http://www.utdallas.edu/~sizheng/CS4349.d/l-notes.d/L17.pdf
However, I cannot find a way of parallelising this code. Is there a way of doing that?
|
For $0 \leq a \leq n$ the VT code $VT_a(n)$ consists of all tuples $(x_1,x_2,..,x_n) \in \{ 0,1\}^n$ such that $ \sum_{i=1}^{n} ix_i = a (mod (n+1))$
For example $VT_0(4) = \{ 0000,1001,0110,1111 \}$
Say someone has $x = 1001$ and deletes the first zero and transmits $x' = 101$. Now is the claim that a receiver who o... |
The Problem: A high speed workstation has 64 bit words and 64 bit addresses with address resolution at the byte level. Assuming a direct mapped cache with 8192 64 byte lines, how many bits are in each of the following address fields for the cache? 1) byte 2) Index 3) Tag?
I know that an address for specifying data wi... |
Suppose I have programs A and B defined in this way:
A = let F:Tf = (fn f:T ==> (fn(x:unit => x || fx))) in (fix.F)(m=!l+1;l=!m+1)
B = let F:Tf = (fn f:T ==> (fn(x:unit => x;fx))) in (fix.F)(m=!l+1;l=!m+1)
where || indicates concurrency and ; is the sequence symbol.
How can I prove (not formally) whether these tw... |
How to solve the recurrence equation $T(n)=2T(n/2) + n \lg n$
For ex: I implemented "Counting inversions" with a full mergesort instead of just using merge part, So the outer complexity will be $n \lg n$.
Also, What is the $O$(complexity) of above ?
Introduction to Algorithms, 3rd edition (p.95) has an example of how ... |
What would be a good way representing:
i. Given a key, return all the data values associated with that key
AND
ii. Given a data value, return all the keys that are associated with that data.
So far, all I can think of is to maintain all keys in a sorted linked list where each "key" node has a key value and a vector of ... |
I'm both interested in practical and theoretical aspects of the problem. How do you store linguistic data. Suppose you have stemmed, parsed, tagged and, perhaps even did some preliminary analysis, such as clustering by topics, how then do you store this information for reuse?
I've been looking at knowledge representati... |
A language $L$ is defined recursively according to the following rules:
$λ ∈ L$
If $w ∈ L$, then $bw ∈ L$ and $waa ∈ L$
I am not sure if strings from this language should mix from this definition. Would strings only consist of $bbbb$ and $aaaa$, or can it also consist of $bbaa$, $aabb$, and so on?
|
If I have these languages:
$$\begin{align*}
S&=\{a,b,c,d,e,f,g,h\}\\
A&=\{b,g\}\\
B&=\{a,b,c,d,f,h\}\\
C&=\{a,c,g\}\,,
\end{align*}$$
Writing $X'$ for the complement of a set $X$, what would B'∪ C consist of? Would the elements of this language then be C = {c g}?
Also if I have B ∩ (A ∪ C'), would the elements of this... |
I have a problem that is a bit complex, and I don't know what method/model I should use to express it (much less solve it).
Let's say we have a lot of employees and a few jobs to be done. Each employee ranks the jobs they want most.
Easy. Bipartite matching, with weighted edges. Or Hungarian algorithm. Right?
Now thing... |
According to the Ford-Fulkerson algorithm, I thought that if there was no path from $s$ to $t$, then the flow would be a max flow. In the flow below, there are two paths between $s$ and $t$. Then, how can this be the max flow?
|
Probelm:
Deciding whether a network flow graph has more than one min cut.
Optimal running time: O(V^2*E).
I trying to prove the correctness of the next algorithm: run Dinitz to find max-flow and build the residual graph. One min cut will be all the vertices reachable from s (as T will be all other vertices) and second ... |
I am studying the firefly algorithm and I would like to ask about the Intensity function that is defined at the beginning of the algorithm.
What is it for? Some literature give different functions for $I$. Wouldn't it be easier if the intensity be just the function itself (for example in a maximization problem)?
|
Suppose that the processor reads cache memory in one clock cycle.In case of cache miss the processor needs 5 clock cycles to read the information in the main memory.What should be the value of Cache hit rate so that AMAT=2?
We know that
AMAT=Hit time+ (Hit rate)*(Miss penalty)
Hit rate= (AMAT-Hit time)/Miss penalty= ... |
My intention is to optimise buffer allocation in a shared buffer (with total max capacity) where each incoming and outgoing packet belongs to a category (we have a finite number of categories < total buffer size), and the packets are inserted and removed so that each category has a different and independent input and... |
Looking for a book that describes the path the code takes from high-level to compiler to memory etc.
Doesn't matter which programming language is used, just would really like a nice breakdown of the steps the computer takes to execute it in thorough detail.
Thanks!
|
The Rosetta spacecraft has reached a comet in August 2014 and sent a
lander on its surface. It was one of the greatest science news of the year.
Automated Planning and Scheduling techniques are really important in the operations of these kinds of missions. At the last ICAPS there was even an invited talk by one of the ... |
When working with undirected graph algorithms using an adjacency-list type structure, it's sometimes enough to store a given edge (i, j) just stored in the list of edges of i or on the list of edges of j. Other times, it's important to have an (i, j) on i and a (j, i) on j.
I was wondering how do you call graph repres... |
How can I show that $L = \{a^m b^n \mid (m > n \text{ or } m < n) \text{ and } m, n ≥ 1\}$ is not a regular language.
|
What's the fundamental difference(s) between small and big-step operational semantics?
I'm having a hard time grasping what it is and the motivation for having the two.
|
I have a problem where I'm given the input of a graph. The output would be a set of vertices such that I have the minimum number of vertices to cover other vertices and if there is more than one option then then I'd have to choose the maximum weighted vertex set. I'm trying to approach this in a Dynamic programming tho... |
For what I know of complexity measures in CS, they are aimed at rather large problems. With today's computing power, most people don't care about comparing the complexity of simple problems as they would all be solved in about the same time.
Yet, I turn out to be interested in some cost measures for small problems. For... |
What is a contiguous subarray? I have tried searching online and have found pages about solving the largest contiguous subarray problem but none with a definition or explanation of what contiguous in this actually is.
Ex: Wikipedia: Maximm subarray problem has no explanation of why the given "subarray" is contiguous o... |
It seems that in CA context nondeterministic (ND) means probabilistic, not ND as in NFSMs. At least I haven't seen a paper or book which discusses NCAs, without talking about probabilistic CAs.
I haven't even found a definition anywhere. It feels like NCAs can't be equivalent to CAs (not in the same lattice at least), ... |
I am trying to build a generic data structure that needs to hold keys and values and in the same time keep track on the indices in which keys and values were put in, like arraylists do but in a complexity of $O(\log n)$ or less.
I tried to work around a solution to this problem and created various TreeMaps that has Int... |
Given an undirected, connected, weighted graph $G = (V,E,w)$ where $w$ is the weight function $w: E \to \mathbb{R}$ and a minimum spanning tree (MST) $T$ of $G$.
Now we decrease the weight by $k$ of an edge $e$ which does not belong to $T$.
How to efficiently update $T$ to make it an MST (denoted $T'$) of $G'=... |
A Markov algorithm is a string rewriting system (well, not a set of rules but a list of rules since they need to be ordered) with a strategy for applying rules that ensures determinism.
I think the usual definition (1) is
Find the first rule that matches, and then replace its leftmost occurence.
Another definition ... |
Sometimes problems can be solved in $O(n^c)$ time for any $c > 1$, but not for $c=1$. Typically this is written as $O(n^{1 + \epsilon})$, since $\epsilon$ is understood to be some small positive constant. I want to know the terminology for describing this complexity class.
For example, I would call a $\Theta(n)$ algori... |
Hash tables resolve collisions through two mechanisms,
separate chaining or open hashing and
open addressing or closed hashing.
Though the first method uses lists (or other fancier data structure) in hash table to maintain more than one entry having same hash values, the other uses complex ways of skipping n elements... |
Given an unweighted, undirected graph, what is the time complexity to decide if its radius is at most 2? Are there any faster algorithms than doing BFS on each node?
|
The Problem: Indicate whether the following statements are true or false:
a. If e is a minimum-weight edge in a connected weighted graph, it must be among edges of at least one minimum spanning tree of the graph.
b. If e is a minimum-weight edge in a connected weighted graph, it must be among edges of each minimum sp... |
The Problem: Let T be a tree constructed by Dijkstra's algorithm in the process of solving the single source shortest-paths problem for a weighted connected graph G.
a. True of false: T is a spanning tree of G?
b. True of false: T is a minimum spanning tree of G?
I read from Single source shortest path... |
Last fall I went on a tour of the Blue Waters supercomputer at the University of Illinois. I asked whether anyone ever used the entire computer. I was told that it was always working on multiple projects. That made me wonder about the usefulness of supercomputers. Perhaps Blue Waters is unusual in that it has to be... |
I went through lots of blogs and posts but could not exactly figure out how the machine code is converted to electrical signals?
Any software program is compiled to machine code which is nothing but lots of 1s and 0s.
1 means high voltage e.g 5V and 0 means comparatively low voltage e.g. 0V or ground, what's the compo... |
We know that $NC^1 \subseteq NL \subseteq AC^1$ and that 2-SAT is complete for $NL$.
How does one construct an $AC^1$ circuit for 2-SAT?
Recall that $AC^1$ circuits have $O(\log n)$ depth where $n$ is the number of bits in the input.
I have read Herbert Vollmer's book on Circuit Complexity as well as the chapter in A... |
I read several times of Scott Aaronson saying that P=NP implies that human creativity is boring and something like that, and that P=NP has something to do with proof automation. I don't get his argument, despite having studied basic complexity theory. What is he talking about?
|
xor gate, now I need to construct this gate using only 4 nand gate
a b out
0 0 0
0 1 1
1 0 1
1 1 0
the xor = (a and not b) or (not a and b), which is
\begin{split}\overline{A}{B}+{A}\overline{B}\end{split}
I know the answer but how to get the gate diagram from the formula?
EDIT
I mean intuitively, to me, I should get... |
Given a vector of elements, how can I calculate the length of the Huffman codewords without generating the Huffman code itself?
Using Matlab, I was able to compute the Huffman code and and get the length of the codewords but is it possible to get the lengths alone without computing the codewords?
|
Suppose that we have $ \\ T(n)=\left\{\begin{matrix}
c, & \ \text{if } n<d\\
aT\left( \frac{n}{b} \right )+f(n), & \ \ \text{if } n \geq d
\end{matrix}\right.$
The Master theorem is the following:
If $f(n)=O(n^{\log_b a- \epsilon})$, then $T(n)= \Theta(n^{\log_ba})$
If $f(n)= \Theta(n^{\log_b a} \log^k n)$, then $T... |
Suppose you want to introduce a format for a language, commands, ... etc. (Specially in the filed of computer science) in a paper
for example something like below:
X | Y = [ Z ] <W> [ / ] $P
By this, I mean, X or Y could be at the left side of an equation, Z is an optional argument at the right side, <W> is another sy... |
I am looking for effective and reliable algorithm which is able to generate random samples of permutations by square doubly stochastic probability matrix $P$ (n x n) distribution ($\sum_{i}p_{i,j} = \sum_{j}p_{i,j} = 1$, $i,j = 1,2,...,n$).
Probability matrix elements $p_{i,j}$ define probability of $i = \pi(j)$ and $0... |
I am fairly new to formal language theory but understand how to convert simple CFGs into both Chomsky normal form and Greibach normal form. However, I have not seen any examples of how to do that when you add the Kleene Star *, Kleene Plus +, and question mark ? to that grammar, commonly seen in regular expressions.
Ho... |
This Problem sparked my question:
Does a TM $M$ enter state $q$ on input $w$?
I proved it was undecidable in this format using the Halting Problem as a subroutine:
If HALT
simulate M on w and return result
else
return false
Since HALT is undecidable, this given problem is undecidable as well.
However, the giv... |
Is there any NP-hard problem that we can find a mechanical "polynomial time" solution to? For example, suppose we construct a graph out of something physical, e.g. we have have pipes through which we can move water. If this pipe system was suitably built, could we solve say some routing problem by seeing if water flows... |
I don't know what to call this, so I'm calling it "clumping by color".
Suppose I have an array of length $n$
where each of the items has one of $m$ "colors". I'd like to permute the elements so that all the items are "clumped" together with other items of the same color. That is, in the final array ordering
$$ x_0, x... |
I just started reading about distributed systems for the first time ever. There is a fairly slick proof of the impossibility of consensus in an asynchronous model using some combinatorial topology. On the other hand, there are multiple consensus protocols used in practical systems to synchronize distributed state machi... |
If the two generals problem is unsolvable how can we human beings agree on things?
I mean, we communicate everyday and have the same limitations as any communication problem handled by computer science. Why doesn't it affect us?
|
Is there a way to find the nth string of characters from an alphabet, without having to store "all" of the combinations?
Example:
Alphabet $A = \{a,b,c\}, n=12$.
All possible combinations in lexicographic order are $C = \{a, ab, abc, ac, acb, b, ba, bac, bc, bca, c, ca, cab, cb, cba\}$.
You can see that there's no rep... |
The class $FPT$ (fixed-parameter tractable) is defined here. However, there is only one "parameter" that is studied from the given problem/language.
Is there an equivalently defined class that can take $O(1)$ parameters? It may be useful for defining this for problems that are not driven by a single parameter. Unfortun... |
All the consensus algorithms that I've seen always depend on having a leader elected with all queries directed at the leader (assuming that we're not OK with getting back stale data). Are there any efficient algorithms that are completely symmetric, i.e. which do not elect a leader and therefore allows querying any ser... |
I'm trying to calculate how much minimum bits need to be added to data of 100bits, in order to correct 10 bits that are messed up by:
bits that deleted (Erasure Correcting)
bits that corrupted (Error Correcting)
I tried Hamming code and Reed-Solomon codes but didn't figured out the answer of 1 or 2.
There are some ot... |
I'm curious about whether there are any complete problems in the Arthur-Merlin complexity class. Graph Non-Isomorphism (GNI) seems to be the canonical example of a problem in AM, but it's probably not a complete one.
I suppose I'm also wondering if a "complete" problem is well-defined for AM. Since AM = BP.NP, it seems... |
I have come across a question like this. And I don't have any idea how to solve this.
Suppose a machine with instruction format of the form opcode A,B,R where A and B are main memory addresses and R is a register. If there are 20 registers in the machine, how many addresses are possible to have in the main memory? An ... |
I am working on a problem where I am supposed to count the number of arrays of size $N\times M$ where the sum of elements in the $i$-th row is greater than or equal to the the sum of elements in the $(i-1)$-th row. And the the sum of elements in $N$-th row (the last row) is less than or equal to $M$. All the elements a... |
If A and B are Turing recognizable, is A - B Turing recognizable?
I think that A - B would be Turing recognizable because they're both in the space of Turing recognizability. For example, if A is context free and B is a regular language A - B would result in a language that is sill Turing recognizable.
However, doe... |
I have a question to find out that $L = \{a^i b^{j+3}\mid i\ne j \}$ is regular or not. I know that it is not regular. I tried with pumping lemma but I am finding just a specific number of $v$'s in $u v^i w$ that not satisfies the language condition, but not ALL $v$'s. What are the best choices for $i$ and $j$ to prove... |
I find it really difficult to prove non-regularity of a language using pumping lemma. I do understand that regular language is the language that can be expressed using DFA/RE. So if I can't create DFA/RE for language can I use that as proof of it's non regularity?
For example, following is an attempt to create a DFA fo... |
Here is the complete proof taken from this link
How do I convince myself that n(1+b) is not prime when b>=1?
Here is what I did:
if n is 3 and b is 3. Then resulting string 111 111 is prime. Is this how it should be done it in proofs?
The way I see is this. If n(1+b) is not proved for even one set of values then I ca... |
I have to determine, and prove, whether the language $L=\{a^{2^{n}} \mid$ n is a natural number$\}$ is context free or not (if it is by a grammar and not by the pumping lemma).
I tried to construct a grammar, but I don't have a working one. I have no problems to construct the language $L=\{a^{2n} \mid$ n is a natural ... |
Is the language { ww | w ∈ {a,b}* } context free?
I have tried to create a pushdown automaton but I didn't find any solution. I think you need a queue and not a stack.
Is there a way to prove this statement using the pumping lemma?
|
How can I prove that if P=NP then for each non-trivial language $L,L'\in NP$ there exists a polynomial reduction $L\leq L'$?
|
Suppose that we have an optimization problem defined as follows:
$OPT$ = Given an input string defining a set of feasible solutions $F$ and an objective function $f$, find $x\in F$ maximizing $f(x)$
and the equivallent decision problem
$L_{OPT}$ = Given an input string defining $F$ and $f$ and a target value $u\in Q$, ... |
We've developed an esoteric language. In this language, a program contains a static amount of code, and a static amount of storage space. However, parts of the program can recurse, so the interpreter will spawn another copy of a subset of the code and additional storage space to match. Can this language be Turing Compl... |
See title. I'm trying to apply the method from this question. What I have so far is this, but I don't know how to proceed from here on:
T(n) = T(n-1) + n2
T(n-1) = T(n-2) + (n-1)2 = T(n-2) + n2 - 2n + 1
T(n-2) = T(n-3) + (n-2)2 = T(n-3) + n2 - 4n + 4
T(n-3) = T(n-4) + (n-3)2 = T(n-4) + n2 - 6n + 9
Substituting the valu... |
Thanks to the max-flow min-cut theorem, we know that we can use any algorithm to compute a maximum flow in a network graph to compute a $(s,t)$-min-cut. Therefore, the complexity of computing a minimum $(s,t)$-cut is no more than the complexity of computing a maximum $(s,t)$-flow.
Could it be less? Could there be an ... |
For the graph colourability problem, we are given a graph and our goal is to find a colouring of the graph with the fewest possible number of colours so that no two adjacent vertices have the same colour. This problem is known to be NP complete.
Suppose that we have an algorithm $A$ that runs in polynomial time and te... |
Description
Say I have a source list like: ["a","b","c","d"] and want to run a capitalization filter so if I change, "b" to "B", my derived list looks like ["B"]. Next, if I change my source list's "d" to "D", the derived list should look like ["B","D"].
Is it possible to make the insertions and removals in the derive... |
Sorry if this question is either obvious or ignorant. I am a high school student with only the computer science knowledge I have taught myself.
Calculators have a function that can convert numbers from decimal to fractional equivalents. For example, 0.5 becomes 1/2, and 0.666666667 becomes 2/3.
I doubt that the calcula... |
I was struggling with this paper about codes which can correct single deletion and re-ranking in permutations, http://ieeexplore.ieee.org/xpl/articleDetails.jsp?tp=&arnumber=6875337
[Published in:
Information Theory (ISIT), 2014 IEEE International Symposium on
Date of Conference:
June 29 2014-July 4 2014, Page(s):
... |
In most statically typed languages, each expression has an intrinsic type. E.g. in Java, 3 is an int, 3.0 is a double, 3+3.0 is also a double. Types do not depend on the context of the expression.
However, in the CSS type system described in the spec, some expressions have a type depending on the context. For example, ... |
Roughly, in Ruppert's Delaunay Triangulation refinement algorithm, so called encroached edges are split until no more encroached edges remain.
The algorithm specifies splitting the edges at their midpoint (except in the case of small input angles where concentric circular shells as suggested. This question is unrelat... |
I have two lists where each item in the first list has a rating for each item in the second. I need to determine an optimal matching (or the best x scenarios) where items are matched, but each item can only be matched once.
For example, there are 150 movies available, 100 people, and each person has rated each movie b... |
I cannot determine why the Celsius values in this code are producing rubbish values. (Look at second statement in the first for-loop).
CODE:
/* The program will output two columns with the temperature in degrees Fahrenhiet
and equivalent temperature in degrees Celcius. The range will be 0 to 300 farenhiet in
20 deg... |
consider integers represented as base 2 (strings). define a relation called "n-msb matching" that is true when the 1st n msbs (MSB is "most significant bits") match (of two integers). what is a pragmatic way of searching/ computing the following?
given n2, find x, n such that n·3x is "many msb matching" (with n2).
no... |
I need to compute a large linear optimization problem very often after recieving updates to my optimization problem.
That is I have a linear problem to find an x such that
$x_1 * c_1 + ... + x_n * c_n$ is as small as possible
under the conditions that $Ax \# b$ (where $\#$ can be $<=$, $>=$ or $=$ on each row).
At som... |
A safe is protected by a four-digit $(0-9)$ combination. The safe only considers the last four digits entered when deciding whether an input matches the passcode.
For instance, if I enter the stream $012345$, I am trying each of the combinations $0123$, $1234$, and $2345$.
Clearly, a 40000-length string $000000010002..... |
Given that the two generals problema is unsolvable, which means that both parties involved cannot agree that both know something, i ask something simpler. Is it possible for both parties to agree that a message Exchange occurred? In other words, is it possible for both parties to agree that a "conversation" occurred?
... |
I want to create a PRNG for an integer only (with a max of 32767) system and tried to use an LCG. So I've chosen as $m = 32767$ and $c = 3$ and I tried to figure out a good $a$. However for the full period I have to choose $a = 32768$ which cannot be used since the maximum is 32767.
Can anyone help me creating a "good"... |
I have $n$ people each of which can meet on certain days of the week. I want to group them into $\frac{n}{k}$ groups of size $k$ such that all people in a group can meet on a day.
eg - Suppose there are 3 people who are free on (M,T,W,Th,F), (M,W) and (W,Th,F) respectively. They can all be placed in the same group sinc... |
Here is my solution:
S-> Sab|Sbb|Saa
S->aS
S->bS
S->ε
Is this solution right?
|
I'd like to find an efficient algorithm to answer this question:
For each node in a directed graph, find whether it is on a non trivial cycle (length > 2)
It sounds simple at first, but I still don't have an efficient sub-quadratic solution. I have some ideas but I'm pretty sure I'm trying to reinvent the wheel. Is th... |
In The Art Of Computer Programming, Volume 3, Chapter 5.3.1, Problem 26, Knuth asks one to construct a sorting method that achieves the minimum number of average comparisons for n=7. This means that one needs to find a sorting tree that minimises the total length of all paths from root to every leaf (also known as exte... |
Efficient way to find the sum of all elements of all subsets of size $k$ for a given set $s=\{1,2\dots,n\}$ ($n\ge k$). Example:
$s=\{1,2,3\}$, $k=2$.
$s_1=\{1,2\}:\;1+2=3$
$s_2=\{1,3\}:\;1+3=4$
$s_3=\{2,3\}:\;2+3=5$.
And the sum is $3+4+5=12$.
|
This being used in data bits transmitted by GLONASS Satellites. I am sure it is different from other codes like 'Binary Code' which the search engine throws up
|
I want to prove that the following program is correct. The code takes an array i of length N and a number x. At the end, the value of found should be true if the array contains x and false otherwise.
found := false;
i := 0 ;
while i < N do {
found := found || (a[i]=x);
i:=i+1
}
The given preconditions are that... |
Is there a way to get complement? Following is my solution for CFG of all strings that DON'T contain bbb.
S -> aA | aaB | aB | bA | bbA
A -> aA| aB
A -> epsilon
B -> bA | bbA
B -> epsilon
Is this right?
|
Say I have a "semi" directed, weighted, graph (some edges are undirected, some are directed).
Consider two nodes, A and B. Consider the set of all paths that take me from node A to node B.
I essentially want X samples of all these paths. I don't want these samples to be "too close" to the ideal path. Essentially, I wa... |
I read here that a proof has been offered that a Turing Machine with 2 states and 3 symbols can be universal (in that it is capable of arbitrary finite computations). Even if this proof is accepted, it is based on a Turing machine that doesn't halt.
If we consider only computations that do halt (that end on an addition... |
Why would it be impossible to draw an undirected graph G that has 12 vertices, with 3 connected components if G had 66 edges?
|
The self-information of an event of probability $p_x$ is defined as $I(p_x)=-\log_2(p_x)$.¹
I fully understand this for equiprobable events of the form $p_x = \frac{1}{2^k}$.
In that case, we want to encode $2^k$ events so we need $\log_2(2^k)=k$ bits.
So $I(p_x)$ should be $\log_2(\frac{1}{p_x}) = -\log_2(p_x)$
Howev... |
I need to select a given number of nodes from a weighted directed graph such that the nodes selected are the closest to a given starting node. This seems like a common problem to need to solve, but I haven't found much material on it. Does anyone know if this particular problem has a name, or any published material (... |
I have a question to find out that $L = \{a^m b^n\mid n>0, m - is prime \}$ is CFL or not. I know that it is not a CFL. But I don't know how to prove that. I know how to prove that $L = \{a^m\mid m - is prime \}$ is not CFL, by taking a random length for $vx$ ($uvwxy$) and prove that the length of the whole word is not... |
Suppose I define a global variable and I define an automatic variable within a function definition with the same name as the aforementioned global variable.
What would happen to the global variable if I altered the automatic variable within the function body?
|
For a given set of nodes, I can find optimal paths that visit all nodes using various traveling salesman algorithms. As a subset of this problem, I would like to be able to find shortest partial solutions as well. For example, if I simply don't have enough time to visit all n nodes, what's the shortest path that connec... |
I see nowadays XML is used to structure any file or data. It can represent both flat and hierarchical relationships. For example, it can be used to show the parse tree of a sentence in a natural language.
I am not familiar with different types of data and knowledge structures, but I would like to know if XML is theoret... |
I have this language: $L = \{a^{n+2} b^m a^{2n} b^{3n}\mid n,m >=0 \}$ and I am trying to prove that it is not CFL.
I assumed that my word is $a^{p+2} b^m a^{2p} b^{3p}$ (where $p$ is the pumpung length) and I applied the pumping lemma. I can find a contradiction for every case except for the case when the part that I ... |
i'm reading the article of J. L. Massey and M. K. Sain, "Inverses of Linear Sequential Circuits" (Date of Publication -
April 1968) (here) and i cannot understand - what is "feedforward inversion"?
They give a short description of circles in convolution codes and a little bit description about catastrophic codes (cod... |
For my case I have starting point and several cities.
I want the shortest route to visit all cities without returning starting point.
I have read several TSP algorithm and all include the return a full cycle.
So what TSP variation should I look for to solve my problem?
|
I generate some simple graphs based on usage stats of a website, and they may look like these:
I call the 'pattern' on the left 'convergence', and the 'pattern' on the right 'divergence'. The terms 'convergence' and 'divergence' are loosely and visually defined, and they simply means that the two curves either become... |
I have been reading the paper Towards a Cognitive System for Decision Support in Cyber Operations. And I have been trying to understand the role of two ontologies proposed here, cyber security ontologies and scenario ontologies.
I have asked a question on CGS SE, What are the practical uses of ontologies? and the role ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.