instruction stringlengths 35 29.1k |
|---|
The state elimination algorithm is an algorithm for converting finite automata into regular expressions. It's found in many textbooks, including Sipser's Introduction to the Theory of Computation. However, I can't seem to find any references to who first invented this algorithm.
Does anyone know who invented the state ... |
I think about unary languages $L_k$, where $L_k$ is set of all words which length is the sum of $k$ squares. Formally:
$$L_k=\{a^n\mid n=\sum_{i=1}^k {n_i}^2,\;\;n_i\in\mathbb{N_0}\;(1\le i\le k)\} $$
It is easy to show that $L_1=\{a^{n^2}\mid n\in\mathbb{N_0}\}$ is not regular (e.g. with Pumping-Lemma).
Further, we kn... |
I'm autistic and I think a bit differently. I have superior memory and visual thinking, but I have a problem with converting real thing to abstract. I'd like to model reality processes with Petri nets. But... when I think of cooking meal or using a coffee vendor machine, I see in my head vegetables, kitchen utensils, c... |
In the following example, how does Dijkstra's algorithm find the shortest path?
I think we'll get abedz, while the shortest should be acedz.
|
At the Wikipedia page, the polynomial hierarchy also defines the following:
$\Delta_0^\text{P} = P$, $\Delta_i^\text{P} = \text{P}^{\Sigma_{i-1}^\text{P}}$
However, the only usage of this anywhere else on the page is the following set of inclusions:
$\Pi_i^P \subseteq \Delta_{i+1}^P \subseteq \Pi_{i+1}^P$.
What usage d... |
To my surprise, I recently found out that Windows would fail a large memory allocation even if little of said memory is to actually be used, e.g. even if you don't want the swap, you better not disable it. http://brandonlive.com/2010/02/21/measuring-memory-usage-in-windows-7/ (Basically, in Windows 7, Windows Task Ma... |
The problem I'm facing is the following:
Given a simple undirected graph $G=(V,E)$ and a vertex $u \in V$, answer if $u$ is part of any cycle of $G$.
The algorithm I can think of is to remove an edge from $u$ to one of its neighbours $v$ at a time and ask if there is still a path from $u$ to $v$ in the resulting grap... |
A homework question asks me to a draw a DFA for the regular expression
$((aa^*)^*b)^*$
I'm having trouble with this because I'm not sure how to express the idea of $a$ followed by $0$ or many $a$'s many times, in terms of a DFA.
I would guess it that $(aa^*)^*$ should be the same thing as $\lambda + a^*$ but I'm not s... |
I am working on this problem : Use the pumping lemma to show that the language $\{0^n 1^{n} \mid n ≥ 1\}$ is not regular.
May someone give me some suggestion about how to solve this problem?
|
As in I don't know what is the difference between say the conferences SODA, STOC or FOCS. Measured in terms of such conferences, where would such a result be publishable?
This is not a "technical" question.
I want to understand how importantly does the community view this question if hypothetically someone does this. ... |
I have a problem related to Episode Mining in which I need to find the maximal utility of a episode given its occurrences in an event sequence.But I am presenting the question in a different form so that it's easier to explain.
There is a long string, S, where each of its character have some positive score. Given anoth... |
Is there a way we can write a function for Dijkstra to determine which node to enqueue and which to discard. This is for a navigation solution for people with disabilities where path to stairs may be shorter but not preferable to wheelchair bound individuals. The navigation solution should also support all individuals ... |
ip: 10.5.2.1
subnetmask: 255.255.255.240
{10.5.2.1/28}
what is correct maximum subnetworks ????
what is different between classful subnet and CIDR subnet ???
|
Prove/Disprove: $L_1, L_2 \in RE-R \implies L_1 \cup L_2 \notin R$
My first intuition is "Yes", since we may look at $M_1, M_2$ which accepts $L_1, L_2$, respectively. Then, WLOG there's $w$ such that $M_1$ doesn't halt for, and so the machine $M$ which runs $M_1, M_2$ in parallel, may not halt.
|
I know the basic idea and difference between hard and soft RTOS.
I wanted to know a large scale and specific example of soft RTOS. I read in this site that even LINUX is a soft RTOS.
Is the performance degradation due to non-predictability of the task the main advantage of this OS or are there some more disadvantages?
... |
So what happens if we're transfering lots of 8 bit words in a 32 bit bus? Does each bus cycle only transfers 8 bit at the time, wasting the other 24 lines of the bus? Or does it transfer 4 words in each bus cycle?
|
My notes on MESI state that there are a few courses of action when we experience a local cache miss on read, depending on the global state of the data (whether other copies already exist, and the state they exist in)
I'm having some trouble understanding how we know the state of the data when we miss on a read.
As fa... |
PATH = {(X,R,S,T) | exists an x in S that is admissible}
Where R is a relation of X x X x X, S is a unary relation of X and T is a unary relation of X aswell.
An x element of X is admissible if it is in T or if there is two elements y z both admissibles, where (x,y,z) is in R.
So, is there any logspace reduction from C... |
Whenever deterministic context-free languages are discussed, the webpage/textbook would always give a side note saying that although deterministic context-free languages are never ambiguous, unambiguous context-free languages may still be nondeterministic.
However, they never give an example. Is there a short, simple e... |
I looked at here for getting an intuition about F-algebra, but I am still left with some questions.
Suppose I have a group signature as $\Sigma= (* : X \times X \rightarrow X, \thicksim: X \rightarrow X , e : \rightarrow X)$, with the following axioms in a unuiversal algebraic way:
$x ∗ (y ∗ z) = (x ∗ y) ∗ z$ (Asso... |
I'm wondering if it's worth it to pursue some deep study into calculus. Already, I have some familiarity with derivatives, limits, and integrals. Though, I also have a graphing calculator that's helped me in high school and college a algebra.
|
This is a copy of my post at Mathexchange.com, as my question is still not fully answered and I really wanna find a solution to this. Feel free to refer to there for useful comments and partial solutions:
https://math.stackexchange.com/questions/1294224/number-of-ways-to-connect-sets-of-k-dots-in-a-perfect-n-gon
Let $Q... |
This question might be really basic but every source seems to skip over a couple of steps neither of which seem trivial to me. It would be great if someone could explain them!
In the analysis of Ford-Fulkerson I understand why the while loop runs no more than $val(f^*)$ times but I don't see why it only takes $O(E)$ ti... |
Consider a simple random walk on an undirected graph and let $H_{ij}$ be the hitting time from $i$ to $j$. How much bigger can
$$ H_{\rm max} = \max_{i,j} H_{ij}, $$ be compared to
$$ H_{\rm ave} = \frac{1}{n^2} \sum_{i=1}^n \sum_{j=1}^n H_{ij}.$$ For all the examples I can think of, these two quantities are of rough... |
My professor's notes on system virtualization refer a lot to the term "trap", but don't seem to explicitly define it. I can't seem to find any definition on Google either, other than a small article on "trap-and-emulate".
From context I sort of understand that trapping is 'catching' any operations that the virtual OS p... |
According to my lecture notes, adding a red child to a red node with a black sibling in a red-black tree, is equivalent to changing a 3-node into a 4-node in a 2-3-4 tree. I've built several red-black trees with different values to try to get to this situation, but I never seem to get to the situation where I have a re... |
In database transactions theory, what is the difference between a strict schedule and a schedule that is merely secured against cascade aborts?
Could you give an example of a schedule that is secured against cascade aborts but is not strict?
I found these slides that give definitions but it's still not clear to me whe... |
Imagine that we have a base class number that has implemented a integer and floats, but not complex numbers and that we would like to extend it to also support complex numbers:
;; this is from the number implementation
(defgeneric add ((a number) (b number))
(:documentation "Adds two numbers together."))
(defmethod ... |
My professor told us to try and remember the equation used for an upcoming exam, however I'm struggling to fit the equation into the question:
https://i.stack.imgur.com/RoPYG.png
(need a high reputation to post image)
From the above information can anyone tell me how I'm supposed to slot in values in order to work out ... |
Does the existence of undecidable problems immediately imply the non-predictability of physical systems? Let us consider the halting problem, first we construct a physical UTM, say using the usual circuit based construction. Then there can be no decidable physical theory which can determine, given any input setting of ... |
A linear bounded automaton is a Turing machine that is restricted by memory.
How would augmenting the tape alphabet of a linear bounded automaton
increase its memory? While the memory that the automata can
use is as size of the input?
|
S → AB | C
A → aAb | ab
B → cBd | cd
C → aCd | aDd
D → bDc | bc
How can I prove that this language is regular or not? I need your help. It also has two leftmost derivations. Does this help me to prove it?
|
For the definition of polynomial hierarchy:
$x \in L \Leftrightarrow \exists u_1 \in \{0, 1\}^{q(|x|)}\forall u_2 \in \{0, 1\}^{q(|x|)} \cdots Q_i u_i \in \{0, 1\}^{q(|x|)} M(x, u_1, \ldots, u_i) = 1$
What does the notation of $M(x, u_1, \ldots, u_i)$ mean? The definition used for $\mathcal{NP}$ is $M(x, \alpha)$ where... |
I've been trying to efficiently solve this problem : given a integer p > 0 and a directed graph whose nodes are 0, ..., N-1, enumerate (not simply count) all the paths (not necessarily elementary) from a node i to a node j of length p. For instance, i->j is of length 2 if the edge i->j exists, i->k->j is of length 3, e... |
I'm a bit confused on how to use homomorphims
to prove irregularity or to prove that a language is not context free.
This is what I'm currently thinking:
Example 1:
Let $L = \{ a^{i}b^{j}c^{k} : i = j = k \}$ and
$h: \{a, b, c\} \rightarrow \{a, b, \epsilon\}$ be defined as follows:
$$h(x) = \begin{cases} \epsilon &... |
How can an maximum flow algorithm for directed graphs, i.e. Edmond-Karp, be adapted to compute a minimum $s$-$t$ cut in an undirected graph ?
I've seen it stated that one can apply a maximum flow algorithm to compute a minimum $s$-$t$ cut in an undirected graph. However, trying to adapt the Edmond-Karp algorithm this d... |
I have a homework assignment in which I am required to determine if
$$L = \{ \langle M,x,y \rangle : x\in L(M),y\notin L(M) \}$$
is in $$R,RE-R,coRE-R \text{ or } \overline{RE \cup coRE}$$
Now, my instinct tells me that $L_1 \in \overline{RE \cup coRE}$, because how can you show that a machine $M$ does not recognize a ... |
I've read an article recently where Stephen Hawking claims that in hundred years there will be computers, which are more intelligent than humans.
Link: http://www.computerworld.com/article/2922442/robotics/stephen-hawking-fears-robots-could-take-over-in-100-years.html
Assuming that would be the case at someday. Wouldn'... |
When using Ford-Fulkerson to find max-flow between s and t, the exact choice of flow-graph depends on which paths are found.
However, if you then use the left-over residual graph to produce a min-cut (by flood-filling outward from s along any edges or reverse edges with left-over capacity), it seems the same cut is obt... |
I've got the following problem.
I've a graph $G=(V,E)$ as in the picture and I have to calculate the optimal path from $R$ to $S$.
The optimal path has to maximize the number of least cost arcs.
In the example:
R->B->S is the least cost path but it's not the optimal.
R->-A->D->S costs less than R->A->C->E->S , but the... |
In data flow analysis, is GEN statement where a variable is used and KILL statement is where variable is redefined?
|
Consider the following definition of 3-friends:
person 1 is 3-friends with person 2 if they are direct friends or person 1 is friends with a friend of person 2 or person 1 is friends with a friend of a friend of person 2.
In graph-theoretical terms, person 1 is a 3-friend with another person 2 if there is a path of le... |
I'm trying to find the name of this problem, and with it a reasonable algorithmic solution.
Setup: There are $n$ items with weights $w_1,\dots,w_n$, and $m<n$ buckets with target weights $a_1,\dots,a_m$, satisfying $\sum_iw_i=\sum_ja_j=1$. The goal is to find an assignment $f:\{1,\dots,n\}\to\{1,\dots,m\}$ of the weig... |
I am considering the following heuristic for the graph coloring problem (i.e. to color a graph $G$ using a minimal number of colors so that no two adjacent vertices have the same color):
Explore the vertices of $G$ in the order that they would be explored by a BFS search (with arbitrary starting vertex) and assign eac... |
I have the following problem to solve:
Show that if G is a context-free grammar and Σ consists of just one terminal symbol, then L(G) is regular.
It is problem 4.26 from the book "Formal models of computation" by Arthur Fleck.
Do you have any ideas or solutions?
|
Suppose $G= (V,E)$ is a directed graph with weights on the edges. I would like to check if $G$ has the following property: if $C \subset E$ is the set of edges in a cycle of length at least $3$, then the weight of at least one of the edges in $C$ is zero. Can this be done in polynomial time?
|
Good day.
Subset sum selection problem is NP-hard.
I trying to solve following problem:
Input: a grid NxN and subset size K and radius R. Every entry in grid contains a value.
Solution: subset of size K, so that sum of all selected items and items within radius(when selected items is in center) is maximal.
Here exampl... |
What is the term in programming language creation that is the rationale for symbol reuse? Though potentially confused with overloading, it is not so much the application of symbol reuse, but the logical result of a limited vocabulary in the world of common symbols.
I seem to recall running in to the term when reading ... |
The context free languages can be obtained as the closure of the Dyck language under the cone operations. The Dyck language $D_2$ is a deterministic context free language, and the cone operations correspond to the operations that can be implemented by nondeterministic finite state transducers. This result becomes less ... |
So I have a program that enables the user to draw 2D-objects. To rotate them, to move them, and so on, all in 2D.
I want to expand the 2D objects and functions to 3D which I don't expect to be too difficult, but still difficult enough that I don't want to reinvent the wheel.
What is the process of migrating 2D to 3D a... |
There are lots of definitions online about what a Context-Free Grammar is, but nothing I find is satisfying my primary trouble:
What context is it free of?
To investigate, I Googled "context sensitive grammar" but I still failed to find what the "context" was all about.
Can someone please explain what the context term ... |
Given a sequence $x \in \{ 1,2,3...,\vert \Sigma \vert \}^*$ one wants to create a sketch of it say $s(x)$ of size $\frac{2c}{3}k (ln^2 k)$ bits. And that seems to be achieved as follows,
pick at random 2k-wise independent hash functions,
$h : [n \vert \Sigma\vert] \rightarrow [(k/3)ln (k)$
$h^0 : [n \vert \Sigma\ve... |
In Constraint programming we have Variables and their Domains and then all the constraints, but if you at the concept of a domain of a variable it is nothing but another type of constraint, you are saying that this variable can take all these values.
Is there any particular reason why domain is defined as a different c... |
I'm not sure if this is the right place to ask, or what the right terminology to use is. The problem I have is this:
I have a vector for example:
v = [1,4,5,6,3,1,4,5,6,7,...7]
and I have a set of other vectors for example:
a1 = [0,0,0,0,0,1,2,3,0,0,...0]
a2 = [0,0,0,0,1,2,5,0,0,0,...0]
a3 = [0,0,0,2,2,3,0,0,0,0,...0]
... |
I'm studying probabilistic analysis in real time network. We have learned how many attempts in average are required to transmit a packet when there is no error on the feedback channel.
With no error in the feedback
$p$ Probability packet not send
$1-p$ Probability packet send
$i$ transmission attempts
$Pr(n=i) = p^{i... |
Whats is the name for a complexity like $n^{\log \log n}$ ? Is this exactly subexponential, or less than that ?
|
I am new to CFG's, Can someone give me tips in creating CFG that generates some language
For example
$L =\{ w v w^R \mid v,w\in \{a,b\}^*\wedge|v| \text{ is even } \}$, where $w^R$ is the reverse of
string $w$.
I'm having trouble understanding the language .. I want to build DFA to convert it
|
I know when I compile my C program to machine code it gets compiled into something that specific computer can understand
But I thought computers can only understand 1's and 0's (high/low) so why doesn't my program look like a bunch of strange symbols and not 1's and 0's?
ie: "UHâÂHÉÏHç=7∞Ë1…âE¸â»HɃ]√êˇ%¶LçïASˇ%ÖêhÈÊ"
... |
I have a set of points on the two-dimensional plane, but their locations are not given to me. I am given the distance between some pairs of the points. However, I only know these differences for some pairs: I don't have every pairwise distance between the objects. I would like an algorithm to output the locations of ... |
I'm going to apologize in advance for this wall of text, and if you're looking for me to ask technical questions about the field, that isn't what this post is going to be. So this Fall I'm going to be starting my degree for computer science. To be honest I'm not sure what to expect. I've done research and some people s... |
On the wikipedia page here it describes pretty well the CDCL algorithm (and it seems the pictures were taken from slides created by Sharad Malik at Princeton). However when describing how to backtrack all it says is "to the appropriate point". MiniSAT also uses a variant of the CDCL algorithm so I read this paper. What... |
In number theory, an integer q is called a quadratic residue modulo n if it is congruent to a perfect square modulo n; i.e., if there exists an integer x such that:
$$
x^2\equiv q \pmod{n}.
$$Otherwise, q is called a quadratic nonresidue modulo n.
Problem Definition: Given a constant c, is there a positive integer... |
The problem is quite simple: backups are done at regular time intervals (with possible but rare exceptions). The storage however is not unlimited, and only a certain number of backups can be stored, latest ones being more valuable, and desired to be more frequent than old ones.
For example, there could be backups for e... |
λ-calculus an ideal mathematical model in which to interpret programs. A program can be interpreted as a lambda term, and the term can have or not have a normal form. What role the terms without normal form play when analyzing programs?
|
I am trying to solve the following question
There's an algorithm with time complexity $\sim c \cdot n^3$. Suppose
there's another computer which is 10 times faster. How much bigger can
our $n$ be to be solved in the same time?
My answer so far is $\sqrt[3]{10}$.
$n^3$ can be 10 times bigger, so I have to multiply... |
Consider the Closest String problem:
Input: Strings $s_1, \dots, s_m \in \Sigma^n$ and $k \in \mathbb{N}$.
Question: Is there $s \in \Sigma^n$ for which $d_H(s, s_i) \leq k$
for all $i \in [1..m]$?
We denote with $d_H$ the Hamming distance,
a string metric.
Since this is an NP-hard problem, no efficient algorithm... |
In automata theory books, I always studied examples where a state transition from A to B occurs due to a single event $e$ (say, receiving a particular character). Is it theoretically possible that a transition could be triggered by a set of events, such as receiving any one of some set of characters?
|
I'm asked to choose a DFA and convert it to NFA and then convert it to Turing machine... I have done the first two parts as follows:
DFA:
--> NFA:
--> Turing machine:
???
I haven't found any explanation/tutorial on how to do this. So, a final solution containing a state diagram with an explanation on what steps we... |
I'm not sure if this is the right place to ask but I had this idea. Since the cloud can be used for storing memory, would it be possible to use it for RAM too?
|
Is there anything known about mixing time of Markov chains for three particle systems?
It is proved here
http://www.ams.org/journals/tran/2005-357-08/S0002-9947-05-03610-X/S0002-9947-05-03610-X.pdf
that the mixing time of an exclusion process is O(n). We can think if a exclusion process, a Markov chain on permutations... |
I would like to know what 'heuristics' actually means in artificial intelligence. For example, I am reading a paper by Engelbrecht on the convergence analysis of the particles of the algorithm. The section where the author discusses the mathematical reasons why the particles behave the way they do was entitled 'heurist... |
I have a problem with this exercise:
Let G be the following ambiguous grammar for the λ-calculus:
E → v | λv.E | EE | (E)
where E is the single non-terminal symbol, λv.E represents abstraction w.r.t. the variable v in E, and EE represents application.
Define an LL(1) grammar G′ such that L(G′) = L(G) and the ambigui... |
I have a stack of m stones of different Diameter.
stack = [5,4,9,20,1]
And a Well that is of depth n with varying diameter at different depths .
wellDiameters = [7,9,1,25,6,7]
EDIT:
Only one stone from the top of stack can be taken and after placing that we can take the next stone.
Each level can fit only one sto... |
Lets imagine we have a satisfiable formula $F(A_0, A_1,...A_k,S_0,...,S_n)$ The problem to solve is "Is there an assignment for variables $(S_0,...,S_n)$ which will make F unsatisfiable?". One way of solving is to find all solutions for F in terms of variables $S_0,...,S_n$ and if the count is < $2^n$, the missing solu... |
In number theory, solving a Quadratic Diophantine equation (a, b, c constants)
$$
a*x^2+b*y= c
$$ is an NP-Complete problem. Even for a=1, the problem remains NP-Complete.
The solution (x, y) are positive integers.
Query: What are the conditions on values of constants for which solving the problem is Polynomially f... |
Can somebody define what is a fuzzy lattice? How to compute lattice of a fuzzy number?
Please try to be generic and basic in the explanation as I'm a beginner in studying fuzzy theory and soft computing.
|
I want to write up a shortest as well as optimal path program for indoor navigation for people with disabilities. For the initial part of the assignment i wish to test my program through graph traversal. My application is supposed to take in a user group then based on that give the appropriate path. The edges are suppo... |
Given a subset P of all the possible permutations of a fixed set of elements, is there a non-exponential or optimized algorithm for computing the smallest composition of P that yields the identity permutation?
|
I'm currently reading through x86 Assembly Language and C Fundamentals and came across this statement in the second chapter of the book:
If the instruction required is not available in the cache, then a cache miss occurs, necessitating a fetch from main memory. This is referred to as a pipeline stall and delays proce... |
Find the 10 top most occurring strings in a huge array of Strings.
Since the array is huge, it is not possible to load it in memory completely.
My idea is to parse the arrays one by one and put the strings in a hash table with string as key and occurrence count as value. But this would take too much memory.
Is there an... |
Consider the following language: $$ L = \{ \langle M \rangle \ |\ M \text { accepts } w \text { whenever it accepts } w^R \}$$
I am trying to understand the following proof that this language $L$ is undecidable.
The proof proceeds by contradiction, by reducing to $L$ the language $A_{TM}=\{\langle M,w \rangle\mid M\te... |
This is text of an exercise I am working on:
Given a binary encoding scheme for the set of the deterministic Turing machines with alphabet $\{0,1\}$ and a bijective and computable function $f: \{0,1\}^* \rightarrow \{0,1\}^*$, prove that the language
$$L=\{f(x)\mid \mbox{$x$ is an encoding of a machine that accepts $... |
In computer organization and architecture, what is the name of the state when data must be read from hard drive? I have tried to search it on StackOverflow and textbooks but could not find the answer.
|
Given a binary tree, construct the set of nodes whose sum is maximum subject to the restriction: if a node is included, its parent and children must be excluded, but grandchildren, etc. may be included.
My intuition tells me dynamic programming (and possibly two-coloring) should be involved, but not sure where to start... |
Computer science is a science and as a science each thesis can be refutable. So, why there is no "major" counter-thesis?
After all, Einstein was a well known "genius" and has lived a long life and he has got many opponents. Why isn't it the same case for Turing?
|
I'm creating an application where client connects to server, retrieves some data and after that connection is closed.
He spends some time changing that data and then connects again to the server sends it back and connection is closed.
At server data is compared with original and saved to database if it validates.
I... |
Is there a fast algorithm to compute dominator tree for acyclic graphs?
The Lengauer-Tarjan Algorithm is a fast algorithm for general flowgraphs. But if a graph is acyclic, do we have a faster algorithm?
|
This diagram is on Wikipedia:
On left side we see NP-hard intersecting NP class (assuming P!=NP), on right side we see NP-hard including NP (assuming P=NP)
Where should I place the following problems (assume decisional part)?
Traveling salesman
Subset sum problem
Sorting a list (any problem known to be solvable and ... |
I'm doing revision for a module on programming language semantics and
I'm having trouble understanding the introduction of side-effects in
expressions.
We assume a standard syntax for arithmetic expression, with the four
usual operations, plus the unary prefix and postfix operator
$\texttt{++}$, defined as in language ... |
What is the best upper bound that is known for the number of hamiltonian cycles on a $n \times n $ grid graph?
I did some searching and found that the number of hamiltonian cycles on a planar graph with $n$ vertices is $O(\sqrt[4]{30}^n)$ where $n$ is the number of vertices in the graph. For grid graphs, I just found e... |
Consider the following language:
$$L = \{ \langle M \rangle \ |\ M \text { is a TM that decides the halting problem} \}$$
determine whether or not the language is in $R$.
Now, from my understanding an $\langle M \rangle \in L$ doesn't necessarily returns the right answer but rather halts for every $\langle P, x \ran... |
Here is a problem I am trying to solve:
The bin packing decision problem is defined as follows: given an unlimited number of
bins, each of capacity equal to $1$, and $n$ objects with sizes $s_1$, $s_2$, $\dots$, $s_n$ ($0 < s_i ≤ 1$), do the objects fit in $k$ bins (where $k$ is a given
integer)? The bin packing o... |
in a network architecture can two layers in different machines communicate between each other using some protocols, without having to go through the layers below, if yes how briefly ?
|
The Problem: A CPU produces the following sequence of read addresses in hex.
Suppose the cache is empty to begin with and assuming an LRU replacement, determine whether each address produces a hit or miss for a) direct mapped cache b) fully associative cache c) two way set associative cache.
20 0010 0000
04 0000 01... |
This is a very straightforward question, and I apologize if it is a repeat. All I want to know is if there is any general method for determining how efficient the most efficient algorithm for some problem is, in terms of time. Barring that, are there any specific methods used that have accomplished the same for a parti... |
When considering machine models of computation, the Chomsky hierarchy is normally characterised by (in order), finite automata, push-down automata, linear bound automata and Turing Machines.
For the first and last levels1 (regular languages and recursively enumerable languages), it makes no difference to the power of t... |
A coordinator is used to sychronise the usage of resources in a distributed system.
The Bully Algorithm is a method to elect a new coordinator in a distributed system when the current coordinator disappears for some reason.
I am just wondering what happens when two processes realise the demise of the coordinator simul... |
Question
At the very end of (most) proofs of RSA's correctness we have something like
$$m^{ed}\equiv m\pmod p$$
$$m^{ed}\equiv m\pmod q$$
Therefore by the Chinese Remainder Theorem (CRT)
$$m^{ed}\equiv m\pmod n$$
where $n=pq$, $ed\equiv 1\pmod{\phi(n)}$ and $m<n$
It's not obvious to me what work the CRT is doing here. ... |
I have the following problem.
Let $P$ and $Q$ be two ordered sequences of time instants. $[p_0,p_1,\ldots,p_n]$ and $[q_0,q_1,\ldots,q_m]$ are the elements of $P$ and $Q$ respectively.
A first constraint on the elements of those sequences is $p_i \in \mathcal{R}$ and $p_i < p_{i+1}$ (the same applies for $q_i$)
From $... |
I have a range-query problem to solve. This problem requires not only range queries and update, but also insert or delete an element of the array. There is a series of operations that must be done in the order that they appear in the input. The operations can be one of the following: update a position of the array with... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.