instruction stringlengths 35 29.1k |
|---|
$\log(n)$ is not polynomial; is a problem solvable in $\mathcal{O}(\log n)$ time in P?
$n\times \log(n)$ is also not polynomial; is a problem solvable in $\mathcal{O}(n\times \log n)$ time in P?
If not, what complexity classes contain those problems?
The definitions I've found all refer to "polynomial time", not "at ... |
I wanted to solve the following problem about 3SAT . The question is
1. to show if the problem is NP-complete and
2. whether the problem has two different satisfying assignments.
"TWICE-3SAT Input: A propositional formula ϕ in conjunctive normal form, such that each clause consists of exactly three literals (as in 3S... |
My professor gave us this pattern "/[aeiou]+[1234567890]*[a-z]?/" and I'm trying to find matches in "ae12abc r2d2 a1steaksauce".
The resulting matches the professor gave us are ae12a, a1s, eak, auc, and e.
I think I'm totally misunderstanding how this is supposed to work. Why are ae12abc, r2d, or a1steaksauce not possi... |
I'm looking to find / develop a simple parallel algorithm that does this:
Input:
vs: list of root vertices
max_length: max cycle length
max_dist: max distance to root
Variants
one variant of the algorithm should support directed graphs
the other variant should support undirected graphs (or treat a directed graph... |
The (second) distributive law in boolean algebra is defined as
$A + (B C) = (A + B) (A + C)$
But wouldn't it be correct to define it that way:
$(A + (B C)\, ) = (A + B) (A + C)$
Because if you transform
$(\sim D + \sim C) (\sim D + B + A) (C + \sim B + \sim A)$
to
$\sim D + (\sim C (B + A) \, ) (C + \sim B + \si... |
This question was asked by my professor in optional brain teaser section, I have tried to solve it for last 48 hours, I am not able to construct a deterministic Turing Machine, Can someone provide hint or something because this seems like impossible to me :( ..
|
Given a bipartite graph $G=(A,B,E)$ and a weight function $w: E \rightarrow\mathbb{R}^+$, I'd like to find a perfect matching $M\subseteq E$ with min. weight. I'm assuming $|A| \leq |B|$, and WLOG $G$ is a complete graph (else give weight $\infty$ to non-existing edges).
Giving a variable $x_{i,j}$ for each $a_i\in A$ ... |
I read that Name binding assigns some value (data/code/expression) to an identifier. Assignment and valuation seem to do the same thing. It is confusing. Can I just tell that free variable is one, which was not assigned a value whereas bound variable has its value assigned?
|
Assume you have a grid as below:
The square is the sliding window. I want to slide this window over all the possible position such that the window is contained in the grid (i.e the edges of the window should not cross the boundaries of the grid.)
For each such position I want to calculate the sum of the cells in the w... |
I would like to know how to find the average branching factor for 8 puzzle.While referring Artificial Intelligence by George F Luger it says that:
Suppose,for example we wish to establish the branching factor of the 8-puzzle.We calculate the total number of possible moves: 2 from each corner for a total of 8 corner mo... |
It seems that row polymorphism with union types can be used in dynamic languages to approximate overloading, e.g. given the following python function:
def f(foo, o):
if foo:
return o.x
return o.y
Depending on the value of foo, the type of o could be $\forall \alpha, \left. \rho_1 \middle/ x \right.. \{... |
Given two integers $X$ and $Y$, each can be encoded in binary $X=(x_4 x_3 x_2 x_1)$ and $Y=(y_4 y_3 y_2 y_1)$, how do I encode each one of the constraints
$$|X-Y|\geq n \quad\text{and}\quad|X-Y|= n$$ when $n$ is a given natural number (say, 10) as a boolean formula over $x_1,\dots, x_4, y_1, \dots, y_4$?
|
I ask a question before, Questions on Graph and Hamiltonian, but i ask it here with different challenging contest.
From this book and other study in complexity theory, I have seen the following statement:
The definition of NP is not symmetric with respect to yes-instances and no-instances. For example, it is an open ... |
Are there any known "hard" instances for NP-Complete Problems,
or are there no general hard instances. So for different algorithms different instances are hard?
|
I am iterating over a tree through an API. This API provides a list of nodes sorted in post order DFS. I need to gather data for each node in the tree, combine that data with the parent's data (according to some heuristic not just a simple arithmetic accumulation). Another way to look at this, is that each node in the ... |
If a problem $A$ is poly-time reducible to a problem $B$ ($A <_\mathrm{p} B$), and $B$ can be solved in time $O(n\log n)$, can $A$ also be solved in time $O(n\log n)$?
|
Let $f:\mathbb{R}^d \to \mathbb{R}$ be a function that is fairly nice (e.g., continuous, differentiable, not too many local maxima, maybe concave, etc.). I want to find a maxima of $f$: a value $x \in \mathbb{R}^d$ that makes $f(x)$ as large as possible.
If I had a procedure to evaluate $f$ precisely on any input of m... |
I looked at my notes from a class about fast forier transform , and the professor proved in class theorem thanks to Morgenstern , first he defined linear algorithm as a algorithm that inly uses multiplications by scalar and addtions, that he stated Morgenstern's theorem the following way
Every linear algorithm that co... |
I'm trying to understand the relevance of the Lamport distributed mutual exclusion algorithm (or any of its variants), where a group of processes cooperate to gain exclusive access to a resource without relying on a centralized coordinator.
How can this be useful in practice? For instance, if the resource is something... |
An embedding of a graph G on a surface Σ is a representation of G on Σ in which points of Σ are associated to vertices and simple arcs are associated to edges in such a way that:
the endpoints of the arc associated to an edge e are the points
associated to the end vertices of e,
no arcs include points associated with... |
Definition 1: Point $(x,y)$ is controlling point $(x',y')$ if and only if $x < x'$ and $y < y'$.
Definition 2: Point $(x,y)$ is controlled by point $(x',y')$ if and only if $x' < x $ and $ y' < y$.
I'm trying to come up with data structure to support the following operations:
$\mathrm{Add}(x,y)$ - Adds a point $(x,y)$... |
On a graph $G(V,E)$, we do the following process:
Initially, all nodes in $V$ are uncolored.
While there are uncolored nodes in $V$, each uncolored node does the following:
Selects a random real number and sends it to all its neighbours;
Compares its number to the number of its neighbours; if its own number is strict... |
A tree with integer weights (positive, negative or zero) is given. We want to design an efficient algorithm for finding a simple path with lightest weight in this tree. That is, we look for shortest paths where the length of the path is equal to sum of all edges weights.
I know that in a tree there is only one simple p... |
If it is given that a program has a worst case running time of $O(n)$, then is it still okay to define the running time as being $O(n^2)$. By definition, this seems corrects since Big-Oh is essentially an upper bound.
But, since we already established a worst case running time, can this still be correct.
|
I'm writing a research paper and I have to basically say that one microcontroller is slower than an other microprocessor. However, I'm worried that simply saying that it's 'slower' wouldn't be appropriate in a research paper.
Am I right? Is it OK to just say that one processor is 'slower', or do I need to say somethi... |
I have a set $S$ of $n$ (arbitrary) integers which I want to partition into subsets $S_1, \dots, S_k$, each of size $n/k$ (you can assume that $k$ divides $n$). Let $A$ be the arithmetic mean of elements of the set $S$. I am looking for the fastest algorithm that fills each $S_i$ with elements of $S$ such that sum of t... |
Say I have a polynomial over $Q$. Let it be given in the form of arithmetic circuit family ${C_n}$. The randomised poly time algorithm evaluates the polynomial at a random point. What if the number of bits required for the intermediate calculations is too high i.e How can we guarantee that the evaluation does not requi... |
I know some computer programs can be modeled as intelligent agents, for example a chess program which plays against a human. The environment is the chess board stored in the memory and actuators are commands to move a piece. Another intelligent program may react to the user commands.
My question is could any computer p... |
There is a theorem that says if a language is regular, its reverse is regular as well. How can I draw a DFA that shows if a language is regular, it's regular as well?
|
For my computer science class I need to finish a project where I desperately need to understand logic of one's complement and two's complement. I already know how to construct these and also how hardware adder works when dealing with two's complement. The thing that is bothering me and I need help with is the logic beh... |
I need to create a hash table to store values for (possibly all) permutations of 123456789, which is exactly 362 880 keys.
Given that I know how all the keys look up front, it seems I that there should be an optimal hashing function, and an optimal size of the table to store the values in.
Is this true? If so, how can ... |
If the branch predictor is placed in the fetch stage then how does it know that the current instruction is actually a branch before trying to predict its outcome? Is some (very little) decoding already done in the fetch stage before going to the actual decode stage?
|
I know the environment of an intelligent agent is divided to discrete and continuous. But I think they are relevant to sensors and actuators of the agent itself. Moreover, environment may have many mutable factors,(some continuous, some discrete).
For example for an agent which is an expert system (computer program) t... |
Is there an algorithm which provides a sequence of all simple planar graphs, unique by graph isomorphism? For instance: first all planar graphs with 1 node, then all planar graphs with 2 nodes, etc.
Note: It is okay if it generates only graphs with a minimal node degree of 1 or 2.
|
I am quite new to Red-Black trees, and therefore I am having a bit of difficult time trying to understand them.
One of the properties of the Red-Black tree is that every red vertex must have two black children, meaning one cannot have two consecutive red vertices.
Can someone explain to me why this is an essential prop... |
Assume a list $L$ is to be sorted using the following variation of insertion sort: For $2 \le i \le n$, to insert key $L[i]$ do a binary search on the list $L[1..i-1]$ to find the correct position.
How many key comparisons are done in the worst case?
I think the worst case is when $L$ is sorted in reverse order, whi... |
From Wikipedia, an affordance is:
a relation between an object or an environment and an organism, that
affords the opportunity for that organism to perform an action
Previously what approaches have been used to encode this in an embodied intelligence? In other words, has anyone tried to get a robot to understand th... |
I am trying to reduce the complement of the HALTING problem (WLOG, the complement of the HALTING problem is the language of TMs that loop on some string w)to this language in order to show that it is not recognizable. Does anyone know how to do this reduction, what I come up with is:
Using python-like syntax:
def R(<M... |
I have an input number c of n bits and its prime factorization. I want to find a divisor of c with certain fixed bits "f". For example:
INPUT:
c=1100011 (99) (n=7)
prime factorization = 11,11,1011 (3,3,11)
f=0??1?0?
OUTPUT:
o=0001001 (9)
Unfortunately, it's no use to check all divisors, because according to http://en... |
I'm reading Introduction to Algorithms and would like to know if learning the proofs is worthwhile.
|
I am reading this paper for my master thesis and trying to understand every concept in it. The following sentence confuses me as to what is the exact definition of a dictionary in this concept except for the fact that it holds the atoms as its columns?
Recall we refer to the columns of the matrix $A$ as atoms that are... |
The cover time of a graph is the expected number of steps in a random walk on the graph until we visit all the nodes.
For undirected graphs the cover time is upperbounded by $O(n^3)$.
What about directed graphs? I'm looking for examples of super-polynomial cover time.
Is there an example for such graph with $O(2^{\sqrt... |
So, in generic program analysis, we have a lattice $L$ with a join operation $\sqcup$, program with statements labelled, and for each label $b$, a transfer function $F_b : L \rightarrow L$.
The goal is to find, for each label $b$, a fix-point $x$ such that $F_b(x)=x$. This is a common approach used in dataflow analysis... |
I usually find this in the context of asking about NP-complete problems, but any decision problem works. We start by assuming there's a polynomial time algorithm that gives the yes or no answer. If it's yes, how can we go from that to finding a polynomial-time algorithm that gives the certificate?
For example, let's sa... |
My problem: Define two sets P and Q of words (that is, two problems) such that: P is undecidable and not semidecidable, Q is undecidable and semidecidable and P ⊂ Q
|
Is it the task of the software (operating system) to detect stack overflows or is a stack overflow detected in hardware, causing an exception in the CPU?
|
I'm doing some classification experiments with decision trees ( specifically rpart package in R). By setting the depth of a decision tree to 10 I expect to get a small tree but it is in fact quite large and its size is 7650. So what is exactly the definition of size (and depth) in decision trees?
PS: my dataset is quit... |
Anyone could correct me that Why just (1) is False. i'm not sure why others are true: ( G is a Context Free Grammar). any brief description?
There is an algorithm that decides whether the complement of $L(G)$ (language generated by $G$) is empty or not.
There is an algorithm that decides whether the reverse of $L(G)... |
Anyone can describe why $L_{1}$ is not the complement of $L_{2}$, and why $L_{2}$ is not context free?
$$L_{1}= \{w_{1}cw_{2} : w_{1},w_{2} \in \{a,b\}^{\ast}, w_{1} \neq w_{2}\}$$
$$L_{2}= \{w_{1}cw_{2} : w_{1},w_{2} \in \{a,b\}^{\ast}, w_{1} = w_{2}\}$$
|
I would like to rate a set of $n$ elements, with each element assigned a rating from ${0,\dots, 10}$.
The way in which I want to rate is by repeatedly selecting subsets of $k$ elements and querying a user to rank them relative to each other. I would like a means of minimizing the number of necessary queries to assign r... |
Alphabet: abc
Sample input:
abc
cba
aabbcc
aaabbbccc
caac
Sample good outputs: acb, cab, cac and others, since they are not substrings of any other, and because all strings of length 1 and 2 are present.
Sample bad outputs:
aab since it is a substring of 3)
aaaa because it is not minimal: we have other solutions wit... |
How can I efficiently generate the first N elements of the sequence $3^i 5^j 7^k$, where $i,j,k \in \mathbb{N}$?
I've googled around a bit and found the sequence in OEIS, but I don't really see a simple way of generating it.
|
I am trying to show that the sum of $\log n$ $n$-bit integers can be computed in $\mathsf{AC^0}$. I know that the iterated addition is computable by fan-in $2$ circuits of depth $O(\log n)$, so the sum of $n$ $n$-bit integers is in $\mathsf{NC^1}$. This means that the bound is very tight. I found somes notes here which... |
There is a hint for part B, but I do not get which ones are the right cases to get rid of both goblins. Thanks!
How can I tell who is a truth teller and who is a liar?
|
Is it possible to compare PDA having N-Stacks with Turning Machines. Are they equally powerful in this situation?
It's been told that PDA with 2-Stacks is equally powerful to Turning Machine. But what if we add more stacks i.e. 3, 4, 5...N to PDA; will it become more powerful or it can serve same purpose.
|
I'm studying Hoare logic and I can't understand the relation between partial and total correctness regarding loop invariant. Suppose for example that I have the following program:
{X ≥ 0}
Y := 0;
Z := 0;
{Y =2Z}
while (Z ̸= X) do (
Z := Z + 1;
Y := Y + 2 )
{Y =2X}
The solutions says that for partial correctness I can ... |
Say I have some computation model/programming language $M$ (e.g. Turing machine or equivalent), and let $C_M$ be the set of all partial or total functions $f : \mathbb{N} \to \mathbb{N}$ computable by that model. Also, assume that $C_M$ is countable.
Now let $B = \{ B_1, B_2, ... , B_n \}$ a finite set of computable ba... |
In binary a unit (bit), can store 2 separate values.
if you have ternary, then a unit can store 3 separate values.
why then don't computers use higher bases, for example in ternary you could have 3 different voltages, and even if transistors got a little bigger, wouldn't it still be more efficient?
|
In my parallel algorithms class, the PRAM model is described as having an "arbitrary number of processors, bounded by some polynomial in the input size."
I think that this may be missing a constraint. For example, this would imply that finding a Hamiltonian cycle is in NC:
If I give all of the permutations of the vert... |
I've joined computer science classes at high school because I have a wide knowledge and a few years of experience in programming in multiple of languages, however I didn't fit in the requirements of the class, which is a specific mathematics level. I am a low level mathematics student, I don't really know formal mathem... |
In Richard Karp's paper "Reducability among combinatorial problems" he lists 21 NP-Hard problems. Though I can somewhat understand the ideas and motivation behind the paper I am searching for some clarity.
From what I know and understand this paper showed the parallels between the various problems. Specifically that t... |
Lets say you have a language $L$ and you want to determine if it is context free.
Context free languages intersected with regular languages are context free. Is that enough to prove that $L$ is context free?
Meaning, given a regular language $P$, if
$$L \cap P = T$$
where $T$ is context free, is $L$ is context free?
Le... |
I've been working on a problem for my Algorithms class, but I've found myself stuck. The prompt is as follows.
You start with an empty room and a group of n people waiting outside. At each step, you may either admit one person into the room, or let one out. Please design an algorithm which generates a sequence of $2^n... |
It is being said that 'Eugene Goostman', a computer programme developed to simulate a 13-year-old boy, managed to convince 33 per cent of the judges that it was human, and thus passed the Turing Test.
The computer programme, aka a chatbot, was pretending to be a 13-year-old Ukranian boy for whom English was a second la... |
A colleague came up with the following search algorithm:
We have an array of sorted, distinct integers [$i_0$ < $i_2$ < ... < $i_n$]
We are looking for the index of $i_k$ (for simplicity suppose that $i_k$ is in the array)
We suppose that the elements are pretty uniformly distributed between $i_1$ and $i_n$
The algor... |
https://cstheory.stackexchange.com/a/3627/32204
Could someone explain to me why this reasoning is false. I don't understand it! To me this sounds plausible!
|
In the wiki article about closures one can read:
closure ... is a function or reference to a function together with a
referencing environment
At the same time in the wiki article about class methods:
Accessor methods are used to read data values of an object. Mutator
methods are used to modify the data of an obj... |
Given an undirected graphical model with no edges and only N nodes, I am trying to find a closed form solution to the ML estimate of each node given that
$p(x|\theta)=\frac{\exp(\sum_{s\in V}\theta_sx_s)}{\sum_x\exp(\sum_{s\in V}\theta_sx_s)}$, where $x=(x_1,\ldots,x_N)$ and the denominator is the partition function. I... |
For problems like Knapsack there is a pseudo-polynomial time algorithm and it is NP-complete. So we reduce every other problem in NP in polytime to Knapsack.
But why don't we have then a pseudo-polynomial time algorithm for all problems in NP?
|
According to Galvin and Silberschatz, 5 queues are maintained in multilevel queue scheduling, each for:
System Process
Interactive Process
Interactive Editing Process
Batch process
Student Process
where System process has highest priority and Student process has lowest priority.
What is meant by Student Process... |
I'm trying to reproduce the synthetic networks (graphs) described in some papers.
It is stated that the Barabasi-Albert model was used to create "scale-free networks with power-law degree distributions, $P_A(k) ∝ k^{-λ}$".
$P_A$ is a probability distribution that returns the probability of a node having degree $k$. For... |
I know that there are problems that cannot be solved by any algorithm, such as the Halting problem.
I also know that some processes cannot be even adequately approximated by any Turing Machine (equivalently, any digital computer), meaning that some property of the process cannot be simulated due to its intrinsic nature... |
I know exactly what a partially computable function is, but I've seen a few functions that I really can not understand why they are not partially computable. As an example in Davis book page 78, he says the following function is not partially computable: ($\uparrow$ means undefined and $\downarrow$ means defined)
Given... |
The following is a question from the textbook Introduction to Algorithms, however a solution to the problem is not given...
Professor Marley hypothesizes that he can obtain substantial performance gains by modifying the chaining scheme to keep each list in sorted order. How does the professor’s modification affect the... |
I'm trying to reproduce the synthetic networks (graphs) described in some papers.
The topic is the same as a previous question of mine, but with a different focus.
It is stated that the Erdos-Renyi model was used to create $2$ networks with average degrees $\langle k_a \rangle$ and $\langle k_b \rangle$.
In the first p... |
I use a variation of a 5-cross median filter on image data
on a small embedded system, i.e.
x
x x x
x
The algorithm is really simple: read 5 unsigned integer values, get the highest 2, do some calculations on those and write back the unsigned integer result.
What is nice is that the 5 integer input values ar... |
I needed to sort vertices into buckets as an optimization for collision detection later. I came up with this:
Go over all the vertices and count the size that each bucket needs to be to contain them into an array.
Shift the size array index by -1 unit and use it as offset array instead.
Create a single array for all t... |
Right now I am doing some problems on application of decision tree/random forest. I am trying to fit a problem which has numbers as well as strings (such as country name) as features. Now the library, scikit-learn takes only numbers as parameters, but I want to inject the strings as well as they carry significant amoun... |
For a rational number 1/3 below is the floating point representation(64 bit) of decimal expansion 0.3333333....
As per the above bit structure, I would like to interpret the value of exponent(11 bits) and value of fraction(52 bits).
exponent has
11 bits. How do I interpret exponent value?
fraction has 52 bits.
H... |
In the network clearance problem,
we are given a simple undirected graph with a capacity assigned to each edge (and/or to each vertex).
Each edge can transport up to its capacity each time step (i.e., if the edge has capacity 2, it can transport 2 units of flow in each time step).
Each vertex is either a source vertex ... |
Anyone could apply some theorem to prove this is not context free? I read lot's of material. it's not homework, it's not exam, it's not anythings. I want to learn, if some people try to answer this question one year later, it's not important, but anyone try to learn me.
$$L_{a}= \{w_{1}cw_{2} : w_{1},w_{2} \in \{a,b\}^... |
I was wondering in how to solve this question, I feel a bit confused: for $\Sigma = \{1,\#\}$, consider
$$D=\{w \mid w=x_1 \# x_2 \# \cdots \# x_k \text{ for } k \geq 0, \text{ each } x_i \in 1^*, \text{ and } x_i \neq x_j \text{ for } i \neq j\}.$$
I want to know how to prove this is not regular using pumping lemma.
|
I'm not sure whether my definition for these 2 terms are correct. Hence, could you help me verify that:
HeapSort: A procedure which sorts an array in place.
Build-Max-Heap: A procedure which runs in linear time, produces a max- heap from an unordered input array.
Is worst-case input = worst-case running time?
If so, g... |
I'm adapting an algorithm for calculating a CRC 16-bit CCITT (XModem) value from an ASCII input. I've found some code here. I'm using the function the poster has in his question, but I've noticed at the bottom he does this:
calcrc = crc And &HFFFF
What's the purpose of applying such a bit mask that is all 1s to a val... |
How can a finite automaton over(0,1) doesn't accept any string? I only can think of
s->a->q->F
Where the final state F is empty set. Is that true please?
|
It is clear, that NP ⊆ PSPACE holds and that it is unknown if the strict inclusion holds. How is it if one looks at the corresponding functional complexity classes? Does FNP ⊂ FPSPACE hold?
|
How would I go about constructing a nondeterministic 1-counter automaton for the language $L$ that is the complement of the palindromes $\overline{L}=\{ww^{rev}\}$ over a 2 symbol alphabet $\Sigma = \{0,1\}$?
The definition I am using for 1-NCAs consists of:
$S$, the set of states,
$\Sigma$, the alphabet ($\Sigma = \... |
I'm looking for an algorithm to perform set intersection where set $N_1$ is very small and set $N_2$ is very large.
Due to the constraints of the problem I am solving, I cannot rely on an algorithm which sorts or depends on sorted elements. Further, the simple method of performing $N_1$ hash look ups in a hash table... |
I'm requesting references for LL(k) in situations where k > 1 for reasons described below.
I'm looking for research/notes/anything involving LL(k) predictions.
Any time I look up LL(k) I end up with the description starting about LL(k) and focusing on LL(k) where k = 1.
Is there a formal description for the process t... |
I'm planning on making a fiber art $K_{37}$ (like the one I laser etched with help: K37: The complete graph on 37 nodes, svg). To accomplish this, the plan is to construct 37 pegs equally spaced in a annulus made from wood and then to string yarn between them. Since $K_{37}$ is a complete graph, it has a Hamiltonian pa... |
What would be an example of a worst-case input for Build-Max-Heap? What would the "shape" of it "look like"? I'm having trouble getting a feeling for it.
|
Sets $A$ and $B$ are given but we don't know what kind of sets they are. If we know that $A \cap B$ is recursively enumerable is it true to say that both $A$ and $B$ are recursively enumerable?
what about $\cup$ and $\times$ operators? If $A \cup B$ or $A \times B$ is recursively enumerable is it true to say both $A$ a... |
Is there active research work on creating computational models of a "specific" person's behaviors (general behaviors, emotions, actions...)? What are some references for such research? I tried google and scopus and did not have much luck.
I have worked on modeling movement behaviors of pedestrians in crowd (for my PhD ... |
I am not sure if this is the right place , but:
Is there an algorithm for solving $n\times n \times n$ rubik's cube (non-trivial one)? If so how efficent is it? Now say I have a $n \times \ldots \times n$ ($d$ times) rubic cube , is there an algorithm that works effiecently for this case?(of course now it depends also ... |
I know that for positive monotonically non-decreasing functions, f(n) and g(n),
f(n) = O(g(n) + c) entails
f (n) = O(g(n))
Why is this always true only for positive monotonically non-decreasing functions? $\Theta$
If there exists one, give a counter-example that shows that the above Big O rule is not necessarily true... |
Rice theorem says every non-trivial property of languages of Turing machines is undecidable. what is the meaning of undecidability here? is it semi-decidable?
As an example the following language is R.E but it contains a non-trivial property
$A = \{x | \phi_x$ is defined for at least one input$ \}$
this language equal... |
I'm looking for relatively new reviews of research work on partial evaluation. The most recent work I've found is "Tutorial notes on partial evaluation" by Charles Consel and Olivier Danvy (1993). The book Partial Evaluation and Automatic Program Generation (1993) also gives a comprehensive overview of the work in this... |
I want to show that
$\qquad\displaystyle O = \{M : M \text{ is a DFA}, |L(M)| = 1\}$.
Here $|L(M)|=1$ means the DFA contains only one state. I really don't know where to get started in this problem.
Should I do something like this?
M = On input (M',w) where M' is a DFA and w is a string:
- If M' accept only one mem... |
Question:
How are hash table's values stored in memory such that space if efficiently used and values don't have to be relocated often?
My current understanding (could be wrong):
Let's say I have 3 objects stored in a hash table. Their hash functions generate these values:
0
10
20
I would presume that the pointers of... |
Given $n$ rows with $k$ columns, is there a storage mechanism/data-structure and/or algorithm that enables dynamic restructuring such that I can get the top $t=\mathcal{O}(1)$ results efficiently?
Example strategy 0
$$k_0 \le k_1 \le \cdots \le k_{n-2} \le k_{n-1}$$
Example strategy 1
$$k_{n-1} \le k_{n-2} \le \cdots \... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.