instruction stringlengths 35 29.1k |
|---|
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... |
Problem
I am trying to come up with an algorithm that will dynamically throttle a client's number of outstanding requests based on the response times of completed requests. Response times are unpredictable and can be between 7 and 90 seconds. The response times are greatly affected by the total of outstanding requests,... |
I have an undirected graph, whose nodes have some sorting order defined on
them.
I have to split it into subgraphs such none of the subgraphs have any cycle.
I am trying the following procedure
listOfSubGraphs = empty
currentSubGraph = empty
for each node do
if "node + currentSubGraph" do not form a cycle
... |
What is supposed to be the right result of an SCC algorithm running on a DAG.
should it return "no components" or "there are V components of size 1"?
I suspect it will return the latter (since it will start with the last sink, and then go back and mark each single sized vertex as a component, since each DFS will be of... |
From a comment, an interesting question popped up. The class of CFLs (the languages recognized by PDAs) are obviously not closed under nondeterminism - what I mean by this is that deterministic PDAs are not equivalent in power to nondeterministic PDAs.
However, all CFLs are decidable, and in this case, any deterministi... |
So Kadane's dynamic programming solution for finding the maximum sum contiguous subinterval in a 1-d array runs in linear time, and can be adapted to give a best-known $O(m^2n)$ time solution to find a maximum sum contiguous rectangle in a 2-d array of size $m \times n$. (i.e. find max sum subarray defined by all entri... |
So my assignment is to write a program that prompts the user for two different times on the same day (with 0 being midnight, 0700 being 7:00 am and 2200 being 10 pm) and then returns the difference between the two times with the amount of hours and amount of minutes elapsed. For example, if the user inputted 1255 and 1... |
When you call decrease-key in a min priority queue, you are basically setting the key, you can accidentally put a higher key, right? so why isn't it called "set-key" or "update-key"? why (according to Wikipedia and other sources) a min priority queue has "decrease-key" and a max priority queue has "increase-key"? why n... |
I'm studying computational complexity and I was wondering why the NP-Complete (NPC) problems is an important class at all. I find it obvious why we're interested in showing a given NP problem is NP-hard.
I also understand the definition of NPC, and that showing a given decision problem is NP-hard, knowing it is in NP... |
Wikipedia says that the number of nodes in a ORBDD (Order Reduced Binary Decision Diagrams) of order $x_1 < x_2 < \dots < x_{2n}$ is $2n + 2$.
But I can't find proof. Anyone?
|
I have two client-server protocols which perform the same function but they have different complexities in time (in terms of number of operations) and space (in terms of number of objects of same type). The size on which are based the complexities is $n$.
In the fist one, the server has to send only one object and the... |
$f(x,y)= 0$ if $x>y$ and $1$ otherwise.
How can prove formally that this function is primitive recursive?
|
This is a homework question. I need to prove that the following language is in NP Complete:
3-VERTEX-COVER = $\{\langle G,k\rangle \mid$ G is an undirected graph, each vertex in $G$ has at most $3$ incident edges, and there is a vertex cover of size $k$ in $G\}$
Showing that it is in NP is easy. Now, to show that it ... |
Dynamic programming algorithm for Knapsack is stated to have complexity $\mathcal O (nW)$.
However, I've also seen the complexity stated as $\mathcal O (n^2V)$, where $V=\max v_i$.
(Here $n$ is the number of items and $W$ the weight limit).
I see from the algorithm that the first complexity measure is correct:
http://e... |
There is no general analytic solution to the n-body problem that can produce an analytic function which can be used to give an n-body system's state at arbitrary time t with exact precision. However, there are some special cases of n-body systems for which an analytic function is known.
In much the same way, there is n... |
I have a list of points in $R^n$, and for each point I want to find the Euclidean distance to the nearest other point in the list. I don't need to know the coordinates of the nearest neighbor; I only need the distance. The naive approach would be to compare each point to every other, resulting in quadratic running time... |
Prove that the language Loop Turning Machine = { < M > | M is a TM that loops on all inputs} is recognizable.
I feel like $M$ would never halt. To make $M$ recognizable it needs to accept or reject. Do I need to establish a decider?
EDIT:
Can I say that a halting Turing Machine $M$ is a machine for which exis... |
Given a NP-complete problem $A$, with parameter $a$ and a problem $B$ with parameter $b$, such that a problem in $A$ of size $\mathcal{O}(2^a)$ is $\mathcal{O}(b)$ when translated to $B$, is $B$ EXPTIME or NEXPTIME complete? I.e. If a problem of exponential size relative to a NPC problem is of linear size in another pr... |
I'm trying to learn a little bit about Isabelle and proofs in general, and it's uses in Programming Language Theory. I'm following a book, "Concrete Semantics with Isabelle/HOL". I'm still in the beggining.
I was able to do the first exercises, but I got to a point where I noticed I just don't know what I'm doing. I j... |
Point-Cover-Interval Problem: Given a set $\mathcal{I}$ of $n$ intervals $[s_1, f_1], \ldots, [s_n, f_n]$ along a real line, find a minimum number of points $P$ such that each interval contains some point, that is $\forall I \in \mathcal{I}: \exists p \in P, p \in I$.
Interval Scheduling Problem: Given a set $\mathcal... |
I recently needed something like a state machine, but with a slightly different use case.
In general, I would say a state machine knows about a set of states, and different events. Depending on the current state and the event, a state machine is able to decide if this is a valid event for this state, and to which state... |
Does MD5 map to all possible 128 bit numbers? To put it another way:
For every 128 bit number y, does there exist at least one x for which md5(x) = y?
The answer probably is yes, for arbitrary x, and probably no proof exists. However, feel free to prove me wrong :)
But what if I impose some kind of limit on x, e.g. x <... |
I was trying to look my book computer architecture and design, but I can not find the answer for this question.
what are-the key-advantages of pipelining?
|
I have a programming assignment that says we should use the MVC architecture but we never really learned what that is.
I looked up MVC architecture on google but nothing was helpful. So can someone explain MVC architecture?
|
Can the split operation be implemented for AVL trees with complexity $O(\log n)$? I'm interested in links to articles or any specific information about this subject.
The split operation divides the AVL tree into two derived AVL trees, based on key. One of the derived trees should contain all the vertices in which all k... |
It is well-known due to Tarski that the theory of reals $(\mathbb{R},+,\cdot,<,=)$ is decidable. I was asking my self whether one would lose the decidability by adding all real constants. More formally, is the theory $(\mathbb{R},\{\underline{r} \mid r \in \mathbb{R}\} +,\cdot,<,=)$ evaluated in the standard model of t... |
I am working on a computer organization caching problem
The Problem: What happens if the associativity level is greater than the cache size?
I know that associativity level is how many blocks are in a set. Say we have a 16 way set associative cache and a cache size of 15. What would happen? Would the cache break or w... |
I have a question about a specific amortized accounting algorithm and to be specific the variant with Reset operation.
First, 9th line of increment sets $\max[A]$ to -1 if $i \le \max[A]$ because for example going from 100 to 101 would set $\max[A]$ to $-1$ which does not make much sense.
Then, "if max[A] increases pl... |
I am trying to compare asymptotic runtime bounds of a few algorithms presented in this research paper, A quasi-polynomial algorithm for discrete
logarithm in finite fields of small characteristic. The functions are,
$L(\alpha) = \exp(O(\log(n)^{a}(\log\log(n))^{1-\alpha}))$,
which I'd like to plot for $\alpha = 1/3,... |
Given $(U,V)$ two integers of finite size, I have a question about the complexity of calculating the $V^U$, i.e. $V$ raised to the power $U$. Is their a polynomial time algorithm to do this? If not is this an NP-hard problem?
|
Ultimately, my question is whether it's possible to exactly characterize the regular languages in terms of fooling sets. To help explain my motivation for asking this, here's a quick exposition.
Let $L$ be a language. A set of strings $S$ is called pairwise distinguishable relative to $L$ if for any two distinct string... |
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 fully associative cache
20 0010 0000
04 0000 0100
28 0010 1000
4C 0100 1100
Here is the format that we use fo... |
The Problem: If I have a 3 address machine, is my machine more likely to follow RISC or CISC design? 2 addresses? 1 address? 0 address.
To solve this problem I first looked up the different terms.
RISC is a microprocessor architecture that has smaller/simpler set of instructions
CISC is a microprocessor architect... |
I've come across a way of implementing a circular array that represents a double ended queue.
Let the circular array have the following instance variables:
int[] array;
int front = 0;
int rear = -1;
int size = 0;
int capacity = x; // where x is a parameter in the constructor
The operations of the queue are:
dequeue -... |
I am a bit confused about what it means for a permutation to be k-wise independent.
If I pick a permutation uniformly at random from $\sigma \in S_n$ then isn't it true that for any $k$ integers, $i_1,i_2,..,i_k$ $\in \{1,2,..,n\}$, the numbers $\sigma(i_1),\sigma(i_2),..,\sigma(i_k)$ are k-wise independent?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.