instruction stringlengths 35 29.1k |
|---|
There is a bipartite graph $G=(A,B,E)$ such that for every edge $(a,b)$ (where $a$ comes from $A$ and $b$ from $B$), $\deg(a) \geq \deg(b)$, and additionally $\deg(a) \geq 1$ for all $a \in A$. From this, how can I prove there is matching which covers all of $A$?
|
I am reading Handbook of Satisfiability in which they say:
An algebraic structure, or simply structure, consists of a non-empty set of
objects existing in the world $w$, called the domain and denoted below by $D$, and
a function, called an interpretation and denoted below by $R$, that assigns to each
constant an... |
I am attempting to validate that my threaded binary tree’s insertion and deletion works as intended.
Would it be safe to assume that the following procedure would have tested all corner cases at least once?
I have an array of integer S = {1, 2, …, n-1, n} for n = 1’000’000.
I then randomize the order of S to obtain S’ ... |
I'm working on a paper that uses ε-greedy algorithms for choosing episodes of a sarsa q-learning algorithms. I searched for algorithm but couldn't get so much. Can you please give me the algorithms and a little explanations about it?
|
In my current application I am trying to determine the best way to implement a simple scripting language. This language would allow a user to create a script that controls a machine with various inputs and outputs. I have defined most of the commands and created a nice editor for the language though I am stuck now tryi... |
Let's say we have two computers with identical ISA, but different size of word in main memory. One is 32 bit and the other 64 bits. So will it be identical length of instruction, different, depends on memory or depends on cache memory and why ?
|
In case 3 of the master theorem, we have to show that
$$ af(n/b) \leq cf(n). $$
I don't understand how I can setup this formula. As an example, we have
$$ T(n)=3T(n/4) + n \lg n.$$
In this case $a=3$ and $b=4$.
This gives us $O(n^{0.793})$ which is smaller than $f(n) = n \lg n$ which means case 3.
Now, the solution... |
please bear with me, I always get confused with the terminologies used in my computer architecture class.
What are read and write operations exactly? What are their relationship with processor, main memory, and cache?
I always thought that load/store are interchangeable with read/write...
What about the modify operati... |
As title. When we want to request following page numbers 2,4,4,2,5,2,1,1,3,1, is clock replacement better? What are the advantages and disadvantages of them?
Thanks~
|
Codes written in machine language can have access to both CPU modes (Kernel and user), since the OS is bypassed, correct?
|
it is well-known that propositional logic problems such as
$$ (p\leftrightarrow q) \lor r \quad\overset{?}{\vdash}\quad (((p\lor q)\to(p\land q)) \land \lnot r)\lor r$$
can be simply solved by evaluating the corresponding boolean functions for the $2^n$ possible values of the $n$ boolean variables (here $p,q,r$).
my ... |
Consider the problem of representing in memory numbers in the range $\{1,\ldots,n\}$.
Obviously, exact representation of such number requires $\lceil\log_2(n)\rceil$ bits.
In contrast, assume we are allowed to have compressed representations such that when reading the number we get a 2-approximation for the original nu... |
Sorry for my unfamiliarity with the field. Hopefully this question is on-topic here.
Currently the machine translation from western European languages to English is arguably quite robust, with Google Translate able to quite accurately translate articles on Wikipedia or news site. However, it seems to me that the transl... |
Is it suggested to swap between sorting algorithms? Merge sort certainly performs better on large input size however Insertion sort performs better on small input size
Analysis based on there graph comparison of running time of Insertion sort and merge sort
How often people swap the algorithms they are using? For ex... |
I'm reading through the book : "Compiler Construction: Principles and Practice". In chapter 6 : semantic analysis, an example about attribute grammars is given. The example is of a simple integer arithmetic expressions (I posted a picture because different fonts means different things as you may know):
where the bold ... |
So I am looking at some Operating Systems exercises and we have
A swapping system eliminates holes by compaction. Assuming a
random distribution of many holes and many data segments and a
time to read or write a 32-bit memory word of 10 nsec, about how
long does it take to com... |
I've just started reading about the complexity of algorithms, but everywhere I look, it is only defined for one input $n$. For example an algorithm is cubic if its complexity is $O(n^3)$.
But what about when the complexity depends on several inputs? For example if an algorithm has complexity $O(n^2k)$, is it 'cubic', o... |
What is the complexity of the following problem? I can see it's in NP for reasonable definitions of closed form, is there anything else one can say about it?
Given a recurrence relation $R_0 = \alpha_0,... ,R_n = \alpha_n, R_{f_2(n)} = g(R_{f_1(n)})$, $f_1(n) < f_2(n)$, where $f_1, f_2$, and $g$ are in closed form (for... |
Consider a hypercube defined over $n$ dimensions where the edges are associated to strictly positive weights, and nodes are marked with $n$ bit-strings, e.g. the source is marked as (0,0,0) in a 3-dimension hypercube and the farthest node is marked as (1,1,1) (termed as 'target'). Any two neighboring nodes differ by pr... |
tl;dr What does the Minimax algorithm do when all its options are the same?
Consider this Minimax tree:
(Green means the ends, orange minimize, blue maximize)
(Source: Myself)
Imagine this is the tree for a game (tic-tac-toe, maybe?). What should the computer do? Pick one at random? Pick the one which on average has t... |
Can someone help me go over that the following language can be recognized by a Turing Machine?
$$L = \{\langle M,w\rangle \mid M \text{ accepts a prefix of } w\}$$
We can construct a universal Turing Machine $U$ that recognizes $L$. $U$ can be constructed as follows:
$U$: On input $\langle M,w\rangle$
Simulate $M$ on ... |
I have a histogram of occurrences, as a list of counts (non-negative integers). For the purposes of a compression algorithm (specifically arithmetic coding) I must quantize these occurrences into a histogram whose entries sum to $2^n-1$.
To maintain sanity, I require some properties of the quantization algorithm:
Any ... |
I am reading the Handbook of Satisfiability, and in Chapter 1 (History of Satisfiability), I found the following statement:
Moreover, necessary and possible are predicates of the metalanguage
(the language of logical theory) because they are used to describe
sentences in the “object” language (the language that re... |
A very basic question.
As title, what is the difference between "sort" and "universe" in type theory?
Are they interchangable?
Or are there only finite number of sorts, but infinite universes?
|
I'm reviewing some notes about tree automata and I'm trying to conclude a proof that the professor left incomplete. The statement is:
Let $A = \{a,b\}$ and $T = \{t \in T_A^{\omega} \mid \text{every path in $t$ contains a finite number of $a$}\}$.
Prove that $T$ isn't Buchi recognizable.
Now we can define the follo... |
There's a textbook problem that talks about making a binary search dynamic, then analyzing for its amortize cost. However I'm not exactly sure what is the organization scheme of this data structure.
Binary search of a sorted array takes logarithmic search time, but the time to insert a new element is linear in the siz... |
I'm attempting to figure out if a union of two languages is regular.
$$
L_1 = \{all\ the\ words\ in\ the\ Oxford\ dictionary\} \\
L_2 = \{w : w\ has\ twice\ as\ many\ a's\ as\ b's\}
$$
$L_2$ is well established to be a non-regular language. However, I am not sure if $L_1$ would be considered a regular language. The lan... |
I have the following problem $(P)'$:
\begin{align*}
{\rm max}_{x_1,...,x_K}\quad & \sum_{k=1}^Kf(a_k,x_k) \cr & & (P)'\cr {\rm subject\ to}\quad & 0 \le x_k \le A, k=1,\ldots,K.
\end{align*}
This problem is proven NP-hard. An instance of $(P)'$ is given by $(K,a_i,A)$.
I have another problem $(P)$:
\begin{align*}
{\r... |
DFA, NFA and epsilon NFA all the three allow us to represent a particular regular language. With any of those representations we can arrive to the same regular expression, then why do we need to study all the three form of representation of finite automata? There can some explanation on what NFA can do which DFA cannot... |
I am reviewing an anonymous paper about a sort of static analysis of programs that uses the phrase "post-image analysis", or "post-image operation" without defining what that is. I am guessing it is a well-known concept in formal methods, even though a Google search has not revealed anything.
I am guessing it means an ... |
What is the main difference between Elman, Hopfield & Hemming Recurrent Neural Networks?
Python Neurolab Library examples:
Elman Recurrent Neural Network
Hopfield Recurrent Neural Network
Hemming Recurrent Neural Network
I properly understand the main difference of Hopfield Network:
The Hopfield network is of histor... |
Could someone point me in the direction of how to solve this?
I = [I1, . . . , In] is a 1D grayscale image and D = [D1, . . . , Dn] represents the second derivative of I. I am given the four pixel intensities I1, I2, In−1, In] and the second derivative values D3, . . . , Dn−2. How would I compute the rest of I’s intens... |
Is there a shortest path algorithim that calculates the shortest route passing all available roads, ending where you started? This differs from the Travelling salesman problem as you need to pass through all roads between the cities, not just the cities. The traditional shortest path algorithims do not work because the... |
Is there a $O(n^2)$ algorithm to resolve isomorphism between two weighted $n$-vertex graphs? This is a much easier problem than graph isomorphism.
Basically take an real edge weight set $\{w_1,\dots,w_s\}$
All weights on the graph edges are from this set.
|
I think I understand the Monte Carlo Tree search. It goes through the tree until it reaches a leaf node, where it branches (creates a child node). However, the branching only occurs at the leaf nodes (right?). So, a branch never comes out from a non-leaf node. So how could one node have multiple branches (multiple chil... |
Let $\Sigma^*\text{CFL} = \{G \mid G \text{ is a CFG; } L(G) = \Sigma_G^*\}$.
Enumerate the r.e. sets by $W_n$.
Let $\text{EMPTY}= \{ n \mid W_n=\emptyset\}$.
On page 4 of these lecture notes, to show $\text{EMPTY}\leq\Sigma^*\text{CFL}$ the author constructs a function $g\colon\mathbb{N}\to\{0,1\}^*$ such that
$$n\in... |
I am a bit confused on the difference between Cyclic Redundancy Check and Hamming Code. Both add a check value attached based on the some arithmetic operation of the bits in the message being transmitted. For Hamming, it can be either odd or even parity bits added at the end of a message and for CRC, it's the remainder... |
The denotational semantics of R4RS, R5RS and R7RS Scheme (included in the language report) uses the same notation that was used by J. E. Stoy in his book, "Denotational Semantics: the Scott-Strachey approach to programming language theory". This notation includes:
$s\downarrow k$ for the $k$th element of the sequence ... |
This was interview question.
When the input is a infinite sequence of numbers starting from 1, what is the nth digit?
e.g.) 123456789101112131415161718192021.....
here 28th digit is 1.
|
I need to get the asymptotic runtime for an algorithm and I'm just stuck.
A python implementation:
def alg3(n):
for i in range(1, n+1):
for j in range(1, n+1):
k = j
while k <= n:
k = k*3
I think it should somehow be $\Theta(n^2\log(n))$ but that isn't quadratic.
C... |
I'm learning about time and space complexity involving Turing Machines at the moment, and would really like some concrete examples of specific languages that belong (or don't belong) to certain classes of time / space hierarchies. For example, what are some examples of a decidable language that can't be decided by a TM... |
Both convolution and linear block codes can be used for error correction. The main benefits I gathered from using convolutional codes is that, it's easy to implement and does better (than linear codes) in cases where you have higher error probability rates and noisy channels. Information bits are spread along the seque... |
In a practice exam given in class, we were asked to solve the following recurrence
$$T(n) = 2T(n/4) + \frac{n}{\log n}$$
The given solution claims that this falls in the third case of the Master Theorem and starts with the following claim:
$$f(n) = n / \log n = \Omega (n^{1/2 + \epsilon}) \ \textrm{for any} \ 0 < \epsi... |
Trying to construct the full tree for a 9 game token of Nim and am slightly confused. I don't understand how two players, min and max, will make their pick. For example, max picks first and can only pick [9]. Min then picks from [8-1], [7-2], [6-3], and [5-4]. How does min calculate it's utility value here?
max ... |
I'm looking for some published results, either empirical or theoretical, on the number of solutions to random 3-SAT problems. Given $N$ variables and a clause-to-variable ratio $\alpha$, how does the number of solutions to 3-SAT scale vs. $N$ and $\alpha$? What is the distribution of the number of solutions?
Thanks!... |
I am dealing a bioinformatics problem and need help in approaching it in the right direction.
I have a set of variables that represent different kinds of genomic data and are real valued. I am trying to compare all these different variables among two species (though in the future I might be interested in generalization... |
If we have some function $f\colon \mathbb{N} \rightarrow \mathbb{N}$ that is not total, i.e. for some values $x \in \mathbb{N}$, $f(x) = {\perp}$, is $f$ always partial computable? By partial computable I mean there exists a program that $f(a)$ is defined for $a \in \mathrm{dom}(f)$ and $f(a)$ is not defined for $a \no... |
Given a 64 bit positive integer. How to determine in the most efficient way whether the given integer has ever been seen or not?
Implementation in C++11 (Please do include this fact, while suggesting your opinions)
Intent: I am generating numbers randomly, by flipping one bit at a time. I need to check every time on g... |
I'm working through the tensorflow tutorial, and I see how you go from 28 x 28 to zero-padding and applying a 5x5x32 convolution to get 28x28x32 and max-pooling etc. What I'm confused about is the 32 outputs seem to be described as filters acting upon the 5x5 layers. The description is typically something like these ... |
Per Wikipedia:
In mathematics, a dynamical system is a system in which a function
describes the time dependence of a point in a geometrical space.
Examples include the mathematical models that describe the swinging of
a clock pendulum, the flow of water in a pipe, and the number of fish
each springtime in a la... |
It is common knowledge that a universal Turing machine can simulate any Turing machine with logarithmic overhead. Is it possible to make this overhead constant by constructing an analogous "Universal" multi head Turing machine?
|
You have an array of N numbers. Find all the numbers that occur more
N/5 times in the array.
This can be obviously done in O(n log n) time and O(1) space, or O(n) time and O(n) space, but the catch is that it can be done in O(n) time and O(1) space.
After hours of thinking I found the solution, which is absolutely... |
I was studying nondeterministic Turing Machines and came across the following question:
Describe a nondeterministic Turing Machine (NTM) that only accepts two graphs (G1 and G2) if they are isomorphic, and provide the NSPACE. The NTM should use as little space as possible.
My attempt at answering this question goes som... |
If $\sum_i^p$ denotes $ith$ polynomial hierarchy. And $\sum_i TIME( T(n) )$ denotes set of languages accepted by $T(n)$ time alternating Turing machine $M$ whose initial state is labeled $\exists$ and sequence of choices leads $M$ to change at most $i-1$ times from states with one label to another.
Then I know $\sum_i... |
Continuing on from my previous post...
Both convolution and linear block codes can be used for error correction. The main benefits I gathered from using convolutional codes is that, it's easy to implement and does better (than linear codes) in cases where you have higher error probability rates and noisy channels. Info... |
I would like to know whether we could pump $ba$ into $bbba$ where x=$b$,y=a,z=$\epsilon$ using the finite state machine given in the image 1.
For example as given in this image 2 where the string $babb$ could be pumped into $bbbabb$ using the pumping statement $b^kabb\in L(M_1),\forall k,k \ge0$ where x=$\epsilon$,y=$b... |
Is there a $O(n^2)$ algorithm to resolve isomorphism between two weighted $n$-vertex graphs? This is a much easier problem than graph isomorphism.
Basically take an real edge weight set $\{w_1,\dots,w_s\}$ where $s=\Omega(n^\alpha)$ where $\alpha\in[0,2]$ and the edge weights are picked uniformly. We can think of the s... |
In C++ ,friend class allows us to inherit the proprieties of one class to another class(es) which is also possible using inheritance. And also in inheritance we can set different levels of privileges to the child class(es) depending on our requirements, which suggests inheritance is more useful than friend class. Then ... |
I have data that comes in the form of a vector. Each vector is sparse. Is there a commonly used distribution that will generate sparse vectors?
I am working on a project where I am passing a bunch of dog images through a convolutional neural network(CNN) and trying to model a joint distribution of the activations at a... |
This is a companion question to Results on number of solutions to random 3-SAT?
Let $A$ and $B$ be two problems drawn from random 3-SAT, both with the same number of variables and clauses. If $A$ has fewer satisfying assignments than $B$, do SAT solvers perform worse when trying to solve $A$ vs. $B$? Are there any... |
I have this grammar for arithmetic expressions
E -> E+T | T
T -> T X F | F (X is cross product operator)
F -> (E) | a
Now I am wanting to add the exponential operator ^ to it, it needs to have higher precedence than multiplication and it needs to be right associative.
Would this be correct? Since first we write th... |
Lets say one is given a set of $m$ real polynomial equations in $n$ variables, $P_1 = P_2 = P_2 .. = P_m =0$. I understand that there is some theorem which says that if there is no solution to these simultaneous equations then one necessarily will be able to find polynomials $Q_1,Q_2,..,Q_m, R_1, R_2,..,R_k$ such that ... |
Given a set of $n$ points $p_1,p_2,\ldots,p_n$ on a horizontal straight line (not necessarily in the order from left to right) with associated $x$-coordinates $x_1,x_2,\ldots,x_n$ (not necessarily in ascending orders) and associated weights $w_1,w_2,\ldots,w_n$ such that $\sum_{i=1}^n w_i = 1$. The objective is to fin... |
I am a sophomore taking a course in algorithm analysis. We were asked by our professor to calculate time-complexity of several C functions, but some of them were incorrect and would result in a compile error. As far as I know time complexities of correct algorithms are calculated and then we choose which one to impleme... |
I've seen many answers to merge identical-sized arrays, but haven't seen the answer to this question yet.
Given $A_1, A_2, ..., A_k$ sorted arrays where $|A_i| = 2^i$, what is the most efficient way to merge them all? I'm looking for a comparison-based algorithm with the best asymptotic running time possible.
|
Currently, I am reading the paper "Exploring relaxation induced neighborhood to improve MIP solutions" by Danna et.al. from 2004 and they are talking about a symmetric role of incumbent and the relaxed solution. Which I understood as following:
An incumbent of poor quality can be improved because the respective relaxat... |
RINS: Relaxation induced neighborhood search, firstly introduced by Danna et.al in 2004 in "Exploring relaxation induced neighborhoods to improve MIP solutions"
I wanted to design an example how the RINS algorithm works to make sure that I have it completly understood completly.
As it turns out, I do not know what happ... |
Given two decimals $c$ and $d$; $1 \le c,d \le 10^{12}$. Count all pairs of $x$ and $y$ that satisfy the following statements:
$$
x+y = c\\
x \text{ XOR } y = d
$$
Killed already a day still can't solve that task in 2s. Even with optimizations brute-force algorithm doesn't terminate when $c$ and $d$ closer to uppe... |
This question springs from thinking about the potential benefits of using nonlinear codes instead of linear codes. Say we have a point $x \in \{0,1\}^k$ and we want to guess what it is. A naive scheme would be to ask $2^k$ questions of the form "is $x=[0100001\dots 01]$?" etc, while a refinement would be "is the $i$:th... |
I think I have a passable understanding of what Big-O and little-o mean. I'm just wondering whether it makes sense notation-wise to state something like the following:
$$O(n^c) = o(n^k) \text{ for } k > c$$
For example, $O(n^2) = o(n^3)$ since $3 > 2$. Basically, any constant times $n^2$ will still grow more slowly tha... |
I know the following fact:
If $Ma_N=\{w:n_a (w)=Nk,k≥0\}$, then
Number of states in
$$Ma_{N1}×Ma_{N2}
=Ma_{N1}∪Ma_{N2}
=Ma_{N1}∩Ma_{N2}
=Ma_{N1}-Ma_{N2}
=LCM(N1,N2)$$
where $n_a (w)$ is the number of occurrences of $a$ in $w$
I recalled the example I solved: the DFA for the language $(111+11111)^*$. It was give... |
We just started learning the potential method this week and I'm having a bit of trouble on this problem regarding Fibonacci numbers; specifically I'm having some difficulty thinking of a good potential function.
Suppose instead of powers of two, we represent integers as the sum of Fibonacci numbers. In other words, ins... |
Given a $2n$ vertex undirected graph whose vertices are partitioned arbitrarily in pairs to say WLOG $(1,2)$, $(3,4)$, $\dots$, $(2n-1,2n)$. Call these vertices pairs as super vertices.
Call two such graphs $2n$ vertex labelled graphs $G$, $H$ whose adjacencies are $A$ and $B$ respectively $\mathsf{vertex}$-$\mathsf{pa... |
Given a string $S$ and a substring $T$, define the value of $T$ to be the total length (in characters) of all non-overlapping instances of $T$ in $S$. In other words, the value of $T$ is the length of $T$, times the number of times that $T$ occurs in $S$ without overlap.
I need an algorithm that does the following:
Gi... |
I have data for a warehouse that shows when a person was at a particular bin/shelf (location). As the person moves through the warehouse they build up a profile of how long it takes to get from bin X to bin Y.
I have a lot of this data and it occurred to me that I can use it to construct a schematic of the warehouse bi... |
I am working on a computability assignment, I want to define a helper predicate IsDefined by:
$IsDefinied(x,n) = \{ 1$ if $\Phi^{(1)}(x,n)$ is defined, $0$ otherwise.
Where $\Phi^{(1)}$ is the universal $L$ program, $x \in N$ and $n = \#(P)$ for some program $P$.
I'm not sure if it is computable or not. It looks a lot ... |
I'm having trouble convincing myself of the proof for the following theorem:
$E_{TM} = \{\langle M\rangle\mid M$ is a TM and $L(M) = \emptyset\}$ is undecidable.
I think I understand why we reduce $A_{TM}$ to this problem, where $A_{TM} = \{\langle M, w\rangle\mid M$ is a TM and $M$ accepts $w\}$, but here is where I... |
I would like to know if there is an upper bound on the length of the shortest paths between vertices on an undirected and unweighted graph based on degree of vertices, number of vertices and number of edges. I consider the shortest paths. So path length is smaller than the number of vertices. I want to know if I can g... |
The following question is from Sanjeev Arora and Boaz Barak ( not homework )
Show that for every time constructible
$T:N \to N$, if $L \in NTIME(T(n))$ then we can give a polynomial-time Karp reduction from $L$ to $3SAT$ that transforms instances of size $n$
into 3CNF formulae of size $O(T(n)logT(n))$. Can you mak... |
I asked this question on StackOverflow, but I think here is a more appropriate place.
This is a problem from Introduction to algorithms course:
You have an array $a$ with $n$ positive integers (the array doesn't need to be sorted or the elements unique). Suggest an $O(n)$ algorithm to find the largest sum of elements ... |
I have the following language:
{0m1n0n1m | m,n ≠ 0}
I was wanting to write Context-free grammar for it. I'm a little confused
because the rule doesn't mention that m and n are not equal to each other, so could we treat them in a case as the same?
So could something like
S --> 0S1S0S1S
or
S --> 0101 | 0S10S1 | ε
|
Why do black-box deep learning algorithms (e.g. Mikolov et al 2013) produce better word similarities than cognitively plausible ones (e.g. Baayen et al 2011)? Could we combine the best of both worlds, biologically motivated learning mechanisms and state-of-the-art performance?
|
The problem:
Find a formula for the total number of calls occurring during the insertion of n elements into an initially empty set. Assume that the insertion process fills up the binary search tree level-by-level. Leave your answer in the form of a sum.
code for INSERT function:
procedure INSERT(x: elementtype; var A: ... |
The following is an example of language $a^nb^n$ where $n \geq 1$
From what I have heard that in finite state machines if you see epsilon moves, then it is NFA otherwise it is DFA. But in this case, the definition was: "If a PDA has more than one paths going accept state then it is non-deterministic PDA" but what abou... |
I'm currently working on implementing a bag of visual words in Python. I get the general gist of how it works but I can't seem to find any sources that explain it in more detail to a level where I can implement it. I'm guessing scikit learn and scikit image would come in but I can't seem to point myself in the right di... |
I need some clarification over the following quotation of Leslie Lamport:
A distributed system can be described as a particular sequential state machine that is implemented with a network of processors. The ability to totally order the input requests leads immediately to an algorithm to implement an arbitrary state ma... |
It is known that when a Random Access Machine halts the output on the registers is going to be $R_1,\ldots,R_{||R_0||}$ after going through its instruction set where $||R_0||$ denotes the length of the binary representation of $R_0$. Is there any implication changing the output on the registers as $R_1,\ldots,R_{R_0}$.... |
I have run into a contest problem (ACM like) that sounds like this:
Input: a tree of $N$ nodes; integers $X,Y,Z$ such that $X+Y+Z=N$
Question: Can the tree be partitioned into three trees of $X,Y,Z$ nodes by removing only two edges?
I am promised that $N \le 10^5$. My code must finish within 200ms.
The brute-force me... |
Is it known Graph isomorphism can be done in poly time if we allow exponential word sizes?
(Shamir's poly time Integer Factoring algorithm is over exponential word sizes).
|
I am reading Barry Cooper's Computability Theory and he states the following as the s-m-n theorem:
Let $f:\mathbb{N}^2\mapsto\mathbb{N}$ be a (partial) recursive function. Then there exists a computable function $g(x)$ such that $f(x,y) = \Phi_{g(x)}(y)$ for all $x,y \in \mathbb{N}$. Here, $\Phi_n$ refers to the $n$th ... |
I'm working on evolving Turing machines (with binary symbols / infinite tape) for simple operations (e.g. sorting) using genetic algorithms. I'm interested in using the complexity of the FSM for each Turing machine as one of the criteria to guide the evolution process.
However, I couldn't find any references as to a ca... |
One common way for algorithms to battle adversarial inputs is by acting randomly. One popular example is quicksort and choosing pivots randomly (this sort of notions is explained well in section 5.3 in CLRS 3rd edition page 122 where by acting randomly we manage to impose a distribution on our inputs).
With Simple Unif... |
Would it be possible to form such a group using the ADD instruction and the NOT instruction?
|
So I am familiar with the standard minimum cut problem in which the goal is to find the smallest possible set of edges in a graph such that, upon their removal, we have two nonempty, disjoint partitions of vertices with no connecting edges between partitions. There exist randomized edge-contraction algorithms to solve ... |
I was attending a class on analysis of hash tables implemented using chaining, and the professor said that:
In a hash table in which collisions are resolved by
chaining, an search (successful or unsuccessful) takes average-case time θ(1 + α),
under the assumption of simple uniform hashing.
and
The worst-case tim... |
I recently learnt that for any instance of a k-SAT problem with $m$ clauses and $n$ literals , we have an assignment of literals such that at least $m(1 - 2^{-k})$ clauses are satisfied.
I was wondering if we can we show a (non trivial) lower bound of the kind that any graph $G = (V,E)$ has an independent set of size $... |
My background is fairly practical rather than theoretical, so this question may be a bit basic.
I have a state machine with events, and events may optionally trigger action functions to be called as part of the state transition. In practice, actions functions do things like lighting LEDs. The state machine is defined... |
What would an example of a set of tasks be, where RMFF, RMNF and P-Fair all result in a different number of processors required?
|
I have read a paper which mentions that CFL-reachability is solvable in exponential time and space. Intuitively, I suppose that one need to explore through all the sub-paths in the PDA for a CFL. However, I am not able to convince myself with this explanation. If someone could provide an explanation, it would be great.... |
Hello I have a slightly unusual question which relates to a definition of filtration structure. The following is my current state of the definition:
$ \mathcal{M} = (W, R, L) $, W is a set of worlds,
$R$ is a binary relation on the worlds, $ R \subseteq W \times W$, and
$L$ is a labelling function $ L : W \rightarrow\ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.