instruction stringlengths 35 29.1k |
|---|
The halting problem and therefore the acceptance problem are decidable for LBAs, but are the infinite extensions of these problems decidable?
Given a LBA, can you decide whether there exists an input on which the LBA halts?
Given a LBA, can you decide whether the LBA accepts a certain non-empty, non-finite language?
|
My master’s dissertation subject is to analyze and implement an algorithm that would sample thermal images from camera with different frequency rates to optimize database size and processing power.
Is anyone aware of any publication related to this subject? It seems that I cannot find any information on sampling patter... |
I am trying to create a predicate in Prolog which allows me to delete all occurrences of X in a list L. I have the following code:
my_delete(X, L, R):- [] = L, [] = R
my_delete(X, L, R):- [Y|K] = L, [Y|M] = R, my_delete(X, K, M), (Y \= X)
my_delete(X, L, R):- [X|K] = L, [Y|M] = R, my_delete(X, K, R), (Y \= X)
And now,... |
I was looking to solve this reduction, but I dont see how to construct the new graph. It seems very simple but I'm not capable of do it.
I give you the complete explanation about this reduction.
We consider a variant of the independent set problem which we shall call, Independent Set with
a Fixed Node, in which the inp... |
I understand that both of them are used to find minimal spanning trees, and I've seen their implementations, but I don't understand how both of them compare to each other, and how they differ in complexity.
|
I am very new to functional programming so sorry if the question is stupid.
Having this function
const noname = func => val => bool => bool? func(val) : val
And following situation
// if event.target has css class 'draggable-box' , add drag listener to it, using event
compose(
noname( add_drag_listener )(event),
... |
What is the running time of quicksort if we always use the first index as the pivot? What if we always use the last index as the pivot? Is the running time $O(n)$?
|
Show that Integer parition problem is NP-complete using the fact that Hamiltonian cycle is NP-Complete
My Thoughts :
Integer paritition problem is about partitioning a given set of integers into two sets with equal
sums. If I could show that Integer partition is polynomially reducible to Hamiltonian cycle
that would... |
Consider the following in untyped lambda calculus
( \ x. x x ) ( \ g. \ f. g f )
Even though each variable is uniquely named reducing this will require an $\alpha$-renaming.
( \ x. x x ) ( \ g. \ f. g f )
( \ g. \ f. g f ) ( \ g. \ f. g f )
( \ f. ( \ g. \ f. g f ) f )
The bolded f is ambiguous since it is could refe... |
After reading the question I'm still not sure how CPU does branching.
I understand that we have an instruction counter which points to the current instruction. And after performing conditional jump it either stays the same (increments as usual) or increases (jumps) and points to another branch, that's clear.
The proble... |
I've recently read about the concepts of weak and strong NP-completeness, but faced a problem in wrapping my head around them. I've understood that problems which have numerical parameters (like discrete knapsack) and can be solved polynomially in the values of those parameters (which implies exponential time in their ... |
According to 1, "a path cover of a directed graph G is a set of disjoint paths in G which together contain all the vertices of G".
In my research, I met a similar problem. There, you can add and subtract paths in G, and, should cover $G$ (exactly once) by a combination of addition of subtraction of a subset of paths in... |
I have been trying solve this problem for a while now for a university assignment. I'm required to build a DFA and an NFA for the above question. So far I have been able to solve the DFA but can not find a solution for a proper NFA after multiple tries.
The solution of my DFA for the language provided above:
My attempt... |
A multiple choice question asks this:
Number of nonequivalent propositions that only consist of $P_1, P_2, P_3$ and use the $\iff$ logical operator is?$$A)7\text{ }B)8\text{ }C)1\text{ }D)16$$
I am really uncertain about what the question is asking. Is it asking me to find all the possible propositions using the $P_1... |
The convention when a function is going to use a saved register is to save the contents of that register to the stack in case the caller (if there's one? the main function doesn't have one) had been using this register too and to restore the contents right before returning. Is this convention always obeyed? In the case... |
I have a complete edge-weighted graph with $n$ vertices (and therefore $n\cdot(n-1)/2$ edges). I want to find a complete matching (i.e., perfect matching) in which the quotient $sum_G/A_G$ is maximal, where $sum_G$ is the sum of all the edges-weights in the matching and $A$ is the amplitude of the edges-weights in the ... |
I ran into this question in class:
Assume a machine that is 64-bit and has 8GB memory. They use a paged virtual memory where the page size is 4KB. You run the following program:
int main() {
int *ptr = malloc(16);
printf("%p\n", ptr);
return 0;
}
and get output:
0x555555756260
We're to find the virtual page n... |
I'm having issues simplifying regular expressions. I can't find a method to approach this problem.
How would I approach simplifying this regular expression:
$$b(abb + abbbb + aba^*bbb)^*$$
|
I know there is a lot of code out there that does this, but in particular, I'm trying to modify the following code to not just return the goal node/ one end point, but all endpoints. How do I go about it? I tried thinking of keeping a seen/visited set, but that seems redundant and kills the whole point of the reached m... |
The solution to this problem is $$(b + c)^*+(b + c)^*((a + aa)(b + c)^+)^*(a + aa)(b + c)^*.
$$
Isn't the $+$ sign a union between sets?, I am asking because I am viewing the line $(b + c)^*+(b + c)^*$
as $A\cup A$ which is $A$ so I do not see a reason to repeat the same set.
|
In http://web.mit.edu/neboat/www/6.046-fa09/rec8.pdf, I see that they pad a 2SAT clause $(x\vee y)$ to make it a 3SAT clause by writing $(x\vee y\vee p) \wedge (x\vee y\vee \neg p)$. Why doesn't $(x\vee y\vee y)$ work instead? Isn't the truth table identical?
|
I've written some code that uses numpy's array broadcasting logic and need to convert it to pseudocode. Basically, $w\in R^{T}$ and $\beta\in R^{T \times M}$. If you have the following code using numpy arrays:
T = 100
M = 10
w = np.ones(T) / T
b = np.ones((T, M))
x = (w * b).sum(axis=0)
Numpy will automatically broadc... |
Is there a unique DFA for every NFA or there are more than one DFA an NFA can be converted to?
I've read the algorithm for converting NFA to DFA.
|
I was solving Stone Game II on LeetCode. I was able to come up with a recursive (TLE) solution, which I optimized using memoization. The recursive solution computes a function $u(i,m)$, depending on an array $A_1,\ldots,A_n$, where:
$i$ is the starting index
$2m$ is the maximum size of the window at $i$
Here is the r... |
If we convert an NFA to a DFA, is the regular expression of the DFA the same as the NFA?
I know the difference between an NFA and DFA and the algorithm to convert an NFA to DFA
|
I want to use the direct method of computing the homography between two images to estimate the plane parameters (normal and depth [= distance from camera]) of a 3D plane.
If we have two images of the same 3D plane, then we know that the same point in the images is related by a homography. If one camera is placed at the... |
I was trying to solve this problem using dynamic programming.
We have $n$ objects in a row where each object has a value represented with a positive number.
This is encoded with an array $V[1], . . . , V[n]$ where $V [1]$ is the value of the first object in the row,
$V [2]$ is the value of the second object in the row ... |
Consider the problem of determining if a directed graph is strongly connected.
How to phrase it as a language and prove that it's decidable.
My Thoughts :
To think of decidability given a graph I could run DFS on each node and see that all the nodes
are reachable from the original node. So it can be determined if th... |
Let (ATM denotes the language $\{\langle M,w \rangle \mid \text{TM $M$ accepts $w$}\}$)
show that the language L={<M1,M2,w> | M1 and M2 both accept or reject w} is undecidable by reducing
ATM to L
Not really sure how to approach this. Any hints or pointers
|
I've been implementing some kind of CPU Scheduling Algorithms in Python. And I am really confused with one of the cases what'd be implemented in this case.
Let us assume that the time quantum is 10.
If the first come process which came at 0 has a burst time of 7 (simply denoting that it is less than the time quantum). ... |
There is a following Turing machine. I want to understand what it is doing :
I tried running it on input 100, 10000. Both these strings are accepted whereas 10,1000 are rejected
That leads to a good guess that it's accepting the string's with 1 followed by 0's where number of
0's = power of 2. But I can't prove it... |
Prove that the regular expression $\Sigma\Sigma(ab\cup ba)^∗a$ rejects the string $aabaabba$.
Would this be because the union of $ab$ and $ba$ would not accept the string $aabaabba$? I'm just confused on how to explain it.
|
I am trying to look for an example of a monotonically non-decreasing function $ f(n) $ such that:
$ f(n) \in O(n^2) $ and $ f(n) \notin o(n^2) $ but also $ f(n) \in \Omega(n) $ and $ f(n) \notin \omega(n) $. The domain could also be all real numbers.
I considered different variations of piecewise functions, for example... |
Consider a linear list-based directory implementation in a file system. Each directory is a list of nodes, where each node contains the file name along with the file metadata, such as the list of pointers to the data blocks. Consider a given directory foo.
Which of the following operations will necessarily require a f... |
This video shows how to design PDA from a CFG:
https://www.youtube.com/watch?v=ZImtQBMSW_Y
Basically, we always have 4 basic states, and one of them is a "hub" for loops that implement separate rules like so ("q loop" state in the pic):
The author of the vid claims that any CFG can be converted into PDA using this bas... |
I am struggling to understand why this property of asymptotic notation is true
|
So i have some theory of computer science homework and I'm struggling with this question currently. I am given the following automaton:
$Q = \{q_0,q_1\}$.
$\Sigma = \{a,b\}$.
$q_0 = q_0$.
$F = \{q_0\}$.
$\delta(q_0,a) = \delta(q_0,b) = q_1$, $\delta(q_1,a) = \delta(q_1,b) = q_0$.
I have to do two things: draw a state... |
Given a simple undirected connected graph $G$, I want to find a min-cut
of $G$ using a randomized algorithm.
My attempt was to select a random edge in $G$ and reduce that edge to a
single vertex. And recursively do it until the number of vertices is at
most 2.
The number of edges present (in the resulting multi-graph)... |
In the 3-Path Packing problem, we are given an undirected graph $G$ and a parameter
$k \in \mathbb{N} \cup \{0\}$. We need to answer Yes/No if there exists a collection of $k$ vertex disjoint paths on three vertices in $G$.
I am interested in an easier variant of this problem where we are given an additional group $M \... |
If a Turing Machine M, on input w, will M ever move its read/write head to the left?
Determine if this violates Rice's Theorem.
1.
I think the answer for Q1 is decidable because we can make a Turing Machine that decides the problem as follows:
Step 1: If M halts on w and it never moved left, reject it.
Step 2: If M ... |
This is not from online contest
Hi guys, a friend of mine recently give me this problem that I couldn't figure out an effective way to solve it.
Four functions
You are given four functions
$$
\begin{align}
A(x)&=\text{Number of }i\text{ where }1\leq i\leq x\text{ and }\gcd(i,x)=1\\
B(x)&=\sum_{d|x}A(d)\\
C(x)&=\text{S... |
Usually we will see decreasing loss for regular CNN model, but for GAN, it seems to be not that simple. How can we tell whether my model is well trained?
|
Implementation of bucket sort is mainly useful when input is uniformly distributed over a range. So the ques here is what is the significance of having input data uniformly distributed for applying bucket sort? What happens if this does not hold?
|
I'm trying to write a algorithm to solve the following problem, which I did not find any related papers:
Given a set of discrete data points generated by n unknown smooth functions $f_1(x), f_2(x), \cdots, f_n(x)$ at $x_{1}, x_{2}, \cdots ,x_{m}$, how to group these data points into $n$ arrays $a^{(n)}_{i}$ so that the... |
I have a logical question that I can't quite crack:
Given two automata accepting the same language $L$, does one have to refine the other?
In other words, if $A_1$ and $A_2$ both accept $L$, with associated equivalence relations $R_{A_1}$ and $R_{A_2}$, does $R_{A_1}$ have to refine $R_{A_2}$, or vice versa?
I am lea... |
What exaclty is resolution in prolog and how does it enables Prolog to obtain the following answer:
?- sublist([b,c],[a,b,c]).
true
|
Consider a 1-tape TM that starts with n ≥ 1 written in unary/binary
notation on its tape. Explain how it can count down from n to 0 in O(n) steps.
For binary notation, if we have a binary counter representing the number n, then will there be a total of O(log n) different bits (since each bit represents exponentially ... |
I think it would be challenging since the three body problem is about continuous movement and Turing machines execute in discrete steps.
|
The union of a recursively enumerable set and its complement is $\Sigma^*$, which is definitely recursively enumerable. What if instead we consider the following operation, on an RE set $S$?
$$
\{ \# w : w \in S \} \cup \{ \\\$ w : w \in \overline{S} \}
$$
Is the result recursively enumerable?
|
If $E$ is an enumerator and $n$ is a natural number, we define $\langle E,n \rangle$ to be all strings of length $n$ enumerated by $E$. Is $\langle E,n \rangle$ recognizable? Is it decidable?
|
Let $H_0$ be $\log_2(|A|)$, where $A$ is a set.
Let $C$ be a compressor $C\colon A \to \{1,0\}^l \cup \bot$.
This is a silly question, because intuitively it seems obvious.
How can I prove that $l$ can't be less than $H_0$?
I can prove that $l = H_0$ is sufficient, but how can I prove that it can't be less.
|
I am trying to find some generic upper bounds on the "standard" graph partitioning problem. Say I have a graph with $|V|$ vertices and $|E|$ edges I want to partition it into two equal $N/2$ (or approximately equal if easier) parts while minimizing the cut i.e. $\min(|C|)$ where $C$ is the set of edges with nodes on... |
I was trying to solve this problem.
Let $A[1] . . . , A[n]$ an ordered sequence of integers (with possible repetitions) and let $k$ be any integer. A contiguous subsequence $A[i], A[i + 1], . . . A[j]$ of $A$ is $k$-separated if the difference between every pair of its consecutive elements is at most $k$.
For example, ... |
Consider a connected undirected graph $G = \langle V, E\rangle$, we say that a subset $C$ of vertices is a Path-Cover if the following holds. For every finite path $p$, it holds that $p$ traverses all the vertices in $C$ iff $p$ traverses all the vertices in $V$. I am interested in finding a Path-Cover of minimal size ... |
Prove that there are infinitely many primes that divide none of the elements of the integer sequence
$a_{n+1} =1+a_0 a_1 \cdots a_n$, with a starting point of $a_0 \geq 0$.
I thought about $$\log (x_n-1)=\log x_0x_1\cdots x_{n-1}= \log x_0 + \log x_1 +\cdots+\log x_{n-1} $$ to solve the problem but couldn't.
|
I'm a Psychology student with a decent (yet not extensive) knowledge of mathematics and computer science. My knowledge on this two fields are those of a person beginning the third year of computer science (since I studied computer science for two years).
My field of academic interest is evolutionary psychology and beha... |
Suppose $n$ students have preferences over $n$ different notebooks. Their preferences can be represented with a square matrix of size $n$ where each column is a different permutation of the vector $[1:n]$, where the first entry in the column represents the most desirable notebook for student 1, and so on. We are intere... |
Let $n > 0$ be an integer. Show that the rounded square root function
$f(n) = ⌊\sqrt n⌋$ belongs to FP.
Suppose $n=x+y$, where $x$ is the largest perfect square which is at most $n$, and $y$ is the remaining integer. For a given $x$, checking whether $x$ is a perfect square is in time $O(\log n)$ (using binary search... |
So I have been asked to specifically construct a divide and conquer algorithm for the question:
"You are a visitor at a political convention with n delegates; each delegate is a member of exactly one political party. It is impossible to tell which political party any delegate belongs to; in particular,... |
Show that any $S \in NP$ has 2 different polynomial-time verifiers $V_1, V_2$ such that, for all $x,y$, the following conditions hold:
If $V_1(x,y)=1$ then $V_2(x,y)=0$
If $V_2(x,y)=1$ then $V_1(x,y)=0$
I show a guideline that say to define $V_i(x,y)=1$ if $y=p(|x|)+i$ and there exists a prefix $y'$ of $y$ such that ... |
Suppose n people live in a house and wish to share their expenses
equally. Their respective expenses (before settling) are x1, ..., xn.
They agree to write checks to each other so as to make all their net
expenses equal. Naturally, they want to use as few checks as possible.
SETTLEMENT denotes the decision version of ... |
I was watching a coursera video on Approximation algorithms and I understood the 2-approximation algorithm.
Later, the professor asks if we can do any better. The lecturer went on to say that computing 1.3606 approximation is NP-hard in the following words at 8:14.
Here's the transcript for that part.
Actually, what ... |
I am reading Chapter 9 Approximation Algorithms of Dasgupts et al.'s Algorithm book for vertex cover approximation and they bring up the concept of matchings.
To support this, I am also watching Coursera's Approximation algorithms course by EIT digital.
This video mentions using disjoint edges and would like to confirm... |
A: Given nonnegative integers x1,...,xn (written in binary), and an
integer k, can the net expenses be balanced using k or fewer checks? (Suppose that A is in NP).
Purpose: to reveal that SUBSET SUM reduces to A so that A is
NP-complete (since SUBSET SUM is NP-complete).
Let me construct A as follows:
We can find th... |
Let's say we have n postmen that are bringing people mail in a neighbourhood, and that they start and end at the same post office. This situation can be decribed with a directed graph, where the vertices represent the people's houses the mails are brought to. If the graph has an edge from a to b, it means it is an acce... |
We have an $n \times m$ matrix whose entries are non-negative integers and we want to find a sub-matrix whose area (number of entries) is at least $k$ such that the sum of the entries in minimal. The answer to this problem is the sum of these entries.
My solution:
Using dynamic programming, I have defined the sum of en... |
What is the time complexity of the following procedure?
for $x \in \{1,\ldots,n\}$:
$\quad$ $i \gets \lfloor n/2 \rfloor$
$\quad$ while $i \neq x$:
$\quad\quad$ if $i > x$ then $i \gets i -1$, otherwise $i \gets i + 1$.
According to me, the time complexity is $O(n^2)$.
The inner while loop starts at $n/2$ and moves ... |
In the most even possible split, PARTITION function produces two subarrays, each of size no more than n/2. since one is of size floor(n/2) and one of size ceil(n/2)-1.
The recurrence for the running time will be,
$$
T(n) = 2T(n/2) + \Theta(n)
$$
where we tolerate the sloppiness from ignoring the floor and ceiling and ... |
In the context of lambda calculus, how should one prove $\beta$-equality of terms that do not have normal form?
In particular, how to prove that these are different combinators:
$$
Y = λf.(λx.f(xx))(λx.f(xx)) \\
Θ = (λxf.f(xxf))(λxf.f(xxf))
$$
These work the same if we reduce them, but Wikipedia states that they are di... |
Is O(loglog n) equal to O(n^2) in polynomial time?
I know O(log n) is eqaul to O(n) in polynomial time because this can change as follows:
log n > 2^(log n) > n^(log 2) > n.
So, my question is to determine whether O(loglog n) = O(n^2) or not.
Thank you for your time.
|
Wikipedia says that
There are several practical methods of computing minimal unsatisfiable cores.
but I cannot find any. I suppose that “practical methods” means polynomial algorithms. Be careful, a polynomial algorithm, that finds a minimal unsatisfiable core of a given CNF $F$, doesn’t mean that $P=NP$, because the... |
i tried both algorithm to find the shortest path with minimal cost between two vertices,but most of the time Dijkstra gives a different path and the cost is smaller than the cost for the path UCS gives, is this right or there is something wrong with my code?
edit: here's the code for both algorithms implemented in jav... |
Excuse me if this is obvious.
At 1:55 of this Coursera video on streaming algorithms (see pasted image below for relevant slide), the professor mentions sublinear storage. I get the $N^{\alpha}$ but I don't get the $log^{O(1)} N$. I take it that $O(1)$ is a constant which we could set it as $k$ for example.
Does he me... |
I was reading this page on approximation ratios and the author says that for a problem looking for a:
maximum, an approximation algorithm will give us a value lower than this optimal maximum
minimum, an approximation algorithm will give us a value higher than this optimal minimum
Is it possible to get the opposite?
... |
bios is a program that checks all devices and starts the bootloader.
but how does the CPU sync with the motherboard if the CPU clock settings are stored in the BIOS?
Does the BIOS have CPU clock frequency settings?
how does the BIOS adjust the clock speed of the processor if it's just a program?
does the BIOS synchron... |
Let's say we have a string s , a code size limit of b bytes and a time limit t, the question is then whether or not it is possible to construct an algorithm that prints the string within the time limit when a program is given no input.
In other words - is this problem decidable or undecidable?
I was thinking of reducin... |
Give the diagram of transitions of a Turing machine to a ribbon which
accepts the language on the alphabet $\{0, 1\}$ of the words which contain
as many $0$ as of $1$. (Note well that the $0$ and the $1$ can appear in any
order.)
This problem is similar to $\{0^n 1^n : n \in \mathbb{N}\}$ except the fact that we mix ... |
This is from the Algorithms textbook by Dasgupta,C. H.Papadimitriou,andU. V. Vazirani question 8.6 (b) that asks:
Edit:
And missing from the pic as @Nathaniel points out in his answer below:
"3SAT remains NP-complete even when restricted to formulas in which
each litteral appears at most twice".
My reduction from Cl... |
I've been learning regular expressions as part of a class on automata and formal languages. I am still fine tuning and trying to figure out the algebra and the identities.
I am struggling with the regular expression
$$ (b^*a)^+.(b^*a) $$
It's supposed to come out as $$(b^*a)^*$$
I believe I have to use some identity be... |
I know little about computer science. I wrote a function that has some ifs and may call itself recursively.
Is there a branch of computer science that studies these possible branches?
I'd like to analyze the possible branches and maybe generate a graph of all of them to study all possible outcomes of my function.
my_fu... |
Given $\Sigma =\{0,1,@\}$, I am looking at a language $L=\{u@v | u,v\in \{0,1\}^k\wedge u\neq v\}$. So $u,v$ have only $0,1$s, same length $k$, yet are different.
Also, for me $k$ is a known constant. So the language ìs regular (at most $(2^k)\cdot (2^k-1)$ words).
I want to build the most efficient NFA for $L$. So far... |
Given an array of elements which can contain duplicates, this is an algorithm that solves the problem.
def subsetsWithDup(self, nums: List[int]) -> List[List[int]]:
nums.sort()
res = [[]]
self.dfs(nums, res, [], 0)
return res
def dfs(self, nums, res, path, index):
if path not in res:
... |
I have been working on the following problem:
Let $\newcommand{\bin}{\operatorname{bin}}\bin\colon \{0,1\}^* \to \mathbb{N}$ convert a binary representation of a non-negative integer to that integer, with the last symbol of the input being the LSB. For example, $\bin(110) = \bin(00110) = 6$ and $\bin() = 0$.
Design a ... |
I want to write the algorithm that takes the adgacency matrix of a directed connected graph without any cycles, then for each edge computes the number of paths starting from that edge. Also note that there is at most one edge between two nodes.
For example consider the graph depicted below:
For instance, we want to co... |
Suppose there are $n$ points $p_1,p_2,\dots,p_n$ with color red or blue on a line. We want to find all pairs $(p_i,p_j)$ whose color is distinct and such that there are no points between them. If there are $k$ pairs with the described property, design an algorithm with $O(n\log k)$ that uses idea of divide and pruning... |
As we all know, when a given thread/process reaches a memory address it does not have cached, the execution will (for the most part) freeze up until said data is fetched from memory. What I don't understand, is why in multithreaded systems, we can't save ourselves the headache of data-oriented design. Why can't the pro... |
I have seen that a Turing machine without return is a Turing machine $M$ which at each stage of its calculation systematically moves its read / write head to the right.The aim of the exercise is to understand the computing power of Turing machines without return. If a language $L$ is recognise by a Turing machine witho... |
I'm trying to wrap my head around a prune-and-search algorithm for returning a bottleneck spanning tree, currently I'm selecting the median weight of all the edges, then divide the original graph G into two graphs containing the edges which are less than or equal to the median or greater than.
After separating the grap... |
I am a computer science student in his final year on the university with several years of experience in software engineering. I want to take me to the next level in programming web applications.
I am looking for a good book or online course on the subject of distributed programming with in-depth understanding, and how ... |
Binary numbers like '0110', or '00100101' are seen very often in all contexts. What are the leading (left hand side) zeroes for? Why did the writer not write '110' and '100101', respectively?
|
Are the sets in each stage of the arithmetic hierarchy well-ordered, with respect to : $T-$reductions, or $m-$reductions?
It is something which I have been unclear with for a while (from a Computability Theory POV).
|
I have a little bit changed algorithm for 1-0 Knapsack problem.
It calculates max count (which we can put to the knapsack) as well.
I'm using it to find max subset sum which <= target sum. For example:
weights: 1, 3, 4, 5, target sum: 10
result: 1, 4, 5 (because 1 + 4 + 5 = 10)
weights: 2, 3, 4, 9 target sum: 10
resul... |
I proved the inapproximability of a problem that, given a multigraph $G = (V, E)$ and a set of vertices $U \subseteq V$ tries to maximize a score $f(U)$ whose value depends on the edges of the graph, so it takes values in $\{0, \dots, m\}$, $m$ being the number of edges in the graph.
As the result was obtained by (exac... |
Operating System - CPU scheduling Decisions
The question above talks about why CPU scheduling does not take place when ready to running.
But I wonder why CPU scheduling does not take place when new to ready. I think it is similar to the process of waiting to ready. They both add processes to ready without changing pro... |
A Bloom filter is an array $B[1..m]$ of bits, together with a collection of $k$ independent ideal random hash functions $h_1,h_2,...,h_k$. To insert an item $x$ into a Bloom filter, we set $B[h_i(x)] ← 1$ for every index $i$. To test whether an item $x$ belongs to a set represented by a Bloom filter, we check whether $... |
I am trying to understand the discrete Fast Fourier Transform. I get the idea of switching between coefficient and value representations to and then back but I am stuck in figuring out how the multiplication of 2 polynomials using their value representation works.
The screenshot below is from a Reducible video (at tim... |
I was going through the automata text by Peter Linz. There I came across the proof the theorem below. I could not quite get the portion of the proof in bolds.
Every context-sensitive language L is recursive.
Proof: Consider the context-sensitive language $L$ with an associated context- sensitive grammar $G$, and look... |
In the Milner Award lecture "The Type Soundness Theorem That You Really Want to Prove (and now you can)" and related Sigplan blog post (with collaborators), Derek Dreyer argues that semantic soundness is an important thing worth proving.
In the questions section, Adam Chlipala asked how to trade off complexity between ... |
We are given an undirected graph $ G $ and a positive parameter
$ k \geq 0 $. The problem is to decide if there exists a set $ S \subseteq V(G) $ of size at most $ k $ such that $ G − S $ does not have any path on three vertices.
Is there any deterministic kernel algorithm for this problem with $ \Theta (k^2) $ vertice... |
Well in many texts and places I have seen a called statement, which claims it self to the famous "Church Turing Thesis".
I have seen many texts say that based on Church-Turing Thesis :
"Anything that can be done by a digital computer can also be done by Turing Machine".
Peter Linz text roughly says that the thesis is... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.