instruction stringlengths 35 29.1k |
|---|
I have a graph G = (V, E) where each edge is bidirectional with positive weight. I want to find the shortest path from vertex s to vertex t using at least k edges but less than 20. No vertex may be repeated in a path.
I am aware of this problem: Dijkstra's algorithm to compute shortest paths using k edges?
That proble... |
I'm not sure why this solution holds:
http://www.zrzahid.com/kth-smallest-element-in-two-sorted-arrays/
For example, $A=[1, 1, 2, 3, 10, 15]$ and $B=[-1, 2, 3, 4, 6, 7]$ then *k=8*th smallest element would be 4 as it appears in 8th position of the merged sorted array=$[-1, 1, 1, 2, 2, 3, 3, 4, 6, 7, 10, 15]$.
A trivia... |
I have M numbers arranged into a line. I need to divide the line into N groups without changing numbers order such that the sums of the numbers of each group are closest to the mean of these sums by absolute differences.
Example:
Numbers: 1 2 3 4 5 6 7 8 9 10, need to divide into 3 groups.
Let's say we want to minimize... |
In The Art of Computer Programming 2nd Ed, Vol 3, Section 5.3.1 then discuss a function $S(n)$ which is define as:
$S(n)$ : The minimum number of comparisons that suffice to sort $n$ elements.
Further, the book regards $\lceil \lg n! \rceil$ as the information theoretic lower bound for $S(n)$.
Using merge insertion t... |
I was in class today, in a Language Translations course, thinking about the best way to write a symbol table for a compiler. My professor showed us a hash-table with linked-lists connecting different levels of "blocks", which are usually { } curly brackets in languages such as C.
My thought was, what's wrong with using... |
So I'm sure this is an unusual question for this type of site, but I am to give a talk on algorithms for discrete graphs in a few weeks. It has been specified that the talk is to be on some algorithm which will be unfamiliar for those attending. It it to be some graph traversal algorithm at about the junior level. Does... |
I have 64 variables that can either take a value of -1, 0, or 1 and I am interested in finding all possible combinations of variables such that I have n variables in each the positive and negative state.
Does anyone know what the best way would be to calculate the full set of combination values that fits this constrain... |
The question is simple:
Given an unweighted directed acyclic graph, $G = (V, E)$, what is the minimum number of directed edges we need to add to $E$ such that the resulting graph $G = (V, E')$ has a unique topological ordering?
I initially approached this in a greedy way: determine the longest vertex-disjoint paths, ... |
I am using EM to uncover a continuous hidden variable $z$ (E-step), then maximizing the model prediction (M-step) with parameters $\theta$. The complete data are $[x,z]$.
I can formulate the E-step as follows
$$p(t|x,\theta^{old}) = \mathop{\arg\,\max}\limits_z \sum log(p(t|x,z,\theta^{old}))$$
since I am looking for t... |
I have $m$ machines and $n$ jobs. Each machine has a load capacity. Each job can be only handled by either one or two machine, and each job takes some time to finish. After it finished, new jobs can be assigned to that machine.
I am trying to find an optimal way to assign each job to each machine by sorting all the jo... |
I've been stuck on this problem for a while. Any hints would be appreciated!
Let $A \subseteq \Sigma^\star$ be decidable. Given $w \in \Sigma^\star$, define $$A_w = \{x \in \Sigma^\star\:|\: \langle x, w \rangle \in A\}.$$
Construct a decidable set $B$ such that $B \neq A_w$ for any $w \in \Sigma^\star$.
|
My raw data is composite, but for simplicity sake let's say they consist of three elements. One might consider a sample set thusly.
[A,a,1]
[A,b,1]
[B,b,1]
[B,b,2]
[C,b,3]
[A,c,3]
I need to create a subset that satisfy two key criteria.
All combinations of the two last columns is represented (lower case and numeric)
... |
Let $G$ be a graph whose edges have integer weights between 1 and 255.
What is an efficient algorithm for finding a path between two vertices $s,t$, such that the product of weights on the path is minimized?
The first approach that comes to mind is to replace each weight with its logarithm, and use e.g. Dijkstra's algo... |
I have $N$ objects of different thickness. Is there an algorithm to determine which of those objects should be stacked on each other to get as near to a desired thickness as possible? (I don't want to numerically check every combination.)
|
I'm taking a course in computer architecture in which the main reference is the Computer Organization and Design by Patterson and Hennessy. I came across an example which I couldn't grasp its answer:
Example: how many total bits are required for a direct-mapped cache with 16 KiB of data and 4-word blocks, assuming a 32... |
Given a graph $G(V,E)$ ans a subset $S\subseteq V$, define $N(S) = $ the set of neighbors of $S$.
Is there a standard term for a subset $S\subseteq V$ for which $|N(S)|\leq |S|$? Is there a standard term for $|N(S)|< |S|$?
I remember once seeing the name expander used for a subset $S$ for which $|N(S)|>|S|$, but I do n... |
I'm currently following a course on Complexity Theory, and whilst studying, I came across a rather counterintuitive statement:
If $\textbf{P}=\textbf{NP}$, the following holds:
For every $A \in \textbf{NP}$, there is a $B \in \textbf{NP}$ such that $A \leq B$ (where $\leq$ means Karp reducible).
However, I do not under... |
Irrational numbers like $\pi$, $e$ and $\sqrt{2}$ have a unique and non-repeating sequence after the decimal point. If we extract the $n$-th digit from such numbers (where $n$ is the number of times the method is called) and make a number with the digits as it is, should we not get a perfect random number generator? Fo... |
I'm trying to figure out the intuition on creating a CFG in my head. I understand the idea of Grammar rules akin to "onions" with various layers throughout. For example, I was working on a problem earlier where I was to construct a CFG of $a^ib^jc^k$ with $i \ne j$ OR $j \ne k$. Obviously I separated the problem into t... |
Problem: Given an array with size$\ n $: for each$\ a[i] $, it denotes the value of the house. You are given the task to build the wall that saves the house that is not exceed$\ w $ length. What is the maximum value you can save?
Constraint:
$\ 1<=n<=6,000,000 $;
$\ -500,000<=a[i]<=500,000 $;
$\ 1<=w<=100,000 $... |
I know that synchronization is important in the OS, but why do we need a separate topic synchronization and concurrency in the DBMS? The OS concentrates on program synchronization while the DBMS concentrates on data synchronization. Why can't the OS take responsibility for data synchronization?
|
Let
$L$ be a language over $\Sigma$. And $\Sigma = \{0,1\}$ is a set of input alphabets.
$L = \{ w \mid w \in \Sigma^*, \text{ where $w$ is a string with numbers of 0s divisible by 3 and number of 1s divisible by 5}\}$.
What will be the minimum numbers of states in the DFA accepting $L$?
My approach is to create a ... |
I've came across Hoare's partition algorithm in Cormen. After analysis I think that the algorithm isn't working as I expected. Let's suppose that we've array [4,3,2,1], then in my opinion partition is returning 0, so next quicksort calls will be QS(A,1,0), QS(A,1,4), the second one is the same as first call so this ar... |
I am implementing a Branch-and-Bound algorithm to find the optimal solution for the Flowshop Scheduling Problem, but I am stuck on the optimization phase, here is a rundown of the problem and what I go so far.
(I am sorry for my English, not a native speaker...)
The Problem
There are n tasks that must be run through tw... |
My idea is to find a turing machine which recognizes this language in $\log N$ space, could anyone give me some clue on how to find such turing machine?
|
If $A$ is a non-context free language, is $A^*$ a regular language?
If $A$ is a non-context free language and $B$ is a regular language, is it possible that their concatenation is a regular language?
|
As far as I know, most direct methods for solving linear systems of equations have time copmlexity $O(n^3)$ (where $n$ is the number of variables), with the few methods being faster having huge constants, which make them only useful for very large matrices.
(Though, the best known bound I've found is $O(n^{2.373})$)
As... |
I was reading about the finiteness property of an algorithm where it is mentioned that
the algorithm must always terminate after a finite number of steps.
Does this mean that any pseudo-code cannot contain infinite loops or it should be equivalent to Halting Turing Machine. I don't know whether the statement about f... |
In general, my understanding is: the cpu is executing a process/thread until either it is interrupted, the scheduler kicks it out, or it's waiting for something else (I/O for example), when it's put in different queues (ready, waiting, etc). (Correct me if I'm wrong)
My question is, when one process is waiting informat... |
In the query complexity model, we define $R(f)$ as the bounded-error query complexity of $f$.
It is said that
Claim. we can find two hard distributions over the 0- and 1-inputs of $f$ respectively, such that distinguishing between them with bounded error takes at least $\Omega(R(f))$ time for any randomized algorithm.... |
Do the values of the two * inside the ( ) need to remain unchanged for every repetition of ( )?
For example, 110011001100 is part of this language set, but 1100100010 isn't?
Or can the values of the two * change for every repetition of the ( )?
|
Let $A$ be an $3\times N$ matrix (where $N$ is large) with nonnegative real entries. I'd like an algorithm for determining when a vector $v\in\Bbb R^3$ can be written as $Aw$ for some vector $w\in\Bbb R^N$ with each entry of $w$ in the range $[0,1]$. In other words I'd like to find the image of the unit hypercube in $\... |
How can I prove that the following grammar is ambiguous:
$$ A \to AA\mid B \\ B \to aBb\mid ab $$
I tried finding a string that can be derived in two different ways, but to no avail.
|
Let $k \in \mathbb{N} $ and define the language $L = \{ n,m | n^k = m \}$
Consider a (deterministic) TM deciding $L$ then it has to compute $k$'th power which will take $f(|n|+|m|) + h(k)$ time in worse case for some polynomials $f,h$. now, by the Linear speedup theorem we can improve this to $\frac{f(|n|+|m|) + h(k)}{... |
Assume that I have a business where people can place product orders. Each order must be delivered within a time limit, say $x$ minutes.
I need 15 minutes to make each product. However, multiple products can be made in parallel.
Assume that I know my storage (i.e., the products that were previously made and are stored... |
Very similar to this
Problem formulation: Given a list $L$
of n points with GPS coordinates and a second list $Q$ of $m$ points, find the $k$ (let's say 3) closest points on $L$ for each element on $Q$.
Aditional constrains: Assuming that both $L$ and $Q$ are very large, and performance is an issue. We can also assume ... |
Prove that the language $\{a^i b^j c^k $ $|$ $i>j>k \geq 0\}$ is non context free language without using the pumping lemma.
we could use some helpful facts to solve the question:
$A$ is a context free language and $B$ is regular, then $ A \cap B $ is context free.
$L_1$, $L_2$ are not context free languages, the inter... |
The problem statement is as follows:
Can we determine precisely the number of elements less than the mean in a list $A$ of $n$ numbers in only one pass through the array (starting at $A_1$ and ending at $A_n$) with only constant memory?
By "constant memory" I mean a constant number of $O(m \log_2 n)$ bit words where ... |
Given the grammar:
$S \to AS\mid \varepsilon$
$A \to A1\mid 0A1 \mid \varepsilon$
Generate a new unambiguous grammar that generates the same language as the grammar above.
I have no idea how to make it unambiguous, I have proven already that the given language has two leftmost derivations for the string 01101.
|
I have a job shop problem with n jobs and m machines, a job shop means that not all jobs have to go through every machine.
A job shop problem can be written as such :
[[15,0,15,16],
[10,30,20,0],
[0,15,5,10]]
This would be an example of a 3 job, 4 machine problem. The matrix is 3x4, with each value being the process... |
Sorry If I don't use the right vocabulary, maybe part of my question is due to the fact that I don't know the name of what I'm searching.
I have a bounded set of operations that need to access a database. I want to create an "execution graph" of these operations that prevents conflicting accesses.
For each of this ope... |
I have an scheduling probelm with a set of jobs $J$, with a ''non-integer'' parameter $\beta_j$, i.e. the parameter is a real number and $\beta_j \leqslant 0.5, \exists j \in J$.
Since the problem will be trivial if $\beta_j > 0.5, \forall j \in J$, I can not assume that we may transform an instance to an integer one.... |
Given:
a quadrilateral mesh that forms the surface of a sphere
a linear projection from 3D to 2D (a 2x3 matrix)
The mesh is not convex in general, but it is regular enough
that we know that the projected image of the mesh in the plane is a
polygon without holes (the image is simply connected).
Is there a fast metho... |
I know that the context-free language is not closed under the complement ,
and the result could be context-free language or non-context free language
but my question is :
is it possible of the complement of context-free language = regular language ?
|
Could I get help to prove that the language $\{a^i b^j c^k \mid i>j>k\ge 0\}$ is not context free language by using pumping lemma?
|
I am studying complex networks and I have a question. Is it possible to use the tools and methods of the theory of complex network to study the properties of railways network? Are there any articles or project that have done this and that you can link to me?
Thank you in advance!
|
As union is part of regular expression in form of positive closure, similarly intersection is also a part of regular expression? in which form it can be used?
|
I had a question in my past System Architecture exam and I am not sure how to solve it.
Question was this:
Consider a 16-bit addressable memory and a direct-mapped cache sized 64 bytes. MAR is 10 bits and a block in memory is 8 bytes sized. Find $t$, $r$ and $w$ (they are Tag, cache index, and block offset respective... |
I am new in complexity theory and have a doubt.
If you have a language (alphabet) L (for example {"a";"b";"Y","0","1","◄"}) and a Dictionary D (for example {"abY";"Ú■";"ba";"000001◄";"FFG","342"}) Output all the words in D that can be generated by the symbols in L So, for the example above a program will output: "abY";... |
Does anyone have an algorithm for stepping through all permutations of n given arbitrary objects in lexicographic order?
Thanks.
|
According to Wikipedia, Even, S .; Itai, A .; Shamir, A. cited it in "On the complexity of time table and multi-commodity flow problems".
The paper can be found here: http://www.cs.technion.ac.il/users/wwwb/cgi-bin/tr-get.cgi/1975/CS/CS0059.pdf
EDIT: Reference [5] of the above paper can be found here:
https://www.jstor... |
Apparently, model checking LTL on Kripke structures is PSPACE-complete (see this question). Usually, when something in finite model theory is PSPACE-hard, there is a simple proof using the APTIME incarnation of PSPACE and alternation in the logic. Or there is a reduction from QBF (the evaluation problem for quantified ... |
I don't quite understand why in-place sort merge sort isn't preferred over not-in place? Is it because theoretically in place merge sort is better because of its memory complexity tradeoff, but in industry other factors out -weight the memory tradeoff? Likewise, with quicksort the opposite is true ie, in place is prefe... |
I was looking at the Wikipedia page for CAS Latency: https://en.wikipedia.org/wiki/CAS_latency
And I noticed the obvious trend - at higher frequency, despite CAS latency degrading (growing), the delay to get the 1st, 4th and 8th word overall improved regardless.
I've heard in the past that frequency/CAS was perhaps the... |
I have a tree T with N nodes (Min-Span-Tree of a graph), and what I am gonna do is to calculate for each node Vi, the number of nodes reachable from each of it's edges (Vi,Vj). So after running the algorithm, every node of degree d will have d values each on a single edge shows the number of noded reachable using that... |
Context and Motivation
I have researched online for an algorithm (independent of a programming language AND in the context of Machine Learning) that accepts images as inputs with the expectation that individual images contain tags in the form of semi-structured information (for example, in the JSON format) that identif... |
Sometimes in a context free language we'd like to require spaces between productions, and sometimes not. For example take the following part from a grammar describing grammars:
production = lhs '=' rhs.
lhs = nonterminal.
rhs = nonterminal | terminal |rhs_rest.
rhs_rest = nonterminal rhs_rest | terminal rhs_rest | null... |
Assume we want to define a context free grammar of say a programming language, where on each line everything after the character # until the end of line is considered a comment and should be ignored. How to express that in a context free grammar?
|
I wish to model the following common construction in code via a finite state automaton for the purposes of static analysis:
s = <string matching regex R1>
t = s.replace(<regex R2>, <string matching regex R3>)
# What is the set of possible strings of t?
More formally, given DFAs $R_1$, $R_2$, and $R_3$, I want to find ... |
To be an honest question poster I do not yet fully grasp the difference between small step and big step semantics. There was a good discussion here
My question is if I were to do static analysis on a file to determine if it is malware, what would be better to use: small step or big step semantics?
To take this a step ... |
I calculated the worst case scenario of a time complexity of an algorithm problem using recurrence tree. (The problem cannot be solved by master theorem.)
Now I want to find a lower bound on the expression I got. Specifically, I want to prove that
$$ 1^k + 2^k + \dots + n^k = \Omega(n^{k+1}). $$
|
The classic Huffman algorithm, as Wikipedia states, finds an optimal prefix-free binary code with minimum expected codewords length, given a set of symbols and their weights. Now, suppose codewords for some (but not all) symbols are already assigned (maybe in a suboptimal way). How should we assign remaining codewords ... |
I am computing a matrix multiplication with inverse operation $AB^{-1}C$ $A \in \mathbb{R}^{m \times n}, B \in \mathbb{R}^{n \times n}, C \in \mathbb{R}^{n \times o}$. So the inverse operation takes $O(n^3)$. Multiplying $B^{-1}C$ takes $O(n^2o)$ and multiplying $A(B^{-1}C)$ takes $O(mno)$. So the overall time complexi... |
TL:DR
I wrote code for a QuickSort variant. It seems a bit off from original QuickSort. Can anyone tell me why and how this works? Is it a quicksort?
The following is code I wrote for a middle pivot quicksort for a high school class of AP CS.
It works for some reason. I've also found a few versions that are same or si... |
The Boolean expression I find on the internet for the sum bit of a full adder is A xor B xor Cin. Does't this expression exclude the A=1,B=1,Cin=1 situation? When that happens, the sum bit is also 1, isn't it?
Thank you very much.
|
I'm working through 'Intro to Automata Theory, Language and Computation' 2nd edition by Hopcroft, Motwani & Ullman.
In section 5.4, exercise 5.4.3 I am tasked with finding an unambiguous grammar for the language of this Context-Free Grammar (where epsilon is the empty string):
$$S \rightarrow aS | aSbS | \epsilon$$
I'm... |
C# makes an distinction between value types and reference types contrast to Java where all (except primitives types) are of reference semantics. The design decision, as I understand it, is mainly to make small objects more cache friendly, that is, for efficiency reasons.
my question is;
is there any study on how muc... |
It was a question I was asked in an online assessment for a company.
Please help me in this question-
Given an array, $A$ of size $N$ and an integer $P$ , find the subarray $B = A[i \dots j]$ such that $i \leq j$ and compute the bitwise value of subarray elements i.e say $K = B[i] \mathbin{\&}B [i+1] \mathbin{\&} \cdo... |
I am learning beowulf cluster. And I want to know what is pvm and how it's work and there is any difference between mpi and pvm
|
I have an array of size $m$, $[1,1,2,2,3,4,5,...,f,0,0, \cdots,0]$, where the first $n$ elements $1,1,2,2,3,4,5,\cdots, f$ are sorted.
If I make a binary search including the 0's I get $O(\log(m))$.
I'm trying to make the algorithm better and to get complexity of $O(\log(n))$ with no success.
I thought maybe something ... |
I am submitting this interview question I have recently found
Imagine you have a computer keyboard that has all the letters mismatched
example:
- typing q gives you a
- typing w gives you b
all 26 letters in the alphabet are there, but typing one letter will give you another one
Restriction: you need to typ... |
I'm learning data structures from "Fundamentals of Data structures in C" by Sahni . In the topic, Circular Queue using Dynamic Array, the author has mentioned below point,
Let capacity be the initial capacity of the circular queue,We must first
increase the size of the array using realloc,this will copy maximum of ... |
i needed some help with these problem in DSA
For the given pseudo code:
for( i=0; i<n; i++ ) a[i] = 0;
for( i=0; i<n; i++ )
for( j=0; j<n; j++ )
a[i] += a[j] + i + j;
Determine:
1. Total number of primitive operations
2. Running Time
|
I am doing a matrix completion project. Assume that I have an incomplete matrix like
func1 func2 func3
prot1 0 0 1
prot2 1 0 1
prot3 0 0 0
I want to use Standard Matrix Completion to recover the matrix, like
func1 func2 func3
prot1 0.... |
what will happen if we change "to_physical_layer(&s)" to "to_physical_layer(&r)" in the following code(marked in the code where)?
does it make the protocol fail? if so, show a scenario it will fail. if not - explain if there's an advantage or disadvantage in the change.
the code:
(simplex stop and wait protocol from t... |
A (T)FNP problem is induced by a NP language, say $L$. Usually in the notion of verifers, we define $L=\{x:\exists y,V(x,y)=1\}$, where $V$ is a poly-time verifier. The function version would be finding the certificate $y$ (if exist).
However, the choice of verifier could be arbitrary, for example, the verifier for $HA... |
Typically the notion of quantum Turing machine is introduced with its transition function.
$$
\delta:Q\times \Gamma\rightarrow \mathbb{C'}^{Q\times \Gamma\times\{L,R,0\}}
$$
Where $\mathbb{C}'\subseteq\mathbb{C}$ is a computable subset of $\mathbb{C}.$ This sort of definition basically gives any 1-qubit unitary gates "... |
I have a data structure that can perform a task $T$ in constant time, $O(1)$. However, every $k$th invocation requires $O(\log{n})$, where $k$ is constant.
Is it possible for this task to ever take amortized constant time, or is it impossible because the logarithm will eventually become greater than $k$?
If an upper ... |
I am working on pseudo random number generation for one of my projects. My goal is to prove that the output is almost Kolmogorov Random since Kolmogorov complexity is uncomputable.
So would appreciate any help or guidance for this subject matter.
|
Construct a context-free language for $L=\{w\in \{0,1\}^* \mid n_0(w)\not= 2n_1(w)\}$. Here $n_b(w)$ is the number of $b$'s in $w$.
I can construct a CFL in the case $n_0(w)=2n_1(w)$, but I have no idea how to construct it when they are not equal, considering that CFL is not closed under complement operation.
|
I'm trying to create an algorithm in C# that given a list of ranges (segments) it produces a compacted list of them:
Example 1
Input:
[1, 3], [2, 6]
Output:
[1, 6]
Example 2
Input:
[1, 2], [2, 3]
Output:
[1, 3]
Example 3
Input:
[1, 2], [4, 6], [2,4]
Output:
[1, 6]
Too visualize the problem better, this problem is simil... |
Rules: A conveyor belt is giving you little boxes. They are labeled for your convenience: Box $1$, Box $2$,... For your inconvenience, though, you can't see the number (from $1...n$) hidden in it. You can sort the boxes into $n$ bins as you like. You may pause the belt at any time to resort the boxes. As soon as one bi... |
Given a string s we have to find the length of the longest substring of s which contain exactly K distinct vowels.
This is the problem statment given on geeksforgeeks
Input : s = “artyebui”, k = 2
Output : 6
The only solution present on geeksforgeeks is the dynamic programming one. Can someone help with the recursive s... |
Let's say we have two arrays m and n containing the characters from the set a, b, c , d, e. Assume each character in the set has a cost associated with it, consider the costs to be a=1, b=3, c=4, d=5, e=7.
for example
m = ['a', 'b', 'c', 'd', 'd', 'e', 'a']
n = ['b', 'b', 'b', 'a', 'c', 'e', 'd']
Suppose we would like... |
(I don't know if there are standard names for this, so) Let's say that a Nondeterministic Finite Automaton (NFA) is $n$-expansive if it has $n$ states and any Deterministic Finite Automaton (DFA) recognizing the same language has at least $2^{n/2}$ states.
Let $E_n$ be the set of all $n$-expansive NFAs.
Is there a char... |
This is an exercise that's part of my assignment, but it is optional and flagged as a "challenge". I would like to discuss its solution:
Prove that: $$ 27\log{n} + \sqrt{n} = \theta(\sqrt{n})$$
Clearly this is correct, because the dominant term ($\sqrt{n}$) is present in both sides. But i wasn't able to give a mathemat... |
Let $T$ be a complete binary tree of height $n$ and root $r$.
A random walk starts at $r$, and at each step uniformly at random moves on a neighbor.
There are $m$ random walkers all starting at $r$ and let denote with $H_1,\dots,H_m$, the heights reached by the walkers after $n$ steps.
Show that, for some constant $C$... |
I have found two different versions for State Transition Diagrams for XOR.
I'm confused as to why one has 2 states and the other has 3. What are the implied states in each please?
Are they both functionally equivalent? Are there situations where one is more appropriate than the other?
|
I was reading this article and was wondering if there is any finite set of higher-order functions like map, fold or filter such that they could empower a language to be Turing complete even without having explicit constructs for recursion or iteration. Obviously the higher-order functions would be implemented with recu... |
This is a homework question. I have been asked to identify what sort this code below implements.
sort(arr of length n, left, right):
if (left > right): return
for i from 0 to n:
if i >= right and arr[left] > arr[i]:
left = i
swap(arr, left, right)
left = right
right = right + 2
if (right < n):
... |
Is $GF(\psi_1 \land F\psi_2 )$ equivalent to the property $GF(\psi_2 \land F\psi_1 )$?
Attempt:
In the first property each state must eventually see $\psi_1$ and $\psi_2$, in the second property as well each state must eventually see $\psi_1$ and $\psi_2$, as such the two properties must be equivalent. Is this correct?... |
I am currently reading a survey paper on the multiplicative weight update meta-algorithm. I am not quite sure what they mean by "meta-algorithm". Is it simply a general algorithm that can be used for different purposes?
I couldn't find any exact definition for this term, though I have found examples of meta-algorithms... |
I'm studying the Sipser textbook for my theory of complexity class. In a part of the book (i.e., Space Complexity chapter), for showing that Generalized Geography game is PSPACE-complete, the author has given an argument to model this game with TQBF problem (which is proven to be PSPACE-complete).
In a step of the argu... |
What do you call a set which accepts multiples of the same element, even in fractional amount? Is there even an established for this?
Example from a video game about production chains:
For a carpenter to run at full capacity, you need:
1 carpenter
1 sawyer
0.5 woodcutter
0.25 forestry
And knowing the fractional amount ... |
How do we demonstrate using Boolean algebra that these NAND and NOR gate combinations are XOR gates?
|
To show that some problem X is NP-complete, we usually show that it is in NP and that an efficient algorithm for deciding X implies an efficient algorithm for deciding some known NP-complete problem like SAT.
At the same time, informally, the NP-completeness definition usually says that solving any single NP-complete p... |
A month ago, I asked the following question math.exchange (https://math.stackexchange.com/questions/3127874/morphing-hypercubes-and-odd-permutations), but for completeness, I will include the details here.
Let $Q_n$ denote the $n$-dimensional hypercube graph -- the graph with vertex set $V_n = \big\{v : v \in \{0, 1\}... |
This question refers to the following paper:
Support Vector Machines for Speaker and Language Recognition, W. M. Campbell, J. P. Campbell, D. A. Reynolds, E. Singer, P. A. Torres-Carrasquillo, Computer speech and Language 20 (2006) 210-229.
I am trying to implement the algorithm in table 1 and table 2 in page 18. In st... |
Show the following problem is decidable: Given $w\in \Sigma^{*}$, $n\in \mathbb{N}$, and a Turing machine $M$, does $M$ on $w$ halt within $n$ steps.
My Thoughts:
I am new to proving results like these with Turing machines, so I'm often not sure what is "legal" or "not legal" with a Turing machine. For example,
my te... |
I have been trying to solve satisfiability of
{$<c, w>$ | $c$ is a CNF and $w$ is a binary string which satifies the $c$}.
As first looks to me, it is satisiable in linear time ($O(n)$) since $w$ has lenght $n$.
I tried thinking about whether the space complexity of this problem can be reduced to logarithmic order. B... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.