instruction
stringlengths
35
29.1k
The following is a problem statement from "Introduction to Theory of Computation" Chapter 0 Problem 0.14: Let $G$ be a graph. A clique in $G$ is a subgraph in which every two nodes are connected by an edge. An anti-clique, also called an independent set, is a subgraph in which every two nodes are not connected by an ed...
I am trying to solve an LP in which one of the constraints is mentioned below, $$\max(x_1,x_2) \ge q,$$ where $x_1 \ge 0$ and $x_2 \ge 0$. Is it possible to do in linear programming?
I want to better understand how this actually works, as my solutions are sometimes not 100% correct. I have the following relation: Check if the following relation is reflexive, symmetric, and/or transitive: $$ R_1 = \{ (x,y) \mid x,y \in \mathbb{R}, x=0 \land y \geq 0 \}. $$ so by that $$ R_1 = \{ 00, 01, 02,03,04,0...
I am reading the book An Introduction to Mathematical Cryptography. In its chapter 7, there is the following statement: In real world scenarios, cryptosystems based on NP-hard or NP-complete problems tend to rely on particular subclass of problems either to achieve efficiency or to allow the creation of a trapdoor. Q...
A symmetric matrix $A\in \Bbb{R}^{n\times n}$ is copositive if for every vector $x\in\Bbb{R}^n$ with non-negative entries, we have $$x^TAx \ge 0.$$ What are known methods to check if a specific matrix $A$ is copositive that are efficient in practice? I'm looking for something which will return an answer for a single in...
How can I solve the following recurrence $T(n) = T(n - 1) + n$ with the substitution method? I guess the solution is $\Theta(n^2)$ I try to demonstrate $O(n^2)$: $$T(n) \leq O(n^2) \\ \leq c(n-1)^2+n \\ \leq cn^2+c-2cn+n$$ How can i continue?
For a CAM (Computer Aided Manufacturing) software, and more specifically, for the simulation of the subtractive manufacturing, I would like to understand how to design the representation. In subtractive manufacturing (e.g. a Mill), a piece of raw material like a cube or a cylinder is machined. That is, a milling bit (...
Given three binary strings, find the maximum possible length of a contiguous block of 1's formed by shifting and overlapping the strings. This may be interpreted as finding the maximum window size $k$ such that for each column $(a, b, c)$ across the three strings, it holds that $a \lor b \lor c$ is true. If we instea...
I find in many references the fact that if $G$ is a connected planar graph, then for any embedding, $G^{**} \cong G$. However, all those references either say that this fact is trivial, or give the proof as an exercice. I am ok that this is clear on a small graph, with a nice embedding, but how can we prove this proper...
As the question implies, can you mention any difference between Hidden Markov Model and Non-deterministic Finite-State Machine? Are they different or the same?
Consider the following mathematical model of training a neural net : Suppose $f_{w} : \mathbb{R}^n \rightarrow \mathbb{R}$ is a neural net whose weights are $w$. Suppose during the training the adversary is sampling $x \sim {\cal D}$ from some distribution ${\cal D}$ on $\mathbb{R}^n$ and sending in training data of th...
Can someone recommend introductory articles/papers on the connections between dependent type theory and locally cartesian closed category? Many Thanks!
Most definitions of a $k$-wise independent family of hash functions I have encountered state that a family $H$ of hash functions from $D$ to $R$ is k-wise independent if for all distinct $x_1, x_2,\dots, x_k \in D$ and $y_1, y_2,\dots, y_k \in R$, $$\mathbb{P}_{h \in H}(h(x_1) = y_1, h(x_2) = y_2, \dots, h(x_k) = y_k) ...
Given: $$f(1) = 1 \\ f(n) = 4f(n-1) + f(n/3) + f(n/8)$$ (if $n<1$ then it is still 1) And I need to find $\Theta(f(n))$, can I do this? $$ \Theta( f(n)) = \Theta(4f(n-1)) + \Theta(f/3)) + \Theta(f(n/8))$$ Then solve each term and get that it is $\Theta(4^n)$ ? Or it is not possible as we basically have this: $$ f(n) =...
I understand that every modern human made computer is being operated by time sharing operating systems which allow two or more users running two or more processes at once each, from two different terminals. Take for example playing two songs at once: One from YouTube and one from MP3; they appear "mixed" but the "parti...
In the bin packing problem, there are some $m$ items of size less than $1$, and they have to be packed into as few as possible bins of size $1$. The problem is NP-hard, but if we are allowed to break some items then it becomes easy, since each bin can be filled completely. What if we are allowed to break (to as many pi...
The Akra–Bazzi method handles recurrences of the form $$ f(n) = \sum_{l=1}^k a_l f(n/b_l). $$ Does it work when then number of $a \cdot f(n/b)$ is not finite, meaning that we have a sum that depends on our input $n$? What about this: $$ f(n) = \sum_{l=1}^{n} f(n/3^l) $$ Can I say that we need to find the $p$ so that $$...
Is it possible to make an algebraic grammar LL($1$) which recognizes palindroms for an alphabet $\{a,b\}$?
I know the fact that if we have two functions $f$ and $g$ it is valid to say that: $$ \Theta( f(n) + g(n)) = \Theta( \max\{f(n), g(n)\})$$ My question is if this is valid when $g$ is not a separate function, but also some kind of $f$? For example, if we have: $$f(n) = f(n-1)+f(n/3)+ f(n/9)+\dots+ f(n/3^{\log_3(n)})$$ I...
I am trying to understand the definition of skewed circuits in these slides which is given as follows: A circuit is skew if in each product gate, at least one product has degree $\le 1$. I think author wants to say that each product gate is either a leaf node or one level above the leaf node.
I was studying CRC from lecture notes of Schwarzkopf but I am stuck at this statement: If $G(x)$ is a factor of $E(x)$, then $G(1)$ would also have to be $1$. What does this statement means? It is the third point in the third last block of the article whose link is given. I know a similar question is asked but that i...
I am currently studying the book 3rd edition CLRS Algorithms textbook, Chapter 3. I had the exact same question as this post but I have one more question now: What is a negative function? These functions are estimates that describe the time it takes to perform a function (an algorithmic sequence) onto a list. How can t...
Suppose I have a matrix that I know to be singular. This means that there is at least one row in the matrix which is a linear combination of the other rows. What is the fastest way to identify which row that is or which rows they are? I'm aware that the solution to this problem is not unique in general. The goal is to ...
Wiki describes the binary relation $\underset{\mbox{G}}{\implies}$ as "G derives in one step". I have a question on the condition when there are multiple productions for a single non-terminal. Wiki defines $G = (N, \Sigma, P, S)$ and $\underset{\mbox{G}}{\implies} \subset (\Sigma \cup N)^* \times (\Sigma \cup N)^*$ wh...
The lecturer of my graduate algorithms course suggested that, even if a Fibonacci Heap would consolidate its tree list after every operation (not just when doing deleteMin()), most operations would still have $\mathcal{O}(1)$ amortized complexity. I've been trying to prove this, starting with the classical potential fu...
I am trying to distort the image obtained from two cameras that generate a stitching image. Unfortunately, I do not have access to the cameras and I would like to know what could be the best way to apply to correct the image and get the lines below to be straight. The next step I am trying to do is to calculate the ho...
How to show that the quick-sort algorithm runs in $O(n^2)$ time on average ? Because on average, the expected running time is in $O(n\log n)$. The algorithm should not be in exponential time.
Say I have a incredibly simple input to a convolutional layer: [In1] <----- 1*1 input matrix I have two filters applied this input:[F1] and [F2] They give the results: [F1 * In1] and [F2 * In1] Then let [F1 * In1] = [Out1] and [F2 * In1] = [Out2] I then calculate ∂C/∂In1 for each filter: [∂C/∂Out1 * ∂Out1/∂In1] and [∂C...
A basic question or request for clarification regarding Karp reducibility: Let $\Sigma^*$ be the set of all finite strings of 0's and 1's. Call a subset of $\Sigma^*$ a language. Let $\Pi$ denote the set of all functions from $\Sigma^*$ into $\Sigma^*$ that are computable in polynomial time. According to Karp, a lan...
In my chess code I explore the whole tree of possible movements to find saving moves for a checked king. That is, for every one of the checked king's side pieces I search their whole tree of moves and keep those that remove the king from check in a list. Not like it's particularly expensive computationally-wise with a ...
I need an instance of 3SAT with exactly one solution but I cannot think of or find one anywhere. Can anyone please give me an example?
I tried many grammars and so far I got this one: \begin{align} &S \to aXbZ \mid abc \\ &XZ \to Ybcc \\ &Xb \to bX \\ &bY \to Yb \\ &aY \to aa \mid aaX \end{align} Is my grammar correct? Is there a simpler one?
I have 2 max-flow function f1,f2 that are different from one another (atleast on a single edge). I know they give each edge a natural even value. I constrct 2 types of average functions: A)$ g (e) = (f1(e)+f2(e))/2$ B) $h(e)=f1(e)*1/3 + f2(e)*2/3$ I want to prove or disproof their being max flow functions too. My thoug...
I have an $MST$ tree $T$. I increase the weight of a single edge $e$ by $c$(a non negative constant). I need to recompute an $MST$ as fast as i can. How I do this? The idea I had in mimd is to remove $e$ from $T$. Loop over all crossing edges between the two "halves" of $T$. See which one is minimal weight. Add her ins...
found this question online and I am trying to solve this question. I have solved this question but I think I might be missing some cases. Could someone verify if my answers are correct? Let N = (Σ ∪ {λ}, Q, δ, q0, {qf }) be a λ − NFA and let L = L(N) be the language accepted by N. For N assume q0 has no incoming transi...
I have a question about the pumping lemma for context-free languages. I understand the conditions of the pumping lemma. Assume $L$ is context-free. Let $n>0$ be the pumping length given by the lemma. $z=uvwxy$ with conditions: $|vwx|\leq n$ $|vx|\geq 1$ $\forall i >0, \exists z= uv^iwx^iy \in L$ But i need to kn...
In every group chat of six (distinct) people on Instagram, there is a group of three (distinct) people such that either: everyone in the group are friends everyone in the group are strangers (i.e not friends). Let $F(x,y)$ be a relation that denotes that $x$ and $y$ are friends on Instagram. Translate the statement...
I've read Chapter 5, Syntax Directed Translation, of the Dragon Book but am still unable to understand the following related points: How to handle L-attributed SDDs in an LR grammar when using a tool such as Bison? I believe, the book says that inherited attributes could be used with an LR parser (via Marker symbols?)...
I don't understand the last para. I corrected its typos. Please explain like I'm 5. If micro-kernels can be big, and monolithic kernels can be small, doesn't this size gradation collapse the distinction between monolithic kernels and micro-kernels? Is this what a hybrid kernel means? So.. that's the ELI5 version. Thin...
Let's say we start with $i = 1$, $j = 1$, $i \leq n$, and $j \leq i$ and then increment $i = i+1$ and $j = 2j$, respectively. The output prints $k$ times, which represents the inner loop. Output: print s $k$ times. Example when $n=5$, loop will print 11 times. How to find the complexity function of this algorithm for...
I am still trying to get my head around what is valid CNF and how distribution works, I am not even sure if the examples I have tried to convert are correct for one, but I am also unsure of the rule for distribution and when I have looked at other posts here it seems so complicated and the actual rule does not seem to ...
I am told to solve the recurrence $$T(n)=10T(n/9)+n\lg(n)$$ using the Master theorem. I then try to use case 3. However, I am unable to show that for $f(n)=n\lg(n)$ then $10f(n/9) \leq cn\lg(n)$ for $c < 1$ and all sufficiently large $n$. Is it wrong to use case 3? Or does the Master theorem even apply?
I understand that in a non-deterministic automaton, an input can lead to one, more than one, or no transition for a given state. Given this information, I would assume that if the input lead to a loop, this loop would be infinite until a determined input happened (being one || more || ε). However I would like to know i...
Is the language $\{wxw^Rx^R \mid w,x \in \{0,1\}^* \}$ context-free My thoughts, Let $x = \epsilon$ and we get $ww^R$, which is context-free. Hence the given language must be context-free. Am I right?
I am using language as a placeholder although I think it can be used in music too. I am unclear if the frequencies are given based on the text or the entire language. The latter would prove to be difficult because if we are to say that 'e' is the most common letter in English, wouldn't this shift over time with some ne...
I have to figure out the frequencies of 3 letters for Huffman encoding of {0, 10, 11}. One suggestion is in the order {$\frac{2}{3}$, $\frac{1}{6}$, $\frac{1}{6}$} as given in part (a) the 2nd slide of page 3 here. My question is whether the last 2 character frequencies need to be evenly split. Could we not have had {$...
In a weighted graph $G(\mathcal{V},\mathcal{E})$ where $w(i,j)$ is the weight of the edge $(i,j) \in \mathcal{E}$. How can I find a maximum weighted matching with a specific size (i.e specific cardinality).
I have a simple question regarding reduction using K-Maps. My professor gave this example: While I somewhat understand that we can only group quantities of base 2 numbers, why did my professor group the K-Map values like the image above instead of the image below (what I drafted): Why did my professor include element...
David Harel's StateCharts introduces hierarchical states and history mechanism, which are really powerful when modeling complex system behaviour. But when doing model based testing we need a "flattened state machine", that is an equivalent state machine without any hierarchy. By googling around I found this paper by Wa...
So I have the question: show "Show $\{0^1^|≠\}$ is not regular". I've already seen various proofs for this question, but they all have one step I don't get. They all take: $\bar{L}∩(0^∗1^∗)$ ($\bar{L}$ is the complement of $L$) and show that it's not regular. I don't get why we can't just take $\bar{L}$. Because isn't ...
I am trying to understand the proof of the master theorem and I came up with my own proof for why (4.23) is true. My argument is as follows: Claim: $g(n)=O\left(\sum_{i=0}^{\log_{b}(n)-1}a^i(n/b^i)^{\log_b{a}-\epsilon}\right)$. $$g(n)=\sum_{i=0}^{\log_{b}(n)-1}a^if(n/b^i)$$ Now by the definition of big O, we have that...
This is a GATE 2021 exam question. If the numerical value of a 2-byte unsigned integer on a little endian computer is 255 more than that on a big endian computer, which of the following choices represent(s) the unsigned integer on a little endian computer? A. 0x6665 B. 0×0001 C. 0×4243 D. 0×0100 According to me, answ...
May anyone explain me why $\forall x \in \mathbb{N}\ \Phi(x,x)$ is unary but $\Phi$ is binary? In my latest exam I wrote that the universal function $\Phi^n(x_1, x_2, ..., x_n,y) = \psi^n_y(x_1,x_2,...,x_n)$ is unary because its $n+1$ parameter is a constant referring to the number of the S-program ($y$), but my teache...
Given that array has $k$ elements (all distributed uniformly). Its length is exactly $3$ somewhere in $[0, k)$. For example, if $k=100$ then, we have $100$ numbers and they can be in $[10,13)$, but they can also be at $[89,92)$ I need to offer a sorting algorithm, which is efficient. Now, my idea was Bucket Sort, but w...
Let $\forall n \in \mathbb{N}\ \ P(n)$ a primitive recursive predicate such that $\neg P(n)$ for a finite number of values of $n$. Why this function: $$ f(x) = \begin{cases} 1 & \text{ if there are at least $x$ numbers $n$ such that $P(n)$}\\ \uparrow & \text{ otherwise} \end{cases} $$ is a recursive primitive functio...
Any help will be appreciated, as I wasn't able to find much about it online in the last few days and I can't seem to write a suitable recurrence relation for this kind of functions.. Are there any tips or general guidelines for calculating the complexity (time/space) for functions of the following form? int f1(int n) {...
I am trying to figure out the solution of the recurrence relation $$T(n) = 5T(n/3) + n \log n$$ using the Master Method. I am guessing that $f(n) = O(n^{1.46 - \varepsilon})$, but I am confused in the part that $\frac{n \log n}{n^{1.46}}$ must be polynomially smaller. If something is polynomially smaller does it mean i...
The paper “Where the really hard problems are” (https://www.ijcai.org/Proceedings/91-1/Papers/052.pdf) and others that cite it provide evidence that lots of algorithms for many NP complete problems (when suitably parametrised) perform poorly on the problems that lie on the phase transition from under constrained to ove...
I am trying to solve this by using Substitution method. My solution must work both for even n-s and odd n-s. For evens case I have solved it. But for the odd's case I am stuck at this point. Hot to continue?
I have the vocabulary $\tau = \{+, 0 \}$ and the structure $R = (\mathbb{R}, +^R, 0^R)$ where $+^R$ is a binary function symbol representing the normal addition of numbers and $0^R$ is the constant $0$ in $\mathbb{R}$. I 'm trying to prove that the bijection $$\sigma : \mathbb{R} \rightarrow \mathbb{R} \text{ with } \s...
The following algorithm for computing the number of nodes in a linked list appears in this thesis on common algorithms in the PRAM model for parallel computation. The author then argues that this is a $log(n)$ time algorithm (where $n$ is the number of nodes in the list) because the span of nodes covered by the "far" ...
I am given a sorted array with n integers. All of the elements repeat exactly twice, while there is one element without duplicate. I need to solve it as efficient as it is possible by divide-and-conquer algorithm. I have noticed that n needs to be odd to satisfy my condition. I thought about doing this: divide my array...
Is there a way to generate a bijection over integers $F : [0..n) \rightarrow [0..n)$ that satisfies the properties: $n$ is arbitrarily chosen and can be any positive integer $F$ generates a pseudorandom, potentially biased permutation of its domain $F$ is seedable and can be easily influenced to generate a different r...
can someone explain what the following notation is? For j <- 1 to n Legal <- True I've seen these in various places, including wikipedia articles. It seems to be a specific notation, but I don't know the name and can't find much of anything on it. Can someone explain what it is, where it's used, if it's in widespr...
When $\overline{M}$ is a non-deterministic polynomial by time Turing machine that final states switched: accept to reject and vice versa. I'm thinking that this equal to $P=NP$, but I saw a solution (an example) that I disagree with: $M$ is a non-deterministic polynomial by time Turing machine that decide $SAT$, if all...
I was trying to store a Huffman tree in a binary file recently. I thought it wouldn't be a big problem since you actually have the binary codes already in front of you. Well, the difference is that the file (in the hex editor) is logically coded in hex. So I tried to convert the "characters" from binary to hex. Without...
Given an arbitrary CPU - Architecture and its instruction set... What would be the outcome of the given inverted instruction within that Architect? For simplicity, let's use an 8-bit CPU architecture that has an 8-bit Bus design where that bus is used for both addressing and data transfer operations. A single instructi...
if given a language $L$ recognized by NFA $N_0$ over an alphabet $\Sigma$. Is it possible to find a general way of constructing an NFA $N_1$ that accept $L^C$ such that $L^C= \{w \in \Sigma^{*} |\mid w \notin L \}$?
Given a string s and an int k, return an int representing the number of substrings (not unique) of s with exactly k distinct characters. If the given string doesn't have k distinct characters, return 0. Input: s = "pqpqs", k = 2 Output: 7 Explanation: ["pq", "pqp", "pqpq", "qp", "qpq", "pq", "qs"] I have this solution...
I sort of know how to solve the problem but I am not sure how to do it in a systematic way. Could someone provide a step-by-step solution especially for the follow set one? Thanks!
So I get this through the math behind the SVM (Support Vector Machine), and I get this formula $$(w^T)(x_1-x_2) = 2.$$ We then divide both side with norm of $w$ then we get the new formula $$ \frac{w^T}{\|w\|}(x_1-x_2) = \frac2{\|w\|}. $$ Why do we divide by the norm of $w$ in both sides?
Can somebody help me with the formula needed to calculate the number of weights for a CNN, using the following sample question as the basis for it? Suppose we have a convolutional neural network with a 5x5x1 input volume, followed by one convolutional layer with 5 filters that have a 2x2x1 receptive field, followed by...
I had a question about a general statement regarding finding a computationally indistinguishable distribution given any distribution, observed (in the third paragraph of Section 11, page 31) here. This is the statement: For any distribution $D$ over $\{0,1\}^{n}$, there exists a distribution $D'$ such that $D$ and $D'...
The $\Leftarrow$ direction is straightforward. On the other hand for $\Rightarrow$ direction I have an idea of the prove but I don't sure about it. For NTM, Non Deterministic Turing Machine, $M$, for example TN that decide $SAT$, $L(M)=L(\overline{\overline{M}})\in NP$. It's clear that exists NTM $M'=\overline{M}$ such...
having problems with big oh and big omega functions when there is a $\log n$ added or subtracted. For example how do I deal with $n+\log n$ or $n-\log n$ when I have to determine whether the function is in $\Omega(n)$ or in $\Omega(n^2)$? For example, is $n-\log n$ in $\Omega(n)$ or in $\Omega(n^2)$? I cannot ignore th...
Support Vector Machines turn machine learning linear classification tasks into a linear optimization problems. $$ \text{minimize } J(\theta,\theta_0) = \frac1n \sum_1^n \text{HingeLoss}(\theta,\theta_0) + \frac{\lambda}{2} ||\theta||^2 $$ My question is, what linear programming runs on the background for the minimizati...
Let $\Sigma$ be some alphabet. We define the following operation on the set of all languages over $\Sigma$. The operation $\mathrm{3MAJ}(L_1, L_2, L_3)$ takes in three languages $L_1$, $L_2$ and $L_3$ and outputs the language of all words that are members of the majority of the input languages. Formally: $$\mathrm{3MAJ...
How would the following term in the pure untyped lambda calculus be parsed: y λx.x y The relevant conventions listed on https://en.wikipedia.org/wiki/Lambda_calculus_definition#Notation (as well as many texts on this subject) state: Applications are assumed to be left associative: M N P is parenthesised as ((M N) P) T...
A relation on two sets $A$ and $B$ is defined as the subset of the cartesian product $$A\times B = \{(a,b),\ a \in A, b \in B\}$$ A database is also a relation and each entry is an ordered tuple respecting the cartesian product. Now, interchanging the rows and the columns of a database does not change it. I can underst...
I think Option C is false. Following is my thought process: Starvation in general mean Process is waiting indefinitely for the resource or to get scheduled etc. [A/c to Galvin Book]. So, here in this question, Any process needing any resource at any point can call the OWNRESOURCE function and process will surely get t...
I'm using the grammar scheme of Danielsson and Norell ("Parsing Mixfix Operators"). The short version is: user defined mixfix operators such as _+_ or if_then_else_ the precedences form a DAGs it is known that this creates an unambiguous grammar if the operators don't share lexical tokens otherwise, input gets rejecte...
I'm new here, and I'm currently trying to understand why mod operation can be used as a hash function. For example, consider the function $h(x)=x\mod 2^{256}$, where $x$ can be a string of any length. The book says that this function will return a fixed size of 256 bits. To my understanding, $h(x)$ will return an integ...
This is an overall system design and DBMS question: If the user books a ticket or an item on a website, how do we solve the issue of confirming a ticket is sold to the user, but the main Database System breaks down, and the secondary DMBS doesn't have that information yet? Is the most common solution just to not commit...
Problem 1: Consider the following problem: given a binary string $w=a_1a_2\cdots a_n \in\{0,1\}^*$, decide whether $w$ contains 00000 as a substring (i.e., where $w$ contains five consecutive 0's). There is an obvious $O(n)$-time algorithm. You will investigate the hidden constant factor, concerning the number of bits...
I started watching SICP lectures and am totally new to computer science. SICP. LEC 1B: Procedures and Processes; Substitution Model I don't know why the time complexity of the Fibonacci sequence is O(Fib(n)). So, I googled about it, he says There's a thing that grows exactly at Fibonacci numbers. It's a horrible thing...
I'm trying to figure out how to make the action table for a Turing Machine computing $⌈\log_{2}(n)⌉$. The input and output shall be unary (meaning $3$ should represent $111$). I can only deal with 1 tape. Also, I would prefer having 7 transition states, 1 final state, 24 actions and 5 symbols, but any other numbers are...
Suppose I have a CNF formula with clauses of size 2 and 3. It has a unique satisfying assignment. It was made from a binary multiplication circuit where I multiplied two primes numbers A and B such that A*B=S where S is a semiprime number. I added the conditions that A != 1, B != 1 and A <= B, then added the value of S...
I was reading universal Hashing from Introduction to Algorithms by Cormen et al., and came across the following corollary regarding search, insert and delete functions on Universally Hashed tables: Corollary 11.4 Using universal hashing and collision resolution by chaining in an initially empty table with $m$ slots, i...
Can anyone explain to me how to demonstrate that, $$T (n, d) ≤ T (n − 1, d) + O(d) + d/n (O(dn) + T (n − 1, d − 1))$$ is solved by $$T (n, d) ≤ bnd!$$ for some constant $b$ using the substitution method? I have done this but I don't know if it is correct: $T (n-1, d) ≤ b(n-1)d!$ $O(d) ≤ bd$ $d/n (O(dn) + T (n − 1, d −...
I am new to natural deduction and upon reading about various methods online, I came across the rule of bottom-elimination in the following example. I do not understand the step in line 10. Upon inspection, my initial thought would be that the assumption of ¬p and p both being true is absurd, hence anything can be in...
I am a bit confused on how to give a formal definition of the language accepted by A? I can describe it by "The language of all strings starting with n-many a's or n-many c's followed by n-many b's" and I have tried to give a formal definition by: L(A) = {a^n c^n b^n | n ∈ N} Is that the correct way to define it?
I am trying to find a computable, injective and bijective function $f: \mathbb{N} \to A$ where $A$ is the set of all (finite) directed graphs up to isomorphism (also with no edge repetitions). Which means $A$ is containing equivalence classes defined by isomorphism. i.e, given a graph (class) example $[G] \in A$ where...
LUKE is a new state-of-art in question answering system and after googled keywords LUKE Studio Ousia NAIST and RIKEN AIP (I suppose LUKE is a colaboration between several research centers) I couldn't find any information. LUKE is mentioned in the following pages: https://paperswithcode.com/sota/question-answering-on-sq...
I'm currently experimenting with some tree-like data structures and came up with a structure that has the following properties: It consists of nodes and leaves It has a single root element Both nodes and leaves each hold a single element Each node can have a non empty list of subtrees (a leaf could be considered a nod...
For a study, I have a system (black-box) that requires an input in the form of an array with 4 values (input_array) and depending on their values it produces an output (response) signal. The input_array contains 4 real values (parameters P1-4), with given and separate ranges. The output signal's quality is measured by...
in studying Quicksort using the book "Introduction to Algorithms" by Cormen, Leiserson, Rivest and Stein, they describe in order to show correctness, an invariant must hold for the 3 stages of the loop, the initialization, the maintenance and termination of the loop. Based on the following algorithm, I don't understan...
So a tournament is just a complete directed graph, I believe. I'm having trouble proving this problem. I know it is induction however. I was thinking the base case is $2^1$ vertices, and therefore we have a sub-tournament of 1 + 1 vertices, which holds. Then in our induction step we have to show $2^{n + 1}$. But I'm ...
I am seeking a graphical model that is a generalization of both a Markov random field (MRF) and a Bayesian network (BN). From the Markov random field wiki page: A Markov network or MRF is similar to a Bayesian network in its representation of dependencies; the differences being that Bayesian networks are directed and...
When reading about SiamMask (Wang et al., Fast Online Object Tracking and Segmentation: A Unifying Approach), I encountered the terms "Jaccard decay" and "Jaccard recall". I know what Jaccard index means, but not sure what is the meaning of Jaccard decay and Jaccard recall, and the difference between these terms. Also,...
I understand that the general problem of program equivalence is undecidable, but I'm wondering what approaches exist to tackle the problem? I am familiar with Hoare-style verification, but are there any other frameworks for proving program equivalence?