instruction stringlengths 35 29.1k |
|---|
According to Wikipedia, both bad character table and good suffix table can be created in $O(n)$ time, where $n$ is the length of the pattern. It is pretty obvious how bad character table can be computed in linear time, but I don't understand how good suffix table can be computed in linear time. I thought about it a lot... |
Which of the following features will characterize an OS as multiprogrammed OS?
More than one program may be loaded into main memory at the same
time.
If a program waits for certain event another program is
immediately scheduled.
If the execution of a program terminates,
another program is immediately sch... |
Indirect addressing allows you to reference memory locations, larger than the operand limit of a CPU.
i.e
1 | ADD 2 3
2 | #2
3 | *32000
...
32000 | #5
This will add memory location 2 and 3, 3 points to location 32000, so when it's evaluated, the effect is:
1 | ADD 2 32000
Even though 32000 may exceed the operand size... |
I've been seeing all over stack Overflow, e.g here, here, here, here, here and some others I don't care to mention, that "any program that uses recursion can be converted to a program using only iteration".
There was even a highly upvoted thread with a highly upvoted answer that said yes it's possible.
Now I'm not sayi... |
Kinda stupid question, but makes me a bit confused. If my OS (Win 7) is 64-bit type system and my CPU is 64-bit, why Program Files directory is marked (x86), x86 stands for 32-bit OS?
|
I am a little bit confused about how to calculate the memory capacity.
word=data lines size
byte=8 bit
n=adresse lines size
Most of the people use this formula to calculate the capacity of the
memory: C=(2^n*word)/8 octet
Is this formula correct when speaking about byte-addressable? Because if we have byte-address... |
$L = \left \{ ab^{n}a^{n}|n>0 \right \} \bigcup \left \{ aab^ka^{2k} | k>0 \right \}$
What can be said about the given language L ?
According to me, I think it is CFL and not DCFL as I tried to somehow parse it through a NPDA but not sure though.
|
If I had a single core with other cores that have access to a BUS the problem of transactional memory makes sense with the setting of the T bit and letting cores be able to see the caches of the other cores so they know if they're working on shared memory and they can therefore resolve the conflict.
The problem I'm hav... |
In exactly a month I will face a Java exam. My problem is that even if I know all Java theory (the exam won't face GUI), I have problems creating programs: sometimes I can't understand how to make a fast program or how to implement what I want my program to do. So how can I improve my Java habilities? What kind of exer... |
Given a bipartite graph $G = (X, Y, E)$ with $|X| = |Y|$, vertices from $X$ are to be deleted sequentially. As $d_x \le |X|$ vertices are deleted from $X$, let the total number of degree zero vertices of $Y$ be $d_y$. The goal is to seek a most "balanced" deletion, i.e., minimizing the maximum of $(d_x - d_y)$ for $d_x... |
I am referring to section 8.1 of this paper, https://www.cs.cmu.edu/~odonnell/papers/maxcut.pdf. Can someone kindly give me a concrete definition of what it means to "construct a PCP" and if that is the same as a "PCP verifier". Are they the same things?
Its not clear to me as to what it means to say that "Let the bit... |
I have the following context-free grammar from which I have to remove epsilon transitions:
$S \to 0A0|0$
$A \to BC|2| CCC$
$B \to 1C | 3D | \epsilon$
$C \to AA3 | \epsilon$
$D \to AAB | 2$
By algorithm, I create $N_{0}$ that will hold all non-terminals that contain $\epsilon$ and in next steps add non-terminals that h... |
Imagine i get an input 123 my goal is to return 112233.How can i get that?I can't use strings because i have to multiply that same later
|
I want to prove that:
$\{\langle M, n, w\rangle \mid \text{$M$ has $n$ states, $w ∈ \Sigma^*$ and $M ∈ B(n,w)$}\}$ is undecidable.
Here $w$ is a string and $B(n,w)$ is the set of all $n$-state machines that halt on input $w$ after exactly the maximum number of steps. I don't know how to prove this. I tried finding anot... |
Let $G(V, E)$ be a complete undirected graph and $p = v_1, \dots, v_\ell$ a path of unique arbitrary $\ell$ vertices of $V$. Each vertex of $V$ is a point in a two-dimensional discrete space (e.g., $v_i = (x, y)$ with $x, y \in \mathbb{N}$).
Is it possible to find a path $p'$ that contains the same points of $p$ in a d... |
Silverstein et al., Analysis of a Very Large AltaVista Query Log, SRC Technical Note '98 looked at 43 days of queries in 1998 and pulled out how many terms there are per query, what the top 25 queries were, and how correlated query terms were.
There are various papers on an Excite dataset from the 90s, which include si... |
Let UID denote a unique identifier. UID's are represented as 6-digit positive integers.
I want to insert a collection of UID's in a hash table with $M$ buckets, where $M$ is a prime number (for example, 524309).
If I am not mistaken, since $M$ is prime, dividing an UID with $M$ generates a unique remainder, as there i... |
gcc is a collection of compilers, based on the file extension it compiles a source file. But compilers are only supposed to convert a preprocessed code into assembly code. And after that assembling and linking is done and an executable is generated.
But several definitions says that compilers are the ones who convert s... |
I'm studying some of computation theory and i encounter a big question mark. I have an optimization problem and i have to proof that is NP-HARD. I know that my problem can be reduced to another np-complete problem so my problem is np-hard. But my question is: why some algorithms are np-hard for the combinatorial versio... |
I'm working on an exercise from The Nature of Computation concerning polynomial-width circuits computing parity. In particular the exercise asks to sketch a proof that the depth of such a circuit has the lower bound $\Omega(\log\log n)$ where $n$ is the number of input variables.
There is quite a large amount of litera... |
An array of $n$ distinct elements is said to be un-sorted if for every index $i$ such that $2≤i≤n−1$, either $A[i] > max \{A [i-1], A[i+1]\}$, or$A[i] < min \{A[i-1], A[i+1]\}$. What is the time-complexity of the fastest algorithm that takes as input a sorted array $A$ with $n$ distinct elements, and un-sorts $A$?
A.$... |
This isn't a question about what NP-completeness or hardness is, but about what, in general and informally, make a problem NP-complete? That is to say, what features of a problem might make me suspect a problem is NP-complete/hard?
To elaborate, for instance, lets say I’m seeing the graph coloring problem for the first... |
Skiena writes:
In one of my research papers [Ski88], I discovered a comparison-based sorting
algorithm that runs in $O(n\log\sqrt{n})$. Given the existence of an $\Omega(n \log n)$ lower bound for sorting, how can this be possible?
I believe the research paper he is referring to is Encroaching lists as a measure of... |
I seek to sort a sequence S of n integers with many duplications, such that
the number of distinct integers in S is $O(\log n)$. Give an $O(n \log \log n)$ worst-case time algorithm to sort such sequences.
I tried quick-sort, Merge-sort, selection-sort but not getting the required running time. So the question is to d... |
I came across $2$ translation schemes of Syntax Directed Translation (SDT) in compilers which are as follows :
Using a top-down translation scheme, we can implement any
$L$-attributed definition based on a $LL(1)$ grammar.
Using a bottom-up translation scheme, we can also implement any
$L$-attributed definition based ... |
Suppose you got a directed acyclic graph of positvely and negatively weighed nodes $T\hspace{-0.02 in}$.
Now I have to find the the subset $M\subseteq T$ such that the sum of
the weights of the nodes in $M$ is maximised, but if $v \in M$ then all
children of $v$ as well as their children, and so on have to b... |
You have $n$ congruent sticks (they have the same length). You want to divide them equaly among $m$ friends. To avoid envy, each friend should receive congruent parts, that is, the set of cutted sticks of one friend is exactly the same of any other friend.
Questions: Which is the minimal number of cuts in terms of $n$ ... |
You want to print vectors with n elements, where:
the first element can have the values: e1.1, e1.2, e1.2;
the second element can assume the values: e2.1, e2.2, e2.3;
...;
...;
the nth element can assume the values: en.1, en.2, en.3.
I should print all possible vectors; eg:
{e1.1, e2.1, en.1 ...};
{e1.2, e2.1, en.1 .... |
i have a context free grammar
i want to create a tokens from the language
is there any techniques to do that ?
for example , this CFG from Prof.Alex Aiken notes :
D -> D ; P | D
D -> def id(ARGS) = E ;
ARGS -> id, ARGS | id
E -> int | id | if E1 = E2 then E3 else E4 | E1 + E2 | E1 - E2 | id(E1,...,En)
how c... |
I am currently preparing for exam. While studying Finite Automata, i got confused. I know a DFA can have multiple accepting states, but can an NFA also have multiple accepting states?
|
I'm developing a IMHO very interesting algorithm for integer division. This algorithm uses boolean shifting(It shifts left for multiplication by 2). I'm wondering if << c is $O(c)$ or $O(n)$. I'm hearing it depends on architecture. Algorithms ideally should be architecture independent. So for the purposes of analysing ... |
I am unsure I expressed myself correctly.
Anyway, I want to figure out what is the initial state of an automata who had its epsilon transitions removed and who was determinised.
In my text book it is stated, that suppose A is NFA with $\epsilon$-moves, suppose $q_0$ its initial state. Then the initial state of the equ... |
Say I have a bunch of regex expressions which are used as filtering rules. (Any special extraction capabilities are unnecessary here, the set of regular expressions I have is only used for filtering down sentences).
Can any pure regex be converted into BNF? (ABNF, EBNF, etc.)
Are there well known algorithms (or existin... |
I was asked by a friend to help installing windows 10 in an acer E3-111-290X that was previously running windows 7, but after installing windows 10 the touchpad stopped working.I've tried several solutions such as synaptics drivers but didn't work.
Anyone with an answer or knowing a better place to get the solution for... |
The paper Feral Concurrency Control:
An Empirical Investigation of Modern Application Integrity uses the term "feral" in a way I have never seen before.
Rails has developed a range of concurrency control strategies,
two of which operate external to the database, at the application
level, which we term feral concur... |
Definition of convex layers can be found at wikipedia.
I was trying to understand this algorithm , which works in O(n log n) time, which is optimal.
In the paper, the author has described two types of deletions, among which
one is direct deletion.
In direct deletions, the author deletes the a point of the previous ... |
I have a box of stickers. It contains $n$ stickers. Each sticker is labelled with a different number from $\mathbb{Z}$.
I have infinite supply of boxes.
Box labelling game: I pick a random sticker and stick it on the box that has largest label smaller than current sticker. If all the currently labelled boxes have lab... |
I wrote an algorithm for integer division. I'm wondering how fast it is asymptotically. I used RAM model myself to asymptotically analyse it, but I found out that:
Elementary CPU instructions like shifting and adding, are not constant as the integers grow arbitrarily large.
So it seems my analysis is wrong. I'd l... |
Are there features in programming languages that allow you to directly access the $k^{th}$ bit of a number. Treating it like an integer.
I'm not talking of using bit shifting to retrieve a number. But directly access the bit at index $i$ of a number as if it were an array.
I'm looking at this feature to replace shiftin... |
I'm creating a timetable generator using GA's, and I'm stuck in the crossover part.
Each generation, I just basically copy the best individuals (the 50% fittest individuals inside the population), and perform my crossover operator between them.
I'm using a 2 point crossover. I represent all my TT courses as a List. E... |
In Alloy Tutorial they denote some reflexive transitive closure with Kleene star saying that they admit zero or more elements at that position.
// File system is connected
fact {
FSObject in Root.*contents
}
In Alloy, in can be read as "subset of" (among other things). The operator "*" denotes reflexive tr... |
How do we classify formal systems' (propositional logic, first-order logic, second-order logic, higher-order logic, Hoare logic and type theory) expressivity?
In the same way that grammars (CSG, CFG, ...), languages (CSL, tree-adjoining language, ...) and abstract machines (Turing machine, ...) 'fit' into the Type 0-... |
We know that for some online problems, algorithms can decrease their competitive ratio greatly if they are allowed to change some of their past decisions (see http://epubs.siam.org/doi/pdf/10.1137/1.9781611973402.35).
I wonder if there are instances of online problems such that the competitive ratio does not decrease e... |
I'm reading this well-known paper On Universes in Type Theory.
At first I expected something similar to Setω in Agda, but it turns out that it's even something more general.
It seems to generalize the universe construction from a plain inductive-recursive type to a binder (similar to $\Pi$ and $\Sigma$).
The main quest... |
Can you explain how this expression follows the grammar of the lambda calculus?
$$\lambda x.x((\lambda y.yy)x)x = λx.x(xx)x$$
I am not sure why we have the parentheses following the $.x$ (on both sides of the equation).
|
I am trying to construct an equivalent Deterministic Rabin Automata (DRA) given a Linear Temporal Logic (LTL) Formula. One (expensive) way to do this would be to construct an equivalent Non-deterministic Buchi Automata and then determinize it using Safra's construction.
I am interested to know whether there exist effi... |
I'm revising for an upcoming exam and was wondering if someone could help me with a practice problem:
We model a set of cities and highways as an undirected weighted graph $G = (V,E,l)$, where the vertices $V$ represent cities, edges $E$ represent highways connecting cities, and for every undirected edge $e = \{v, w\}... |
How can I prove that the language $L=\{110^n 10^{n-m} 1^m \mid 1 \le m < n \}$ is not regular using pumping lemma?
I chose the word $w = 110^{2p} 10^{2p-q} 1^q$ to prove the non-regularity.
Then I started partitioning the word to $xyz$ with $|y| \ge 1$, $|xy| \le p$ and for each $i\ge 0$, $xy^iz$:
\begin{align*}
x &=... |
I want to know some stuff about translating compound statements to english:
For the propositions below:
p: You have the flu.
q: You miss the final examination.
r: You pass the course.
I want to know how to translate the following compound proposition to english:
1). p or q or r.
I tried something like this:
You have ... |
I am unsure whether I got the notion behind the pumping length correctly. I know its definition, and just want to make sure that I understood everything correctly.
Suppose we have an automata that accepts $0^{*}1^{*}$. The longest word accepted is $01$ without an iteration, whose length is $2$. So $n=2$, am I correct?
... |
The book "Cracking the Coding Interview , 6th ed." describes the following method to sum the values of all nodes in a balanced binary search tree, and also claims that this method runs in O(n) time.
int sum(Node node) {
if (node == null) {
return 0;
}
return sum(node.left) + node.value + sum(node.ri... |
I am mostly using Modelica, an equation-based simulator.
I assume that block-based simulators like Simulink have their strengths and are better at some tasks, but I am wondering what those are. It seems like everything a block based simulator can do, an equation-based simulator can do nearly as well or better. For exam... |
I know that variables can be categorized in two ways:-
The first way is to classify them into global and local variables based on their scope. When the variable is accessible by all the functions of an instance of a class then it is known as a global variable and when it is accessible only within a block of code in an ... |
How Turing machine can loop forever when input length is always finite?
I think this is a basic doubt but unable to understand how TM go into infinite loop? I think it can make transition forever on empty string. What are the other cases? Can it make without any empty alphabet ?
|
I am reading Exploring Robotic Minds by Prof. Jun Tani, and came across the term subrecursive. Original context:
Another possibility might be to assume subrecursive functions embedded in analogical processes rather than logical operations in FLB that can mimic recurssive operations for finite levels.
FLB is Noam Chom... |
I'm working with a problem that is similar to the box stacking problem that can be solved with a dynamic programming algorithm. I read posts here on SO about it but I have a difficult time understanding the DP approach, and would like some explanation as to how it works. Here's the problem at hand:
Given $X$ objects, ... |
While creating a client for a web API in C#, I ran into a problem regarding null as a value where it would represent two different things:
nothing, e.g. a foo may or may not have a bar
unknown: by default the API response only includes a subset of properties, you have to indicate which additional properties you want. ... |
Wikipedia lists the time complexity of addition as $n$, where $n$ is the number of bits.
Is this a rigid theoretical lower bound? Or is this just the complexity of the current fastest known algorithm. I want to know, because the complexity of addition, underscores all other arithmetic operations and all algorithms whi... |
Why an ARM processor with 32 bits address bus can address 4 billion different bytes?
I know that $2^{32}$ is equal to about 4 billions, but shouldn't it be 4 billion bits and not bytes?
Hence if I want to find how many different words it can address it should be $\frac{2^{32}}{8}$ so I will have the number of bytes, a... |
Bron-Kerbosch is an algorithm to find maximal cliques in a undirected graph. In pseudocode it's the following (taken from wikipedia):
BronKerbosch1(R, P, X):
if P and X are both empty:
report R as a maximal clique
for each vertex v in P:
BronKerbosch1(R ⋃ {v}, P ⋂ N(v), X ⋂ N(v))
P := P \ {v}... |
I have 100 football (soccer) players, each with an "expected score" (higher is better) and price (e.g. 4300 dollars). I want to select the optimal combination of players with the highest combined score (i.e. a fantasy football formation) within a $50,000 budget, where a lineup must consist of the following formation:
... |
I was searching for OpenMP tutorials and I came up a video that showed some simple equations that promotes multiple core hierarchies against single core ones.
The equations used are
Capacitance = Ability to store energy
C=q/V ⇒ q=CV
Work = Moving charge across voltage
W=Vq ⇒ W=CV^2
Power = Work over a period of tim... |
Do nonuniform complexity classes like NP/poly have complete problems?
Are there relativization barriers for separations of nonuniform complexity classes?
One way to interpret the second question is by asking whether there are computable languages A and B with (P/poly)^A = (NP/poly)^A and (P/poly)^B != (NP/poly)^B). Ass... |
Given a string, is it possible to determine which hashing algorithm has produced it, if any?
For example, the MD5 hash of "string" is b45cffe084dd3d20d928bee85e7b0f21.
Is it possible to determine whether the above hash is:
1) Indeed a genuine hash in some hashing algorithm, as opposed to a string of characters that is... |
I know how to convert any Left Linear Grammar (LLG) to Right Linear Grammar (RLG) and vice versa. This can be done as follows:
Reverse "LLG for L" to get "RLG for LR" by changing A → Ba to A → aB
Convert "RLG for LR" directly to "FA for LR"
Reverse "FA for LR" to get "FA for L" by
Change starting state to final st... |
I wonder how to check availability property from CAP theorem.
Consistency check is conceptually easy: if at least once somehow same query at the same time returns different results, then the system may be considered inconsistent (or under some circumstances eventually consistent).
But what about availability? If it tak... |
In the context of rewriting systems, how does strong normalization differ from weak normalization?
|
I've been looking into AI research and I've noticed a nontrivial amount of individuals either received a PhD in math or had advisors who received a PhD in math. Some names include (Ben Goertzel, Marvin Minsky, Jürgen Schmidhuber).
I can see how a formal (arguably more difficult) training in math would help tackle issue... |
Suppose I have a relation R
How many tuples are returned by SQL query
SELECT distinct manager
FROM R
Is it $2$ or $4$ ?
|
I’m a high school senior who's gone through quite the self-introspection the past few months while applying for college, and I have a bit of a dilemma. All my life, I've loved & excelled at mathematics, and wants to study & explore it very much in depth in college. I get very excited when I read up on fields such as nu... |
There are $\log n$ sublists each of size $\frac{n}{\log n}$. Write a recurrence relation for merging these lists into an $n$ element list.
My Approach
Let $m = \log n$. Then,
$T(m) = 2T(m/2) + O(n)$, where $O(n)$ is for merge algorithm.
We get $T(m) = 2T(m/2) + O(2^{m})$.
Now solving we get $T(m) = O(n)$.
But intuiti... |
Why is the word "calculus" used in this context?
The reason I ask is because these usages of "calculus" seem unrelated to the far more popular use of "calculus" in "differential calculus" and "integral calculus" to which something like λ-calculus seems only very distantly related. This word choice seems very misleading... |
One of the main benefits of algorithm analysis, is that it offers asymptotic improvements to complexity as opposed to hardware, which offers only constant improvements. E.g switching to a super computer from a workstation might give a $\times 1,000,000$ increase in speed, but if that supercomputer is running a linear s... |
Given an array of $N$ integers, having the option to increase or decrease its elements, the problem is to find the closest integer arithmetic progression. That corresponds to the smallest difference between the elements of the array and the elements of progression. Thus one needs to minimize the sum of absolute differe... |
I have $m$ points $D = \{x_1, \dots, x_m\}$ with $x_i \in \mathbb{R}^n$. After some preprocessing / building up data structures for those points, I get $T$ queries $y_i \in \mathbb{R}^n$ with $i=1, \dots, T$. Each query comes at a time and independently. The datastructures for the queries should not be modified by the ... |
I wanna ask about Adaptive Neuro Fuzzy Inference System (ANFIS) method. I used clustering to find fuzzy rules and used the mean and deviation standard of each cluster for initialization of the first premise parameters (c and a) of membership function. c is from the mean, and a is from the deviation standard
Now, my pro... |
Given an even $N$, is it possible to procedurally construct a 3-regular graph $G$ with $N$ vertices such that the maximum distance between any pair of vertexes is the minimum possible for that $N$? I know that a cube, for example, is the solution for $N = 8$, but what about other N's?
|
Suppose I want to draw a NFA that doesn't accept a language containing $aba$. Would this work:
|
According to this German Wikipedia article, the time required to merge relations $R$ and $S$ is $\in \mathcal{O}(|R| + |S|)$ if both relations are already sorted.
[Note: You don't really need to read the text and the link jumps right to where the time complexity is stated. But I added a translation of that section to ... |
A cellular automaton consists of a sequence of cells, each with a state, and a globally symmetric transition rule based on the neighbors of a cell. They can be interpreted as graphs where each cell is a node, and each node has an edge to a neighbor.
Is there any field studying that system, but generalized to arbitrary ... |
I am in trouble , I searched a lot about how to solve this kind of questions but I did not get any answers.
I understand how can I know when the sentences is valid and Unsatisfiable in propositional logic, but in FOL I can't.
Can someone help me how can I solve this kind of questions? Because it comes always in the p... |
Suppose that we read a sequence of $n$ numbers, one by one. How to find $k$'th smallest element just with using $O(k)$ cell memory and in linear time ($O(n)$). I think we should save first $k$ terms of sequence and when get the $k+1$'th term, delete a term which we sure that it cannot be the $k$'th smallest element and... |
I'm found this claim in something I was reading and I'm having trouble working out the logic. Can someone help me out?
|
I have an exam and in preparation I found this language. We are supposed to determine where in Chomsky hierarchy it stands. The language is $L=\{a^ib^jc^k : i\leq j\leq k\}$. I can easily build a linear turing machine, that would delete a, b and c for each a and then b and c for each b and if the only thing left, will ... |
I decided to try my hand at solving the knapsack problem.
My idea involved generating $i$ tables, where $i: 1 \le i \lt n$, and each cell of an $i$ table contains one of the possible sums of the objects to fit into the knapsack. The $i$ tables will then be sorted. Then for each of the $k$ numbers to be tested, I'll ru... |
According to https://www.tensorflow.org/tutorials/word2vec/, the standard approach for predicting the next word in a word sequence is maximum likelihood. The predicted next word is the word that maximizes
$$P(w_t|h)=\frac{\exp(\text{score}(w_t,h))}{\sum_{w'}\exp(\text{score}(w',h))}.$$
To me, it seems that the word pre... |
I was hoping someone would be able to help me with this question.
The Maximum Independent Set search problem is, given an undirected graph G, to output an independent set in G of maximum size.
Give a polynomial time algorithm for the Maximum Independent Set search problem which can use an oracle that solves instances o... |
Is the Minimum Steiner Tree problem $NP$-hard even on (2D, unweighted) grid graph ? A proof (for either case) will be very appreciated.
|
I am scanning Wikipedia's DB and retrieving topics (page names, mostly) and their relationships. I want to use it later to create a visual map.
A topic table stores the id and the label of each topic. A relationship table has an id, a weight, and the two ids of both topics it references. There are usually two rows in t... |
The city council would like to place trash bins around the city and has a list of suitable spots (street crossroads, supermarkets etc.) but the number of these spots is greater than the number of available bins. The council's goal is to place the limited number of bins so that the distance from each house to a bin is ... |
So if we have a problem in NP, does that mean that we can create, by definition, a NDTM that always accepts or rejects in polynomial time? The alternative I'm thinking of would be if the NDTM could only be guaranteed to accept in polynomial time. Rejecting could take longer or forever.
|
We have been reading about algorithms for MST, strong-connectivity, routing, etc. in directed graphs.
Also recently people have been doing research for dynamic and fault tolerant algorithms for directed graphs.
But I was wondering if there are any practical applications where the underlining graph network is "Directed"... |
Is there a way to use median-of-medians to find a median in,
simultaneously, O(log n) memory and O(n) comparisons?
The user orlp on this site seems to claim that there is.
Getting O(log n) auxiliary memory seems to be straightforward,
but I have no clue how that can be improved to O(log n) memory.
|
A per, from my understanding, instruction decode is a subcycle of Instruction fetch. Now say I have a three-word instruction to be fetched from memory(1 word opcode and remaining words operand address).
My doubt here is: will fetch cycle makes one memory reference and remaining instruction will be fetched in ID stage o... |
In resolution if we have a set S composed of three clause C1, C2 and C3 and we want to proof that C4 is derivable from S using refutation:
suppose we've resolved C1 and C2 to C5, can we resolve C1 with C5 or C3 or C4 or C2 cause even it has been resolved?
and if we want to conceive an algorithm for that do we have to d... |
I have to design PDA accepting language: set of strings over ∑ {a, b} starting and ending with the same symbol.
From that moment i think good way is to remember only first element because the last one should be the same, but how make push and pop properly to achieve the final state.
|
Please bear with my unhelpful typesetting.
My question is regarding well known FLP paper
Impossibility of Distributed Consensus with One Faulty Process by Fischer, Lynch and Patterson
While discussing Lemma 3, in 4th paragraph, authors make an assumption I am unable to understand.
The assumptions are -
1) There exist... |
In the context of formal grammars, is there a standard terminology to distinguish
words (i.e., finite sequences of letters/tokens) which only contain terminal letters/tokens, and
words which may contain nonterminals?
I prefer to use the term "word", unqualified, to refer to the former, because I am discussing various... |
A little context. First of all gather index in my case contains position to sorted an array. For example for an array
array = [3, 2, 0, 1]
gather index will be
gather_index = [2, 3, 1, 0]
the following operation will produce sorted array
sorted_array[i] = array[gather_index[i]]
I need to do a sort by all pairs of ... |
A cache-aware sorting algorithm sorts an array of size $ 2^{k} $ with each key of size 4 bytes. The size of the cache memory is 128 bytes and algorithm is the combinations of merge sort and insertion sort to exploit the locality of reference for the cache memory (i.e. will use insertion sort when problem size equals c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.