instruction stringlengths 35 29.1k |
|---|
Both spiking neural networks created with the Neural Engineering Framework (NEF) and Recurrent Neural Networks (RNNs) can be connected recurrently to exhibit neural dynamics. What is the difference between the set of dynamics that they can approximate and/or exhibit?
|
Chapter 7 of The Haskell Road to Logic Math and Programming discusses induction and recursion.
Haskell is strongly typed and we can define the natural numbers
data Natural = Z | S Natural
deriving (Eq, Show)
and we can try to construct addition
plus m Z = m
plus m (S n) = S (plus m n)
Can we write a program that pr... |
I am trying to understand how to use inclusion/exclusion in algorithm.
I think I understand the basic example of what the inclusion/exclusion principle is: the principle is in general illustrated using a venn diagram and the objective is counting the elements of the sets. The principle says that ou first over-count th... |
My previous question Can we prove that $1 + 2 + \dots + n = \frac{n(n+1)}{2}$ using a computer program? has a problem that it tries to cover too much ground. Here is a related question motivated by the comments.
In Lisp and certain other languages code and data are put on equal footing. Lisp is certainly strong enou... |
I do not know if this problems exists with a different name, if it is, I could not find it.
The problem is this:
Given a set $S$ of $n$ points in $\mathbb{Z}^2$, is there a subset $A\subset S$ such that the points of $A$ sum up to $(0,0)$?
If we restrict in $\mathbb{Z}$ this is the classic Subset-Sum problem. Furthe... |
Suppose we have a forest. The leaves have labels. Let's suppose all labels are natural numbers. We would like the forest to support two operations:
rebasing that replaces a leaf on first tree with the second tree.
void rebase(node leaf, node root)
leaf search by the (possibly internal) node of any tree and label we'd ... |
I'm in a Formal languages class and have a grammar quiz coming up. I'm assuming something like this will appear.
Consider the alphabet $\Sigma$ = {a, b, c}. Construct a grammar that generates the language $L = \{bab^nabc^na^p \mid n ≥ 0, p ≥ 1\}$. Assume that the start variable is $S$.
|
How to check if exist pair $(a,b)$ of numbers in BST such that $|a-b| = d$, where $d$ is given.
Example:
contain of tree: $1, 4, 5, 3, 8, 45, 532$
$d=5$,
answer: $yes$, there is pair $(5,8)$
$d=52$
answer: $no$.
I can solve it when number are in array - then I sort them, and in linear time I can find that pair. Never... |
I'm interested in the time complexity of the following problem:
Given an undirected planar graph $G=(V,E)$ and a weight function $w:E \rightarrow \mathbb{Z}$ (so weights can be negative, too), color the vertices in such a way that the sum of the weights of the monochromatic edges (i.e. those between same color vertices... |
Consider the following set:
$S := \left\{\frac{a}{b} \colon a \in \{1,\ldots,A\}, b \in \{1,\ldots,B\} \right\}$
$S$ is the set of all rational numbers that can be represented by two integers $a$ and $b$ that are bounded by $A \geq 1$ and $B \geq 1$. For the sake of simplicity, we can also think of $S$ as a multiset su... |
When programming with high level languages like Python or Matlab, it is always better to model the problem such as the solution is some kind of vector or matrix multiplication, to avoid loops. But this vector multiplication will itself take each elements from both arrays and multiply them so basically there must be som... |
If $B \in NL$ and there exists a Karp reduction (polynomial-time many-one reduction) from $A$ to $B$, then $A \in NL$.
Prove that the above claim is correct, incorrect, or equivalent to an open question.
Trying to solve this, I was pretty sure that the statement is either incorrect, or at least equivalent to an ope... |
The standard search problem studied in AI contains:
An initial state $A$;
A final (goal) state $Z$;
A set of actions that can change the state; each action takes as input a certain state and returns another state.
A solution to such a problem is a sequence of actions starting at $A$ and ending at $Z$.
I am interested... |
I'm currently researching various fusion methods in a multi-modal (video, audio, identity, user position and gesture) human-computer interaction environment (think in terms of a smart-home system). What is the current state of the art in this field and what fusion methods do they use?
The most recent publication I foun... |
In lots of textbooks and papers, authors often state: compiler emits ...
I want to know why they prefer to use emit? (not return, not produce)
Does this have anything to do with the emitter of a compiler?
thanks
|
I am new to automata, and I have been given a brief introduction to regular expressions only yesterday. I have read the various rules which to define a regular expression. But I am unable to differentiate between regular expressions and grammar of a language( I have not been taught the grammar for regular expressions).... |
I am looking for an algorithm that fills a region with one color, but the edge of the region is not completely closed (i.e. one or more gaps are being left). The result is like the use of the Paint Bucket Tool with Gap Size option in Adobe Flash. We can assume that the input of the algorithm has to specify the largest ... |
I understand most concepts regard a resource allocation graph but I see that some resources have more dots (not sure what they are actually referred to) in them than others such as the example below, R1 and R3 have one dot, R2 has two dots and R4 has three dots. I cannot find anything online that explains this so I wou... |
I have an assignment based on operating systems and the question is divided into two sub-questions.
The first is: Prove any seating arrangement of lefties and righties, with at least one of each avoiding deadlock.
The second: Prove any seating arrangement of lefties and righties with at least one of each avoiding sta... |
I have this assignment question but I am a bit unsure how to go about answering it. The question is as follows and accompanied by the image below:
Three processes are competing for six resources labelled A to F as shown
below.
Using a resource allocation graph, show the possibility of a deadlock in
the implementation... |
I've read that in RISC architecture most arithmetic instructions have two "versions":
one that modifies the flags after calculations
one that doesn't modify any flags.
My question is: why is it so?
|
I have this exercise and I really don't know how to complete it:
Prove that for all finite sets S of Turing Machines it is decidable
whether or not given any two Turing Machines M1 and M2 in S they
recognize the same language, that is, L(M1)=L(M2)
I know that the problem of equivalence of languages is undecidable in g... |
I recently learnt that a recursive function is also referred to as a circular function.
See, the recursive function cannot be a circular function because even if there is a call to function itself, it does not happen indefinitely. There is always a base case (or condition) from where the function is supposed to exit in... |
I need to handle Unix signals in a single-threaded application with the following goals:
Signals doesn't mask on receive (thus, the signal handler must be reentrant).
I am not allowed to lose signal data (thus, if a new signal comes before the handler of the previous returned, it also must be handled correctly).
I ha... |
There is a problem I don't know the answer too.
The 3 approximation for the bottleneck TSP that involves first getting the MST.
I have not been able to come up with the right "shortcut" method so far.
To be more specific.
The problem comes from Cormen's Introduction to Algorithms 3rd edition . The problem is
In the b... |
There are m variable in a grammar. The number of productions after removal of unit productions in the worst case is ,(Assume there are no null productions)
(a) O(m)
(b) O($m^2$)
(c) O($k^m$)
(d) O($2^m$)
My attempt:
He asked about number of total production remains in the minimized grammar ,
so , if the there is no n... |
I have a problem with classifying certain CPUs to the proper classes of Flynn's Taxonomy.
1. Zilog Z80
According to this article on Sega Retro, Z80 has limited abilities to be classified as SIMD:
a limited ability for SIMD (Single Instruction, Multiple Data) with instructions to perform copy, compare, input, and outpu... |
Suppose I have an alphabet of n symbols. I can efficiently encode them with $\lceil \log_2n\rceil$-bits strings. For instance if n=8:
A: 0 0 0
B: 0 0 1
C: 0 1 0
D: 0 1 1
E: 1 0 0
F: 1 0 1
G: 1 1 0
H: 1 1 1
Now I have the additional constraint that each column must contain at most p bits set to 1. For instance for p=2... |
I came across a very peculiar recurrence relation :
$\sqrt {T(n)} = \sqrt {T(n-1)} + 2 \sqrt {T(n-2)} $
with initial values $T(0) = T(1) = 1$
Any helps on how to find it
|
I'm reading Microsoft's white paper "Round-Based Public Transit Routing" (the RAPTOR algorithm). In this algorithm, there are some definitions that I don't understand:
About trip:
trip represents a sequence of stops a specific vehicle (train, bus,
subway, . . . ) visits along a line
About route:
Each route consist... |
For example, if the computer has 10111100 stored on one particular byte of RAM, how does the computer know to interpret this byte as an integer, ASCII character, or something else? Is type data stored in an adjacent byte? (I don't think this would be the case as this would result in using twice the amount of space for ... |
Hello people, I'm trying to convert this DFA to RE using the Brzozowski Algebraic Method.
(DFA created with JFlap)
My Attempt
Write down equations
R1 = bR1 + aR2 + ɛ
R2 = bR2 + aR3
R3 = bR2 + aR1
Eliminate equal Rx's from RHS
R1 = b*aR2 + b*
R2 = b*aR3
New equations
R1 = b*aR2 + b*
R2 = b*aR3
R3 = bR2 + aR1... |
I feel like there should be a known algorithm to the following problem, but I am short of ideas how to construct or search for it.
Suppose as an input you have a list of two-dimensional data points (xi, yi). Your goal is to "simplify" this data by providing an output that is equivalent to the input, but grouped togethe... |
I need some help understanding the implementation of the one-writer many-readers problem shown below as I am new to this concept:
I have a rough idea that there will be starvation/deadlock among the readers as there is one writer that multiple readers are trying to access at once. Can anyone please provide some furthe... |
I'm having trouble understanding how to calculate effective access time, hit ratios and cache access times. I'm unfamiliar with the concepts and would love help, or an explanation on how to solve this problem:
Consider a memory system with a main memory of 16 MB and a cache memory of 8,192 bytes. The cache cost is 0.0... |
In a distributed system, how atomic operations are done when network connections inherently have the Two Generals problem?
Does atomicity have a different meaning in this context?
|
We have a Fibonacci heap with $N$ unique elements we want to make $O(N)$ order statistic queries (e.g., what is the element number 7 in this collection if it was sorted). Moreover, we know that the order statistic queries would be made in order (e.g., for $O(N)$ queries: what is elements number $1,3,5,\ldots,N$) .
How ... |
To show that a problem is polynomial-time solvable, an often-successful technique is to reduce it to 2SAT (that is the problem of deciding satisfiability of CNF formulas with every clause containing at most 2 literals).
On the other hand, I never seem to have success with reducing problems to Horn SAT (that is the prob... |
I'm guessing I could replace the words "hard drive" with "random access medium" but let's be more specific here. Also for the sake of this question, let's not consider SSDs. Just plain old hard-drives with heads and magnetic discs.
I'd guess that the hard drive doesn't care about things as bytes and receives instructi... |
Consider an ordinary binary min-heap data structure with n elements supporting
the instructions INSERT and EXTRACT-MIN in O($\lg n)$ worst-case time. Give a
potential function $\Phi$ such that the amortized cost of INSERT is $O(\lg n)$ and the amortized cost of EXTRACT-MIN is $O(1)$.
I try to solve it, but I got in ... |
I have two sets $X$ and $Y$ of 2-dimensional points. The points are floating point numbers. The objective is to sort them in such way that sum of differences in distances of consecutive sorted points is minimal.
I tried to solve this problem by localisation (dividing the plane by smaller grids of sorted points) and the... |
A lot of "famous" undecidable problems are nonetheless at least semidecidable, with their complement being undecidable. One example above all can be the halting problem and its complement.
However, can anybody give me an example in which both a problem and its complement are undecidable and not semidecidable? I thought... |
Long time lurker, first time poster. The book I am reading is William Stalling's "Operating Systems: Internals and Design Principles" Seventh Edition.
Stalling's definition of hit ratio according to the book is thus: "the hit ratio is defined as the fraction of all memory accesses that are found in the faster memory."
... |
I came across a question to create a regular expression to check whether there are even number of b's in a string of language {a,b}. The expression I came up with is (a+ba*b)*. However I found the solution online to be a*(ba*ba*). Is there any difference? If any where?
Also I know that (a+b)* is equivalent to (a*b*)*. ... |
Apparently, ReDos attacks exploit characteristics of some (otherwise useful) regular expressions ... essentially causing an explosion of possible paths through the graph defined by the NFA.
Is it possible to avoid such problems by writing an equivalent 'non-evil' regex? If not (thus, the grammar can't be handled in pr... |
I found a question:
Let a two-way set-associative cache of 4 memory blocks, each block containing one word.
What is the number of misses and hits considering the following sequence of block addresses: 0, 8, 0, 6, 8 ?
a) 4 misses and 1 hit
b) 3 misses and 2 hits
c) 1 miss and 4 hits
d) 2 misses and 3 hits
Althou... |
1st Definition. Recursive definition of fold
fold$_{recur}$ (c,h) nil = c
fold$_{recur}$ (c,h) (cons(a, x)) = h(a, fold$_{recur}$ (c,h) x)
2nd definition of fold. Iterative definition
fold$_{itr}$ (c, h) nil = c
fold$_{itr}$ (c, h) (cons (a, x) ) = fold$_{itr}$ (h (c, a), h) x
How do I express fold$_{itr}$ in terms of ... |
Hi I have two definitions of fold. I will call them foldl which is recursive and fold$_{itr}$ which is iterative.
I am looking for an algebraic proof that the two definitions are equal ideally through structural induction.
Definition for foldl
foldl(c,h) nil = c
foldl(c, h) (list, element) = h (foldl (c, h) list, ele... |
In Cormen's Algorithms textbook, the author casually mentions that ${n \choose 2}$ is $\Theta(n^2)$.
Why is this so? In the calculation
$$
{n \choose 2} = \frac{n!}{(n-2)!2!}
$$
there are $n$ multiplication operations in the numerator and $n$ multiplications in the denominator. That means there are at most $2n+1$ compu... |
I am struggling to determine the number of instances a resource will have. I have performed extensive research on this, but unfortunately have come up short. I am tasked with drawing a resource allocation graph and I have been provided with the number of processes which is 3 and the of resources which is 5. I have conc... |
What's the intuition for PTAS reductions instead of approximation preserving reductions or something of that ilk? I'd expect APX-Hardness to mean something like "finding a constant factor approximation for this problem is as hard as finding a constant factor approximation to any problem in APX" but having just a PTAS r... |
I am interested in knowing about algorithms for finding global minimum when noisy estimates of the function are available.
|
In the "Covering Things with Things" paper from Langerman and Morin, they mention the BST-Dim-Set-Cover, which is a FPT algorithm for point-line-cover, at page 666.
The algorithm chooses each point p from a set S and then subdivides it into k-lines.
This can be seen as a special case of set cover. All points (each p be... |
is there any difference between transition systems and finite automata? Is it that transition systems consist of both NFA (nondeterministic finite automata)
and DFA (deterministic finite automata)?
|
I'm no cs student, I'm a programmer. I have a couple of questions and a few assumptions that I will make here (correct me if I'm wrong please).
From my understanding is that all the sequences of 1 and 0's that computers execute are just representations of actual data or instructions that tell other hardware on a system... |
My question may actually be more broadly described as: can I use the fact that an algorithm is expected to return $(O(f(n))$ answers to show that it may never run better than $O(f(n))$? I would intuitively assume yes, but I am not sure.
Examples of what I'm talking about is algorithms to calculate all the paths that p... |
I am trying to get a big picture on the importance of least fixed point (lfp) in program analysis. For instance abstract interpretation seems to use the existence of lfp. Many research papers on program analysis also focus heavily on finding least fixed point.
More specifically, this article in wikipedia : Knaster-Tar... |
Given a post-order traversal of Binary Search tree with $k$ nodes, find an algorithm that constructs the BST.
My Algortihm
Let $n$ represent the next element to be inserted.
Let $P(y)$ represent the parent of node $y$.
We will read the traversal in reverse. The last element of the traversal is the root. Let $l = root... |
I'm writing about Turing machines and often need to denote the tape. I'm using exponential tapes, i.e. a repetition count for each symbol.
I usually use something similar to
$(x_k^{e_k})_{1 \leq k \leq m} \text{ Q } (x_k^{e_k})_{m+1 \leq k \leq n}$
(latex: $(x_k^{e_k})_{1 \leq k \leq m} \text{ Q } (x_k^{e_k})_{m+1 \leq... |
I believe that I have a procedure for doing this, but I don't know how to approach the proof (and for that matter I'm not entirely sure the procedure is correct).
Here's the exact problem statement:
Given DFA $A = (\Sigma, Q, q_0, F, \delta)$ construct DFA $B$ from $A$ s.t. it accepts all words of the language of $A$ ... |
I have a pretty good handle on what recursive and recursively enume table languages mean with respect to Turing machines and how they relate to one another through my algorithms class. What I don't understand is how these languages relate to the computability of problems, and whether these languages correlate to proble... |
In my opinion, every imperfect information game where there is the possibility of bluffing lacks a perfect (or winning) strategy, for the simple reason that knowing your opponent's strategy will let you beat him easily (even if his strategy isn't 100% deterministic).
So why do the guys that developed 'Cepheus' claim th... |
Say I have a snippet of code:
k = 5
i, j = 0
for i -> n
if i == k
for j -> k
/* do something */
end for
k = k * 4/3
end if
/* do something */
end for
I can tell that the algorithm is worse than n but can't be worse than n^2. In fact it seems like it would be less than n lo... |
Given lists $A_1, A_2, \dots, A_n$ of non-negative numbers, I want to find the $k$ smallest elements of the Cartesian product $A_1 \times A_2 \times \dots \times A_n$ ordered by the value $x_1 + x_2 + \dots + x_n$, where $x_i\in A_i$.
I can't simply create all combinations in memory and sort them because of large amoun... |
Suppose $L_1, L_2, ..., L_k$ are recursively enumerable languages forming a partition of $\Sigma^*$.
How do I show that each $L_i$ are recursive ?
I see that for $x \in \Sigma^*$, $x$ belongs to exactly one $L_i$.
My idea is to run every Turing machine simultaneosly, stopping as soon as one of them accepts $x$ (must ha... |
The specific algorithm I am referring to is Algorithm 6.8 from Vazirani's book "Approximation Algorithms". The book is legally available online here, and the algorithm is on page 58 (76 in the pdf).
The algorithm is pretty simple (especially if you're familiar with the layering technique), but in any case I'm only inte... |
We just started on the Computer Architecture topic in our CS lectures and I have a few questions that are currently bothering me. So we have different computers, and there are always differences in the hardware and architecture.
Now, why don't all computers simply use the same architecture? Won't that make it easier to... |
an unweighted connected graph $G=(V,E)$ all nodes of the graph contain a "serial number" between 1 to V. (V is an integer).
I am trying to come up with an algorithm that sorts all nodes firstly by distance (number of eadges) from source node 's' , secondly- if two nodes have same distance value sort them by value of th... |
I'm currently dealing with a problem for which I could show that an exact algorithm would imply a general algorithm for finding the real (but not complex) roots of an arbitrary univariate polynomial with real coefficients.
Now, what exactly are the implications for my problem?
It is well-known that there is no formula ... |
Most combinatorial problems seem NP-complete. Is this inherent in the design of the problems themselves? Are there any combinatorial problems in "P" ?
|
Some of my colleagues introduced some code into our codebase that was causing some serious performance issues. The feature they were implementing involved displaying data in a hierarchical fashion, but if there were more than 20 or so nodes involved, there was a serious delay (multiple seconds) before the user could se... |
Given an undirected graph $G=(V,E)$ and a vertex $v\in V$, is there some algorithms to enumerate all induced subgraphs $G_s=(V_s,E_s)$, such that $v \in V_s$? It's preferred the algorithm doesn't enumerate duplicated subgraphs.
|
So I started practicing some algorithms and programming before university starts and I ran into this problem:
Given a 3x3 matrix containing the numbers from 0 to 8, find the minimum number of steps required to sort the matrix in the following format:
1 2 3
4 5 6
7 8 0
In one move it is only allowed to pick a cell that ... |
I would like to ask a few questions about Assembly language. My understanding is that it's very close to machine language, making it faster and more efficient.
Since we have different computer architectures that exist, does that mean I have to write different code in Assembly for different architectures? If so, why is... |
I think, maybe some formalism could exist for the task which makes it significantly easier.
My problem to solve is that I invented a reentrant algorithm for a task. It is relative simple (its pure logic is around 10 lines in C), but this 10 lines to construct was around 2 days to me. I am 99% sure that it is reentrant ... |
Is there a way to generate a set of inputs, for a given output of a function? This may be a common thing in lisp/haskell world, but I'm not aware of it. Is this what mini-kanren does?
I understand that there may not be a general solution to this problem, since the halting problem may apply here. Say the function implem... |
I'm trying to make a turing machine that will take in a binary string as input x and output the binary representation of the length of x. So M(0110) returns 100, M(1010101010) returns 1010, ect. It also has to have a runtime of O(N).
So I can prove that the number of "flips" (changing a 0 to a 1 or a 1 to a 0) that occ... |
I was recently faced with the following interview question:
Given an array A, and an integer k, find a contiguous subarray with a
maximal sum, with the added constraint this subarray has length at most k.
So, if $A=[8, -1, -1, 4, -2, -3, 5, 6, -3]$ then we get the following answers for different values of $k$:
+--... |
This is a specific question about [1].
Before the question, I must explain and organize some topics:
1) In section 3.2, during the "Pre-processing Stage", a hash function maps an element to a bit-string.
2) In the Appendix B, the authors explain the COMPRESSION stage of those bit strings.
Question:
Is it possible to de... |
I saw a card game designed for small children. Each card has a picture of 6 animals on it, and there are 31 cards. When any two cards are compared to each other, they share exactly one animal. The game is for the child to find the animal that is common to both cards. I began to wonder how many animals the company would... |
I am trying to understand the following algorithm for Self reducibility of Clique.
Here we have a "MBClique" black box algorithm, which return yes/no for parameters where G is a graph and K is a natural number. It answers the question: "Does G has a clique of K size?" - Our aim is then to use this Decision algorithm t... |
I am looking up some material for my thesis in CS (development of a module to integrate a genetic algorithm in a system developed by other students).
My actual current task is to make a comparative analysis of several libraries for genetic algorithms.
After this comparison I will choose one of these libraries and an al... |
Let's say we have a relation $R$ with a set of functional and multivalued dependencies $F$, and we found a dependency that violates some normal form. Then we decompose $R$ into $R_1$ and $R_2$. How to compute the corresponding sets of dependencies $D_1$ and $D_2$?
I'm not sure if we can just take all dependencies (prob... |
As far as I have learned, an approximation algorithm for an optimization problem
Runs in polynomial time, and
Whose cost can be bounded by a function of input in terms of distance from the optimal cost.
If we consider the optimization version of subset-sum problem, it says
Given a set $A$ of integers, what is the m... |
In statically-typed object-oriented languages (like Java, C++, C#, ...), suppose I declare an abstract class:
public abstract class myclass1 {
.................
}
Most of these languages (like Java) wouldn't allow us to create an Object of an Abstract class, but they do allow us create an Array of Object of an Abstra... |
Consider the language:
$$
L_1 = \{ x \in \Sigma^* : x \text{ does not contain the substring } 110\}
$$
I know that there is a DFA that accepts this language, and furthermore, that the regular expression is:
$$
(0 \cup 10)^* 1^*
$$
I'm asked to obtain a formal recursive definition of $L_1$, that is, find a basis $B \sub... |
Disclamer: this is my uni assignment, which is rated comparatively low, thus I assume that the answer should be simple. Hints are appreciated (as opposed to direct answers).
Write an algorithm which accepts a regular expression $r$ and produces a language $\overline{L[r]}$.
I think it is reasonable to assume that al... |
If we had a computer in base 3 which used the characters {0, 1, 2} instead of just {0, 1} (and we implemented a ternary logic on the hardware), will this computer be faster than computer using binary?
Why or why not?
If we had a computer with even a higher base than 3 will it be more fast or slow? Which is the best bas... |
I'm sure this is not a challenge for you but it remains an open question for me:
Is it wise to prefer a recursive algorithm over its for-loop counterpart?
E.g. take the evaluation of the natural logarithm of a number $N + 1$
$$ \ln (N+1) = \ln N + \Delta N, $$
where
$$ \Delta N = 2 \sum_{k=0}^{\infty} \frac{1}{(2k+1)(... |
I'll explain my problem with an analogy to Sudoku-grids.
Consider a filled Sudoku-grid. If you exchange labels or rearrange rows/columns within a block, you have another valid Sudoku-grid. However the new grid is essentially equivalent, if that makes sense. One might say, under the operations "swap rows", "exchange lab... |
In all the books, packets of slides and similar I read, cache miss is always explained by assuming that blocks of different caches (or cache and RAM) are always of the same size. It's pretty clear how it's works in this case but the question is: what if block dimensions are not equal among caches?
For example, assuming... |
What I would like to do is improve upon projects like 'RNG plays pokemon'. There, a computer produces a random sequence of inputs that are transmitted to an emulator and played in-game. Though this seems really pointless, the computer managed to beat the game that way.
However in this project, buttons are pressed at ra... |
How can i compute tag-index-displacement bits from an address if cache size is not a power of two?
Intuitively, i would be inclined to think that i can not directly indicate which bits of the address are used to tag, index blocks and displacement. Instead, i think that i should do some conversion such that it appears ... |
Regular expressions can be reduced to a standard form. A normal form is either 0 or a term of the form
$$ \sum_{i \in I} a_i + \sum_{j \in J} n^*_j + \sum_{k \in K} a_k \cdot n^*_k + \sum_{l \in L} n^*_l \cdot n^{'}_l + \sum_{m \in M} E_m$$
where $E_m =1$ for all $m$, where $n_j, m_k, n_l,n_l'$ are normal forms diffe... |
I am looking for an algorithm to find the point that minimizes the sum of the great circle distances to a set of fixed points on a sphere.
In more detail: Given $x_1,\ldots, x_k$ fixed points in the $\mathbb{R}^n$ sphere. All of them have non-negative coefficients, i.e., $\|x_i\| = 1$ and $x_{ij} \geq 0$. I wish an al... |
Are there any changes that could be made to CPUs to make them perform better for concurrent runtimes like Rust? For instance, are there changes to branch prediction implementations or cache sizes that would help concurrent runtimes?
I have the impression that current CPU designs might be optimized more for procedural ... |
Typically decision problems are studied in complexity theory and function problems are studied in the Analysis of Algorithms. Unfortunately, Complexity Theory tends to abstract over the exact time complexity of a problem.
I know that Decision-Tree Complexity and more generally Query Complexity (Boolean Complexity) aim... |
Tangaroa is a relatively new project adding Byzantine fault-tolerance to the Raft consensus protocol using techniques that were already used in the PBFT algorithm. What are the advantages, when should I use Tangaroa and when PBFT?
|
I'm playing a game where I'm trying to estimate an unknown real number $x$.
An oracle exists that will answer the question of "Is a number $y$ greater than or equal to $x$?", to which the oracle will reply either yes or no. The question may be asked an $t$ number of times.
For example, with an unknown $x=9.5$, the orac... |
Alice and Bob are playing the game of Nim with $n$ piles of stones (p[0], p[1], ..., p[n-1]). If Alice plays first, she loses if and only if the 'xor sum' (or 'Nim sum') of the piles is zero, i.e. $p[0] ⊕ p[1] ⊕ ... p[n-1] = 0$
Bob can remove some stones in some piles before the game starts, but he must keep at least o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.