instruction stringlengths 35 29.1k |
|---|
I'm revising for my finals and from looking at previous exam papers I have a found a popular question that has came up almost every year, worth a lot of marks. Each year the question is written very similar with minor changes. I've not really been good at analysing algorithms this semester, so I was hoping based on the... |
Is it true that $FP^{NP[log\cdot n]} = FP^{NP}$ if $P = NP$?
If I understand the polynomial hierarchy correctly, then, if $P = NP$, all complexity classes collapse to one class. Therefore the above two classes should also be equal.
|
If I have some non-deterministic Turing machine $NDTM$ running some process $Q$ and I wish to simulate the same process $Q$ with a deterministic single-tape Turing machine $DTM$, there will of course be an exponential slowdown. However, what penalty can one expect in terms of space resources? Unless one has access to... |
An optimized algorithm for the 3-sum problem with an input array N has
O(N^2logN) however I read that the Big Omega for this algorithm could be Omega(N) because you have to touch all entries once. But to me this doesn't make sense.
If you have to perform the 3-sum operation on the entire array, wouldn't Big-O and Big-O... |
I'm completely new to programming but I've had a course in computational complexity. I'm trying to read the book "Structure and Interpretation of Computer Programs." In the first few sections, the authors make some claims about the relative efficiency of tree recursive and iterative processes. I find it a little fru... |
Consider this version of MS where we have set $A$ of tasks, $l(a)$, length of each task in $A$ and $m$ number of processors and also a deadline $D$. The question is where we can partition A into m disjoint subsets, $A = A_1 \cup A_2 \cup \ldots \cup A_m$ such that we have:
$$
max \left\{ \sum _{a \in A_i} l(a): 1 \le ... |
The Incompressibility Method is said to simplify the analysis of algorithms for the average case. From what I understand, this is because there is no need to compute all of the possible combinations of input for that algorithm and then derive an average complexity. Instead, a single incompressible string is taken as th... |
I'm trying to construct a PDA for $L = \{w0^i1^j \mid w\text{ ends in } 01 \wedge 2i=3j\}$. My understanding is that I have to first accept an arbitrary number of zeros and ones and then nondeterministically guess "$01$" in $w$, however I am stuck with the rest. I understand the condition $i/3=j/2$, but how do I make m... |
Lets say for simplicity sakes I have a simple balanced binary tree of height h and I am doing Depth First Search. I generally do the following skeletons:
def dfs(node root):
//Pre actions
if not node:
return
dfs(node.left)
dfs(node.right)
// Post actions
Now when I look at this code I kn... |
I am holding a bi-yearly tournament in my city, for which I want to write a program that gives me (nearly-)optimal pairings, and waiting time.
The setup is as follows:
-Up to 42 groups of 2 persons each.
-3 groups will be paired to be one team
-a game is played between 2 teams (6 groups) and takes 20 minutes
-3 games w... |
Given a graph $G$ with $n$ nodes, is there an algorithm to find $m$ subtrees, each with $\lfloor n/m\rfloor$ or $\lceil n/m\rceil$ nodes, such that every node of $G$ is in exactly one tree?
Other than brute forcing the problem, it there an algorithm that can create the partitions of a graph that satisfy these condition... |
I have a recurrence relation of the form:
$f(0) = f(1) = 1, f(2) = 2$ (initial conditions).
$f(2n) = f(n+1) + f(n) + n$ for $n>1$.
$f(2n+1) = f(n) + f(n-1) + 1$ for $n>1$.
I have been able to simplify this equation a little bit, but I can't seem to find a closed-form solution (and neither can Mathematica with RSolve). ... |
Given an unweighted undirected graph $G$ with $10^5$ vertices and a subset $S$ of special vertices and an integer $k$, I want to find the $k$th nearest special vertex for each vertex. What algorithm can I use for this problem?
I'm actually thinking of algorithm for finding shortest paths from every vertex to all other... |
Like black holes in computer science. We can only know they exist but when we have one of them we will never know it's one of them.
|
$L_1=\{a^n\mid n\ge1\}$ is regular and
$L_2=\{a^{n^2}\mid n\ge1\}$ is non-regular.
We know that $L_1\cap L_2$ is regular but,
here $L_1\cap L_2=L_2$; and $L_2$ is not regular. How is this possible?
|
I want to solve the following scheduling problem: We have $N$ resources and $\binom{N}{2}$ tasks, such that every task requires exactly two resources and every pair of resources is required by exactly one task. The number of resources $N$ and the durations $t_i$ of each task are the input. Output is smallest possible $... |
Say that a language $C$ is a separator for disjoint languages $A$ and $B$ if $A \subseteq C$ and $B \subseteq \bar{C}$.
I need to find two languages $A,B\in \mathrm{RE}$ that have no recursive separator $C$.
|
How can I produce an automaton accepting $\{a^{2i}bc^{2k} \mid i, k \in\mathbb{N}\}$? I am essentially confused about exactly what the $2i$ and $2k$ mean. Does that mean that the automaton only accepts strings where the number of $a$'s and $b$'s are multiples of $2$ and there is one occurrence of $b$ between $a$ and $c... |
I ran into the following, deceptively simple problem, and I was wondering if there is a well-known algorithmic solution to it:
Given a set of points $S$ in $\mathbb{R}^d$ (or $\mathbb{R}^2$, for simplicity), find a $n$-sided polygon, such that
all points in $S$ are inside the polygon
the area of the resulting polygon... |
I've implemented A* algorithm in Python, after that I calculated the effective branching factor $ B^* $
$$ T+1=1+B^*+(B^*)^2+\dots +(B^*)^L$$
where $T$ is the number of expanded nodes.
My question is: is it possible in theory that the effective branching factor calculated is negative? And if not possible, is the soluti... |
To what degree does learning computer science require memorisation?
I know this depends on subjects and maybe things are different in each college but could someone put an example, e.g. In Xxx class, I had to answer this question or accomplished this task. I was/wasn't allowed to use books or notes.
I'm planning to enr... |
if 3 SAT is reduced to A, as well as A is reduced to 3SAT, then is A in NPC ?
If yes then how can we generate a polynomial time verifier algorithm for the same ?
|
Suppose that I have a space filling curve over a rectangle of width W and height H. For example, for the rectangle:
W = 4
H = 4
I have the following curve:
Now, given the following coordinate:
X = 1
Y = 2
We can say that its position on the space-filling curve is 7, as it takes 7 steps walking over the curve to reac... |
I have the following problem, I would like to know an efficient algorithm to solve it.
Suppose I have a weighted graph $G$ and a set of vertices $K$, I want to find a walk which starts at a vertex $s$ and visits at least once every vertex of $K$ such that the distance is minimized.
There is no constraint on repeated no... |
Please help me, why the following language is context free?
$L=\{Wa^nb^mW^R\mid\:W\in\{a,b\}^+,n>m,m>0\:\}$
|
I know how to find the number of distinct substrings for a string (using suffix arrays) and I was wondering if there was a way to find this number for all of its prefixes.
I already have an $O(N^2)$ solution: computing the suffix array and lcp array for every prefix, but I would like a faster one.
|
I am not able to find a clear explanation about Ordered Arrays. All I know is
The array is 1-ordered it is in the usual order. (For the
1st must be less than the 2nd which in turn must be less than the 3rd
which ... which must be less than the $n$th.)
But what is 2-ordered, 3-ordered... so on array?
Can someone ... |
Suppose that we are given an undirected graph, and we know that the maximum edges covered by $k$ vertices is $n$. If we let the greedy algorithm choose these $k$ vertices for us, I am told that it is capable of covering at least $n/2$ edges. Is there a way to prove this? If so, how should it be done?
Since the greedy a... |
Given 2 sets of points in the plane, $A$ and $B$, each of size $n$,
I need to construct n line segments of the form ($a$–$b$) ($a$ in $A$, $b$ in $B$) such that none of them intersect.
The coordinates are comparable signed reals (no constraints here about that) and no 3 points are on the same line. There can be no se... |
I am working through creating a LALR(1) parser generator. I have the following grammar which I designed to highlight the epsilon for rule 3.
0. S' -> A
1. A -> a B b
2. B -> b
3. B ->
This recognizes ab and aab. It is my assumption that with one symbol of look-ahead, I would know whether to reduce using rule 3 or shi... |
I'm required to perform the following operation on an array in O(n): P[1..n] is an array of positive integers. For each index 'i' in the array, I must find how many "cells" I can advance toward the beginning of the array until I reach an element whose value is greater than P[i], or reach the beginning of the array. The... |
What do I need to read in in order to :
understand the specs of an already made programming language
Design a programming language
Design a compiler and assembler for that language
make an architecture of a processor
|
I have a correct, working implementation of the preflow-push-relabel maxflow algorithm [2]. I am trying to implement the global relabeling update heuristic [3], but have run into some issues.
I have a specific instance of the problem here to illustrate my questions 1:
a) For this problem instance, the "current preflo... |
In the Wikipedia, there is explanation about EAN-13 and several table, which are called "Structure of EAN-13" and "Encoding of the digits", but I did not know what theory the contents of the two table are based? For example, in "Structure of EAN-13", 0 correspondings to LLLLLL and RRRRRR, but in "Encoding of digits",... |
If the frame buffer has 8 bits per pixel and 8 bits are allocated for each of the R, G, B components, what would be the size of the
lookup table?
a) 24 bytes
b) 1024 bytes
c) 768 bytes
d) 256 bytes
I read about Framebuffer and what I understood is
"It stores the color values (in case ... |
SetAgree(n, k)
An object that allows n threads to propose() n values.
It guarantees Each thread will decide() on a (single) value.
The cardinal number of the set of all values decided on is lower or equal to k.
All values decided on were proposed.
It is obviously trivial if n <= k so the first interesting case is Se... |
I think the following question is a mix of the Traveling Salesman Problem and the Subset-sum Problem, which makes it really hard (for me) to solve... .
The problem is stated as follows:
There are a total of $n$ cities.
The salesman must start his journey at a certain city, and return to that specific city at the end o... |
I was reading lecture notes of Universiti Malaysia Perlis when I am came across following question:
A computer consists of a CPU and an I/O device $D$ connected to main
memory $M$ via a shared bus with a data bus width of one word
$(16-bits)$. The CPU can execute a maximum of $10^6$ instructions per
second. An a... |
Look at the below table for example :
Look at the Non-Preemptive SJF table
Suppose if the burst time of process $P_1$ was a very large number compared to $7$, the processes $P_3,P_2$ and $P_4$ have to wait for a large amount of time till $P_1$ frees the CPU. No book or article that I've read mentions of SJF being a su... |
Why is it that the transition function for DPDA's only works for 1 alphabet symbol, and 1 stack symbol? Say f is the transition function, why does having
f(qi, 1, 0) -> (qj, 0)
f(qi, epsilon, 0) -> (qj, 0)
cause nondeterminism?
I would understand that if I had
f(qi, 1, 0) -> (qj, 0)
f(qi, 1, 0) -> (qz, 0)
it wo... |
I've done a bit of googleing and have come up a bit short.
I am wondering what are the main reasons for computing scientists, programmers,
to study term rewriting, and/or term graph rewriting.
As far as I can tell, it just helps for basic reasoning about functional programs and (imperative) program control. Apparently... |
I implemented a simple type system inside Agda and I'm trying to understand, how expressive it is. The system consists from a predicative hierarchy of universes in the style of Russell, natural numbers and bounded and unbounded dependent quantifiers (there were reasons to separate these two instead of just adding an al... |
Calculate the FOLLOW sets for all the non terminals:
$S \rightarrow bEx \mid Db \mid b \mid F$
$D \rightarrow EDc \mid Y$
$E \rightarrow dED \mid dDY$
$Y \rightarrow ab \mid aDx \mid \varepsilon$
So I know that:
FOLLOW($S$) = $\{\$\}$ since it doesn't appear anywhere
FOLLOW($D$) = $\{b, a, x, c\}$, since it is follo... |
Consider addition of two numbers when CPU uses $2's$ complement form:
$$ 1\ 1\ 0\ 0\ 0\ 0\ 1\ 1\\0\ 1\ 0\ 0\ 1\ 1\ 0\ 0\\-------\\0\ 0\ 0\
0\ 1\ 1\ 1\ 1\\------- $$
$$Carry\ = 1,\
Overflow = 0, \ Zero Flag = 0$$
My Reasoning:
Zero Flag isn't set because the result isn't zero
Overflow isn't set because Carry in ... |
Whist reading an article outlining differences in OO and Functional programming I came across function pointers. It has been a while since I completed my Computer Science degree (2003) and so I looked up pointers to refresh my memory.
Pointers are variables that contain a reference to a memory address. They can be con... |
Suppose we have $n$ bits of random-looking data, and we want to encode it in such a way that instead of 1/2 the bits being 1's, we have (say) 3/4 the bits being 1's. The entropy of each bit in the new encoding is $-0.75\log_2(0.75)-0.25\log_2(0.25)\approx 0.81$, so we should be able to do it in about $1.23n$ bits.
(By ... |
I'm trying to answer this question:
Let $S$ be the strings $\langle P \rangle$ accepted by the Turing Machine $P$ with input alphabet $\{a,b\}$, where $P$ accepts an infinite number of strings beginning with $a$ and a finite number of strings beginning with $b$.
Is $P$ RE?
Is $P$ co-RE?
|
I am preparing for a competitive exam (GATE) in which questions are asked in Automata about operations among different types of languages. For example,
If $L_1$ is recursive & $L_2$ is recursively enumerable, then is $L_1\cap L_2$ recursively enumerable?
Similarly,
If $L_1$ is regular, $L_2$ is a deterministic CFL ... |
I'm revising for an Algorithms exam and looking at a sample question it says :
A group of n teenagers $t_1, \dots, t_n$ are to sit in a single row of n chairs watching a particulary boring comedy movie. Some teenagers quarrel with each other all the time. The Problem is to devise a seating arrangement for the group in... |
Why is it the lower the h(n) cost the more nodes need to be expanded in A*?
As found here - http://theory.stanford.edu/~amitp/GameProgramming/Heuristics.html
If h(n) is always lower than (or equal to) the cost of moving from n
to the goal, then A* is guaranteed to find a shortest path. The lower
h(n) is, the more ... |
I have a high-level understanding of the $P=NP$ problem and I understand that if it were absolutely "proven" to be true with a provided solution, it would open the door for solving numerous problems within the realm of computer science.
My question is, if someone were to publish a indisputable, constructive proof of $P... |
IA-64 is an architecture that has 128 general purpose registers, are there any disadvantages (beside being more expensive and larger instruction size) to having many registers?
|
In reading some blogs about computational complexity (for example here)I assimilated the notion that deciding if two groups are isomorphic is easier than testing two graphs for isomorphism. For example, on the stated page it says that graph isomorphism is a more general problem than group isomorphism.
Hence I am posing... |
I saw somewhere that if we limit the capacity (weight) of the knapsack to a polynomial function of elements then the class of the problem changes to P, but it didn't say why. I can't figure out why is it true....
I think a found a solution but i'm not sure if it is completely right. The time complexity of the knapsack ... |
Consider a base 16 adder. How can I modify the adder so that it can perform a base 8 addition?
I expect this question will appear in my exam tomorrow; if anyone can give me a hint or a solution, I'd be grateful. I've tried searching the net and my textbook to get some insight, but nothing is clicking.
my textbook digit... |
Is it theoretically feasible to engineer a computer (more specifically its operating system) that is simple and primitive enough to be infected with any type of virus? That is, this would be a computer that can execute any type of computer virus regardless of what platform the computer virus was initially designed to ... |
I'm currently revising for my Concurrent Programming exam and I'm going through the past papers and one question poses the following process:
Process P1
integer x;
1a: x = a + a;
1b: b = x;
end P1;
and asks the following question:
Rewrite processes P1 to take into account execution using a ‘load/store’
architectu... |
In Section 3.1.2 "Transaction Histories" of the PhD thesis by Atul Adya [1]:
A history $H$ over a set of transactions consists of two parts: (1) a partial order of events $E$ that reflects the operations (e.g., read, write, abort, commit) of those transactions, and (2) a version order, $\ll$, that is a total order on ... |
I've found that 0.1 + 0.2 == 0.3 is not true in Java (see this demo).
So, I'm interested in how equality testing can be implemented for floats. Is there a standardized algorithm?
|
The definition of an $s$-$t$ cut is a partition of the set of vertices $V$ into $2$ sets $(A, B)$ with $s$ in $A$ and $t$ in $B$. My understanding of set partitions is that the positioning of elements in the graph does not matter.
However, if this is the correct notion of partitioning, then can construct a pathological... |
My initial guess is that you will have more instruction space for the immediate in your branch instruction when you first use a CMP instruction. However, you have to use 2 instructions each time you want to branch: a CMP and then the branch instruction.
So are there any advantages to using CMP?
|
I amb doubting with the implementation of the Edmonds-Karp implementation of the Ford-Fulkerson algorithm.
This is a problem with flow networks.
As I understand the algorithm, it consists on taking a path from s to t (randomly in Ford-Fulkerson, and a shortest path in Edmonds-Karp) and saturate the bottleneck for that ... |
$G=<V,E>$ is a directed graph. I need to write an efficient algorithm that finds a $v \in V$ such that there exists a path $\forall w \in V$ $v \rightarrow w$ ($v$ has a path to every other vertex), or "false" if there aren't any. If there are more than one, return one of them.
The obvious and inefficient way would be ... |
The NLP progresses seems to me that has split in two big group of thoughts:
Deep learning have a neural network with multiple layers that has been trained and learned to represent knowledge and understand the meaning of sentences. However, such system would be difficult to debug and correct
Logic and inference, label ... |
I'm revising for my finals. I have found a pattern in past papers in terms of a recurring question, reworded coming up every year. But I've no idea what the marker actually wants... I've asked class mates but they all seemed to be confused. One gave me a sample answer of code doing it, whereas another one thought he wa... |
I have to convert "A = B C + D E + ×" from reverse polish notation to infix. I'm a bit confused because of the equals sign. Is that an operator too?
This is my answer: A = (B+C) × (D+E)
Is this correct or would this be written another way?
|
Let $X$ and $Y$ be two sets of points in $\mathbb{R}^3$. Assume that the cardinality of $Y$ is larger (much larger if you want) than $X$. For each $x_i \in X$, I need to find all $y \in Y$ such that the distance between $x_i$ and $y$ is less than a (fixed) radius $R$. That is, for each $x_i$, I want the set $E_i = \{... |
What is the theoretical speedup that could be achieved with the pipeline system over a nonpipelined system?
The equation I use for speedup is
$$ S = \frac{nT}{(k+n-1)t}\,$$
where:
$n$ is the number of tasks
$T$ is the time to process a task
$k$ is the number of stages segments
$t$ is the time per stage segment
I ... |
I have a collection of substrings
"this" "is" "a" "antelope"
I need to look at any given string and answer the question "Are any of the given substrings in this string"
So my input string might be
"issue"
Which would be a match because "is" is a substring of "issue"
My first stab at this, I incorrectly turned my coll... |
Let $f$ be a Boolean function.
Let $p$ be the minimum degree real polynomial that represents $f$ with degree $d_f$.
Let $p_\epsilon$ be the minimum degree real polynomial with degree $d_{f,\epsilon}$ such that $$|p_\epsilon(x)-f(x)|\leq\epsilon.$$
Let $p_{0,\epsilon}$ be the minimum degree real polynomial with degree ... |
Given a problem $X$, to show it is is $\sf NP$-complete, one usually shows a deterministic reduction from an $\sf NP$-complete problem.
If it is hard to show deterministic reduction, then one shows a randomized reduction.
What does a deterministic reduction give about the hardness of the problem that a randomized redu... |
A microprogram control unit is required to generate a total of 35 control signals. Assume that during any microinstruction, at most 2 control signals are active. The minimum number of bits required in the control word to generate the required control signal will be
a.2 b.6 c.7 d.8 ?
Please explain how to calculate this... |
The question is not specific to any processor.
Can I have an assembly instruction, like:
ADD R1 R0 R0
R1 is the destination.
My understanding is that, if the register file in a processor supports 2 simultaneous reads in a clock cycle (i.e. 2 read ports), two different registers can be read. But for 2 same input regis... |
What is the running time of heapsort when the input array is in increasing order? How about decreasing order? (I came across these questions in CLRS.)
Here is what I have done so far ...
For the increasing order (i.e. the order opposite to the output order) I am completely stuck and haven't been able to make any pro... |
It can be proven that class of languages accepted by queue automata is equal to class of languages accepted by Turing machines.
It was mentioned somewhere that the language $$L = \{x\#x^R \mid x\in\{0,1\}^* \} $$ can not be accepted by a queue automaton. But the language is accepted by a TM. Can somebody explain this a... |
Given boruvka's algorithm:
MST T <- empty tree
Begin with each vertex v as a component
While number of components > 1
For each component c
let e = minimum edge out of component c
if e is not in T
add e to T //merging the two components connected by e
In each phase I'd like to reduce the g... |
I have the following problem:
You have n objects that have identical weight except for one that is a
bit heavier than the others. You have a balance scale. You can place
objects on each side of the scale and see which collection is heavier.
Goal is to find the heavier object, with the minimum number of weigh.
I k... |
Is it true that for all $n\geq 5$, there is a knight's tour of an $n\times n$ chessboard beginning at every square?
For example, is it correct, that there is no solution for a $5\times5$ board,
with start position $(5,4)$?
|
A link of capacity 100 Mbps is carrying traffic from a number of sources. Each source generates an on-off traffic stream; when the source is on, the rate of traffic is 10 Mbps, and when the source is off, the rate of traffic is zero. The duty cycle, which is the ratio of on-time to off-time, is 1 : 2. When there is no ... |
Suppose that there are $k$ sets $S_1, S_2, S_3, \dots, S_k$.
The numbers $N = \{1, 2, \dots,n\}$ are distributed into these sets equally.
Say that we partition $N$ into $m$ sets $P_1, P_2, \dots, P_m$.
The problem is to find how accurate is our partitioning.
However, the accuracy is not finding the exact same sets, but... |
Let's say I am to sort a bookcase given a certain sorting condition, for instance alphabetically. I am looking for a way to generate a step-by-step guide on how to do this sorting based on the original order, as well as the final order.
Original order:
B C A D
Final order:
A B C D
Generated step by step instructions... |
I have this problem :
And here's my attempted solution,
could someone inform on whether it's correct
thanks
Haven't got enough reputation to make them into images so far..
|
Is it only because of the fact that it is asynchronous and can be used for long distance message transfer. An example of where other protocols will fail would help.
Thanks.
|
L ={ $a^{m^n}$ | $m$>$n$ }
I am bit confuse whether to consider this language as L = $(a^{m})^{n}$ OR L = $a^{\left(m^n\right)}$.
If it is considered as L = $(a^m)^{n}$ then want to check it is Regular or not by Pumping Lemma.
I tried by following way.
$m$ > $n$ so we can take $m's$ value as $n+1$.
So $L$ ... |
I'm trying to show that a special variant of the common 3-SAT is NP-complete by reducing 3-SAT to this special variant.
This special variant works like the normal 3CNF-SAT, except every other clause is conjunctive instead of disjunctive. For example an instance of this variant could be
$(x \vee y \vee z) \wedge (x\wedg... |
I understand the concept behind Divide and Conquer, making one problem into sub problems and then merging the solutions together. However, from looking at a past paper a question has occured where it asks how 2^11 can be found using Divide and Conquer, I'm just confused how finding a power can be divided into sub probl... |
I missed a lot of lectures for this module due to surgery so I'm trying to teach it to myself now. This is the question I've been working on:
First of all, would I be correct in saying that the LTL formulas are b, c and e? CTL are a, d and f?
For (b) I'm guessing the answer is s1 and s3, since those are the only state... |
Let's say, I have a cache with:
2^32 bytes of memory
2048 blocks (of 16 bytes each)
Now I'm trying to figure out how much bits each field will contain.
Direct mapped:
One block is 16 bytes (16 * 8 = 128 bits). The block also contains 1 dirty bit and 1 valid bit. I know that since there are 2048 (=2^11) blocks, and ... |
I'm wondering if there is some formalization, type theoretical analysis, or similar for data structures that automatically "splice" in an associative way. Barring a perfect citation, I'd be interested to know if there are other keywords I should be looking for in this space.
Examples are particularly common in term-rew... |
We are given a set of circles, stored by their center points in an array $A$. In particular, the center of the $i$th circle is at coordinates $(A[i].x, A[i].y)$. All the circles have radius of $k$.
I want to find a subset of circles such that no circles in this subset intersect with each other, such that this subset ... |
I've read that "Every problem in NP can be reduced to every NP-complete problem".
I want to know why the term "Every" is important.If we have one problem in NP that is reduced to one NP complete problem then what will be the problem.
|
I have asked this question before and the question was closed. Due to it being a duplicate with algorithm analysis. I've looked at this thread that I'm constantly reminded of but I do not understand it in my scenario. I've gotten near the end of a past paper question and I'd just like to know where I can go from here t... |
A computer with a single cache (access time 40ns) and main memory (access time 200ns) also
uses the hard disk (average access time 0.02 ms) for virtual memory pages. If it is found that the cache hit rate is 90% and the page fault rate is 1%
I have to work out the EAT time for this and the speedup due to use of cache.
... |
I'm reading "Computer Science Made Simple" by V. Anton Spraul, and in the chapter about Graphics, he describes GIF files as follows:
A GIF file uses lossless compression to store an image with a maximum of 256 different colors.
The way I read this, it sounds like the book is saying it stores the image, but the stored... |
One definition of arithmetic circuits is as follows:
An arithmetic circuit $\Phi$ over the field $\mathbb F$ and the set of variables $X$ usually, $X = \{x_1, \dots , x_n\}$) is a directed acyclic graph as follows. The vertices of $\Phi$ are called gates. Every gate in $\Phi$ of in-degree $0$ is labeled by either a v... |
I've found that if I don't understand the etymology behind a cs/programming term, it usually means that I've missed or misunderstood some important underlying concept.
I don't understand why the Kleene star is also called the Kleene closure.
Is it related to closures in programming, a function with bound non-local vari... |
I read about Minterms i.e. sums of products, simplification using
Karnaugh Graph. Can this graph be used for Maxterms, i.e. products
of sums, as well? If yes, then how?
If not, then is there some other similar way to use, for simplification of Maxterms? I know, one can always convert Maxterms to Minterms and then use ... |
I have a BNE-instruction (32 bits), which contains 16 bits for the jump field:
Opcode A[31:26]
RS A[25:21]
RT A[20:16]
Immed A[15:0]
Assuming the BNE-instruction will now be written in 64 bits format, what would be the (new) max jump distance this instruction can make?
I really have no clue, what to do, so I hope so... |
I've recently attended a conference, where one of the participants mentioned a recent paper published by a Google employee, which showed that using data mining techniques in application to NLP might sometimes give better results than using the NLP methods themselves.
That was the only description he gave and on top of ... |
Assume $P=PSPACE$. Then would it be possible to design cryptographic protocols based that is easy to compute from $PSPACE$ but hard to invert from something higher up in hierarchy?
A function $f: \{0, 1\}^*→ \{0, 1\}^*$ is one-way if $f$ can be computed by a polynomial time algorithm, but for every randomized algorithm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.