instruction stringlengths 35 29.1k |
|---|
Is there a good survey or some papers with algorithms in the Turing machine model? I know the paper STRING-MATCHING AND OTHER PRODUCTS contains Turing Machine version of KMP. Are there any other such papers?
|
Consider the following problem: let $(U \cup V, E)$ be a bipartite graph. Is it possible to label the vertices of $U$ with either $``+"$ or $``-"$ such that every vertex of $V$ is adjacent to a vertex labeled $+$ and a vertex labeled $-$?
This seems like a pretty natural problem, and I would be surprised if it hasn't b... |
Polynomial Interpolation in the general case is $O(n^2)$ time complexity, but it can be done better in particular situations. For instance, when the polynomial can be evaluated at the complex roots of unity, it can be interpolated in $O(n\log n)$ time with the Fast Fourier Transform. Or at least, that's the only situat... |
This question is about how to create an if statement (one of the control-flow statements) from scratch.
An if-statement is typically a built-in construct in languages. However, I am wondering if there is a way to construct an if-statement from some other non-control-flow primitives. I am also wondering how to do this w... |
This question concerns the time complexity of outputting the unions of subsets of a given set.
Given $m$ subsets of an $k$-element set, can the union of those sets be computed in linear time with respect to $m+k$? Or $(m+k)p(\log (m+k))$, where $p(x)$ is some polynomial? Or at least known is there a subquadratic al... |
How will the value, A(2) be available in, line 2, if A(2) is being calculated in, line 3?
|
I think I have quite a good understanding of string algorithms. However, a couple of days ago, I came across this post: Find all pairs of strings in a set with Levenshtein distance < d
I was wondering, whether there are more string algorithms which do not have good worst-case guarantees but are good in practice. I gues... |
I am going through Professor Skiena's textbook and he says that there are 3 types of cut-nodes - root, bridge cut node, and parent cut node.
Now if the earliest reachable ancestor from a node is itself, it's parent and the node (if not leaf) become bridge cut nodes.
My question is that we have a simple 2-node undirecte... |
Yesterday at work I came across an interesting problem that I wasn't able to figure how to structure properly. I'm relatively new to the field and was wondering if I could get some help around here.
What i have here is a table like this:
|1-2| 3-5 | 6+ | ($)
________________
| ... |
Given $\\N$ points in 2D space, one is required to cluster them into $\\M$ clusters, with each cluster of a given size $\\S_m$ such that $\sum S_m = N$, in order to minimize the sum of the distance of the points from centroid of their respective cluster. The clusters (or call them bins) are to be filled completely.
Una... |
According to Turing thesis, Can we say all programming languages that support turing machine like C have same power for solving problems and performing algorithms? In other words is there any algorithm or problem that one of them can solve it and the other can't?
|
How do I fill a truth table from the following expression? I can't decide whether it is SOP or POS.
Y=(A+B)C+AB`+(A+C)C`+(`AB)
|
If I have a turing machime TM, can I recognize end of input on the tape?
I know that the "end of input" in a turing machine is signaled with a special character, $\sqcup$.
Can I do this -
Let $TM$ be a turing machine.
Until we reach the first $\sqcup$, continue. If we reached $\sqcup$, replace it with a special charac... |
I've recently come across the problem that seems to be quite interesting but i don't know how to tackle it. I suppose that it might be a special case of maximum flow problem but it seems to be rather different so i need an advice.
Suppose that we have a weighted directed graph with two (possibly the same) vertices desi... |
I am reading a paper on sparse matrices and there is an algorithm for sparse lower triangular systems. In the below pseudo-code $l$ is a sparse matrix and $x,b$ are sparse vectors.
x=b
for j=0 to n-1 do
if x[j] != 0
for i=j+1 to n-1 do
if l[i][j] != 0
~5 operations.
The paper cl... |
I think I barely understand the usefulness of asymptotic notations. And I came across small o and I want to prove that statement is true. But I have no idea how to start.
Those are 2 extra problems with the same idea :
Prove that 1000.n^2+ 1000.n ≠ o(n^2) And Prove that 5.n + 10 ≠ o(n)
Note: someone marked this questi... |
I want to write a scheduling algorithm for the following scenario:
There is a set of tasks to complete, each one with a due date, difficulty (easy, normal, hard) and progress on the task. The idea is that the user specifies the amount of daily hours available to work on tasks, so the algorithm can create a weekly sched... |
Asume 512 Bytes direct-mapped cache with 64 Byte cache blocks (cache line size), is empty at the beginning and below given set of physical addresses are referred by CPU in the given order. At each physical address request, state whether it will be a cache hit or miss in the given cages. Note that all the addresses are ... |
I have a reasonably smooth non-convex non-monotone function in high(ish) dimensional space, that I wish to find a local minimizer for, over a convex feasible region (the intersection of a ball with a set of halfspaces, so a "wedge" of the ball or a polytope), with the caveat that I want the minimizer to be away from th... |
Is there a way to convert a 3SAT formula into a equisatisfiable 2SAT formula? Each method is of interest, even those that grow exponentially.
(So if, for example, my 3SAT formula has 16 variables and 32 clauses, a transformed 2SAT formula would have 2ˆ16 variables and / or 2ˆ32 clauses)
An example of a 3SAT formula I w... |
In ciruclar queue the following command statement is very useful to use the determine the unused location. What is its importance? I know that without this line it won't be a circular queue. But how to say it in theoretical way?
rear=(rear+1)%max
|
I am interested in collecting the list of the classifiers that (depending on their setting) can have linear time complexity (both in training and testing step) with respect to the number of samples $n$, the number of features of each sample $m$, and the number of classes $c$.
In other words, I am seeking for a list of ... |
For example in the definition of $\Theta$:
$f(n) = \Theta(g(n)$ if there exist positive constants $c_1, c_2$ and $n_0$ such that
$$ 0 \leq c_1 \cdot g(n) \leq f(n) \leq c_2 \cdot g(n) \text{ for all } n \geq n_0. $$
I was scratching my head for two weeks since we took this definition in class. Why do we need this c... |
In this post
someone said:
$n + 1$ is approximately equal to 1 for $2^{n+1} = O(2^n)$.
I don't understand this point. For example, in this example:
$$ n + 1 \leq c \cdot n $$
for some $c$ and some $n \geq n_0$, the right-hand side will always be at least the left-hand side.
But here: $$ 2^{n+1} =O(2^n)$$
the left-... |
I have noticed that for all the matrices representing quantum gates, if we read rows left-to-right and top to bottom, the read the same as columns top to bottom left to right.
Example:
\begin{pmatrix}
1 & 0 & 0 & 0\\
0 & 1 & 0 & 0\\
0 & 0 & 0 & 1\\
0 & 0 & 1& 0
\end{pmatrix}
(CNOT gate), if we read the values in from... |
I am confused whether space complexity of a recursive algorithm depends on the total number of recursive calls or not.
Say I have an algorithm which has exponential function calls, but stack size is linear, so in that case we can say that space complexity is not proportional to number of recursive calls but if we say t... |
Seriously why do we consider how the computation time time increase with the number of inputs as a measure of performance when we can easily measure such as program execution time,power consumption,memory usage etc?Because all of these facts are depends on the hardware and programming language we use in that moment an... |
What is the meaning of in place and out place in sorting? What are the difference of two of them? Couldn't find any good explanation in the internet.
|
What is nature of difference of regular language and context free language?
My guess is
RL - CFL = RL
CFL - RL = CFL
Am I correct with this?
|
I want to make the following reduction:
HP is the Halting Problem: HP = {w#x | w, x ∈ {0,1}* , Mw halts on input x}
w is the binary coded turing machine Mw.
L3 is the problem which asks, if M accepts exactly 3 inputs.
I know HP is not decidable, so I want to show that L3 is not decidable also:
HP ≤ L3
How can I make t... |
In Haskell you find graphs defined like this:
data Graph a = GNode a (Graph a)
Or this:
data Graph a = Empty | Vertex a | Overlay (Graph a) (Graph a) | Connect (Graph a) (Graph a)
class Graph g where
type Vertex g
empty :: g
vertex :: Vertex g -> g
overlay :: g -> g -> g
connect :: g -> g -> g
Or this:
... |
Question about "Artificial Intelligence: A Modern Approach by Russell and Norvig"
I have issue to distinguish clearly between intelligent and rational agent presented by Norvig and Russel. What I understand is that rational agent think and act like human but not intelligent agent. Thus, Russel present 4 types of intell... |
If given a grammar, for example, a context-sensitive (type 1) can it always be "reduced" to a equivalent context-free grammar (type 2) and so on for grammars type 2 to "reducing" and getting a type 3?
How can I prove or show that this is undecidable? (if this is the case)
I know that is undecidable whether a context-fr... |
What is the state diagram of a DFA that follows
$L = \{w \in \{0,1\}^*\mid w\text{ has at least two or more 1's than of 0's}\}$.
Examples: $110$ doesn't work, $1110$ works.
|
I'm learning computer graphics, and I read this course lecture in order to understand how graphics I/O works under the hood. But the following explanation was not very clear to me:
The values in the framebuffer are converted from a digital (1s and 0s
representation, the bits) to an analog signal that goes out to the... |
If we have two languages $L_{1} \subseteq \Sigma^{\ast}_{1}$ and $L_{2} \subseteq \Sigma^{\ast}_{2}$
I proved that when $L_{2} \in \textbf{P}$ and $L_{1} \leq_{p} L_{2}$ then $L_{1} \in \textbf{P}$
Is it also true that when $L_{2} \notin \textbf{P}$ and $L_{1} \leq_{p} L_{2}$ then $L_{1} \notin \textbf{P}$? I don't ... |
What are acceptable languages in computational complexity? Is it Turing recognizable? I was searching online and found this description. Does anyone beg to differ?
|
I'm interested in studying the problem of the optimal meeting point, which can be described as follow: $n$ individuals who want to gather in a restaurant (for example). They want a fair meeting point and to minimize the time/distance for everyone.
I'm looking for information on that problem, but I've only been able to ... |
I was trying to understand the egg dropping puzzle. The problem objective is:
What strategy should you adopt to minimize the number egg drops it takes to find the solution?. (And what is the worst case for the number of drops it will take?)
I understand we want to minimize the egg drops, but what does this worst case n... |
I have the following problem. If L is decidable and L = L1 u L2 (union). So are L1 and L2 decidable, too?
I know that, if L is decidable, the complement is also. And this means the complement is recursively enumerable. How can I proof it?
|
Wondering if/how you could define a highly nested structure as a Dependent Type (or an Algebraic or Parameterized type). Specifically, an HTML template. Not that they work like this (HTML templates don't have variables to plug in), but imagine a template like this:
<template id="MyTemplate">
<section>
<header>
... |
Consider a particular algorithm that solves the binary search problem (or similar stuff) by performing $\sqrt{n}$ simple operations on numbers of
$\log(n)$ bits. Suppose this algorithm works on a Word Ram machine with
word size $w=\log(n)$. What happens if the algorithm uses a memory area
with $n$ numbers that are not ... |
How to get upper, lower, average bound of given algorithm? What should be the first step I should do? I search on the internet and only give me the definition of those 3. For example if take the algorithm of nlog(n)+2 then how do we find the lower and upper bound of this? What would be the first step?
|
I work at a summer camp where one of the activities is called Speed Dating. It's a game where participants talk with each other for a fixed amount of time. At the end everyone has to list three people they liked the most.
I'm looking for an algorithm that would match participants based on their preferences. It seems li... |
In a binary system we know that the next floating point number after 4 is 4+1/32. What is the machine epsilon? Is it 1/32 and if yes, why?
|
In a report on an open-source separation kernel (Muen kernel) I was reading,
in the future work section, it says that cache coloring can be implemented to prevent covert/side-channel attacks.
It is mentioned that
In a second step each subject is associated with a color. All subjects of a given color share the same cac... |
I am going from an IT minor to a Computer Science major. I made this decision because I love computers, I love the science behind them and I love learning most of all. My graduate research thesis is related to Artificial Intellligence.
However, I feel slightly overwhelmed. Although I did have some math in my IT minor, ... |
In the Foundations chapter of Elements of Programming (Stepanov and McJones, 2009), this paragraph appears:
A value type is properly partial if its values represent a proper subset of the abstract entities in the corresponding species; otherwise it is total. For example, the type int is properly partial, while the typ... |
Say we have an algorithm that
takes an input a triple
($X$, $A$, $\epsilon$),
where $X$ is a sequence of $n$ bytes, of which the algorithm might query only a subset, and $A$ and $\epsilon$ are numbers with $A \geq 1$ and $\epsilon > 0$.
It is claimed that this algorithm runs in time
$$
\tilde{O}(\frac{n}{A^3 \epsilon... |
Assume also that $v_1,v_2$ are linearly independent, and $q_i \in \mathbb{R}^n$ denotes the $i$-th column of $Q$. This is what I've got so far. First obtain unit vectors $w_1,w_2$ which are orthogonal and $span\{w_1,w_2\} = span\{v_1,v_2\}$. Now compute a Householder matrix $H$ that aligns $w_1$ with $e_1$, i.e. $Hw_1 ... |
In dynamo paper, it says that in production most of the users set N = 3, R = 2 and W = 2.
The common (N,R,W) configuration used by several instances of Dynamo is (3,2,2). These values are chosen to meet the necessary levels of performance, durability, consistency, and availability SLAs.
In most production system, N =... |
One of the ways to prove that Graham Scan constructs convex hull in linear time is using planarity of the graph obtained by running the algorithm. This graph is always planar, so according to Euler's formula the number of edges can never be more than $3*n$ (where $n$ is the number of vertices). My question is, how do w... |
Given a nonlinear cost function $G(\vec{x})$ of many variables, does there exist a method that allows one to find successive local minima $\vec{x}_0, \vec{x}_1, \dots$ so that $\vec{x}_n$ is orthogonal to $\vec{x}_{n-1}, \vec{x}_{n-2}, \dots, \vec{x}_0$?
Sorry for the apparent lack of effort on my part, but the field o... |
Assume we need to include a certain set of nodes in the tree within the whole graph, the generated tree can contain nodes other than the specified set of nodes. We also need the number of edges (or the total amount of edge weight) included in the tree is minimum.
|
I use Latin hypercube sampling to select what point to evaluate my function. As evaluations take a lot of time, I want to limit the time by adding already evaluated points.
I thought about taking the min distance between the points, and if I have an already evaluated point that is near on LHS point, I remove the LHS to... |
I have a task where a RAID 1+0 system (A RAID 0 connects two RAID 1's with two disks each = makes 4 disks in total) is given with no further details. Then let p be the probability that one disk shows signs of failure. The variable p is not further defined.
Now I've received the task to calculate the probability that th... |
We know that $\mathsf{DSPACE}(\log\log n) = \mathsf{DSPACE}(1)$ according to this proof.
Can we claim that $\mathsf{DSPACE}(n)=\mathsf{DSPACE}(n/\log\log n)$ or something like $\mathsf{DSPACE}(n^3)=\mathsf{DSPACE}(n^3/(\log\log n)^k)$ for some $k\in \mathbb{N} $?
|
If a term rewriting system is confluent, then every term has at most one normal form. Is the converse also true, or is confluence a strictly stronger property? I.e. if every term has at most one normal form, does the rewriting system need to be confluent? My intuition is that the answer is no; for example, it seems to ... |
I am aware of following two facts related to two concepts: regular languages and finite sets:
Regular languages are not closed under subset and proper subset operations.
It is decidable whether given regular language is finite or not.
However I feel these facts are quite insufficient to prove whether following stat... |
We are given a set of $n$ numbers and want to know whether it can be partitioned to two sets with an equal sum.
To prove that an equal partition exists, it is sufficient to show a partition.
What is the shortest way to prove that an equal partition does NOT exist?
Apparently the only way to prove it is to show all the ... |
Say I had a list of numbers in the range of 1-20 for example: [5, 16, 17, 3, 2, 14, 4, 9, 11, 19], and an integer k (let's say k = 40)
How would I find the maximum possible size of S, where S is a set of pairwise-disjoint subsets of the list, and every element of S sums to k?
I believe this algorithm is NP complete.
Ju... |
I'm going through Cormen et al.'s Introduction to Algorithms and I am a little thrown off by some of the subtleties of solving recurrences with the substitution method. Given the recurrence:
$$ T(n) = T(\lfloor n/2 \rfloor) + T(\lceil n/2 \rceil) + 1, $$
We guess that the solution is $T(n) = O(n)$. Thus we try to show... |
I am in the process of making a cryptocurrency trading bot. Currently, I am doing backtesting over a period of 7 months in which I provide a portion of historical data as if it were in real-life.
By modulating 3 variables: decision threshold, maximum % gain per trade, and stop loss, I want to find the best input value... |
Say I have the following contrived example code:
a(1)
function a(x) {
var n = b(x)
var m = c(x)
return n + m
}
function b(x) {
var n = d(x / 2)
var m = e(x)
return n - m
}
function c(x) {
var n = d(x)
var m = e(x)
return n * m
}
function d(x) {
return x + 2
}
function e(x) {
return x + 3
}
T... |
I am an undergraduate majoring in Computer Science and Mathematics.
For my undergraduate research, I would like to work on something that lies in the overlap between systems research and theoretical computer science. Something that could satisfy this requirement is cache-oblivious algorithms because it is about the an... |
Looking at the Symbolic Execution limitations, there are some good solutions to the "Environment interactions" problems. However, the solutions to the path explosion problem are less than ideal.
Solutions to the path explosion problem generally use either heuristics for path-finding to increase code coverage,[2] reduc... |
My question is if the following statement is true or false:
Does every turing-recognized $B$ language has a turing machine $M$ that recognizes $B$ and fullfiles the following statement:
For every word $w$ the belongs to $B$, $w \in B$, the writing-reading head never moves to the left?
Notice that the condition is requ... |
On one hand, it seems to make no sense, because of the following:
When expanded, the claim $f(n,a) \in O(n/a)$ would be
There exist $C > 0$, $n_0$, and $a_0$ such that if $n \geq n_0$ and $a \geq a_0$, then $f(n,a) \leq C \cdot n/a$.
Now, given any $\epsilon > 0$, we can find an $a_\epsilon \geq a_0$ such that
$C \c... |
So on my course we're dealing with a more basic, simple varition of the Bellman Equation.
V(S) = max a(R(s,a)+yV(s'))
As far as I can tell...
V(S) = Value of a state
max a = Maximum over all the actions
R(s,a) = Reward of a state and action
y = Gamma (Discounting factor)
V(s') = The end state
So how I've always ... |
Given a lower-bound predicate function which returns true if an input is greater than or equal to a constant string, what is the optimal way to search for the constant? The strings should be lexicographical compared.
For example, given a handle to the following function, but not knowing the specific constant used:
fn l... |
I'm hoping to design and implement an intuitive algorithm that solves 9x9 Sudoku puzzles. I want to do this by first formalising the basic rules of the puzzle, and then deriving principles from these that when followed should be sufficient for solving the problem. I have reproduced my (very rough) work below.
Rule 1: E... |
So for example, we are trying to predict the amount of rainfall in the afternoon base on continuous features such as humidity and temperature in the morning.
1st neural network: Regression neural network on features to give one output label which is a continuous value for predicted rainfall in the afternoon.
2nd neural... |
I'm a bit new to automata theory, I'm sorry if this question is a bit too simple. If this question has been answered somewhere already, please point me to it.
One basic problem I wanted to solve was defining the minimal set of states need to construct a (minimal) DFA that accepts
$$(a^+)+bcd^*\,.$$
I'm not sure how to ... |
I have some "fuzzy" congruences like these:
\begin{align} \\ x&\equiv a_1 \mod 3 \text{ with } a_1 \in \{0,1\},\\ x&\equiv a_2\mod 5 \text{ with } a_2 \in \{2,3,4\},\\x&\equiv a_3 \mod 7 \text{ with } a_3 \in \{5,6\}\\ \end{align}
These example moduli would provide a unique solution for $x \mod lcm(3,5,7)$, if the $a_i... |
The problem of determining, given a string $x$ and a context-free grammar $G$, whether $x \in L(G)$ is conjectured to take more than linear time in the length of $x$. Currently the best known algorithm is Valiant's which takes $\Theta(|G||x|^\omega)$.
On the other hand, for a fixed $G$ there may be a specialized recogn... |
I have a network which includes $L$ blocks ($B_1,\cdots,B_L$) connected one after the other. I have an algorithm having computational complexity $\mathcal{O}(N)$ which runs in each block individually.
I first run the algorithm on $B_1$ and get the output. Based on that output, I select the second data set in $B_2$. ... |
I am trying to re-implement SuperPI myself in Rust, but the results I get are not very accurate. SuperPI computes pi using the Gauss-Legendre algorithm.
The Gauss–Legendre algorithm is quite simple, but the problem is how to store values with full precision. I store all numbers as arbitrary sized rationals, but I am s... |
Is the speed of compiling software very dependent on the CPU? I know this question is a bit broad, but I'm to find an answer to the case described below.
If I download a software project that makes use of Node.js, TypeScript, and JavaScript and compile it running yarn it takes a certain duration on machine A and anothe... |
To elaborate on the title: I have a recursive algorithm whose input is reduced by 1 for every iteration until the input size is 1.
1st iteration: n
2nd iteration: n-1
3rd iteration: n-2
4th iteration: n-3
.
.
.
nth iteration: n-(n-1)
How can I describe this in asymptotic notation?
|
So i have asked this before, but i still didn't get my answer so I'll try to make my question more clear this time :
Based on my O.S book, Time sharing operating systems switch between processes very fast using a time slice and it uses interrupts when the time slice ends and switches to another process, so isn't this ... |
Consider this implementation of the Bakery Lock:
integer array[0..n-1] label = [0,...,0]
boolean array[0..n-1] flag = [false, ..., false]
lock(me):
flag[me] = true;
label[me] = max(label[0], ... , label[n-1]) + 1;
while (∃k ≠ me: flag[k] && (k,label[k]) <l (me, label[me])) {};
unlock(me):
flag[me] = false;
I... |
I understand intuitively that gear bits in the massively successful Turing Tumble game (funded by kickstarter) are necessary for Turing completeness*.
I had a fantasy about building a computer with the Lego racetracks which have Y junctions operated by gates. Going into a branching path, the gate controls the car's pat... |
Is there any algorithm for estimating how well certain array of bytes could be compressed in lossless manner?
Usage for me is to automatically choose "best" data reorder method without knowing what compression method end user is going to use. I don't need perfect/optimal result, I just need some kind of numerical resul... |
This problem involves the time complexity of erasing entries that occur more than once in a list. I think it might be $n \log n$.
Problem
The input is a finite set $S$ and a finite list $T$ whose entries are in $S$. The size of the input is $n= |S|+ |T|$, where $|T|$ is the length of the list. The output is a... |
I'm trying to understand why the following is incorrect.
Given a $STCON$ problem, specifically a graph and nodes $(G, s, t)$, we can assume we are given it's adjacency matrix, $A$. By adding self-loop (filling the main diagonal with $1$'s) we can multiple this matrix with itself n times, each time checking if the $s,t$... |
Okay.I have problem about cache mapping. Here is the problem .
Memory size is 1 MB
Byte addresable
Cache block size is 16 Bytes.
Cache size is 64kb
Since memory is 1 mb=2**20 Bytes.
So we need 20 bits for the one single address .
Since it is byte addressable and each block size is 16 bytes we need for 4 bits the ... |
This is the problem :
Given two arrays of $n$ elements A and B, let's define their sum as
$$ A + B = \{ a + b \mid a \in A \text{ and } b \in B \}. $$
Calculate $A + A$ in optimal time given that $A[i] \in [1,10n^{1.5}]$ for all $i$.
In order to solve this problem I used FFT by representing a polynomial in the f... |
I'm currently creating a NeuralNetwork with backpropagation/gradient descent. There is this hyperparameter introduced called "learning rate" (η). Which has to be chosen to guarantee not overshooting the minimum of the cost function when doing gradient descent. But you also do not want to slow down learning unnecessaril... |
In the book by Sangiorgi and Walker ("The $\pi$-calculus: A theory of Mobile Processes"), Subsection 3.2 is devoted to recursion. They state the following constraint (pages 132-133):
"The environment is finitary, in the sense that any process depends on only finitely many constant definitions. (Formally, the transitiv... |
I’m wondering whether there are any algorithms that use so much time that they must be represented using Knuth up-arrow notation.
Required: Use more than one up-arrow for time complexity.
Bonus points:
Have the algorithm be useful.
Have the algorithm be useful and optimized
|
Suppose I have a positively weighted (bounded-degree) graph $G$ where each vertex in $G$ is colored either black or white. I'm curious about the complexity of the following problem:
Find a subset $S$ of edges of G of maximal weight, subject to the constraint that any node colored black is incident to an odd number of ... |
I'm currently looking into computability logic.
Japaridze explain that a game !P v P like !Chess v Chess is always winnable thanks to the copycat strategy (http://www.csc.villanova.edu/~japaridz/CL/3.html#copycat). However, what guarantees that the environment will play the same moves? One game could be e4 e5, but the ... |
In Coq we have an impredicative base type, called Prop, and a predicative base type, called Set, both of type Type 0.
On the other hand, in Lean we only have an impredicative base type. We do not have an equivalent to Set. Instead we use directly Type 0(a synonym of Sort 1).
What are the implications of this design dec... |
Currently, I am developing a transpiler for my own language, however, I find difficulties to transpile generic functions. For example, how would you translate the following Java-like code in to C?
interface Comparable<T> {
boolean compare(T that);
}
class Person implements Comprable<Person> {
public string nam... |
Assuming P = NP, why should P be a subset of NPC?
Here is how I understand it:
P is a subset of NP
NPC is a subset of NP
if we solve an NP Complete problem on a deterministic machine in polynomial time then
NP is a subset of P
P=NP (from 1 and 3)
NPC is a subset of P (2 and 3)
But why is P a subset of NPC, if P = ... |
I'm reading about an operating system but some concept confuses me.
What doesn't confuse me:
When an interrupt or system call or processor exception occurs, it happens when user mode tries to switch to the kernel mode, the operating system uses PCB(process control block) to save needed stuff, namely - hardware complet... |
I have a table and asked me to add my information to it. And then asked me to find my information in the easiest way (after adding your details to the table, assume that the table is arranged alphabetically for names How many comparisons to find your name in the table if you use binary search Give details on how you go... |
Consider a recurrence of the form
$T(n) = a T(n/b) + f(n)$
Master theorem's regularity condition excludes some cases (for example, when $f(n)$ is oscillating).
Suppose, however, that $f(n)$ is always less than or equal to a function $g(n)$ that does not violate the regularity condition, so that the master theorem is ap... |
I'm currently looking into Japridze's computability logic. It looks great, but I was wondering whether any programming languages or systems implement it.
Does anyone know of any implementation?
Thanks.
|
So in the silberschatz O.S book it says Windows uses one to one model (mapping user level threads to kernel level threads)
but why? i thought many to many and two level models are much better, specially two level model, so why not use the two level mode or many to many? whats the benefit compared to other models and is... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.