instruction stringlengths 35 29.1k |
|---|
From Reading 17 of 6.005 — Software Construction:
Exercise Reading a Grammar 4:
Which strings match the root nonterminal of this grammar?
root ::= (A B)+
A ::= [Aa]
B ::= [Bb]
aaaBBB
abababab
aBAbabAB
AbAbAbA
Answer: 2 and 3
So far so good.
Exercise Reading a Grammar 3:
Which strings match the roo... |
In my earlier Question asked here Help in understanding how to apply nonlinear function in hashing about chaos cryptography, since then I have come across several research papers that apply atleat theoretically chaos based cryptography. It is still an active area of research with advantages and disadvantages.
How can ... |
I know that this doesn't work because shortest path with a lot of edges may have bigger weight than a longer path with less edges. But what if, you keep track of the edges that our current weight path on each node and when we compare we subtract the number of edges on this path * the constant so that we get the origina... |
The question is: given a sequence of numbers, find an algorithm that determines if the sequence of numbers is in post order traversal of a binary search trees.
Up to now, I have understood the following:
In the post order traversal of the binary tree it follows Left, Right, Root. So the Left value has to be less than... |
I want to develop a previous question regarding Von Neumann debiasing /randomness extraction.
The typical solution (as posted) is to take pairs of throws and output a bit based on a comparison of the two throws. This is the most simple solution.
My problem is that it's very wasteful of input entropy. The biased d... |
I came up with an implementation in c for arrays which can be extremely large yet only use an amount of memory proportional to how much data you have written to it. What I want to know is if there is a name for this kind of list or structure. Here is my code in C for the structure and example use:
#include <stdlib.h>
#... |
I am trying to understand what the difference is between the fractional knapsack problem using dynamic programming, and the greedy solution version. Im looking at an example of the fractional problem which looks like:
What's the difference between that and the greedy solution? Are you not just taking the value-per-pou... |
I am studying a data structures course in which we have given many assignments on constructing data structures (like trees, arrays, and linked lists).
In class template, what kind of notation should I write for these operators (::,->) and the others operators which are used in C++? Can anyone elaborate more about writi... |
Let $M_0$, $M_1$, $M_2$,..., be an effective enumeration of all Turing machines. Which of the following problems is (are) decidable ?
Given a natural number $N$, does $M_N$ starting with an empty tape halts in fewer than $N$ steps ?
Given a natural number $N$, does $M_N$ starting with an empty tape halts after at leas... |
I have variables $x \in \{0,1,\dots,5\}$ and $y \in \{0,1\}$, where
$$y = \begin{cases} 0 & \text{if } x = 5\\ 1 & \text{if } x \neq 5\end{cases}$$
My problem is to maximize $y$. How can I use linear constraints for this?
I tried certain cases like Cast to boolean, for integer linear programming but that won't work if ... |
Assume that I have some functions $f$ and $g$, both implemented perfectly, where
$$
f(x, g(z)) = \sum_{k=0}^{k=\lfloor{x}\rfloor}g(k)\quad (x > 1)\,.
$$
Function $g$ is of unknown definition. I would like to express the time complexity of $f$ in big-O notation. My initial thought was to do something similar to:
$$
O(\s... |
I'm trying to implement the Biased Crowding Distance in NSGA-II as described in the paper Integrating User Preferences into Evolutionary Multi-Objective Optimization by Branke and Deb.
Basically, from what I understand, given a set of points on a Pareto-front, we need to project the points onto a hyperplane with a dir... |
I am thinking that is the following a problem solved by nominal unification.
$\lambda a.X = \lambda b.\lambda c.c $
where we find $X$. The answer is obvious.
The reason is that it seems in nominal unification $X$ always will be an atom, not a function such as $\lambda c.c$.
The theory seems works fine with this input, ... |
I'm seeking some clarification on a description of the RAM model in CLRS on page 23, section 2.2 (Analyzing Algorithms).
Firstly, it is mentioned that we assume integers are represented with $c\cdot\log_2 n$ bits for some constant $c\geq 1$. Now take the integer value $2$, would it not be the case that we would need mo... |
I'm rather new to formal languages and reading up on Peter Linz's An Introduction to FORMAL LANGUAGES and AUTOMATA. As an exercise in the pre-requisite chapter, there's a proof. I'm not so familiar with formal proofs so I would like someone to tell me:
Does it prove it?
How would you make this proof stronger? I am not... |
Let's say I have a disk with an average seek time of 10ms, an average rotational latency of 5ms and a transfer time of 1ms for a 4kb block and the cost of reading the block is the sum of these values. If I have to sort a large relation consisting of 10,000,000 blocks of 4kb each and I have 320 blocks of main memory ava... |
Let $a,b>0$ and suppose we have divided the domain $\Lambda:=[0,a]\times[0,b]$ into a grid of width $n_x$ and height $h_y$.
We enumerate the grid from bottom to top and left to right. Given $(x_0,y_0),(x,y)\in\Lambda$, I want to iterate over each grid cell through whose interior the line segment connecting $(x_0,y_0)$ ... |
I might be wrong but I think it must be 2^6 = 64 integers?
|
Is it possible to find all simple directed graphs given a set of nodes? I was thinking of just finding all permutations of an adjacency list of lists. For example, given nodes A, B I can have the adjacency lists:
A | \
B | \
A | B
B | \
A | \
B | A
A | B
B | A
The constraints are: no self loops, simple graph, direc... |
For example,
given an element-wise function $f$, with input $x\in\{0,1\}^{p\times n}$, the complexity $T(f(x))=O(n)$, and that all numbers are represented using $p$ binary digits. Suppose that we also know the complexity of each individual operations inside $f$. For example, multiplication takes $O(m^{1.585})$ using Ka... |
The proof of $P\subseteq P_{\\poly}$, Let $M$ is a Turing machine with $T(n)$ is running time and goal here is to design a boolean circuit of size $O(T(n))$ (for more detail see Arora and Barak page no -105 ).
The idea is that you can compute configuration $c_i$ from configuration $c_{i−1}$ by examining the content o... |
Consider domain $X$, label set $ Y=\{0,1\}$ and the zero-one loss.
Given any probability distribution D over $ X\times \{0,1\} $, we've defined the Bayes classifier $ f_D $ to be-
$$ f_{D}(x)=
\begin{cases}
1 & \text{if }\mathbb{P}[y=1|x]\geq\tfrac{1}{2}\\
0 & \text{otherwise.}
\end{cases} $$
I wish to prove that, for ... |
I'm trying to figure out what this NP-hard problem is most similar to and therefore which solutions are available to me.
There are a fixed number k of bins, each with the same initial capacity c1. There are a number of items of different sizes packed into each of the bins, such that the sum of the sizes of the items in... |
I am pretty new to PDAs and I was solving a problem which asked to design a PDA for the following: $a^n b^{2n}$.
The transitions on the PDAs I've encountered so far have pushed only one symbol onto the stack at any time. Can we push two symbols?
Eg: for every $a$ I encounter I push two symbols. Thus, the transition wi... |
It seems like people have discussed this reduction here:
Is Hidoku NP complete?
But it looks like the solution that was given only tells you if the Hidoku problem has a solution or not (if an hamilton path/cycle exists), what about extracting the solution itself from this reduction?
Can someone see how it is possible?
... |
As
type theory is a principle focus of modern computer science,
its origins are in Bertrand Russel's theory of types,
Principia Mathematica is both the origin of and is expressed in the theory of types, and
relational databases are among the highest value, most researched applications of computer science
it seems Rus... |
UPDATE
In an earlier question of mine asked here : https://math.stackexchange.com/questions/2206095/beginner-level-understanding-concept-on-how-to-derive-probability-of-hash-collis , I got the answer that the number of keys falling into a given bucket. In lay man's term, if I imagine a key to be an image as the data it... |
As a computer science student I consider is essential to completely understand how a Turing machine is defined.
What mathematical knowledge is required in order to understand the formal definition of a Turing Machine, as explained in this Wikipedia link.
|
I'm going through some past exam papers for my course and I'm having trouble completing this one question.
It is as follows: "Draw a strict binary tree with seven nodes that has the same pre-order and post-order traversal sequence".
Is this actually possible? Wouldn't I need to visit the root node before anything else... |
Detecting the regions where a car has been damaged and the extent to which it has been damaged is a very interesting problem. It has potential applications in automatic auto insurance claims. Currently I'm trying to tackle this problem and am looking for papers/ideas for the same.
I am currently modeling the problem as... |
Hi All,
I am solving a question about counter mode encryption in symmetric crypto. I am new to the topic and don't really understand the matter, could you help me a little how to solve the following task?
The formula for counter mode encryption is
Ci = Pi ⊕ E (IV + i, K).
Suppose we instead use the formula
Ci = Pi ⊕... |
I came across the following equality of regular expressions $$(r|s)^* = (r^*.s^*)^*\,,$$ where $r$ and $s$ are two regular expressions and $.$ denotes concatenation, but I don't know how could I prove it.
My try:
I call $L(r)$ the language defined by the regular expression $r$. And I want to use the fact that two regul... |
I'm working on a clustering problem and want to sample partitions (possible clustering solutions) among a set of constrained ones.
Here is the problem: I have a set of objects $O=\{o_1,\ldots,o_n\}$ and would like to sample among reflexive, symmetric and transitive relations $R \in O \times O$ such that samples satisf... |
I'm looking for a data structure that is like a quadtree where each level is a subdivision of the previous. However, unlike a quadtree I need the subdivision to occur a different number of times in the horizontal direction to the vertical direction. In a quadtree the space is subdivided once in each dimension (resultin... |
Suppose that $L$ is a language recognized by a linear-bounded automaton with the constraint that it can only change each of its input cells at most $t$ times each, where $t$ is some constant integer. Must $L$ belong to $P$, the class of languages decidable in polynomial time? Even more stringently, does there exist a d... |
I have a dictionary-like regular expression, an "or chain" of words,
word1|word2|word3|...
Unfortunately, the chain is too large. I'd like to find the minimal regular expression that is equivalent. How can do I do that?
You should think of this as a regex like /^(word1|word2|word3)$/. I have a dictionary of words, ... |
I was reading about max flow theorem and there I saw scenario where the min s-t cut is found. But wherever I searched they did it after knowing the max flow or by guessing the cuts by iterating almost all .
Is there a logical way to arrive at the minimum cut (with the paths) without knowing the maximum flow or guessin... |
In this question I ask about what use is a solver that can find an assignment that satisfies, say, 90% of the clauses of a known satisfiable 3SAT problem in polynomial time. The answer seems to be: given a problem ϕ that may or may not be satisfiable, you perform a reduction on an input formula ϕ to another formula ϕ′... |
Let $n, m \in \mathbb{N}^{+}$. Let $\mathsf{rand}$ be a procedure which returns some random $x \in \{0, 1, \ldots, m - 1\}$ with a flat probability distribution. I have the following procedure:
W := an array of length m full of 0s
for i in 0, 1, ..., n - 1; do
(x, y) := (rand(), rand())
W[y] := max(W[x], W[y]) ... |
I read somewhere that DFS is a special case of Best first search algorithm if f(n)=-depth(n). please justify this i am not getting it.:/
|
In propositional logic (Artificial intelligence to be specific) $\alpha$ entails $\beta$ iff $\alpha\Rightarrow\beta$ is a statement.
However if I write the truth table for implies ($\Rightarrow$) if $\alpha$ is false implies that $\beta$ is a true sentence as shown in the table below in the fourth row.
\begin{array}{c... |
Express the condition "$x = 0$ if and only if $y = 0$" as a set of linear constraints, where $x,y$ are integers such that $ - 5 \le x \le 8$ and $0 \le y \le 1$
|
what is the space and time complexity (lookup, insertion) of count-min sketch and quotient filter?
I could not find these complexities.
I would like to make a program which find the frequencies of objects in a set in the fastest way, so the time complexity is really important for me.
I read the research article about... |
I'm trying to understand the category utility function in the COBWEB algorithm.
Assume you have the following data and build a set C of three clusters (three child-nodes under the root node), one for amphibian (C1), one for fish (C2) and one for bird/mammal (C3).
Using the above CU formula, I'm now trying to compute ... |
Exercise 1.1 (2) from Problem Solving in Automata, Languages, and Complexity by Du and Ko. P.7. the question is as following:
Let A be a langauge over {a,b} and $x \in {a,b}^*$. Find necessary and sufficient conditions in terms of x and A for the equation:
$$A^* - \{x\} = A^+$$
thus, by substation:
$$\{a,b\}^* - \{... |
I have a hard time creating a context-free grammar for the language
$$L=\{(a^n)^*(b^m)^*y\mid y\in\{a,b\}^*,\ |y|=n+m \}\,.$$
Any help breaking down the problem is appreciated, since I'm getting nowhere with this one...
|
I am sorry my English is not very good.
my problem might look simple for everyone here.
I have read about Floyd–Warshall algorithm in wikipedia,every thing was good but when I start reading "Behavior with negative cycles" I face problem in understanding this sentence:
"There is no shortest path between any pair of vert... |
I know the theoretical difference between lock-free and wait-free algorithms, but it's a little hard to me to figure out how do they differ in implementation (code). In particular, i would like to know how would the implementation (code) of a counter be.
Thanks
|
I have come across the claim that all basic data types in System F, such as Bool, Nat, and List(U), can be expressed in the form $\forall \alpha (((T\alpha \rightarrow \alpha) \rightarrow \alpha)$, where $T(\alpha)$ is a definable functorial type constructor.
Can someone explain why this is true or refer me to a proof... |
Is there any closed from expression that can express the number of input pins of a binary tree based on height of the tree and its number of nodes?
In case that the binary tree is a full tree, it is easy to find the number of input pins. In this case we will have $2^{H-1}$ nodes at the last level of the tree ($H$ is th... |
If I am given two languages $A$ and $B$ which are in NP, then we know that there exists a NDTM that can decide $A$ in polynomial time, and there exists another NDTM that can decide $B$ in polynomial time. Can I decide $A$ and $B$ in polynomial time using a NDTM by simply using a NDTM to check for belonging in $A$ then ... |
For example, if a node has 2 edges going into it and two edges coming out of it all with capacity 1, is there a way to make it so that only 1 unit of flow can go through this node (without just deleting edges)?
|
When does strong duality fail in linear programming? I have considered the case when both primal and dual solutions are infeasible, but then there are no optimal solutions at all.
|
I wish to discuss the element uniqueness problem. First let's define the problem:
Definition from wikipedia:
In computational complexity theory, the element distinctness problem
or element uniqueness problem is the problem of determining whether
all the elements of a list are distinct.
i am aware that this questi... |
So, I am revisiting complexity analysis.
Here's the example: the instructor reduced an algorithm to:
n*(1 + 1/2 + 1/3 + ... + 1/n), and I can't seem to grasp why the part in parentheses is log(n).
|
So I am trying to construct a timeline graph for threads interacting with synchronization functions e.g. pthread_mutex_lock.
I have the following information:
1- thread ids
2- ids for the synchronization functions
3- Arrival times of the threads at the synchronization functions e.g. the time at which the thread encount... |
I need an algorithm that will find four points.
These four points form the vertices of a polygon
Which four points make a polygon with the most area?
Sample data: http://jmp.sh/v/8lAytDc00UrOa17Z6Oo6
|
Wikipedia claims that bin packing is strongly NP-complete. Unfortunately I haven't been able to find a proof. Does anyone know where to find it?
|
I'm trying to prove the following laws using structural induction on (finite) lists:
take m (drop n xs) = drop n (take (m + n) xs)
drop m (drop n xs) = drop (m + n) xs
for all m, n and every finite list xs (code snippets are in Haskell). I'm not sure how to tackle it though, more specifically: afaik when using inducti... |
am trying to figure out how to design a unary number Turing Machine. That after reading all the unary number in the tape it would give out a decimal value. how can i approach this problem?
|
It is said that in 2's complement 0 has only one value, while in 1's complement both +0 and -0 have separate values. What are they?
|
In the sources I consulted it states that in the Baum Welch algorithm the reestimate of the initial probability of state $i$ of the HMM is $\pi^*_i = \gamma_i(1)$. But $\gamma_i(t)$ is the probability of being in state ${\displaystyle i}$ at time ${\displaystyle t}$ given the observed sequence ${\displaystyle Y}$ and t... |
Suppose a comparison between elements takes 1ms to execute. If an algorithm is O(logN), for example, deletion in an AVL Tree, and the AVL Tree contains 100 elements. Does that mean that the time to execute the algorithm would be log100 * 1ms? Do I need more information to calculate this or is this enough?
|
I am a layman in computer science.
How do the command we input in a computer, which is a software component, changes into a hardware component. For example, if I want to play a song, I will just click the song and the audio starts to emit from the speakers. So how does in general these things happen?
|
Let $G$ be a undirected graph with $n$ vertices and no edges, and let $f(k)$ be the probability that if we add $k$ edges randomly to $G$ that $G$ will be connected. How would one determine $f(k)$ for a given $n\in\mathbb N$?
Specifics:
When we add an edge to the graph $G$, any edge that can exist would be equally likel... |
I'm trying to simulate Shor's algorithm with a model using vectors for quantum registers and matrices for quantum gates, however I'm stuck at the modular exponentiation bit of Shor's algorithm, having no idea how to build the corresponding matrix (unlike Hadamard and QFT). How can I build said matrix?
|
I am reading the following paper:
Big-Align: Fast Bipartite Graph Alignment. Danai Koutra, Hanghang Tong, David Lubensky. International Conference on Data Mining (ICDM 2013).
I'd like to understand one of the paper's claims about the running time of their algorithm. Their algorithm uses matrix multiplication as foll... |
I've got this DFA and I need to figure out and describe the language that it accepts. I figured that $M= \{\{1,2,3,4,5,6\}, \{a,b\},1, \{1,5\}, \delta\}$
Now I don't know how to move forward.
|
Problem 7.16 in The Nature of Computation reads as follows:
[...] show that when defining primitive recursive functions, we really only need to think about functions of a single variable. In particular, show that a function $f(x)$ is primitive recursive if and only if it can be generated from $0$, $S$, $pair$, $left$,... |
I am training a HMM with Baum Welch for part of speech tagging. I am training the model with 79 hidden variables (part of speech tags) and 80,000 observed variables (words). I am working with log probabilities. To give you an idea, I defined the necessary arithmetic operations like so:
struct log_policy
{
template<... |
A computer can be pretty much made using just nand gates and a clock. Suppose you randomly place down nand gates on a board and connect them randomly to other nand gates. How many gates does someone have to put before it can be expected that the "computer" is Turing Complete?
|
Im'm studying Instruction Set Architecture using the book "Logic and Computer Design Fundamentals".
Studying types of architectures I came up with an example of memory-memory type which is:
ADD T1, A, B ' M[T1] <-M[A] + M[B]
ADD T2, C, D ' M[T2] <- M[C] + M[D]
MUL X, T1, T2 ' M[X] <- M[T1] * M[T2]
Then a... |
For NP completeness proofs/reductions, I need to establish that the problem is a "search problem"...
However, the definitions seem to be somewhat vague. If the definition of the search problem is:
Search problem is a problem which has the following input/output form: Given instance I (graph G), we are asked to find ... |
TL;DR:
There're lecture notes about a very simple reduction from "maximum flow with edge demands problem to the maximum flow problem. But I can't get the new capacities at the picture:
E.g., look at the diagonal: 15 - 0 = 14 (?). From my point of view there're a lot of off-by-one errors.
|
I am preparing for my master thesis in Quantum Image Processing (QImP), i choose to work with Novel Enhanced Quantum Representation of Digital Images (NEQR).
To convert an image from Classical domain to Quantum domain we need to do a Quantum Image Preparation which in case of NEQR is consists of two steps as shown in... |
I'm trying to solve this exercise: given $L=\left\{a^kb^k|k>0\right\}$
determine $L^2$ and $L^3$.
So I'm able to solve this kind of exercise if k is given into a defined range but I'm really struggling to solve this exercise.
Any help? Thanks.
|
Given a sequence of ݊different elements, there is an algorithm that finds the maximum element, and the 2nd largest element, using n +log_2(n) - 2 comparisons. Prove that any algorithm will have to perform at least n +log_2(n) - 2 comparisons in order to find both elements.
What I've done: I tried to compare it to a t... |
I'm trying to prove that the amortized time complexity of appending to a dynamic array that resizes in accordance with capacity = $N$ to $N+\lceil{\frac{N}{4}}\rceil$ is $O(1)$. I'm assuming that resizing an array from $x$ to $y$ "costs" $y-x$ primitive operations.
Here is my reasoning so far. Assume that an array is ... |
Show that, for sufficiently large $n$, there is a function $f\colon\{0,1\}^n \to \{0,1\} $ that cannot be computed by a Boolean circuit with fan-in $2$ with $\frac{2^n}{2n}$ gates. Please give me a hint.
|
I thought that, for every CFG, there is an equivalent grammar in CNF. I was told this is false. Can someone explain to me why this is false and possibly provide a counter example?
|
I am thinking of explaining the topic of Network flow to an audience of computer sciecne students, and I want to make it more enjoyable by giving some real life examples where a software Developer may find Network Flow useful.
I want to refrain from using standard problems like Baseball problem, marriage problem, edge ... |
I'm working on a problem similar to topological sorting, but with an additional constraint: I want to order the nodes by assigning a positive integer index to each, and, in additional to the relative constraints the graph defines, some nodes have a predefined index assigned.
That is, the input is a set of nodes $V$, a ... |
I'm currently trying to prove that following NFA $\mathcal{M}_0 = (Q, \Sigma, \delta_0,0,\{0\})$ (see picture below) has an exponentially larger DFA $\mathcal{M}$ accepting the same language.
$\mathcal{M} = (2^Q,\Sigma,\delta,\{0\},F)$ is constructed using the subset/powerset algorithm and I'd like to show that $\math... |
Given a digraph with a source $s$ and target $t$, must there be an edge cut which contains exactly one edge in every path from $s$ to $t$? I'm not interested in a minimum cut; any cut would do.
If not, how close to "exactly one" can we get?
|
The question is: We need to design a cache with cache size of 128K bytes, block (line) size of 8 words, and word size of 4 bytes. Consider a computer with 64-bit physical address. The cache is addressed by physical address
I need clarification on this: if we have 128k bytes and each block equals 32 bytes (8*4), do we h... |
According to the lecture note by Jeff Erickson, the lower bound for finding the third largest element of a set of $n$ distinct elements is open. See the related post: What is the lower bound for finding the third largest in a set of $n$ distinct elements?
Given that the tight lower bound is still unknown, I want to kno... |
I have to simplify A+C'+B'CD but I don't see how.
I had to deduce the expression starting from a logic diagram in which two AND gates were used for the B'CD part. Seeing the diagram all I can think of is to use one AND gate instead of two, but I don't see how the actual boolean expression can be simplified.
|
I'm little confused with proving if this language is regular: $L=\{a^{n}b^{m}c^{{m}\choose{n}}\}$. What are $n,m$? Are they arbitrary? If yes, this language has only one word and I need to prove or refute that exists FA that accepts this word?
|
I have an example below which seems to lead to a “useless” production.
This is the original grammar:
\begin{align*}
S&\longrightarrow aX\,|\,Yb\\
X&\longrightarrow S\,|\,\varepsilon\\
Y&\longrightarrow bY\,|\,b
\end{align*}
Here is the conversion to CNF:
Step 1: Make sure the start symbol ... |
I stumbled across the following question.
Say I have given an arbitrary PDA $P$, NFA $N$, and CFG $G$. My question is then if the following language ($L(P) \cap L(N)) \cup L(G)$ is context-free.
How can this be determined?
|
Aren't these two Modulus equations exactly the same (seems obvious):
$ X = 0 \ (mod\ B) $
$ X = B \ (mod\ B) $
The reason for the query is the following NP Complete Problem from Garey and Jhonson:
AN2, Simultaneous incongruences.
Given a collection $ [(a_1,b_1),…,(a_n,b_n)]$ of ordered pairs of positive integers wi... |
How to prove the statement
"If the strings of a language $L$ can be enumerated in lexicographically(alphabetic) order, then the language is Recursive but not context free" ?
Basically, My point is how can the strings of $a^nb^nc^n$ can be lexicographically enumerated as first $n$ has infinite terms .
|
All file systems I know make significant efforts to try and allocate files in contiguous blocs on a disk.
But if the disk is an SSD using flash technology underneath, is there any benefit to contiguous allocation? The only benefit I can see is in file systems like ext4 which use extents, in which case contiguous alloc... |
Some definitions:
Consider the unweighted directed graph $G$, where each node is uniquely represented by an $n$-bit vector of $0$'s and $1$'s.
Now consider this scenario: we want to 'shrink the dimension' of the index vectors for all nodes. For example, originally, some node has the index vector $\langle 0, 1, 1, 0 \... |
How to encode a first order formula into binary string, which I could give as input to Turing machine or program to do something with it (deciding is it satisfiable, or is concrete structure model for it, for example)?
I've read that I should first make a tree (which I know how to do) and then encode that tree, which ... |
With reference to this PDF discussing Superdense coding, it is mentioned that there are two qubits A and B whose superposition gives the system $\frac{1}{\sqrt{2}}|00\rangle + \frac{1}{\sqrt{2}}|11\rangle$. It is said that Alice has A while Bob has B. What are the individual qubits A and B?
Since the system is entangl... |
Given a bipartite graph, I need to find for each node, If this node exists in all the possible maximum matchings of the given graph or not.
Note that there can be multiple maximum matchings of a given bipartite graph with the same value of matching but different set of edges.
What is an efficient way to do this?
|
Let's say I have an undirected graph with an edge $e = \{a,b\}$ connecting vertices $a$ and $b$.
Taking vertex $a$, what is the name of the other vertex? Is it the "co-vertex"? Or simply the "other vertex"? Or the "neighbouring vertex"?
|
I was reading how to find the Lowest common ancestor in a DAG. A DAG can have scenarios where the LCA yields multiple solutions and I feel the accepted answer explains that pretty well.
However, one of the answers also mentions a paper that talks about because of the given scenario above, for DAGs there may be cases wh... |
A few weeks ago, I asked this question on the implementation of the shift operator for an architecture that implements boxing. Reviewing my implementation I found out that the division operator wasn't correctly done. My language should implement the construct L3IntDiv that implements floored division in contrast with t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.