instruction stringlengths 35 29.1k |
|---|
I'm a bit confused on some of the notation being used for turing machines in one of our exercises in class.
The question gives us a string $\alpha \in \{0,1\}$* and the function $\mathsf{int}(\alpha)$ that changes a binary number to its base 10 form. (example, $\mathsf{int}(00010) = \mathsf{int}(10) = 2$)
Now comes th... |
Question:
L is the language of $\langle M,x,y\rangle$ s.t TM $M$ accepts both inputs $x$ and $y$ or doesn't accept either. Prove that given some $M$, finding 2 inputs $x$ and $y$ s.t. $\langle M,x,y\rangle\in L $ can be done in polynomial time.
Thoughts:
This seems strange to me that this can be done in P time as we ha... |
I know its silly, but i managed to confuse myself and i need help settling this
Suppose $P=NP$, then clearly for every oracle $A$ we have $P^A=NP^A$ which contradicts the
fact that there exists some oracle $A$ for which $P^A\neq NP^A$, hence $P\neq NP$
Whats wrong?
Thanks!
|
It is pretty obvious that $DTime(n^3) \subseteq PSpace$, since $DTime(n^3) \subseteq DSpace(n^3) \subseteq PSpace$, but I fail to see how to find such a language $L$ so that $L\in PSpace\,\,\,$ yet $\,\,L\notin DTime(n^3) $. Can someone assist with an idea of how to find such $L$?
|
So for these 5 conditions, I am trying to find the solution/formula for them.
What would $a_n$ equal basically? If it helps, the recurrence relation these 5 conditions were generated from was $a_n = a_{n - 1} + 2n$. Any help would be greatly appreciated.
$$
\begin{align*}
a_0 &= 4 \\
a_1 &= 6 \\
a_2 &= 10 \\
a_3 &... |
I'm interested whether there is the standard solution to the following problem.
Some number of train routes is given:
Route1: First City -> Next City -> ... -> Last City
Route2: ...
...
We need to list all possible ways to get from one given city to the other with possible transfers but without visiting any city more t... |
I know from Schaefer's Dichotomy Theorem that only a few types of satisfiability problems are in P and any other problem is NP-complete. However, all of the algorithms I know for them use specific techniques unique to that type of problem- e.g. unit propagation for Hornsat, linear algebraic techniques mod 2 for XORSA... |
When talking about turing machines, it can be easily shown that starting from two machines accepting $L$ and its complement $L^c$, one can build a machine which can fully decide if a word is inside $L$ or not.
But what about PDAs? starting from two different PDAs, one accepting $L$ and one accepting $L^c$ can we build... |
I'm dealing with a time series that consists of one year's data of the result of some measurement. The time index is in second and the result of the measurement is a non-negative integer.
Interestly, after some tweaks & transformation & plot of the original data, I found that in some days the data shows a periodic patt... |
I have read some notes about the two but yet still confused about why there is a need for the strict 2phase locking. Based on some slides,
Two Phase Locking and Strict Two Phase Locking
They have a single difference which is :
If transaction T releases any lock, it can acquire no new locks. <-
2PL
Hold all locks un... |
A circuit outputs a digit in the form of 4 bits. 0 is represented by 0000, 1 by 0001, …, 9 by 1001. A Combinational circuit is to be designed which takes these 4
bits as input and outputs 1 if the digit $\geq$ 5, and 0 otherwise. If only AND, OR and
NOT gates may be used, what is the minimum number o... |
It is well-known that the chromatic number of a graph can be as high as $n$.
But what is the maximum chromatic number of a graph with $m = O(n)$?
|
Consider the floating-point representation
31-24 : Exponent
23-0 : Mantissa
The exponent is in 2's complement representation and mantissa is in the sign magnitude representation. the range of the magnitude of the normalized numbers in this represntaion is
$(a)\ 0\ to \ 1$
$(b)\ 0.5\ to\ 1$
$(c)\ 2^{-23}\ to \ 0.5$
$... |
Let CVal be the language of all $<C,s>$ where $s$ is an $n-$tuple of binary values ($\{0,1\}$), such that $C$ is a variable-free boolean circuit (gates $\wedge$, $\vee$, $\neg$, $0$, $1$), and it outputs $1$ for the entries of $s=(x_1,...,x_n)$.
Given two languages $A,B$, define $A \leq ^{rand} B$ iff there exists a ra... |
I understand that segment trees can be used to find the sum of sub array of $A$. And that this can done in $\mathcal{O}(\log n)$ time according to the tutorial here.
However I'm not able to prove that the querying time is indeed $\mathcal{O}(\log n)$. This link (and many others) say that we can prove that at each level... |
I am trying to write IDA* for Sokoban puzzle problem (http://en.wikipedia.org/wiki/Sokoban) but It seems that my heuristic is not so good for making the algorithm fast.
My heuristic is to consider $h(s)$ as minimum distance between the Player and Boxes plus minimum distance between a Box and a Target in state $s$.
Can... |
I have an assignment that asks for this. So I am not looking for the answer itself but a hint on how to find a value that will always break the BST condition by myself.
If I have access to any node N of a BST that has at least 2 nodes in its root, and where every node will always be different.
If I were to replace N.ke... |
An exercise problem once again has me stumped on a Turing Machine decidability proof.
We are given an alphabet with the strings 0 through 9.
Along with this, we have x as the infinite string of all digits in PI. (3141592...)
With L ⊆ Σ*, the language L = {A ∈ Σ*| A is a sub-sequence of x}.
(from what I understand, the ... |
When a given weighted directed acyclic graph represents some object flow, what is the most efficient algorithm to find the equivalent graph sum of which edges is minimum? Here, 'equivalent' means the end state of the objects is the same.
The picture below is the trivial example of this problem.
Above, 'simplest' means... |
Could someone provide an explanation of how to convert this DFA into a regular expression? I have found three methods online, ie: How to convert finite automata to regular expressions?
but they are all very confusing to me.
The automaton is:
$$M = ((1,2,3), 1, \{a,b\}, \delta, \{1,3\})$$
where
$$\delta(1,a) = 2\\
\de... |
I am new to graphical model, especially Markov Random Fields. I have a question about MAP assignment. Let say we have the graph structure and all the potential functions. MAP assignment in MRFs is defined as the most probable assignment for all variables (no given evidence in this case). My question is why it is called... |
It has just appeared to me that I've overlooked a possibly important fact. When we want to calculate probability $p_x$ of measuring the state $X$ and we know the amplitude of $X$ is $\alpha$, we know that $p_x = |\alpha|^2$. Until today I thought that absolute value was not necessary anyway. However, it brings signific... |
A* needs a consistent heuristic to work on a graph.
So I'm not sure if the heuristic of a straight line (bird flight) can be used.
For example: the costs to travel to a neighbors node is always positive.
GOAL
--------------------
| |
| START |
| | where... |
Currently, I'm reading a photocopied version of Turing's famous article On Computable Numbers, With an Application to the Entscheidungsproblem.
This is the best photocopy of his paper that I can find; most other copies are of pretty low quality to the point that I can't distinguish between different characters. The e i... |
Assuming I have functions $f, g : \mathbb{N} \to \mathbb{N}$ and I know that $g \circ f$ is a primitive recursive function. What can I tell about $f$ and $g$? Are they primitive recursive as well? Or at least one of them?
|
I am currently working on a scheduling system which schedules individuals based on timeslots that have the following attributes: (1) Day of Week (2) Month (3) Session(AM/PM).
The individuals currently indicate their preference for whether they prefer the AM/PM session for each day of the week in each month eg. (Monday|... |
Let:
$2EQ$ - The language of all binary ($\mathbb{Z}_2$) equation sets that have a solution in $\mathbb{Z}_2$, where each multiplication is of at most two $x_i,\, x_j$. Meaning a set of equations of the form: $\Sigma a_i \cdot x_i + \Sigma \, \Sigma \, a_{i,j} \cdot x_i \cdot x_j = b $.
$3EQ$ - Same just up to at most... |
I'm learning about HMMs and their applications and trying to understand their usages. My knowledge is a bit spotty, so please correct any incorrect assumptions I'm making. The specific example I'm wondering about is for using HMMs for speech detection, which is a common example in literature.
The basic method seems to ... |
While working on integer factorization algorithm I came to the next problem:
$$\frac{a}{ex} = \lfloor{\frac{a}{ex}\rfloor} + c$$
$a$ the number I want to factor
$x$ factor of $a$
$e$ positive integer that I choose
For $e = 1$ I found a linear representation for short sequences of $\lfloor{\frac{a}{x}\rfloor}$, this a... |
How do you union of two finite automata as well as establish the transition table for it. I'm unsure of how to properly union the two finite automata. I believe the transition table would look something like this:
state | a | b | a,b
x1| x2 | x3 |
x2| | | x3
x3| | | x3
y1| y2 | y3 |
y2|... |
first of all this is a homework question and I don't want the solution. I just want a reference to how to solve similar questions like this. I believe it's explained my course textbook, "Computer Organization & Architecture: Themes and Variations" but I currently cannot afford the textbook.
Here's the question:
For eac... |
I am a little confused to reduce these lambda calculus expressions. I am instructed to give applicative and normal order reductions for these expressions.
$(a):$ $$(\lambda x. (\,(\lambda y.(* 2 y)\,) (+ x y)\,)\,)\,y $$
$(b):$ $$(\lambda x. \lambda y. (x y)\,) \,(λz. (z y)\,)\,$$
Here are the steps I took in my f... |
I'm not necessarily asking for the first well-formed definition of some markup language, nor the first implementation of parser for one such language.
What I'd like to know is when did people first think they could/should embed formatting (or other) information into pure text. Wikipedia gives one early example of such... |
Wikipedia's trie article says:
[Compressing the trie representation by merging the common branches] is also typically used in the implementation of the various fast lookup tables needed to retrieve Unicode character properties (for example to represent case mapping tables, or lookup tables containing the combination o... |
I'm doing a practice question (not graded HW) to understand mathematical proofs and their application to Big O proofs. So far, however, the very first problem in my text is stumping me wholly.
Suppose $f(n) = O(g(N))$ and $g(n) = O(h(n))$ (all functions are positive).
Prove that $f(n) = O(h(n))$.
I am having lots of t... |
I'm trying to verify if the following model satisfy $A [a \cup b]$:
The algorithm I'm using is taken from "Concepts, Algorithms, and Tools for Model Checking", Joost-Pieter Katoen. In particular I applied the SatAU part (previous calculation of the states in which a and b are valid):
Intuitively the formula is verifi... |
There is an example problem from p506 of Computer Organization and Design, Fifth Edition: The Hardware/Software interface by David A. Patterson, John L. Hennessy
I wonder how "potential speedup" is defined? The book doesn't give its definition.
In the example, since speedup with $10$ processors is $55\%$ of the potent... |
I am trying to devise an algorithm for determining if an undirected graph $G$ contains $K_4$ as a minor. I was able to show in a previous problem how to test for $K_{2,3}$ by looking at all pairs of vertices and applying Menger's problem as a black-box on that pair of vertices (i.e checking for at least 3 vertex-disjoi... |
The problem is as follows:
We have a two dimensional array/grid of numbers, each representing some "benefit" or "profit." We also have two fixed integers $w$ and $h$ (for "width" and "height".) And a fixed integer $n$.
We now wish to overlay $n$ rectangles of dimensions $w \times h$ on the grid such that the total sum ... |
There is an information theoretic lower bound of $\log_2 {U \choose x}$ for the number of bits to represent a subset of $x$ elements chosen from a universe of size $U$. We can in principle use this representation (perhaps inefficiently) as a data structure to test if any query is part of this subset.
How can you s... |
In our lecture notes on lamdba calculus, I encountered the sentence:
Let $M$ be a set and $f\colon ℕ → M$ be computable.
Does this even make sense? Don’t we need aditional structure on $ℕ$ and $M$ to talk about computability and decidability? How can I make sense of this statement?
|
Let $x,N$ be positive integers.
I'd like to store a counter which could reach value of $\left\lfloor \frac{N}{x}\right\rfloor$ (i.e. could take any value in $0,1,\ldots,\frac{N}{x}$) using $$\lceil\log_2(N+1)\rceil - \lfloor\log_2 x\rfloor$$
bits.
Equivalently, does the following hold:
$$\log\left\lfloor \frac{N}{x} +... |
Sorry for layman's term question, my background in computer science is weak.
What I have is a list of shelves with books of varying height. Each shelf stores a value that describes how many shelves (of that height) can fit on a bookcase. The bookcases have adjustable shelves so that we can maximize the usage of each ... |
This is Universality theorem In the Computability, Complexity and Languages book written by Davis in page 70:
If $\phi^{(n)}(x_1,...,x_n,y) = \psi_P(x_1,...,x_n)$ $where$ #$(P) = y$
Theorem 3.1 (Universality Theorem): for each $n>0$ the function $\phi^{(n)}(x_1,...,x_n,y)$ is partially computable.
From what I... |
If we take this definition as R.E. set definition (Computability, Complexity and Languages book written by Davis in page 79)
$Definition.$The set $B\subseteq N$ is called r.e. if there is partially computable function $g(x)$ such that
$B = \{x \in N | g(x) \downarrow\}$
Halting problem is set of $(x,y)$ which program... |
This is actually exercise 3.7 from "Computational Complexity: A Modern Approach".
I need to prove that the NP-Completeness of 3-sat does not relativize, i.e. I need to show that that exists some oracle $A$ such that there exists $L\in \mathrm{NP}^A$ s.t. $L\not\leq_p\mathrm{3SAT}$, where the reduction can query the ora... |
What are the time complexities of finding $8th$ element from beginning and $8th$ element from end in a singly linked list? Let $n$ be the number of nodes in linked list, you may assume that $n > 8$.
The answer is given as $O(1)$ and $O(n)$.
What I learnt till now is that searching operation in linked lists takes line... |
Hopcroft's algorithm is an algorithm for DFA minimization that produces a table identifying which pairs of states are distinguishable.
What is the tightest possible upper bound (with proof) on the minimum length of a string that distinguishes two distinguishable states?
This question is taken directly from Hopcroft, Mo... |
From http://en.wikipedia.org/wiki/Superscalar
In Flynn's taxonomy, a single-core superscalar processor is classified as an SIMD processor (Single Instructions, Multiple
Data),
Flynn's taxonomy is based on number of instruction streams and
number of data streams.
A superscalar processor can run more than one instr... |
From Wikipedia
SPMD (single program, multiple data) is a technique employed to achieve parallelism; it is a subcategory of MIMD. Tasks are split up and run simultaneously on multiple processors with different input in order to obtain results faster.
Does a program running on SPMD runs as either multiple processes or... |
The question is fairly straight forward. I just found a question on the internet that asks whether all regular grammars are
LL(1)
LR(1)
I guess they can't be LL(1) because of left recursion, but how do we prove that they are LR(1) if so.
|
I am convinced of the fact that allowing productions of the form $S \rightarrow \epsilon$ in a context sensitive grammar would allow RE languages to be expressed if $S$ were on the right hand side of some production.
However, in most definitions of regular and context-free grammars (such as those on Wikipedia), this re... |
Let $f$ be a Boolean function.
Let $g$ be the minimum degree real polynomial that represents $f$ with degree $d$.
Let $g_{p}$ be the minimum degree $\Bbb F_p$ polynomial that represents $f$ with degree $d_p$.
Does $\exists p:d_p\leq d\leq d_p^c$ hold with some constant $c>0$?
$d_2\leq d\leq d_2^c$ does not hold with ... |
I'm looking for a computational method for projecting data from one grid onto another dissimilar grid while preserving the area of the original grid. I'm not quite sure what these methods would be called, but think draping a blanket over an uneven surface, a bit like what's being done here, except my original data set'... |
Currently, I'm learning about flip flops and how it is used in RAM to store memory so I'm trying to recreate the circuitry in Logisim. I know the components I need which are address register, 4-bit data register, 1 bit read/write register and the actual 4 nibble RAM with its own address space and data space. How do I... |
Is there a methodical procedure for determining the optimal timeout / retry strategy for dealing with a remote server that handles processes responses for requests, given some probability distribution of response time?
For example, suppose I have a client program which requests a web page from some server, and I know r... |
I've got a set $Q$ of pairs $[S, v]$ where $S$ is a nonempty set and $v$ is a value ($v \in \mathbb{N}_{+}$). I need to find a subset $R$ of $Q$ with following properties:
Sum of all $v$'s is maximum
$S$ from all pairs construct a disjoint set
Example. For given set $Q$:
$Q = \{[\{1, 2\}, 5], [\{2, 3\}, 8], [\{3, 4\}... |
Problem: To prove the $\textsf{NP-Completeness}$ of the problem of "Packing Squares (with different side length) into A Rectangle", $\textsf{3-Partition}$ is reduced to it, as shown in the following figure.
In the $\textsf{3-Partition}$ instance, there are $n$ elements $(a_1, \cdots, a_i, \cdots, a_n)$. The target su... |
Consider two heuristics $h_1$ and $h_2$ defined for the 15 puzzle problem as:
$h_1(n)$ = number of misplaced tiles
$h_2(n)$ = total Manhatten distance
Could anyone tell why $h_2$ is a better heuristic than $h_1$? I would like to know why the number of nodes generated for $h_1$ is greater than that for $h2$. Also why... |
Whenever said - The intersection between a Context Free Language and a Regular Language is always Context Free, what is the best logical way to confirm the statement?
I have this Chomsky hierarchy in mind that I refer whenever closure properties between Type-m and Type-n languages are asked but sometimes I come up with... |
Let $G$ be an undirected weighted connected graph with non-negative weights on the edges,
and let $v_1, v_2, v_3, v_4$ be 4 vertecies in $V[G]$.
The goal: find a connected subgraph of $G$ with minimal weight (the sum of weights of the edges in the graph) that includes $v_1, v_2, v_3, v_4$.
Any polynomial algorithm will... |
Given a set of whole numbers $M=\{z_0, ..., z_n\}$ Are there $z_i$ and $z_j$ with $i \neq j$ but $z_i = z_j$?
Is this Problem (surely or only probably) in $P$ or in $NP$? Is it $NP-hard$?
|
How can I compute the probability of having a $\log(n)$ length monotone consecutive subsequence in a random permutation of $\{1,...,n\}$.
I wish to upperbound it with $1/n$.
|
Trying to answer this question:
A factory produces chocolate and candy. In order to produce 100 kilograms of chocolate, the factory has to use machine A for 1 hour, machine B for 4 hours, and machine C for 2 hours. In order to produce 100 kilograms of candy, the factory has to use machine A
for 2 hours, machine B for 1... |
In reading the Wiki article on Simon's Problem, the article states that it takes exponential time(in the classical version) to discover the secret string S that is inside the black box. Why is this black box problem not considered to be a one way function and are there any cryptographic primitives based on the hardness... |
$A=${$ ⟨M⟩$:$M$ $is$ $a$ $Turing$ $Machine$ }
What can be said about $A$ ? Specifically, is $A$ decidable,regular,CFL,CSL?
I would say $A$ is decidable since we can write an algorithm to check whether a string is a valid encoding of a Turing machine .
But, is $A$ Regular[or CFL or CSL] ?
Edit : Someone argued that h... |
I'm trying to solve 17-2(b) problem from Cormen(CLRS) using potential method.
Problem from Cormen:
17-2 Making binary search dynamic
Binary search of a sorted array takes logarithmic search time, but the time to insert a new element is linear in the size of the array. We can improve the time for insertion by keeping se... |
While doing my NFA homework in my automata class, I feel like I'm not taking advantage of the ε-transitions I'm learning about. I can solve problems without using it. It's not like I really need it, except for when an empty string is part of the language, then I'll finally add an ε.
A lot of my text book examples use ... |
Let the sequence $r$ be defined by:
$$\begin{align*}r_{1} &= 1\\
r_n&= 1 + r_{\lfloor\sqrt{n}\rfloor}\,,\quad n\geq 2\,.\end{align*}$$
Prove by induction that $r_n$ is $O(\log_2(\log_2n))$.
My idea is to find the closed form function of r and then use the big O definition on the closed form function but I'm having a ha... |
I'm preparing a presentation on prefix computation (aka scan, the generalization of prefix summation to any associative operator) for a class I'm taking on parallel algorithms.
Several lists of applications of prefix computation include lexical analysis (tokenizing), but do not cite a source for that. I have failed to... |
What is a standard term for a matching in a bipartite graph, in which one part has less vertices than the other part, and the part with less vertices is fully matched (but the other part is, obviously, not fully matched)?
It is not exactly perfect, but it is "one-sided perfect", or "as perfect as it could be". What is ... |
Let $L = \{ab^ncd \mid n \geq 0\}$. If we take $p = 5$ and $w = abbcd$ and write
$w_i = xy^iz$, where $x = abb$, $y=c$, $z=d$, then $w_2 = abbccd$ which is not in $L$. We conclude that $L$ is not regular but it obviously is!
What am I doing wrong?
|
Is the language of the set of descriptions of all Turing machines recognizable? I'm thinking not, but I can't quite define why.
A language is Turing-recognizable if some Turing machine recognizes it. So I guess I'm wondering if the language L of all Turing machine descriptions is Turing-recognizable.
|
Reducing one computable problem to another by providing an algorithm which transforms an instance of one problem to one of the other (and limiting the time or space of that algorithm) is clear to me. However, I fail to understand how reductions via logic work, e.g. a reduction in FO. My biggest problem is that the stru... |
I've looked through all the other similar questions, but I don't feel like I understood exactly what I'm supposed to do with my case, so I'm hoping I'm not the only one.
In an exercise I'm doing, I'm told to consider a computational system with a direct mapping cache, that can store 16 blocks of 4 bytes, and 32-bit add... |
Just need a little help understanding hardware interrupts.
As I understand (feel free to correct) a hardware interrupts occurs when hardware wants attention of the computer. In basic terms the hardware sends a message down the interrupt line which is then controlled by the PIC. The CPU receives the interrupt and carrie... |
I was thinking whether it is true that every computational problem intrinsically has a minimum ammount of memory required for any algorithm that computes it.
But then i was confused to what "memory requirement" really means and how we could quantify it .
Looking for how Computational Complexity treats the memory requir... |
Consider the following recurrence
$$T(n)=T(n-1)+n\log n$$
My approach:
Solving using Substitution
$T(n)=n \log n+(n-1) \log (n-1)+(n-2) \log (n-2)+(n-3) \log (n-3)+...$
$=[n\log n + n \log(n-1)+ n \log(n-2)+ n \log(n-3)+...]-[\log(n-1)+2\log(n-2)+3\log(n-3)+...]$
$=[n(\log n + \log(n-1)+ \log(n-2)+ \log(n-3)+...)]-[\lo... |
0.1 via $32\text{ bit}$ is rather easy:
Sign: $0_2 = 0_{10}$
Exponent: $123_{10} = 01111011_2$
Mantissa: $5033165_{10} = 100110011001100110011001101_2$
Now, how do you calculate this, if you've only $8\text{ bit}$ available?
Sign: $1\text{ bit}$, Exponent: $2\text{ bit}$, Mantissa: $5\text{ bit}$
My idea: $S=0; E=01; ... |
I want to build a Automatic Speech Recognition (ASR) engine for myself, but I've no idea from where to start.
I've read that most ASR's are build upon Hidden Markov Models, but also I've read that HMM is limited somehow and a better approach is to build a ASR upon Machine Learning features.
Overall I am confused.
Can... |
Could someone explain to me WHEN do you use existential and universal quantifiers for Relational Calculus?
Given this schema:
Hotel(hotelNo, hotelName, city)
The expression below gets all hotel names based in London (expressed in Domain Relational Calculus)
$$\mathrm{HotelName|(\exists hNo,cty)(Hotel(hNo,hotelName,ct... |
http://en.wikipedia.org/wiki/Modular_exponentiation#Right-to-left_binary_method
What is the time complexity of the right to left method in modular exponentiation?
is it O(1) because we are going through the binary representation of e which is constant time? assuming e is a 32-bit integer
int mod(int b, int e, int m) {
... |
I'm trying to link Combinational Logic Circuits ( computers based on logical gates only ) with everything I have learned recently in Theory of Computation.
I was wondering whether combinational logic circuits can implement computations in the same way finite state machines can. They seem radically different :
Fi... |
After reading about iterative deepening depth-first search on Wikipedia, I could understand that it just limits the depth upto which dfs can go in one iteration/call.
However, I could not understand why it is said that it requires $O(b \times d)$ memory, where $b$ is fan-out of nodes i.e. children and $d$ is max-depth.... |
If a certain problem $X$ is NP-complete and $P\neq NP$, then $X$ is not polynomial. But we still don't know that $P\neq NP$, so in theory $X$ may be polynomial. Does the fact that $X$ is NP-complete say anything about it being more difficult than other polynomial problems? In particular:
Does it mean that $X$ cannot b... |
I read in the introduction of this paper
http://www.scottaaronson.com/papers/uncompute.pdf
that there is a problem $B$ such that $BQP^B \not\subset P^{NP^B}$, and that $B$ is in $BPP$. But, using the fact that $BPP$ is in $BQP$ and that $BQP$ is low for itself (i.e. $BQP^{BQP}=BQP$), as proved in
http://arxiv.org/pdf/q... |
The 3SUM problem has two variants. In one variant, there is a single array $S$ of integers, and we have to find three different elements $a,b,c \in S$ such that $a+b+c=0$. In another variant, there are are three arrays $X,Y,Z$, and we have to find a number per array $a\in X, b\in Y, c\in Z$ such that $a+b+c=0$. Call th... |
I am looking for the optimal string distance metric to indicate similarity/difference between possibly truncated words. For example, I would like to find the distance metric between the name "Richard" and possible variations of it (and other names as well)
Variations: Richard | Rihcard | Richard Smith | Rich? | R?ard ... |
I have read a lot of books on membrane computing (P system), of which the computational completeness of several variants are already under investigation. My goal is to design my own variant and prove its computational completeness.
I also know that in order to prove computational completeness many research papers norm... |
I understand that a regular language can be specified by either regular or non-regular grammars. What is an example of a non-regular grammar for a regular language?
|
I am working with small data sets of N elements, usually with N = 8, 16, or 32 elements; all are positive 64-bit float numbers. I need to identify the smallest N/2 elements. It is not required that the smallest N/2 elements be sorted, just that I identify which ones they are from among the group of N. Each program r... |
Like think of the function $f\colon \{ 0,1\}^* \rightarrow \{0,1\}^*$ which maps a binary string string $x$ to say a string of $0$s of length $\vert x \vert ^2$ whre $\vert x \vert$ is the length of the input string.
This to my mind looks like a work that can be done using only a linear amount of space on the work tap... |
Regarding turing completeness, i read that for a language/machine to be turing complete it is required that it has some sort of conditional.
Consider the factorial problem, we would typically define the algorithm as
Solution 1.
int fact(int n)
{
if n == 0 then
return 1;
else
return n*fact(n-1);
}
An alternative woul... |
$$T=\{\langle M\rangle \mid |L(M)| =1 \text{ or } |L(M)| >2\}$$
I started with Rice's theorem (come up with an example where $|L(M)| = 2$) to see that $T$ was undecidable. Then I figured out $\bar{T}$ was unrecognizable, because $H =\{\langle M \rangle \mid M\text{ halts on the empty string} \}$ has a mapping-reduction... |
How would you understand this pseudocode of parallel algorithm for LU-decomposition ? I'm confused mostly with the
min(i; j) - 1,
because I have no idea, what the author wanted to say by it. I know that it means " choose the lesser number of 'i' and 'j' and then substract one", but I don't know what is I and J here (m... |
I have the following language...
$$A=\{a^ib^i | i>0\}\cup\{a^jb^k|j>2, k>3\}$$
Now, pumping lemma states that a regular language can be written in the form $x=pq^ir$. What confuses me is how to split the language into three parts, this is my attempt:
$p=a^j$
$q=a^jb^k$
$r=b^k$
I believe my attempt is incorrect but this... |
I am a high school sophomore who is interested in computer science. I developed a cool algorithm for #SAT, and I'm implementing and doing a science fair project on it. My adviser, who is the best science teacher at my school and is also the AP Comp Sci teacher, told me that she has absolutely no idea what my project is... |
Let $a_{1} , ... , a_{m} $ be real numbers $\geq 1$, where $m$ is at least 1. I am supposed to store them in an augmented AVL structure with the following operations:
-PartialSum (i): Return the $i_{th}$ partial sum.
-Change (i, y): Change the $a_{i}$ element for y.
I need this structure to retain the AVL properties an... |
Suppose we have a function, CalculateEdgeWeight, which is computationally expensive. We want to find the shortest path between two nodes $s$ and $t$ in a simple edge-weighted digraph $G= (V,E)$ where weights of $ij \in E$ are calculated with CalculateEdgeWeight($ij$).
Is there a shortest path algorithm that does not r... |
I wonder how we can perform algorithm analysis when in an algorithm we have calls of functions whose definition we do not know, e.g. functions delivered by external libraries.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.